You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
objectql: an extend layer's record-mode currency amount is judged against the object as served, so a bad follow pair is refused at the run that completes it (not at a later no-change upgrade of the parent) #33593
Split from #32934 item 2 (os-dev report 6887729320, measured on main by area E2b). Area-lease pilot #33059, lease:E2b. The seat ruling below was reviewed once before filing.
Premise (measured)
A package that only EXTENDS an object can add a record-mode currency amount that follows:
a parent field with no ISO 4217 code,
a missing field, or
a field reached through its own new master_detail.
All three are ADMITTED. recordCurrencyFollowRefusalOf (registry.ts) passes partial: ownership === 'extend', and recordCurrencyFollowRefusal (record-currency-aggregate-door.ts) returns before the follow and other-ends halves. The bad amount is then served, and a later no-change upgrade of the parent's owner is refused 422 on the extension's field, which blames the wrong package. Controls: the same amount in an own object body gets 422; installing parent and extension together gets 422. Run end, the batch writer (batch-object-registration.ts) and single save share this path.
Ruling: A, amended
R1: every layer is judged as the served fold of its object (base + enabled extensions + the incoming body), never as the partial body.
R2: if the extended object is not registered, there is no verdict (unchanged).
R3: the run that completes a bad pair is refused, whichever end it holds. No order is exempt. This includes an extension registered before its object's owner, so the owner's own-body loop and the other-ends check also read the served extensions.
R4: an extension that arrives before the parent's code field exists is refused, the same as an own body.
R5: cross-extension: the followed field is read from the served parent. A missing or disabled supplier means refusal; the same artifact passes at run end.
R6: a parent upgrade that removes or de-codes a followed field is refused, because the upgrade is the breaking change. The message names the extension's package and field.
R7: a no-change upgrade is never refused.
Acceptance
Clause-② table: every moved answer FROM→TO, in both registration orders, at run end, in the batch writer, and on single save.
CONTROLs: an own body, and parent + extension installed together.
Pin, or file separately, whether uninstalling or disabling a supplier extension (R5) and enabling a package ask the door.
Metadata-protocol: narrowed goes to contract review. Add a minor changeset line. No legacy-data migration or heal (maintainer, 2026-11-14: no production customers yet).
{
"issue": 33593,
"status": "done",
"branch": "claude/area-E2b-33593",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33621",
"pr_number": 33621,
"head_sha": "bb54e3a54a2c6e7873b183ba24559cdf60fca2e4",
"session": "session_016WV4cz4f7zEQZ2C9GTG382",
"premise_still_valid": true,
"summary": "Every object layer's record-currency follow pair is now judged as its object served with the layer in its slot (base + enabled extensions + incoming body): SchemaRegistry.recordCurrencyFollowRefusalOf builds the fold (servedFoldWithLayer) and the door no longer has a partial mode. A run that leaves a pair as it found it is not refused (the door compares against a 'before' fold: what the run replaced at run end; the slot left empty on single save and in the batch writer), and a parent upgrade breaking an extension's amount names the extension's package and field. A published object_extension single save on an against-registry face now asks the follow door (protocol-save.ts); before this hunk it never did (measured on this branch: 200 and served). Draft PR #33621 opened before the 03:45Z deadline; minor changeset with registered ADR-0087 semantic entry record-currency-follow-extension-judged-as-served.",
"rulings": {
"R1": "done — every layer judged as the served fold, at run end, batch writer and single save (pinned at all three; batch writer at the registry question the writer asks of a registered row)",
"R2": "done — no owner serves the object => no fold => no verdict (pinned: extension registered before its object's owner installs)",
"R3": "done — both orders; the owner registering under an extension judges the extension's amounts (pinned run end, single save, batch writer)",
"R4": "done — extension before the parent's code field exists refused; installs once the parent holds it (pinned run end)",
"R5": "done — supplier missing / disabled => refused; supplier in the same artifact passes at run end (pinned run end). Uninstall/disable/enable asking the door: split_out",
"R6": "done — parent upgrade removing or de-coding the followed field refused; sentence names the extension's package and field (pinned run end, both shapes)",
"R7": "done at run end — no-change upgrade of either owner over a cold-boot-admitted pair installs (two existing pins flipped, one new CONTROL keeps a pair-changing upgrade refused). Single save / batch writer judge against the slot left empty (see open_questions)"
},
"registry_symbols": [
"interface RunRegisteredObject (+ field replaced)",
"interface FollowDoorLayer (new)",
"RegistrationRestorePoint.noteRegisteredObject (keeps the earliest replaced per slot)",
"SchemaRegistry.registerObject (captures the contributor its slot replaces in the existing own/overlay/extend replacement chain; passes it to noteRegisteredObject) — outside the three follow-door call sites, needed for R7",
"SchemaRegistry.recordCurrencyFollowRefusalOfRun (passes layer + replaced; JSDoc)",
"SchemaRegistry.followRefusalAsServed (new layer parameter, passed through)",
"SchemaRegistry.judgeRegistrationDoors (the follow-door call: { packageId, before: null })",
"SchemaRegistry.recordCurrencyFollowRefusalOf (new signature: layer; builds the served fold and the before fold; view gains extensionPackageOf, loses extensionFieldsOf/partial)",
"SchemaRegistry.servedFoldWithLayer (new, private)",
"SchemaRegistry.followDoorSlotPriority (new, private)"
],
"registry_question_wording_for_E1": "packages/metadata-protocol/src/registry-question.ts header, after 'so a refused body is answered 422 INVALID_METADATA and nothing is stored or promoted.': add 'An object_extension item published on the same faces asks the follow door too, of the extension judged as its object will be served.' Not edited (E1 owns the file).",
"changed_lines": {
"total": "7 files, +594 / -85",
"files": {
".changeset/33593-extension-follow-judged-as-served.md": "+26/-0",
"packages/metadata-protocol/src/protocol-save.ts": "+18/-0",
"packages/objectql/src/manifest-service-artifact-refusal-restores.test.ts": "+230/-19",
"packages/objectql/src/protocol-batch-object-registration.test.ts": "+102/-0",
"packages/objectql/src/record-currency-aggregate-door.ts": "+69/-40",
"packages/objectql/src/registry.ts": "+104/-26",
"packages/spec/src/migrations/entries/semantic/18.record-currency-follow-extension-judged-as-served.ts": "+45/-0"
}
},
"tests": "objectstack-ai/objectstack @ 56474fc2f (source unchanged since but a JSDoc commit, head bb54e3a54): `pnpm --filter @objectstack/objectql test && pnpm --filter @objectstack/objectql typecheck` under os-verify-lock => Test Files 595 passed (595), Tests 13049 passed (13049), check:test-typecheck OK, VERDICT command-exit 0. `pnpm --filter @objectstack/metadata-protocol test && ... typecheck` => Test Files 340 passed | 9 skipped (349), Tests 22877 passed | 43 skipped, VERDICT command-exit 0. Targeted: the two touched test files 62/62. Ablation (registry.ts, `if (served === undefined) return undefined;` -> `... || ownership === 'extend') return undefined;`, via scripts/ablation-replace.mjs; objectql tests import src by relative path, no dist between): anchor 1 -> 0, blob 09c11d4afe57 -> 3be4c89b9820, Tests 8 failed | 54 passed (the three R1 shapes, R4, R5 missing, R5 disabled, single save, batch writer); restored blob == HEAD, git diff HEAD empty. R3 cases stayed green under it (expected: the owner layer folds the extension).",
"gates": "Local: eslint --no-inline-config over the 6 changed source/test files exit 0; pnpm check:adr-0087-registration exit 0 (registered, new here). dispatch-gates --commands (95 commands, 7 paths vs merge base c32bb6ccb): see gates_detail. CI families: PR #33621 check-runs not read (in_progress at report time).",
"gates_detail": "dispatch-gates --commands at objectstack-ai/objectstack ccd834168/bb54e3a54 (7 paths vs merge base c32bb6ccb): 95 commands. Run locally, each exit code captured before any pipe: 88 exit 0 on the first sweep; 7 exit 3 (PREREQUISITE NOT MET, spec dist stale/being rebuilt) of which check:api-surface ('public API surface + factory signatures unchanged'), check:exported-any, check:browser-reachable-entries, check:dual-source-exports, check:entry-nameability re-run exit 0 after `pnpm --filter @objectstack/spec build` (VERDICT command-exit 0). check:dual-build-cjs-loads and check:lean-entry-closure: exit 3, need a whole-repo build (e.g. no packages/adapters/hono/dist) => NOT MEASURED locally, CI runs them. --ran reconciliation: 'Run reconciliation — 95 derived, 93 run, 0 NOT-MEASURED, 2 UNRUN' (the two above). PR #33621 check-runs: not read at report time (in_progress).",
"dogfood_battery": "NOT MEASURED — title carries `!`; the full battery owed on the final head was not run before the 03:45Z deadline; declared to the queue's Dogfood Regression Gate",
"not_measured": [
"test:repo (vitest repo project, incl. packages/runtime/src/metadata-registry-question-producers.test.ts) — declared to CI Test Core",
"direct dependents of objectql (runtime, rest, plugins, services) — deadline; declared to CI",
"full dogfood battery — deadline",
"batch writer driven end to end through a protocol batch face with an object_extension row (pinned at the registry question the writer asks instead)",
"check:dual-build-cjs-loads, check:lean-entry-closure — exit 3 PREREQUISITE NOT MET (whole-repo build absent); CI runs them"
],
"mcp_calls": "0",
"api_writes": "3 — POST issues/33593/comments (claim, via post-stamped relay, order-mandated), POST pulls (pr_create draft #33621, via fleet-write relay, no labels/assignees), POST issues/33593/comments (os-dev-report, via post-stamped relay); plus git push x4 (not REST)",
"needs_decision": [],
"open_questions": [
{
"question": "R7 on single save and in the batch writer: those askers judge a layer against its slot left empty (the batch writer asks after its rows are registered, so 'what the slot held before' is not available to it). A single save that re-saves an own body unchanged over a pair a cold boot admitted is therefore still refused, as on main. Should R7 extend to them?",
"options": [
"A: leave as is — R7 names upgrades, which are runs; the save doors keep main's answer for own bodies (no extra plumbing)",
"B: single save passes the sitting slot contributor as before (cheap, registry-only), batch writer keeps slot-empty (needs the pre-batch contributor carried through batch-object-registration.ts to do better)"
],
"recommendation": "A, because R7 is worded for upgrades and B splits the two askers' semantics; revisit only if a save door is reported refusing an unchanged body"
}
],
"split_out": [
"Uninstall / disable of a supplier extension (R5) and enabling a package do NOT ask the follow door (by reading at bb54e3a54: SchemaRegistry.uninstallPackage / disablePackage / enablePackage enter no restoringOnRefusal run and call no follow-door asker). A disable that withholds a supplier's code field leaves a following amount served against a parent without the code; an enable can bring back a bad extension amount unjudged. Not pinned here; for a separate card (class a/b candidate, seat to file). Dedupe words: record-currency follow door disable supplier extension; enablePackage follow pair; uninstall supplier code field"
],
"out_of_scope_findings": [
"carrier: none · noted, not filed — packages/spec/src/migrations/entries/semantic/18.record-currency-follow-pair-refused-on-install-and-reload.ts reason says the next upgrade of a package holding only the other end is refused 'although nothing in that package is wrong'; R7 makes that sentence false. Not edited (a registered entry); the new entry states the R7 behaviour. Seat decides whether a registered entry's prose is amended."
],
"deviations": [
"registry.ts hunks go beyond the three follow-door call sites: registerObject's replacement chain captures the replaced contributor and RegistrationRestorePoint keeps it (R7 needs it); listed in registry_symbols.",
"packages/metadata-protocol/src/protocol-save.ts (not on the order's file list) gained the object_extension single-save follow-door question: without it the single save never asks the door (measured).",
"Worktree not removed: it is this harness session's own isolated worktree and the branch is the resume point for the 04:00Z handover."
],
"security_findings": "none",
"next_steps": [
"Read PR #33621 check-runs; fix any red (likely candidates: the four spec/dist gates NOT MEASURED locally, test:repo).",
"Run the full dogfood battery on the final head (title carries `!`).",
"Seat: contract review of `Metadata-protocol: narrowed`; decide open_questions[0]; file the split_out card; hand registry_question_wording_for_E1 to E1."
]
}
Seat ruling, R7 scope (os-dev report open_questions[0], PR #33621): A.
R1 covers all three askers: run end, the batch writer and single save each judge a layer as the served fold. R7 covers upgrades only, and an upgrade is a registration run. Single save and the batch writer keep main's answer, judging against the slot left empty, so an own body re-saved unchanged over a pair a cold boot admitted is still refused, as on main. No plumbing of the pre-batch contributor.
This narrows my ruling text above, which was ambiguous. It keeps main's behaviour on the save doors, so it moves no answer. Revisit only if a save door is reported refusing an unchanged body; that would be a new card.
On out_of_scope_findings: the registered entry 18.record-currency-follow-pair-refused-on-install-and-reload stays as registered. The new entry states the R7 behaviour.
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
Claim: area-lease pilot #33059, area E2b · 2026-11-15T02:42Z
Branch:
claude/area-E2b-33593Account:
os-elon-muskobjectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
os-dev-report
{ "issue": 33593, "status": "done", "branch": "claude/area-E2b-33593", "pr": "https://github.com/objectstack-ai/objectstack/pull/33621", "pr_number": 33621, "head_sha": "bb54e3a54a2c6e7873b183ba24559cdf60fca2e4", "session": "session_016WV4cz4f7zEQZ2C9GTG382", "premise_still_valid": true, "summary": "Every object layer's record-currency follow pair is now judged as its object served with the layer in its slot (base + enabled extensions + incoming body): SchemaRegistry.recordCurrencyFollowRefusalOf builds the fold (servedFoldWithLayer) and the door no longer has a partial mode. A run that leaves a pair as it found it is not refused (the door compares against a 'before' fold: what the run replaced at run end; the slot left empty on single save and in the batch writer), and a parent upgrade breaking an extension's amount names the extension's package and field. A published object_extension single save on an against-registry face now asks the follow door (protocol-save.ts); before this hunk it never did (measured on this branch: 200 and served). Draft PR #33621 opened before the 03:45Z deadline; minor changeset with registered ADR-0087 semantic entry record-currency-follow-extension-judged-as-served.", "rulings": { "R1": "done — every layer judged as the served fold, at run end, batch writer and single save (pinned at all three; batch writer at the registry question the writer asks of a registered row)", "R2": "done — no owner serves the object => no fold => no verdict (pinned: extension registered before its object's owner installs)", "R3": "done — both orders; the owner registering under an extension judges the extension's amounts (pinned run end, single save, batch writer)", "R4": "done — extension before the parent's code field exists refused; installs once the parent holds it (pinned run end)", "R5": "done — supplier missing / disabled => refused; supplier in the same artifact passes at run end (pinned run end). Uninstall/disable/enable asking the door: split_out", "R6": "done — parent upgrade removing or de-coding the followed field refused; sentence names the extension's package and field (pinned run end, both shapes)", "R7": "done at run end — no-change upgrade of either owner over a cold-boot-admitted pair installs (two existing pins flipped, one new CONTROL keeps a pair-changing upgrade refused). Single save / batch writer judge against the slot left empty (see open_questions)" }, "registry_symbols": [ "interface RunRegisteredObject (+ field replaced)", "interface FollowDoorLayer (new)", "RegistrationRestorePoint.noteRegisteredObject (keeps the earliest replaced per slot)", "SchemaRegistry.registerObject (captures the contributor its slot replaces in the existing own/overlay/extend replacement chain; passes it to noteRegisteredObject) — outside the three follow-door call sites, needed for R7", "SchemaRegistry.recordCurrencyFollowRefusalOfRun (passes layer + replaced; JSDoc)", "SchemaRegistry.followRefusalAsServed (new layer parameter, passed through)", "SchemaRegistry.judgeRegistrationDoors (the follow-door call: { packageId, before: null })", "SchemaRegistry.recordCurrencyFollowRefusalOf (new signature: layer; builds the served fold and the before fold; view gains extensionPackageOf, loses extensionFieldsOf/partial)", "SchemaRegistry.servedFoldWithLayer (new, private)", "SchemaRegistry.followDoorSlotPriority (new, private)" ], "registry_question_wording_for_E1": "packages/metadata-protocol/src/registry-question.ts header, after 'so a refused body is answered 422 INVALID_METADATA and nothing is stored or promoted.': add 'An object_extension item published on the same faces asks the follow door too, of the extension judged as its object will be served.' Not edited (E1 owns the file).", "changed_lines": { "total": "7 files, +594 / -85", "files": { ".changeset/33593-extension-follow-judged-as-served.md": "+26/-0", "packages/metadata-protocol/src/protocol-save.ts": "+18/-0", "packages/objectql/src/manifest-service-artifact-refusal-restores.test.ts": "+230/-19", "packages/objectql/src/protocol-batch-object-registration.test.ts": "+102/-0", "packages/objectql/src/record-currency-aggregate-door.ts": "+69/-40", "packages/objectql/src/registry.ts": "+104/-26", "packages/spec/src/migrations/entries/semantic/18.record-currency-follow-extension-judged-as-served.ts": "+45/-0" } }, "tests": "objectstack-ai/objectstack @ 56474fc2f (source unchanged since but a JSDoc commit, head bb54e3a54): `pnpm --filter @objectstack/objectql test && pnpm --filter @objectstack/objectql typecheck` under os-verify-lock => Test Files 595 passed (595), Tests 13049 passed (13049), check:test-typecheck OK, VERDICT command-exit 0. `pnpm --filter @objectstack/metadata-protocol test && ... typecheck` => Test Files 340 passed | 9 skipped (349), Tests 22877 passed | 43 skipped, VERDICT command-exit 0. Targeted: the two touched test files 62/62. Ablation (registry.ts, `if (served === undefined) return undefined;` -> `... || ownership === 'extend') return undefined;`, via scripts/ablation-replace.mjs; objectql tests import src by relative path, no dist between): anchor 1 -> 0, blob 09c11d4afe57 -> 3be4c89b9820, Tests 8 failed | 54 passed (the three R1 shapes, R4, R5 missing, R5 disabled, single save, batch writer); restored blob == HEAD, git diff HEAD empty. R3 cases stayed green under it (expected: the owner layer folds the extension).", "gates": "Local: eslint --no-inline-config over the 6 changed source/test files exit 0; pnpm check:adr-0087-registration exit 0 (registered, new here). dispatch-gates --commands (95 commands, 7 paths vs merge base c32bb6ccb): see gates_detail. CI families: PR #33621 check-runs not read (in_progress at report time).", "gates_detail": "dispatch-gates --commands at objectstack-ai/objectstack ccd834168/bb54e3a54 (7 paths vs merge base c32bb6ccb): 95 commands. Run locally, each exit code captured before any pipe: 88 exit 0 on the first sweep; 7 exit 3 (PREREQUISITE NOT MET, spec dist stale/being rebuilt) of which check:api-surface ('public API surface + factory signatures unchanged'), check:exported-any, check:browser-reachable-entries, check:dual-source-exports, check:entry-nameability re-run exit 0 after `pnpm --filter @objectstack/spec build` (VERDICT command-exit 0). check:dual-build-cjs-loads and check:lean-entry-closure: exit 3, need a whole-repo build (e.g. no packages/adapters/hono/dist) => NOT MEASURED locally, CI runs them. --ran reconciliation: 'Run reconciliation — 95 derived, 93 run, 0 NOT-MEASURED, 2 UNRUN' (the two above). PR #33621 check-runs: not read at report time (in_progress).", "dogfood_battery": "NOT MEASURED — title carries `!`; the full battery owed on the final head was not run before the 03:45Z deadline; declared to the queue's Dogfood Regression Gate", "not_measured": [ "test:repo (vitest repo project, incl. packages/runtime/src/metadata-registry-question-producers.test.ts) — declared to CI Test Core", "direct dependents of objectql (runtime, rest, plugins, services) — deadline; declared to CI", "full dogfood battery — deadline", "batch writer driven end to end through a protocol batch face with an object_extension row (pinned at the registry question the writer asks instead)", "check:dual-build-cjs-loads, check:lean-entry-closure — exit 3 PREREQUISITE NOT MET (whole-repo build absent); CI runs them" ], "mcp_calls": "0", "api_writes": "3 — POST issues/33593/comments (claim, via post-stamped relay, order-mandated), POST pulls (pr_create draft #33621, via fleet-write relay, no labels/assignees), POST issues/33593/comments (os-dev-report, via post-stamped relay); plus git push x4 (not REST)", "needs_decision": [], "open_questions": [ { "question": "R7 on single save and in the batch writer: those askers judge a layer against its slot left empty (the batch writer asks after its rows are registered, so 'what the slot held before' is not available to it). A single save that re-saves an own body unchanged over a pair a cold boot admitted is therefore still refused, as on main. Should R7 extend to them?", "options": [ "A: leave as is — R7 names upgrades, which are runs; the save doors keep main's answer for own bodies (no extra plumbing)", "B: single save passes the sitting slot contributor as before (cheap, registry-only), batch writer keeps slot-empty (needs the pre-batch contributor carried through batch-object-registration.ts to do better)" ], "recommendation": "A, because R7 is worded for upgrades and B splits the two askers' semantics; revisit only if a save door is reported refusing an unchanged body" } ], "split_out": [ "Uninstall / disable of a supplier extension (R5) and enabling a package do NOT ask the follow door (by reading at bb54e3a54: SchemaRegistry.uninstallPackage / disablePackage / enablePackage enter no restoringOnRefusal run and call no follow-door asker). A disable that withholds a supplier's code field leaves a following amount served against a parent without the code; an enable can bring back a bad extension amount unjudged. Not pinned here; for a separate card (class a/b candidate, seat to file). Dedupe words: record-currency follow door disable supplier extension; enablePackage follow pair; uninstall supplier code field" ], "out_of_scope_findings": [ "carrier: none · noted, not filed — packages/spec/src/migrations/entries/semantic/18.record-currency-follow-pair-refused-on-install-and-reload.ts reason says the next upgrade of a package holding only the other end is refused 'although nothing in that package is wrong'; R7 makes that sentence false. Not edited (a registered entry); the new entry states the R7 behaviour. Seat decides whether a registered entry's prose is amended." ], "deviations": [ "registry.ts hunks go beyond the three follow-door call sites: registerObject's replacement chain captures the replaced contributor and RegistrationRestorePoint keeps it (R7 needs it); listed in registry_symbols.", "packages/metadata-protocol/src/protocol-save.ts (not on the order's file list) gained the object_extension single-save follow-door question: without it the single save never asks the door (measured).", "Worktree not removed: it is this harness session's own isolated worktree and the branch is the resume point for the 04:00Z handover." ], "security_findings": "none", "next_steps": [ "Read PR #33621 check-runs; fix any red (likely candidates: the four spec/dist gates NOT MEASURED locally, test:repo).", "Run the full dogfood battery on the final head (title carries `!`).", "Seat: contract review of `Metadata-protocol: narrowed`; decide open_questions[0]; file the split_out card; hand registry_question_wording_for_E1 to E1." ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw
Seat ruling, R7 scope (os-dev report open_questions[0], PR #33621): A.
R1 covers all three askers: run end, the batch writer and single save each judge a layer as the served fold. R7 covers upgrades only, and an upgrade is a registration run. Single save and the batch writer keep main's answer, judging against the slot left empty, so an own body re-saved unchanged over a pair a cold boot admitted is still refused, as on main. No plumbing of the pre-batch contributor.
This narrows my ruling text above, which was ambiguous. It keeps main's behaviour on the save doors, so it moves no answer. Revisit only if a save door is reported refusing an unchanged body; that would be a new card.
On out_of_scope_findings: the registered entry
18.record-currency-follow-pair-refused-on-install-and-reloadstays as registered. The new entry states the R7 behaviour.docs(metadata-protocol): name every asker of the record-currency foll…
feat(objectql)!: judge an extension's record-mode amount against its …