Skip to content

Commit 35929cd

Browse files
committed
chore: re-anchor system-context census lines and pin the new engine doubles
Both are mechanical, gate-driven repairs of this change's own side effects: the +51 lines in seed-loader.ts moved three cited anchors, and the new locale-scope test pins engine doubles the contract ledger had not recorded. Claude-Session: https://claude.ai/code/session_013r78utTbiWqxghcuRJxfZf Co-authored-by: Claude <noreply@anthropic.com>
1 parent d621dec commit 35929cd

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

content/docs/permissions/system-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ assuming `isSystem` covers it is a documented source of bugs.
194194

195195
| Assumption | Reality | Anchor |
196196
|:---|:---|:---|
197-
| "It suppresses triggers / record-change automation" | **No.** Only `skipTriggers` does. A bare `{ isSystem: true }` on a seed write re-fired automation on freshly seeded rows and wedged first boot | `metadata-protocol/src/seed-loader.ts:2032` (rationale at `:1942``1944`, #3760), `flow.zod.ts:743` |
197+
| "It suppresses triggers / record-change automation" | **No.** Only `skipTriggers` does. A bare `{ isSystem: true }` on a seed write re-fired automation on freshly seeded rows and wedged first boot | `metadata-protocol/src/seed-loader.ts:2083` (rationale at `:1993``1995`, #3760), `flow.zod.ts:743` |
198198
| "It skips the state machine" | **No.** That is `skipStateMachine`, carried by seed replay and by `treatAsHistorical` imports | `objectql/src/engine.ts` FSM gate; see [State Machine](/docs/protocol/objectql/state-machine) |
199199
| "It skips validation rules" | **No.** Field shape, `format`, `script` and the rest still run. The `readonly` strip runs *before* validation precisely so a discarded value is not judged | `objectql/src/engine.ts:10398``10415` |
200200
| "It preserves a supplied `updated_at` / `updated_by`" | **No.** That is `preserveAudit`, a separate opt-in — and an UPDATE-path exemption only | `field.zod.ts:1590` (#3493 / #6640) |

scripts/engine-double-contract.pinned.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,21 @@
14511451
"verb": "update",
14521452
"pinned": 1
14531453
},
1454+
{
1455+
"file": "packages/metadata-protocol/src/seed-loader-locale-scope.test.ts",
1456+
"verb": "delete",
1457+
"pinned": 1
1458+
},
1459+
{
1460+
"file": "packages/metadata-protocol/src/seed-loader-locale-scope.test.ts",
1461+
"verb": "findOne",
1462+
"pinned": 1
1463+
},
1464+
{
1465+
"file": "packages/metadata-protocol/src/seed-loader-locale-scope.test.ts",
1466+
"verb": "update",
1467+
"pinned": 1
1468+
},
14541469
{
14551470
"file": "packages/metadata-protocol/src/seed-loader-multi-value-reference.test.ts",
14561471
"verb": "delete",

0 commit comments

Comments
 (0)