From 05fa512abb1361ae9ecf2bfda0bb7f85c64b4d18 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:33:52 +0000 Subject: [PATCH 1/4] docs(agents): PD12 names the write and load postures for bodies already published or stored A save, a publish or `os validate` refuses; a door loading a body already published or stored reads it through `parseAtRest`, past only the rules of `AT_REST_TOLERATED_RULES` with a finding each, and refuses every other error. The generic stored-row read keeps ADR-0087's 2026-07-31 addendum, and no rule joins the set without a ruling (ruling record 7372216489). Claude-Session: https://claude.ai/code/session_01ASNY8VYEJsv7qCYaPgM6nB Co-authored-by: Claude --- AGENTS.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index dc248ee2e3c..3793dbf9b72 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -259,7 +259,12 @@ See `ui/AGENTS.md` for the app-id / localStorage / auth gotchas. as an **ADR-0087 conversion-layer entry** (never a bare `??`, no executor shims) so it is declared, loud, tested, and *removable on a schedule*. Stored rows: `applyConversionsToStoredItem` replays the chain the installed release carries, retired entries included; kits age out one major after retiring (ADR-0087 as amended, ruling 6434038284), - so run `os migrate meta --stored --apply` before leaving a release that still converts the row. Strengthens #5. + so run `os migrate meta --stored --apply` before leaving a release that still converts the row. **A write and a + load take two postures:** a save, a publish or `os validate` refuses; a door loading a body already published or + stored reads it through `parseAtRest`, past only the rules of `AT_REST_TOLERATED_RULES` + (`@objectstack/spec/automation`) with a finding each, refusing every other error, structural ones included (ruling + record 7372216489); the generic stored-row read keeps ADR-0087's 2026-07-31 addendum (reads diagnose, never drop), + and ⛔ no rule joins that set without a ruling. Strengthens #5. 13. **An accepted ADR binds until a superseding ADR says otherwise.** Reversing a recorded decision is itself a decision: it needs a **new ADR** (or an amended status line on the old one), not a changeset that quietly does the opposite. Before changing behaviour in `docs/adr/`-governed territory, **grep the ADRs for the surface you are From e691e641dd60fea213a9352cf60f6acaa12e5a65 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:36:07 +0000 Subject: [PATCH 2/4] docs(agents): PD12 keeps its text; the load posture is one inserted sentence Claude-Session: https://claude.ai/code/session_01ASNY8VYEJsv7qCYaPgM6nB Co-authored-by: Claude --- AGENTS.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3793dbf9b72..4d4a7092913 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -259,12 +259,10 @@ See `ui/AGENTS.md` for the app-id / localStorage / auth gotchas. as an **ADR-0087 conversion-layer entry** (never a bare `??`, no executor shims) so it is declared, loud, tested, and *removable on a schedule*. Stored rows: `applyConversionsToStoredItem` replays the chain the installed release carries, retired entries included; kits age out one major after retiring (ADR-0087 as amended, ruling 6434038284), - so run `os migrate meta --stored --apply` before leaving a release that still converts the row. **A write and a - load take two postures:** a save, a publish or `os validate` refuses; a door loading a body already published or - stored reads it through `parseAtRest`, past only the rules of `AT_REST_TOLERATED_RULES` - (`@objectstack/spec/automation`) with a finding each, refusing every other error, structural ones included (ruling - record 7372216489); the generic stored-row read keeps ADR-0087's 2026-07-31 addendum (reads diagnose, never drop), - and ⛔ no rule joins that set without a ruling. Strengthens #5. + so run `os migrate meta --stored --apply` before leaving a release that still converts the row. A load of a body + already published or stored goes through `parseAtRest`: only the rules of `AT_REST_TOLERATED_RULES` (joined by + ruling alone) pass, each with a finding; every other error refuses, structural ones included, as every save, + publish and `os validate` does (ruling record 7372216489; ADR-0087's 2026-07-31 addendum). Strengthens #5. 13. **An accepted ADR binds until a superseding ADR says otherwise.** Reversing a recorded decision is itself a decision: it needs a **new ADR** (or an amended status line on the old one), not a changeset that quietly does the opposite. Before changing behaviour in `docs/adr/`-governed territory, **grep the ADRs for the surface you are From 4d5fa8dd4a6d032c31437e16cac6b0ebc1be990c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:53:30 +0000 Subject: [PATCH 3/4] =?UTF-8?q?chore(pm):=20raise=20the=20AGENTS.md=20byte?= =?UTF-8?q?=20ceiling=2078712=20=E2=86=92=2079050=20for=20PD12's=20at-rest?= =?UTF-8?q?=20sentence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ruling record 7413403390 (route A), measured delta +338 B. Claude-Session: https://claude.ai/code/session_01ASNY8VYEJsv7qCYaPgM6nB Co-authored-by: Claude --- scripts/pm/check-skill-line-ratchet.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index 1984a8462a6..9f982ec6092 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -144,7 +144,7 @@ export const CEILINGS = new Map([ ['.claude/skills/checklist-author/SKILL.md', 3574], ['.claude/skills/dogfood-verification/SKILL.md', 9513], ['.claude/skills/spec-property-retirement/SKILL.md', 26922], - ['AGENTS.md', 78712], // raised 78401 → 78712 (+311 B, the volatile-counts rule less the counts it deleted) by ruling records 7233980615 「没用的统计数字直接删,不同步」 and 7234354812 (option A 「上调上限并删无用计数」) under ruling record 6184799323, letter B; raised 78106 → 78401 (+295 B, the merge-queue speed-budget sentence; 1050 → 1053 lines) by ruling record 7044162186 「抬到 1053,整句写进去」 under ruling record 6184799323, letter B + ['AGENTS.md', 79050], // raised 78712 → 79050 (+338 B, PD12's at-rest load-posture sentence) by ruling record 7413403390 「A: raise limit +338 (Rec.)」; raised 78401 → 78712 (+311 B, the volatile-counts rule less the counts it deleted) by ruling records 7233980615 「没用的统计数字直接删,不同步」 and 7234354812 (option A 「上调上限并删无用计数」) under ruling record 6184799323, letter B; raised 78106 → 78401 (+295 B, the merge-queue speed-budget sentence; 1050 → 1053 lines) by ruling record 7044162186 「抬到 1053,整句写进去」 under ruling record 6184799323, letter B ['CLAUDE.md', 273], ]); From 06ecc7fce3b0b1dba279f74cfe988e68e2e359ec Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 14:23:31 +0000 Subject: [PATCH 4/4] docs(agents): PD12 names the doors the at-rest posture governs; generic stored-row reads keep ADR-0087's diagnose line Contract review FAIL M1: the load posture is the artifact package reader's and flow arming/resume's, not every stored-row read. Writes refuse the tolerated rules too (N1). The CEILINGS row comment gains its ruling chain (N2). AGENTS.md lands at 79050 bytes, the ruled ceiling. Claude-Session: https://claude.ai/code/session_01ASNY8VYEJsv7qCYaPgM6nB Co-authored-by: Claude --- AGENTS.md | 13 +++++++------ scripts/pm/check-skill-line-ratchet.mjs | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 4d4a7092913..ccd49e6af82 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -249,20 +249,21 @@ See `ui/AGENTS.md` for the app-id / localStorage / auth gotchas. — the rule still outranks the hook. **A worktree isolates neither the stash nor the build cache** — another hook (`guard-shared-stash.sh`, `OS_ALLOW_STASH=1`) and the replacements live in Multi-agent discipline below. 12. **Contract-first — fix the metadata, not the runtime.** `packages/spec` is the one contract between metadata - *producers* and the runtime/renderers that *consume* it. When a piece of metadata "doesn't work," ask **first**: + *producers* and the runtime/renderers that *consume* it. When metadata "doesn't work," ask **first**: *is it spec-compliant? is this the long-term-correct direction?* If the metadata is wrong, fix it at the **producer** and **reject it at authoring/publish** (validation / lint) so the error surfaces loudly — ⛔ never add a lenient alias or `??` fallback in a consumer (a node executor, the REST layer, a renderer) to tolerate off-spec input: one strict contract beats N dialects, and this is an **internal** contract (we own both ends), so - "be liberal in what you accept" does **not** apply. Change the **spec** only when the spec itself is genuinely + "be liberal in what you accept" does **not** apply. Change the **spec** only when it is genuinely wrong, and then deliberately (edit the Zod schema + migrate). When an alias must be tolerated at all, declare it as an **ADR-0087 conversion-layer entry** (never a bare `??`, no executor shims) so it is declared, loud, tested, and *removable on a schedule*. Stored rows: `applyConversionsToStoredItem` replays the chain the installed release carries, retired entries included; kits age out one major after retiring (ADR-0087 as amended, ruling 6434038284), - so run `os migrate meta --stored --apply` before leaving a release that still converts the row. A load of a body - already published or stored goes through `parseAtRest`: only the rules of `AT_REST_TOLERATED_RULES` (joined by - ruling alone) pass, each with a finding; every other error refuses, structural ones included, as every save, - publish and `os validate` does (ruling record 7372216489; ADR-0087's 2026-07-31 addendum). Strengthens #5. + so run `os migrate meta --stored --apply` before leaving a release that still converts the row. The artifact + package reader and flow arming/resume load published or stored bodies past only `AT_REST_TOLERATED_RULES`, a + finding each, which writes (save, publish, `os validate`) refuse; every other error refuses, structural ones + included (ruling record 7372216489). Generic stored-row reads diagnose, never drop (ADR-0087's 2026-07-31 + addendum). Strengthens #5. 13. **An accepted ADR binds until a superseding ADR says otherwise.** Reversing a recorded decision is itself a decision: it needs a **new ADR** (or an amended status line on the old one), not a changeset that quietly does the opposite. Before changing behaviour in `docs/adr/`-governed territory, **grep the ADRs for the surface you are diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index 9f982ec6092..dcfc653ffe5 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -144,7 +144,7 @@ export const CEILINGS = new Map([ ['.claude/skills/checklist-author/SKILL.md', 3574], ['.claude/skills/dogfood-verification/SKILL.md', 9513], ['.claude/skills/spec-property-retirement/SKILL.md', 26922], - ['AGENTS.md', 79050], // raised 78712 → 79050 (+338 B, PD12's at-rest load-posture sentence) by ruling record 7413403390 「A: raise limit +338 (Rec.)」; raised 78401 → 78712 (+311 B, the volatile-counts rule less the counts it deleted) by ruling records 7233980615 「没用的统计数字直接删,不同步」 and 7234354812 (option A 「上调上限并删无用计数」) under ruling record 6184799323, letter B; raised 78106 → 78401 (+295 B, the merge-queue speed-budget sentence; 1050 → 1053 lines) by ruling record 7044162186 「抬到 1053,整句写进去」 under ruling record 6184799323, letter B + ['AGENTS.md', 79050], // raised 78712 → 79050 (+338 B, PD12's at-rest load-posture sentence) by ruling record 7413403390 「A: raise limit +338 (Rec.)」 under ruling record 6184799323, letter B; raised 78401 → 78712 (+311 B, the volatile-counts rule less the counts it deleted) by ruling records 7233980615 「没用的统计数字直接删,不同步」 and 7234354812 (option A 「上调上限并删无用计数」) under ruling record 6184799323, letter B; raised 78106 → 78401 (+295 B, the merge-queue speed-budget sentence; 1050 → 1053 lines) by ruling record 7044162186 「抬到 1053,整句写进去」 under ruling record 6184799323, letter B ['CLAUDE.md', 273], ]);