Start · chosen once, from the situation a request begins in
invariants
about 1,200 tokens
invariants as it installs, every line written by greenline, with no upstream source.
- 3 files
- 0 edits
- 0 sentences left out
- 0 sources
- last changed 2026-11-11
The text
description: "List every invariant the app relies on but does not enforce: each with where it is relied on and the door that would hold it. Use for \"find every invariant my app relies on but doesn't explicitly enforce\", for what a part of the code relies on or assumes, or beside a floor on a public contract or a security boundary."
greenlinePoints at the references page and the page read firstAn invariant is a fact the code needs to stay true and assumes rather than checks: an amount never negative, a record written once, a caller always signed in. The start lists each one in three parts, the invariant, where the code relies on it and the door that would hold it, and marks each entry that sits on a public contract or a security boundary, since each of those is a floor the proposal names. It changes no code; each door is a change of its own.
Greenline's paths for this skill stand on its references page, [references/greenline.md](references/greenline.md): read it when the list is written.
Before the first file is read, read [method.md](method.md): where invariants hide, the three parts, the doors and the boundary.
greenlineWhat the start consumes, produces and hands onConsumes: the request, and the code it names or the whole application
Produces: the three-part list, its entries on a public contract or a security boundary marked, in the reply and in the change's folder
Next: frame, whose proposal names each marked entry as a floor; each door offered as a change of its own
SKILL.md as installed, byte for byte SHA-256 02b81c3611e69a573b775c7fef200c9944427a8dd7914ef1a5604a4dd81f7d68
method.md
about 470 tokensgreenlineWhere unenforced invariants hide and what to read for- A value the code reads without checking: an id assumed present, a list assumed not empty, an amount assumed positive.
- A uniqueness the data needs and no constraint holds: one active subscription per account, one fee per day.
- An order the code assumes between writes, or a group of writes assumed to land together.
- A caller assumed allowed because the route that reaches the code checked once, somewhere else.
- Units, time zones, currencies and precision assumed the same across modules.
- A shape assumed of outside data: a webhook's body, a file, a setting.
Read for the places where the code would go wrong in silence if the fact failed: a division, an index, a sum, a write with no condition, a branch with no else.
greenlineAn entry's three parts and its boundaryEach entry has three parts:
1. **The invariant**, one sentence that is true or false of the data or the calls.
2. **Where the code relies on it**: each place, by file and function, since two places that rely on it differently are a finding of their own.
3. **The door that would hold it**: the cheapest one that holds it where it can first fail, a type that cannot hold the bad value, an assertion at the boundary, a check that refuses, a schema or a constraint in the store, or a test that fails when it breaks.
Then mark its boundary: `public contract` where callers outside the module rely on it, such as an interface, a file format, a command's output or a published package; `security` where it guards who may read or write; `none` otherwise.
greenlineThe list's form, marked entries first, each door offered apartThe list is one table, the invariant, where it is relied on, the door and the boundary, its entries on a public contract or a security boundary first. Each marked entry is a floor, named in the proposal by its entry. Offer each door as a change of its own: a test that fails first, then the door that turns it green.
references/greenline.md
about 380 tokensgreenlineWhere the list lands and its four columnsThe list is `.greenline/ledger/<id>/invariants.md`, under the id the change's proposal will name, written before the proposal so the proposal can name its floors; the record cites it as `[invariants](<id>/invariants.md)` and its `## start` section names `invariants`. Asked for in a question with no change to come, the list stands in the reply alone. The file holds one table with these four columns, in this order:
| Invariant | Relied on at | Door | Boundary |
| --- | --- | --- | --- |
| An overdue fee is charged once per day | `src/fees.ts` chargeOverdue | a unique key on the account and the day | public contract |
The `Boundary` cell is `public contract`, `security` or `none`.
greenlineThe floor a marked entry raises on the situation line`greenline status` and the line printed at each turn's start read the list the session wrote, and the open change's, and name each entry marked `public contract` or `security` as a floor seen on the `situation:` line, `public-contract (an invariant: <the entry>)` or `security (an invariant: <the entry>)`. The proposal names each such floor, and the record's `floors` line, owed from the open, holds it, as for any floor found; while the line leaves one out, the `situation:` line names it with the cure, and nothing is refused for it.
What greenline wrote
The full reason for every passage greenline wrote, in the order of the text.
SKILL.md:6 rename
The skill's title, its name.
SKILL.md:8 method
The start's opening: what an invariant is, the three-part list, the marked entries as floors, and that it changes no code. R1
SKILL.md:10 method
The owner's phrase, lifted as written: the words that open the start. R2
SKILL.md:12 method
Points at the references page for where the list lands and at the method page before the first file is read. R1
SKILL.md:18 method
The start's handoff: what it consumes, what it produces and where the work goes next. R1
method.md:1 rename
The method page's title.
method.md:3 method
Where unenforced invariants hide in code, and what to read for. R1
method.md:14 method
The three parts of an entry and the boundary each entry is marked with. R1
method.md:24 method
The list's form, its marked entries first as floors, and each door offered as its own change. R1
references/greenline.md:1 scope
Opens invariants's references page and says when to read it.
references/greenline.md:5 relocate
Where the list lands, the change's folder under the proposal's id, and the table's four columns.
references/greenline.md:17 relocate
The floor a marked entry raises on the situation line, which the proposal and the record's floors line name. J-226 S1: the situation line names an invariant's floor the record's line leaves out.
The ledger entry
greenline's ledger logs how each skill was made and changed, with a reason for each entry.
2026-11-11 2026-11-11-invariants-floor-left-out-named
An invariant's floor the record leaves out is named, never refused
While the record's floors line leaves out a floor the invariants list raises, the situation line names it with the cure, and nothing is refused.
- Authorised by
- 2026-11-10 J-226 S1, on the operator's words of 2026-11-10 on the layout of the fix round, "go with your recommendations for each", and the standing words of 2026-11-07, super fast, with one verdict review since the fold of 2026-11-11, and the register's rows of 2026-11-05, "The keeper over the oracle", and 2026-11-09, "Outcomes, not manners": over the run j217t-ground finding 3, a floor the hooks saw that the record's floors line leaves out is printed on the situation line and never refused
Rulings, R1 to R4
- the operator's words of 2026-11-07 on the phrasebook, "we should lift phrases as they are with minimal changes" and "my idea with the phrases is that we implement them in a way into greenline that do get loaded as primitive context": a phrase that demands an artefact enters as a start, its trigger the owner's phrase and its product the artefact
- the operator's words of 2026-11-07: we should lift phrases as they are with minimal changes
- the operator's words of 2026-11-07 on the phrasebook, "there are more such high quality phrases which i believe unlock quality of an llm" and "we should lift phrases as they are with minimal changes": each phrase placed by its type through the phrase mode, a start for an artefact and a sentence on a step's method page for a stance, every change to a phrase an edit recorded with its reason
- J-226 S1, on the operator's words of 2026-11-10 on the layout of the fix round, "go with your recommendations for each", and the standing words of 2026-11-07, super fast, with one verdict review since the fold of 2026-11-11, and the register's rows of 2026-11-05, "The keeper over the oracle", and 2026-11-09, "Outcomes, not manners": over the run j217t-ground finding 3, a floor the hooks saw that the record's floors line leaves out is printed on the situation line and never refused
3 earlier entries
2026-11-07 2026-11-07-invariants-description-shortened
The description shortened so the settings page stays under its cap
Pages it touched: SKILL.md
2026-11-07 2026-11-07-invariants-pointer-gist
The pointer's gist names the page read first
2026-11-07 2026-11-07-invariants-enters
Adds the start invariants from the operator's phrase
Pages it touched: SKILL.md, method.md, references/greenline.md