Realign code with the 2026-07-31 findings-resolution rulings
The full bullet list from Implementation card bf080d9a — both ruling batches, including the three appended mid-session by16ef377: - Restore subjects compose the inverse, never nest: crossing "Undo: S" emits "Redo: S" and vice versa; parity, not stack depth, reads a legacy double prefix (GitHistoryProvider.restoreSubject). - Git-operation failures join the one-shot failure banner tier: BannerCenter.GitFailureBanner (undo/redo/branchSwitch/addGit), error tone at failure rank merged with write one-shots by recency; the postLoss compromise is retired at both AppModel wirings. - order/schema optional below the board root: append-at-end reading (ordered siblings first, folder-name tie-break among the order-less), schema reads 1, both coerce-tier logged; the root keeps its requirements. Ranks.resolvedOrders materializes finite ranks so models and placement math stay untouched; first Writer rewrite stamps a real rank on touch, placement against an order-less sibling stamps that sibling inline in the same bracket. Agent guide v10 teaches optional keys and zero-read filing. Hostile-YAML order shapes become coercion tests; Fixtures/Valid/optional-keys.kanban replaces the four retired Malformed boards. - .gitignore is the relocation-heal noise gate: GitignoreRules pure matcher (standard semantics, board-root file only), loader consults it once per walk so matched loose files keep the stray posture; seeded (.DS_Store + .*.lanework-*) at board creation and template instantiation, healed in when missing at open — repo-nested included; empty file honored, existing files never edited; the committer's obedience via libgit2 status is pinned by test. - Comments crash-residue sweep gates on step ownership: HistoryStep derives backing from its own undo expectations, backedContent unions both stacks, the sweep purges per-entry only what no live step owns. - Skip-purge decoupled (16ef377): a stale-skipped coarse step strands whole in NativeHistoryProvider.strandedSteps — still backing, retired only at session end; clean exits purge as before. - Coarse close step named "Changes to '<card>'"; the fine body-edit wording never leaks onto the board menu. - Branch-switch settle clears every open card window's fine stack on Save All and Discard alike; the empty fold registers no coarse step. - Close flush awaits its covering snapshot (quiesce + one generation bump, 1s bound), and an explicit flush now queues behind an in-flight one instead of skipping — the audit-caught interleaving could lose a close flush permanently when the debounce fired inside the close sequence; regression tests force both races. - Commit comment bullets sort chronologically by created, not UUID. - The production-unwired CardBodyEditSession.editSessionDidChange seam is deleted with its seam-only tests. - Composition-root pins: beginSession composes the committer with the store's own EchoLedger and binds the announcer (the miswire class). - Deliberate 06 conformance pass over every 2026-07-31-tagged sentence: fixed Change-custom-key subjects (the retired named generic was the only producer), the unbuilt Replace attachment vocabulary, heal commits now authored Lanework Integrity, the config reader scopes identity to plain [user] sections, add-git re-runs detection at create (a stale mode-none could initialize inside the user's repo), and add-git failures answer at the form or the banner. Structural residue filed on the Redesign board. 2554 tests / 439 suites green. Claude-Session: https://claude.ai/code/session_01CqjXB7ASoWtbyoGod68k97
This commit is contained in:
-7
@@ -1,7 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
order:
|
||||
title: Lane With Null Order
|
||||
---
|
||||
The hand-editor started the 'order' key and never gave it a value — reads
|
||||
as missing, not malformed.
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Board Is Fine
|
||||
---
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Card Missing Order
|
||||
---
|
||||
No 'order' key — required on every card.
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
order: 1024
|
||||
title: Lane Is Fine
|
||||
---
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Board Is Fine
|
||||
---
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Lane Missing Order
|
||||
---
|
||||
No 'order' key — required on every lane.
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Board Is Fine
|
||||
---
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
order: banana
|
||||
title: Card With Non-Numeric Order
|
||||
---
|
||||
'order' is present but not a number — malformed, not missing; the same
|
||||
loud rejection as a missing value.
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
schema: 1
|
||||
title: Board Is Fine
|
||||
---
|
||||
+4
-5
@@ -22,6 +22,7 @@ Lane/card folder names are fixed literal lowercase-UUIDv4-shaped strings (never
|
||||
| `coercion.kanban` | Lenient-field coercion and fallback: wrong-type scalars that coerce (`title: 2048`, `iconColor: 42`, `background: 12345`, `width: "3"`) versus ones with no sensible reading that fall back to the default (`title: [a, b]`, `background: {x: 1}`, `width: 1.5`), plus a `deleted` with an unusable timestamp that still tombstones. |
|
||||
| `duplicate-top-level-keys.kanban` | A top-level key written twice — at board, lane (the strict `order` field), and card level. Last occurrence wins; **not** a fail-fast case (settled, newer than the original card text). Round-tripped to prove the earlier occurrence survives on disk, invisible only to reads. |
|
||||
| `board-level-deleted.kanban` | A board-level `deleted:` key — legal per the frontmatter table but meaningless; ignored + warned, rest of the board loads normally. |
|
||||
| `optional-keys.kanban` | `order` and `schema` optional below the board root (re-ruled 2026-07-31). One lane holds a ranked card plus every order-less shape — no key, an explicit null, `order: banana`, `order: .nan` — which all read as append-at-end in folder-name order; the strip holds a ranked lane, a `schema`-less one, and an order-less one. Also the golden case for the minimum agent card: a card whose whole frontmatter is a title. |
|
||||
|
||||
## Malformed/ — one board per fail-fast case
|
||||
|
||||
@@ -30,10 +31,8 @@ Each board is minimal: one broken thing.
|
||||
| Board | Case |
|
||||
|---|---|
|
||||
| `unparseable-yaml.kanban` | An unterminated flow sequence in the board's frontmatter. |
|
||||
| `missing-schema.kanban` | Board root `index.md` has no `schema` key. |
|
||||
| `missing-schema.kanban` | Board root `index.md` has no `schema` key — the **root only**; below it a missing `schema` reads as 1 (`Valid/optional-keys.kanban`). |
|
||||
| `schema-newer-than-app.kanban` | Board root `schema: 2`, newer than `BoardLoader.supportedSchema`. |
|
||||
| `missing-order-lane.kanban` | A UUID-shaped lane `index.md` with no `order` key. |
|
||||
| `missing-order-card.kanban` | A UUID-shaped card `index.md` with no `order` key. |
|
||||
| `explicit-null-order.kanban` | A lane's `order:` key present with no value — reads as missing, not malformed. |
|
||||
| `non-numeric-order.kanban` | A card's `order: banana` — present but not a number. |
|
||||
| `board-root-missing-index.kanban` | The board root folder itself has no `index.md`. |
|
||||
|
||||
The four `order` boards that used to live here — `missing-order-lane`, `missing-order-card`, `explicit-null-order`, `non-numeric-order` — were retired on 2026-07-31, when `order` became optional below the board root. Their shapes all live on in `Valid/optional-keys.kanban` as coercion cases.
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: card
|
||||
order: 1024
|
||||
title: Ranked Card
|
||||
---
|
||||
The only card in this lane that says where it goes. Every sibling below reads as
|
||||
append-at-end, in folder-name order.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Minimum Agent Card
|
||||
---
|
||||
The whole legal minimum: one `mkdir` and one write, no `order` and no `schema`
|
||||
(08-agent-integration.md — "filing a card must need nothing but the schema").
|
||||
Reads as schema 1, at the bottom of the lane.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: card
|
||||
order:
|
||||
title: Null Order Card
|
||||
---
|
||||
The hand-editor started the key and never gave it a value — reads as missing,
|
||||
which below the root is the append-at-end reading.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: card
|
||||
order: banana
|
||||
title: Non-Numeric Order Card
|
||||
---
|
||||
Present but unusable — the same reading a missing key gets, recorded as a
|
||||
coercion with the text as written.
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: card
|
||||
order: .nan
|
||||
title: Non-Finite Order Card
|
||||
---
|
||||
NaN has no place in the total order the tie-break and midpoint math assume, so
|
||||
it is unusable exactly like `banana` — a coercion since 2026-07-31, not a
|
||||
rejection.
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: lane
|
||||
order: 1024
|
||||
title: Lane Is Fine
|
||||
title: Ranked Lane
|
||||
---
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: card
|
||||
order: 1024
|
||||
title: Card In The Orderless Lane
|
||||
---
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: lane
|
||||
title: Orderless Lane
|
||||
---
|
||||
No rank at all: sorts right of every ranked lane in the strip.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
kind: lane
|
||||
order: 2048
|
||||
title: Schemaless Lane
|
||||
---
|
||||
No `schema` below the root reads as 1 — the walk validating this file against
|
||||
schema 1 is what makes the reading reliable.
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
schema: 1
|
||||
kind: board
|
||||
title: Optional Keys
|
||||
---
|
||||
The board root keeps its `schema` — the this-really-is-a-board gate. Everything
|
||||
below it may leave `order` and `schema` out entirely (01-storage-format.md
|
||||
§ Frontmatter and § Ordering, re-ruled 2026-07-31).
|
||||
Reference in New Issue
Block a user