# tools/core/strings/agenda.strings.ts

> 30 lines of code and 5 definitions.

Tree: Coordination tree
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts
Source text: https://banes-lab.com/assets/sources/source.86d874c62efef46f2fd79a35a4dc9713eb5606668323a5cab6f973c19577af9a.generated.txt

## Definitions

- `planFileMissing` (lexical_declaration, line 1, exported)
- `invariantTaken` (lexical_declaration, line 8, exported)
- `planTerminatorMissing` (lexical_declaration, line 15, exported)
- `planContended` (lexical_declaration, line 22, exported)
- `agendaRowAdded` (lexical_declaration, line 29, exported)

## Used by

- [tools/core/runners/agenda.runner.ts](https://banes-lab.com/source/coordination/tools/core/runners/agenda.runner.ts.md)

## Source

```typescript
export const planFileMissing = function planFileMissing(plan: string): string {
    return (
        `REFUSED  ${plan} does not exist, so there is no agenda plan to add a row to. The table in the agenda file ` +
        "is generated from this plan, so a row written into the table directly is lost on the next run.\n"
    );
};

export const invariantTaken = function invariantTaken(invariant: string): string {
    return (
        `REFUSED  ${invariant} is already a row in the plan. The invariant name is the row's key, so it appears ` +
        "once. Edit the existing row instead.\n"
    );
};

export const planTerminatorMissing = function planTerminatorMissing(plan: string): string {
    return (
        `REFUSED  ${plan} has no closing line for the schedule, so the tool cannot tell where a new row belongs. ` +
        "Restore the closing `]);` of the schedule, then run the command again.\n"
    );
};

export const planContended = function planContended(plan: string): string {
    return (
        `CONTENDED  ${plan} changed between the read and the write, so the row was not added. Run the command ` +
        "again; the tool reads the current plan first.\n"
    );
};

export const agendaRowAdded = function agendaRowAdded(invariant: string, plan: string): string {
    return (
        `ROW  ${invariant} was added to the plan in ${plan}. Its state is not written: every run works it out from ` +
        "the venues on disk and renders it into the agenda table.\n"
    );
};
```
