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
Setup POST /api/v1/datasources creates a package-less datasource row outside the kernel save, past the #38174 close #39398
Part of #38174 · found by contract review 7390508171 (M1) on ADR PR #39397.
Ruling-ref: 7184753035 (Question 2, A: when the kernel closes package-less creates, only the named writers keep an exemption) and 7380917604 (the fifth, the ceremony). The maintainer's 2026-12-03 19:12Z ruling A on the permission-set clone (claim amendment 7389333883 on #38174) sets the pattern for a Console door that names no package: the Console offers a landing-package choice, and no new exemption is added.
Governing text: ADR-0070 D1 (every create names a writable package), as #39386 closes it.
Filing gate: ① a defect the work surfaced. Grading: area:package · domain:server · Bug · p2.
Setup's POST /api/v1/datasources (admin-routes.ts:962) runs createDatasource → putDatasourceRecord → persistDatasourceRow (datasource-admin-plugin.ts:158–183). That path inserts a new datasource row (allowRuntimeCreate: true) straight into sys_metadata with no package. It never passes saveMetaItem, so the create judgment never sees it, and it is not among the exemptions. The writer census behind #38174 (/mnt/project-files/card-38174/writer-census.md) does not list it.
What is owed
Close the door the way the clone was closed. The create names a writable package: route the write through the kernel save with the package, refuse it with 422 WRITABLE_PACKAGE_REQUIRED when none is named, and give the Setup datasource form the same landing-package choice. Pin the refusal and the landing, and drop the direct insert. Once this merges, ADR-0070 D1 can be marked complete.
Responsibility: platform code in this repo; no existing path covers it; any Setup admin who creates a datasource reaches it.
Re-check: grep -n "persistDatasourceRow\|allowRuntimeCreate" -r packages --include=*.ts | grep -v test | head
Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size S, touched 2026-12-03T20:12Z. Rationale: the filer's grade stands. Setup's datasource create writes a package-less row outside the kernel save, against ADR-0070 D1 (every create names a writable package) as #39386 closes it. Under the maintainer's 19:12Z ruling A, the Console offers a landing-package choice and no new exemption is added. It is part of #38174.
Grade: area:package · Bug · p2 · admins creating datasources in Setup · read (contract review M1 on PR #39397, at #39386 head c913c4a1).
2026-12-03T22:46Z · Blocked (zone em-upgrade, not claimed). Waiting on: PR #39386 (seat repo:objectstack@os-bill, #38174's claim 7384383757). Why: the fix routes the Setup datasource create through the kernel save and refuses it with WRITABLE_PACKAGE_REQUIRED; that refusal is what #39386 adds and it is not on main301a378, so the card's own Governing text ("as #39386 closes it") is not yet in the tree. Body line Blocked-by: #39386 added; the unlock scan returns it to pm:queue when #39386 merges. Zone em-upgrade takes it then, unless seat os-bill claims it first as part of #38174.
Unlock 2026-12-04T03:17Z: pm:blocked → pm:queue. The Blocked-by: #39386 target (ADR-0070 D1, the kernel closing package-less creates) closed at 2026-12-04T02:56Z. Area, type and grade stand.
{
"issue": 39398,
"status": "blocked",
"branch": "claude/issue-39398-wip",
"pr": null,
"session": "session_016WV4cxRh6Sbfo2Xm49JPx6",
"premise_still_valid": true,
"summary": "Built per claim amendment 7408609939 (ruling record 7408558495, Q1 A + A2, Q2 rides) with the Console half of amendment 7407420662. The Setup door's create, update and migrate-credential write through the kernel save (`saveDatasourceRecord`, new sibling module datasource-record-save.ts); the direct insert/update is gone, the direct delete is NOT touched (deleteDatasourceRow, named for the PR body). A create names its package in the body (`package`); naming none is the kernel's own 422 WRITABLE_PACKAGE_REQUIRED relayed in the door's words with details.writablePackages (the door stamps no code of its own; check:error-code-provenance green), nothing stored, and the secret minted for it removed. The own-reference judge passes a server-stated `mintedCredentialsRef` only when the body ref equals it and no other stored datasource row (any state) holds it. Q2: an import lands in the package the datasource's stored active row carries (unreadable = package-less; two packages = refused). Console: the editor shows the refusal with one button per writable package and re-sends the create into the pick (new DatasourceLandingPick.tsx; page only calls it). ADR-0087: new semantic entry 19.setup-datasource-create-names-package.ts (the only one, per amendment 7409019128). BLOCKED: #39536 is open and its claim 7406386689 (branch claude/project-thread-x8vem3, no PR yet) names call sites in protocol-save.ts, so the one-line protocol-save.ts commit 890ef9e35 is kept local in /home/user/objectstack-issue-39398, unpushed, and no PR is opened; claude/issue-39398-wip is pushed at 7b7c72035 with everything else. Without 890ef9e35 the minted pass is not wired, so the remote branch alone is not shippable: the A2 accepted-pins in metadata-protocol and a real-kernel door create with a secret need it. On #39536's release: merge origin/main, push 890ef9e35, open the draft PR. Four premises: (1) other judges still run: pinned on the real save (no package still 422; body ref other than stated 400; A2 held-by-another 400; draft-held is held; a body carrying the member refused 422 INVALID_METADATA); (2) the wire cannot state the field: pinned on the published SaveMetaItemRequest type (ts-expect-error) and schema (parse drops it), ablated red both ways; the REST/dispatcher/MCP doors were read and measured by a static source pin (ablation red) but that pin is not committed: it reads packages/** outside metadata-protocol and check:cross-package-test-inputs refuses an undeclared walk (turbo.json is outside the surface); (3) PR #29981's pins green on the fixture; (4) no secret left behind: pinned for refused create, refused update and refused migration. Mechanism note M2 measured: the projector's pool convergence on a door write is idempotent (one connect per create, one rebuild per connection change, both pinned), so the in-flight tracking I had added was removed as unneeded.",
"tests": "At 890ef9e35 (local HEAD; remote 7b7c72035 = HEAD~1): `pnpm --filter @objectstack/service-datasource test` -> Test Files 77 passed (77), Tests 1332 passed (1332); `pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2` -> Test Files 390 passed | 9 skipped (399), Tests 24027 passed | 45 skipped; typecheck service-datasource and metadata-protocol exit 0 (both include their tests); app-shell: `cd ui && pnpm exec vitest run packages/app-shell/src/views/metadata-admin/datasource/` -> 9 files, 71 passed (4 new landing cases k-n); `pnpm --filter @object-ui/app-shell type-check` exit 0 after building its closure (72 tasks); cli `test/migrate-meta-engine-guidance.test.ts` 3 passed after the cli closure build. Ablations (mutate on disk, run, git checkout restore, each verified): A2 held-by-another clause removed -> 2 A2 pins red; minted pass removed -> 4 red; tryRemoveSecret on refused create removed -> 2 card pins red; Q2 stored-row read removed -> 2 Q2 pins red; `mintedCredentialsRef` added to the REST /meta builder -> static wire pin red (uncommitted pin); `mintedCredentialsRef` added to spec SaveMetaItemRequestSchema + spec rebuild -> committed wire pin red twice (runtime parse, TS2578 unused ts-expect-error), restored and spec rebuilt clean (authorable-surface/api.json ablation residue reverted to committed). M2 early-return ablation stayed green on the full suite, which is why that tracking was dropped. Dogfood: four suites' POST /datasources creates now name a package; full battery not run locally (needs:dogfood-battery on the PR, title-free narrowing).",
"gates": "dispatch-gates --commands at 8535319b1 then 890ef9e35: 117 derived; --ran: 115 run with exit 0, 2 NOT-MEASURED (check:dual-build-cjs-loads and check:published-readme-exports: exit 3 PREREQUISITE NOT MET, no dist for packages this diff does not touch), 0 UNRUN, verdict line: 'dispatch-gates --ran: 117 derived famil(ies) accounted for'. Fixed on the way: check-tenant-audit-census (service-datasource write census regenerated: direct insert and update gone); check:error-code-provenance (door no longer stamps WRITABLE_PACKAGE_REQUIRED, it relays the kernel's error); check:engine-double-contract (card double guarded, pinned ledger --write); check:objectql-double-limit, check:where-matcher, check:test-source-alias (doubles honour limit, refuse combinators; driver-sql preloaded in 4 edited suites); check:cross-package-test-inputs (static walk replaced by the published-type pin); check:query-options-erasure re-run with a 580s window, exit 0. Ratchet and touched families re-run at 890ef9e35, all exit 0. CI check-runs: NOT MEASURED, no PR opened (blocked).",
"mcp_calls": "0",
"api_writes": "1 - POST /repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via post-stamped.mjs); plus one git push (not REST) of claude/issue-39398-wip to 7b7c72035",
"classifier_refusals": [],
"open_questions": [
{ "question": "Metadata-protocol line re-read against the #27762 rule-text change: the A2 pass changes nothing a metadata author can write on any door (only server code states the member), so `none` holds for the rule text. But the door now requires `package` on a create of a datasource item, and #38174's changeset declared the same kind of requirement `Metadata-protocol: narrowed`. Keep `none` or move to `narrowed`?", "options": ["A keep none: the datasource body is unchanged and the requirement is the door's HTTP shape", "B narrowed, to match #38174's reading of a package requirement on a create"], "recommendation": "B, because #38174 is the precedent for the same requirement and narrowed takes minor on the packages the diff moves; the claim line is copied as given (none) until the seat rules" },
{ "question": "content/docs/data-modeling/external-datasources.mdx says a datasource created in Setup is 'a datasource item of the environment's metadata'; after this change it is saved into a named package. The file is outside the claim's surface. Add it to the surface so this PR fixes the sentence, or carry it elsewhere?", "options": ["A add it to this PR's surface (one sentence)", "B a docs-only follow-up"], "recommendation": "A, because this change makes the sentence incomplete and the fix is one sentence" },
{ "question": "Premise 2's door-level pin (the REST /meta route, the dispatcher's /meta branch and the MCP draft door never name mintedCredentialsRef) was measured with a static source pin and an ablation, but committing it needs a declared cross-package input for @objectstack/metadata-protocol#test in turbo.json (outside the surface). Committed instead: the published request type and schema pin. Enough?", "options": ["A enough: the doors build typed against the published request", "B add turbo.json inputs plus the static pin to this PR", "C behavioural pins in rest/runtime tests in a follow-up card"], "recommendation": "A, because the REST door is typed against the published shape and the ablation on that shape reds both ways; C if the seat wants the dispatcher and MCP doors pinned by behaviour" }
],
"security_findings": "none",
"out_of_scope_findings": ["carrier: #39536 (os-tesla) - protocol-save.ts held by claim 7406386689; the one-line call-site edit 890ef9e35 waits locally", "carrier: none - the direct delete (DELETE /api/v1/datasources/{name}, deleteDatasourceRow) still writes sys_metadata directly; out of scope per amendment 7408609939, noted, not filed"]
}
Claim amendment · 2026-12-04T12:38Z · zone em-upgrade · on dev report 7411686922 (open questions 1–3)
Area: em-upgrade
Metadata-protocol: narrowed. This replaces none, following the #38174 precedent: a create on this door now requires a writable package, and #38174 declared the same requirement narrowed. The changeset takes the level that implies, and the contract review settles it.
File surface (added): content/docs/data-modeling/external-datasources.mdx, one sentence only: a datasource created in Setup is saved into the package the admin picks.
Premise 2 pin: the committed published-type and schema pin is enough. The REST door builds its request typed against the published shape, and the ablation on that shape went red both ways. No turbo.json edit is made, and the static source pin is not committed.
Serial constraints: unchanged. The one-line protocol-save.ts commit waits on #39536 (claim 7406386689). Everything else stands.
Claim amendment · 2026-12-04T12:42Z · zone em-upgrade · carve-out granted by os-tesla (mailbox #39411 comment 7411804939)
Area: em-upgrade
Serial constraints (replaces the protocol-save.ts wait in 7408609939): #39536's holder carved out the single datasourceCredentialsRefSaveRefusal({…}) call site in packages/metadata-protocol/src/protocol-save.ts (about :1953) for this card. Nothing else in that file is held here. Their PR #39668 touches only the imports near :92 and one hunk near :1485. Whichever PR lands second merges main. The build pushes and opens its draft PR now.
{
"issue": 39398,
"status": "done",
"branch": "claude/issue-39398-wip",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39676",
"session": "session_016WV4cxRh6Sbfo2Xm49JPx6",
"premise_still_valid": true,
"summary": "Draft PR #39676 is open at head 30a601c0e (Fixes #39398, assignee os-elon-musk, body read back byte-identical). The rulings of amendment 7411737976 are in commit 86b65fafa, under the protocol-save commit. Q1 B: the changeset now reads Metadata-protocol: narrowed, at minor on the four packages the diff moves. Q2 A: a one-sentence edit to content/docs/data-modeling/external-datasources.mdx, with the Skills-docs line set to 'updated here'. Q3 A: turbo.json is untouched. After carve-out amendment 7411818882 (citing 7411804939), origin/main was merged with os-regen-merge.sh (merge 30a601c0e, no artifact residue; spec rebuilt clean), and the branch was pushed with the protocol-save.ts call-site commit (03546fbb5). The PR body carries the carve-out citation, Clause-②: no (narrowing), Metadata-protocol: narrowed, and a line saying the direct delete (deleteDatasourceRow) is not touched. The implementation is as reported before: kernel save for create, update and migrate-credential; the 422 relay; the A2 minted pass; Q2 landing; the Console landing pick; the ADR-0087 entry. needs:dogfood-battery was NOT added. The relay could send it as a pr_create label, but the dev instructions say the dev never adds that label and the seat attaches it; under the rule that the standing instructions win over a dispatch message, I followed them, and I name the conflict here. Review request also not sent: the relay's pr_create carries none for a dev, and the governed review comes after ACCEPT.",
"tests": "At 30a601c0e (after the main merge): service-datasource test: Test Files 77 passed (77), Tests 1332 passed (1332), typecheck exit 0. metadata-protocol: the credentials-ref and wire files 23/23, typecheck exit 0. The full suite (24027 passed, 45 skipped) was run at 890ef9e35, before the merge, on the same diff. app-shell datasource views: 9 files, 71 passed. app-shell type-check exit 0 before the merge, not re-run after it: CI Type Check UI covers it. Ablations unchanged from the previous report: A2 clause, minted pass, secret cleanup, Q2 read, and the published-schema member each turned their pins red, and each was restored.",
"gates": "Before the merge: dispatch-gates --ran gave 117 derived, 115 exit 0, and 2 NOT-MEASURED (check:dual-build-cjs-loads and check:published-readme-exports: exit 3, unbuilt untouched packages). The docs and changeset commit derived 29 more families, all exit 0. After the merge at 30a601c0e, these ratchet and touched families were re-run, all exit 0: engine-double-contract, objectql-double-limit, where-matcher, test-source-alias, cross-package-test-inputs, nul-bytes, error-code-provenance, adr-0087-registration, empty-changeset, changeset-no-major, tenant-audit-census, authorable-surface, spec-changes, upgrade-guide, api-surface, type-check-debt, system-context-census, undeclared-dep-imports, doc-authoring. CI check-runs on #39676: NOT MEASURED, as the PR was just opened; CI convergence belongs to the seat.",
"mcp_calls": "0",
"api_writes": "3 - POST issues/39398/comments (first report, 7411686922); pr_create via relay (POST /repos/objectstack-ai/objectstack/pulls plus POST issues/39676/assignees); POST issues/39398/comments (this report). Pushes (not REST): 5a86271e7..7b7c72035, then 7b7c72035..30a601c0e.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none - the direct delete (DELETE /api/v1/datasources/{name}, deleteDatasourceRow) still writes sys_metadata directly; out of scope per amendment 7408609939; named in the PR body as not touched", "carrier: #39668 (os-tesla) - also touches protocol-save.ts (imports near :92, a hunk near :1485); whichever lands second merges main"]
}
Claim amendment · 2026-12-04T13:31Z · zone em-upgrade · CI red on #39676 at 30a601c (Test Core 5/12, metadata-registry-question-producers.test.ts)
Area: em-upgrade
File surface (added): packages/metadata-protocol/src/registry-question.ts. One REGISTRY_QUESTION_PRODUCERS row for the new packages/services/service-datasource/src/datasource-record-save.ts :: saveMetaItem producer, recording the registry question it asks. Nothing else in that file. Everything else stands.
Serial constraints cleared: check-handover.mjs --inflight --paths=packages/metadata-protocol/src/registry-question.ts --card=39398 reads no overlap.
{
"issue": 39398,
"status": "done",
"branch": "claude/issue-39398-wip",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39676",
"session": "session_016WV4cxRh6Sbfo2Xm49JPx6",
"premise_still_valid": true,
"summary": "Patch round on #39676. New head: b5ea483e6. (1) Test Core 5/12: amendment 7413016250 adds the row `packages/services/service-datasource/src/datasource-record-save.ts`, `saveMetaItem`, 1 call, question `body-only` to REGISTRY_QUESTION_PRODUCERS (commit a0cb208b1). The door writes a datasource record, never an object, and states no writeFace, so `saveRegistryQuestion` answers body-only. (2) Dogfood #21923, line 198: the pin was right and the code was wrong. Inside the save, the kernel save's datasource projector converged the pool first, so the door's own `registerPool` then recorded `already-registered` for the pool its own write had just opened. This is the M2 double registration. My earlier removal of the door-write guard rested on the kernel-save fixture, whose test doubles hid the verdict. Fix (b5ea483e6): while the door's own write is in flight (`doorWritesInFlight`), the projector registers the metadata slot but skips `convergePool`, and the door settles the pool as before. A new unit pin asserts the `datasource-connection` verdict is `connected` after a create. (3) Dogfood line 224 has the same root cause, no separate defect: case 1 failed at line 198, so its PUT and DELETE through /meta never ran, ADMIN_RT stayed stored, and after the restart it was still listed. No package-addressing defect was found, and the pin is unchanged. CORRECTION NEEDED in the PR body, which only the seat writes: the Acceptance notes bullet 'In-flight tracking in the door's write was measured as unneeded ... removed' is now false. Suggested replacement: 'While the door's own write is in flight, the save's projector registers the slot and leaves the pool to the door, so the door's verdict reads connected (pinned in the card test, and by dogfood #21923). The measurement that first called this tracking unneeded was a fixture blind spot.'",
"tests": "Producers test (`pnpm --filter @objectstack/runtime exec vitest run --project repo src/metadata-registry-question-producers.test.ts`, metadata-protocol rebuilt each time): without the row, 1 failed, with 'a producer was added, removed or moved'; with the row, 3 passed. Card pin: with the guard, 11 passed; with the guard line removed, red, Expected 'connected', Received 'already-registered'. Dogfood, run locally after building the dogfood closure: the four edited suites (21923, 21899, 21922, 22835) give Test Files 4 passed, Tests 21 passed. With the guard removed and service-datasource rebuilt, the 21923 file reproduces both CI failures (2 failed: expected 'already-registered' to be 'connected', and the post-restart adminEntry is not undefined). Restored and rebuilt clean. service-datasource test: 77 files, 1332 passed. Typechecks for service-datasource and metadata-protocol exit 0.",
"gates": "dispatch-gates --commands at b5ea483e6 derives the same 137 families as at 86b65fafa (no new family). Re-run at b5ea483e6, all exit 0: engine-double-contract, objectql-double-limit, where-matcher, test-source-alias, cross-package-test-inputs, nul-bytes, error-code-provenance, tenant-audit-census, system-context-census, undeclared-dep-imports, durability-log-level, adr-symbol-anchors, issue-citations, comment-mask-adoption, plugin-teardown-shape, logger-receiver-detach, startup-registry-verdict, init-service-contract, registry-log-declared, type-check-debt, adr-0087-registration, empty-changeset. CI run 47339334546 at 30a601c0e had only two non-green jobs: 'Test Core (5/12)', which is the registry-question failure fixed here, and 'Test Core', which aggregates that shard. Every other Test Core shard was success. CI at b5ea483e6: NOT MEASURED yet.",
"mcp_calls": "0",
"api_writes": "1 this round - POST issues/39398/comments (this report). Push, not REST: 30a601c0e..b5ea483e6. Reads: gh api for run 47339334546 jobs and job 145064458300 and 145079651989 logs.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none - the direct delete (DELETE /api/v1/datasources/{name}) still writes sys_metadata directly; out of scope per amendment 7408609939; named in the PR body as not touched"]
}
{
"issue": 39398,
"status": "needs_decision",
"branch": "claude/issue-39398-wip",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39676",
"session": "session_016WV4cxRh6Sbfo2Xm49JPx6",
"premise_still_valid": true,
"summary": "Pushed head d0dfe00bd. M1 measured on the real saveMetaItem: a loose postgres row with config.password, saved as stored with a new label (or active:false) and no parentVersion, answers 422 INVALID_METADATA. That is the L2 prediction, confirmed. Route (a) is built for the edit: updateDatasource now sends the served form (spec getMetadataTypeRedactor('datasource'), the redactor the kernel's carry-forward compares against). On the real save a label edit and active:false on a row holding password, the alias passwd and a URL userinfo password both save, and every credential is carried forward. S1 is built: a refused save after a rebuild converges the pool back to the stored record. N4 and N1 are fixed, and the false changeset sentence is replaced. Two arms of M1 cannot be closed by route (a) without a new rule or exemption, so they come back as forks (open_questions F1, F2) and are not built. F1: route (a) cannot carry a credential migration. Worse, the migration at head b5ea483e6 is already silently broken: the kernel's carry-forward re-grafts the removed config.password (the absent value equals the served absent value). The door then reports `migrated` while the cleartext stays at rest. A row with a second refused key (passwd, a URL password) answers 422. F2: a row whose at-rest body the schema refuses for a reason other than credential material (measured: an undeclared config key) is refused 422 on every edit, label and active:false included, whatever body the door sends.",
"tests": "At d0dfe00bd. Measurement (scratch test on the real save, deleted afterwards). Stored body + label: 422 INVALID_METADATA `config.password: password is a credential and is not accepted inline`. Served form + label, and served form + active:false: ok, stored config unchanged with password, passwd and url intact. Migration body (password removed, credentialsRef bound, mintedCredentialsRef stated), raw or served: ok, but the stored config still holds password:'hunter2' next to external.credentialsRef. With passwd or a URL password also stored, the raw migration body answers 422. With an undeclared key `legacyOption`, the served form + label answers 422 `Unrecognized key(s) on this postgres datasource's config: legacyOption`. New pins: metadata-protocol protocol.datasource-credentials-ref-own-reference.test.ts, describe '[#39398 M1]', 4 cases on the real save (control: stored body 422 with nothing written; the served form equals the /meta read minus _diagnostics; label edit and active:false save with config toEqual LEGACY_CONFIG). service-datasource datasource-create-packageless-39398.test.ts: 2 door cases (the body sent equals the redactor's served form, config keys [database, host, username]) and 1 S1 case (built ['wh','wh','wh'], the last built host db.internal, verdict connected, the kept ref stored, the minted secret removed). Runs: own-reference file 25 passed (25); card file 14 passed (14); service-datasource test 77 files / 1335 passed, typecheck exit 0; metadata-protocol test 391 passed + 9 skipped files, 24041 passed + 45 skipped tests, typecheck exit 0. Dogfood (closure built: turbo 79/79): the 4 datasource suites, 4 files / 21 passed. Ablations, each edited on disk, run and restored: servedForm:true changed to false makes 2 door pins red (`a label edit…`, `active: false…`), 12 passed; removing the convergePoolToStored call makes the S1 pin red, 13 passed. Red before the fix on the real save is the control case's 422.",
"gates": "Local, at d0dfe00bd (the tree was identical before the commit). Each command's exit was captured before any pipe, all exit 0: check:test-source-alias, cross-package-test-inputs, engine-double-contract, objectql-double-limit, where-matcher, nul-bytes, undeclared-dep-imports, check-adr-0087-registration --base origin/main ('1 migration entry added'), check-changeset-no-major, check-empty-changeset ('No changeset from the merge base modified'), check:issue-citations, check-tenant-audit-census ('364 write call sites certified'), adr-symbol-anchors, spec-docblock-symbol-anchors, scripts-symbol-anchors, optional-error-sink, durability-log-level, agent-test-spelling, corpus-claim-drift, closed-ceremony-text, role-word, logger-receiver-detach, init-service-contract, error-status-conformance, comment-mask-adoption, closing-keyword-parity, system-context-census, vouch-for-reference-callers, keyed-text-bounds, dispatcher-error-vocabulary. `dispatch-gates --ran`: 107 of 137 derived families unrun, exit 1. This is a declared narrowing: the derivation is the whole branch since the merge base, and this round ran only the families that read the six files it changed. The rest ran green on earlier heads of this branch and are CI's on the new head. CI on b5ea483e6: 71 success, 11 skipped, 0 failed. Check-runs on d0dfe00bd: NOT MEASURED, reason: they had not reported when this report was written; their convergence is the seat's. The head moved, so a new Dogfood battery (opt-in) run is owed on d0dfe00bd.",
"mcp_calls": "0",
"api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). git push of d0dfe00bd to claude/issue-39398-wip is not REST. Reads only otherwise: GET issues/comments/7414632005, GET pulls/39676.",
"classifier_refusals": [],
"open_questions": [
{
"question": "F1 (M1, migration arm). The credential migration cannot retire an inline credential through the kernel save. The carry-forward re-grafts every withheld position the body leaves equal to what a read serves, and a removed key is served absent, so the removal is undone after the gates. Measured on the real save, the head is already broken: a password-only row saves `ok` and the door answers `migrated`, but config.password is still at rest beside the new credentialsRef. A row with a second refused key (passwd, a URL password) answers 422. main migrates through a direct write. Governing text: ruling 7408558495 (all three door writes go through the save; no new exemption); the #8154 carry-forward comment in protocol-save.ts ('Getting stored cleartext OUT of the store is #8081 item 3's migration'); the spec's own refusal text ('The resolved secret is injected at connect time and always wins over anything embedded in config'). How should the migration retire the inline copy?",
"options": [
"A. Kernel rule, declarative. The carry-forward does not re-graft the driver's bindable credential key(s) (refusedCredentialKeys) into a datasource body that binds external.credentialsRef. The position is treated as withheld and not carried forward (#28640 2B), so the drop is named on advisories, on every door. The door sends the served form for the migration too. Measured constraint: planCarryForward derives notCarriedForwardKeys from the STORED body, which for a migrate does not yet bind the reference, so the rule has to read the incoming body's binding. Business need: real legacy rows (#8081 item 3); the action is broken today. Long term: one rule in the one carry-forward, no second write path, no new request member. AI error prevention: on every door the stored row matches what connects, because the bound secret already wins at connect and the inline copy is read by nothing. Scope: the smallest new surface. Cost: packages/metadata-protocol/src/metadata-redaction.ts planCarryForward (plus possibly a hook in packages/spec/src/kernel/metadata-type-redaction.ts), pins in metadata-protocol, and a one-line door switch. About 40 to 60 lines plus tests. Needs a claim amendment for those files. It changes /meta behaviour: an edit of a row that holds both a reference and an inline password drops the inline copy, loudly.",
"B. A second server-stated, non-wire request member (for example retiredCredentialPaths) stated beside mintedCredentialsRef (or alone, for drop-inline), which the carry-forward skips. Business need: same. Long term: it widens the server-stated channel ruled in A2 and touches protocol-save.ts outside the carve-out (#39668 holds the file). AI error prevention: door-specific; /meta keeps re-grafting. Scope: a new request member. Cost: protocol-save.ts carry-forward call, protocol-credential-carry-forward.ts, metadata-redaction.ts planCarryForward, protocol-door-requests.ts, a published-shape pin. About 70 lines plus tests.",
"C. The migration keeps writing outside the kernel save (main's path: metadata.register plus a direct row update). It edits an existing row and creates nothing, so ADR-0070 D1 is untouched. Business need: same. Long term: a second datasource write path that no kernel judge, audit or history sees, against the ruling's 'all three writes go through the save'. That is the workaround the card exists to remove. AI error prevention: weakest. Scope: no new contract. Cost: door-only, about 30 lines."
],
"recommendation": "A. The kernel already has the declared mechanism for a withheld position that nothing reads (2B). The spec's own connect contract makes an inline credential beside a bound reference dead weight. A fixes the migration on every door without a new request member or a second write path. B widens a ruled server-only channel and needs the protocol-save.ts hold. C reverses the ruling's routing."
},
{
"question": "F2 (M1, the non-credential residue). On the kernel save, a row whose at-rest body DatasourceSchema refuses for a reason other than withheld credential material (measured: an undeclared config key; L2 also names a pool from before #5714) is refused 422 INVALID_METADATA on every door edit, label and active:false included. The served form withholds credentials only, so route (a) cannot reach it. main answers 200 through the direct write. The 422 names the refused key, and a PATCH that also sends a corrected config passes, because the served form then holds no refused key. Governing text: ruling 7408558495; the L2 record's '(b) declare the second arm' (a new maintainer question); RECORD_JUDGE_EXEMPT_PATCH_KEYS (label/active exempt from the door's own judgement). Should this be declared as the narrowing's second arm, or exempted?",
"options": [
"A. Declare it as the narrowing's second arm, with the remedy 'send the corrected config with the edit'. The changeset FROM to TO table gets a second row, and the semantic entry's acceptanceCriteria drops 'UNAFFECTED: editing' for such rows. Business need: whether such rows exist in deployments is unmeasured (stored before #4410/#5714). Long term: a contract-first tightening, with the remedy in the refusal's own words. AI error prevention: a loud refusal instead of a silently stored invalid row. Scope: no new surface. Cost: changeset, entry, door comment; about 15 lines, no code.",
"B. A door-side exemption: the kernel save skips the schema for a server-stated label/active-only edit. Business need: same. Long term: a new exemption in the kernel save, against ruling Q2 A 'no exemption is added for this door'. AI error prevention: it stores a body the schema refuses. Scope: a new server-stated member. Cost: protocol-save.ts outside the carve-out, about 50 lines plus pins."
],
"recommendation": "A. The refusal names the key and a remedy exists in the same request. B is the exemption both the ruling and the L2 record name as off the table without a new ruling. If A is ruled, proposed changeset row: FROM `PATCH /api/v1/datasources/{name}` `{ \"active\": false }` on a row whose stored config or pool the schema refuses for anything but an inline credential; TO the same PATCH with `config` (or `pool`) sent without the key the 422 names. Proposed changeset sentence: An edit of an existing datasource is saved in place on the body a read serves; stored credentials are carried forward, and a row whose stored config or pool the schema now refuses for any other reason is refused 422 INVALID_METADATA until the edit sends it corrected."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: PR #39676 (this card, F1) · not filed. At b5ea483e6 the credential migration through the kernel save reports `migrated` while the kernel's carry-forward leaves config.password at rest beside the bound reference. Measured on the real saveMetaItem. It is this PR's own regression against main, so it is reported as fork F1, not filed.",
"carrier: none · noted, not filed. Any door edit that changes the driver now has the stored credential grafted onto the new driver's config by the kernel carry-forward, because planCarryForward does not compare drivers. The door's own restoreRedactedConfig skips a driver change, so the pool is built without the credential while the stored row holds it. Read, not run; it follows from routing edits through the kernel save. Dedupe words: carry-forward driver change, planCarryForward driver, datasource restoreRedactedConfig driver."
]
}
One-sentence problem. On the fix branch, an admin who moves a connection's password into secure storage is told it is done while the plain password stays in the database beside the secure reference, and an old connection whose saved settings contain a field the platform no longer recognises is refused on every edit until the settings are corrected.
Background
Ruling record 7408558495 (Q1 A with A2) routes the Setup door's create, update and credential migration through the kernel save, removes the door's direct row write, and says a failed premise is reported as a fork, never a fallback to source, a direct write or a door-side package judgment.
Draft PR fix(service-datasource): a datasource created in Setup is saved through the kernel save, into a named package #39676 (head d0dfe00bd, +1583/−146, 33 files, not merged) builds that. Contract review 7414632005 failed the previous head b5ea483e6 on M1: an edit or migration of a row whose stored body the schema refuses moves from 200 to a refusal, and the PR declared the opposite. The dev closed the credential arm for edits (the door now sends the body a read serves, and the kernel's carry-forward restores the withheld credential after the gates) and returned two arms as forks in report 7415555005.
Correction to the fork brief.b5ea483e6 is the PR's previous head, not main. The dev report says the same: "It is this PR's own regression against main". main (bf95e789f) migrates through the direct write and leaves no cleartext (premise 1, measured). Nothing released is affected.
F1 comes from one sentence of the carry-forward: a withheld position the body leaves equal to what a read serves gets the stored value back. A removed config.password is served absent, so the migration's removal is undone after the gates.
F2 comes from the kernel save's schema gate judging the whole body. The served form withholds credentials only, so an undeclared config key reaches the gate whatever the patch touches.
Governing text
Ruling record 7408558495: "The Setup door's create, update and migrate-credential writes go through the kernel save; its direct row write is removed" and "a failed premise is reported as a fork, never a fallback to source, a direct write or a door-side package judgment". Also "every other save judge still runs". Read: gh api repos/objectstack-ai/objectstack/issues/comments/7408558495 --jq .body.
Ruling 6566912252 on [Decision] connector credential follow-ups after #28596: header-value advisory, legacy auth keys at rest, whole-map withholding #28640, item ②B: "legacy cleartext drains on save. The redactor can mark a position 'withheld and not carried forward' ... A normal save of the served form therefore drops them instead of re-grafting them, and the save result names the dropped keys in its notices, so a drop at rest is loud, never silent." Not taken there: "②A (cleartext stays until a migration), ②C (an operator-remembered CLI step)". Read: gh api repos/objectstack-ai/objectstack/issues/comments/6566912252 --jq .body.
The class as declared, packages/spec/src/kernel/metadata-type-redaction.ts:127: "the class is for a position nothing reads and no door accepts any more, where keeping the stored value only keeps cleartext at rest". Grep: grep -n "nothing reads and no door accepts any more" packages/spec/src/kernel/metadata-type-redaction.ts.
The spec's refusal text, packages/spec/src/data/driver/common.zod.ts: "The resolved secret is injected at connect time and always wins over anything embedded in config." Grep: grep -n "always wins over anything embedded" packages/spec/src/data/driver/common.zod.ts.
ADR-0062 D3, docs/adr/0062-external-datasource-runtime.md:92: a datasource whose secret cannot be resolved "fails closed". ADR-0015 §10, docs/adr/0015-external-datasource-federation.md:818: "Credentials never appear in metadata artefacts."
The door's exemption F2 takes away, packages/services/service-datasource/src/datasource-admin-service.ts:98-101: "renaming a datasource and taking it out of service (active: false) must stay possible on a row stored before a gate landed." Grep: grep -n "a gate landed" packages/services/service-datasource/src/datasource-admin-service.ts.
AGENTS.md:786: "1. One route, one owner." Grep: grep -n "One route, one owner" AGENTS.md.
pm-dispatch escalation section: when one operation has two implementations that disagree, the governed side wins and the other is rebound and deleted; security and credential boundaries and destructive, hard-to-reverse actions stay with the maintainer.
Standing maintainer word (2026-11-14, team memory as relayed by the dispatching seat; not found by grep in this checkout): no production customers yet, so fixes carry no legacy-data migrations.
Protocol statement
F1 A: no published schema changes shape. MetadataRedactionResult.notCarriedForwardKeys already exists in @objectstack/spec. The change is what the kernel save does for type datasource on every door: a stored inline credential key stops being restored when the body binds external.credentialsRef. That is a behaviour change to a credential rule, so it takes a contract-tier review and is here, not a Bug option.
F1 B: one more server-stated member on the kernel save's request type in @objectstack/metadata-protocol, absent from the published request schema, as mintedCredentialsRef is.
F1 C, F2 A, F2 B: no declared contract changes. F2 A adds a second arm to the narrowing the PR already declares (Metadata-protocol: narrowed).
Premises, each with a re-check
Measured in scratch worktrees at mainbf95e789f and PR head d0dfe00bd, dependency closure built in each (pnpm turbo run build --filter=@objectstack/service-datasource... --filter=@objectstack/metadata-protocol..., exit 0). Three scratch files, none in the tree: one on the #27762 harness (the real saveMetaItem over its stub engine), one booting the admin plugin on main over an in-memory sys_metadata, one booting the admin plugin at the PR head with the real ObjectStackProtocolImplementation as its protocol service and the HTTP door mounted. Each ran with pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=1 or pnpm --filter @objectstack/service-datasource exec vitest run --maxWorkers=1 on the scratch file; all cases passed.
main migrates cleanly. Measured through the plugin: a password-only row answers migrated, the stored row holds external.credentialsRef and no password, the raw row text does not contain the password, a restart restores the clean record, and a second run answers already-bound. A row that also holds passwd answers migrated with remaining: ["passwd"]. Re-check: grep -n "persistDatasourceRow" packages/services/service-datasource/src/datasource-admin-plugin.ts (158, 501 on main).
At the PR head the migration leaves the cleartext. Measured through the door on the real save: the answer is {status: "migrated", migratedKey: "password"}; the stored row holds config.password: "hunter2" beside the new reference; the in-process registry holds the clean record, so the Setup read shows hasSecret: true and no withheld key until a restart; after a restart the registry holds the password again; a second run answers migrated (reusedExistingSecret: true) and the row is unchanged. A row that also holds passwd answers 422 INVALID_METADATA, nothing stored, the minted secret removed. Re-check: git show d0dfe00bd:packages/services/service-datasource/src/datasource-admin-service.ts | grep -n "putDatasourceRecord(migrated\|putDatasourceRecord(withoutConfigKey" (1522, 1487: neither states the served form) and gh api repos/objectstack-ai/objectstack/pulls/39676 --jq '.draft,.merged,.head.sha'.
The carry-forward decides from the stored body alone. Read: grep -n "const served = redactor(stored" packages/metadata-protocol/src/metadata-redaction.ts (614). The datasource redactor names no not-carried-forward position: grep -c notCarriedForwardKeys packages/spec/src/data/datasource-credential-redaction.ts answers 0. So A cannot be a one-line use of the existing class: for a first bind the stored row has no reference yet, and the rule must read the incoming body's binding.
The kernel save cannot retire an inline credential on any door today. Measured on main and at the head: a row holding a reference and an inline password, saved with the password removed, is stored with the password; a body that sets password: "" is refused 422. The /meta door has the same behaviour.
With a reference bound, connect does not read the inline key. Read, not run: the planner's per-driver table (datasource-credential-migration.ts:29-36), default-datasource-driver-factory.ts:577 (spec.secret ? … : cfg.password), and the fail-closed rule (grep -n "never falls back to" packages/services/service-datasource/src/datasource-admin-service.ts).
F2 on main: the two doors already disagree. Measured: the admin door answers 200 for {label} and for {active: false} on a row with an undeclared config key and stores them; the kernel save (the /meta door's save) answers 422 INVALID_METADATA for the same edits.
F2 at the PR head, through the door. Measured: PATCH {label} and PATCH {active: false} answer 400 with the door's code DATASOURCE_ADMIN_ERROR and the kernel's sentence, which names the key ("Unrecognized key(s) on this postgres datasource's config: legacyOption", with a "did you mean" for a retired alias such as file → filename) and links the upgrade guide. It does not say "send the corrected config with this edit". A PATCH that sends active: false together with the config minus that key answers 200 and stores both. The kernel's own status is 422; the door relays it as 400.
The Setup form already cannot save such a row on main. Read: the form sends the stored config with every edit (grep -n "config: requestConfig(f)" ui/packages/app-shell/src/views/metadata-admin/datasource/DatasourceResourcePage.tsx, 710) and the page has no control that sends active alone. Measured: that body answers 400 on main. The 200 that F2 removes is reachable only by an API caller sending label or active alone.
F1. The migration must end with no inline credential at rest, and the ruling forbids the direct write that does this on main. Which mechanism retires the inline copy through the kernel save?
F2. Is the refusal of a label-only or deactivate-only edit, on a row the schema refuses for a non-credential reason, declared as part of the narrowing, or exempted in the kernel?
F1: options, real cost, workload
What it does
What the admin and operator get
Workload
A
A kernel rule for the type: when a datasource body binds a credentials reference, the save does not restore the driver's inline credential key; each dropped position is named on the save's notices. The door sends the served form for the migration too.
"Migrated" is true on every door: the row holds the reference and no plain password, and stays that way after a restart. Any later save of a row that holds both also clears the plain copy and says so. Outside the migration action nothing proves the reference still resolves before the plain copy goes; that copy is served by no read and unused at connect, so what is lost is a value only someone with database access could recover. /meta save behaviour changes for these rows.
domain:server (plus the spec redactor if the rule is declared there) · rides PR #39676, 0 new PRs, one claim amendment, contract-tier review · precedent PR #29456 (+584/−39, 12 files: the same class for connector keys). Reading the incoming body's binding: 无先例. Dev estimate 40–60 lines plus pins, not measured.
B
A second server-stated save member naming the positions to retire; only the migration action states it.
"Migrated" is true for the migration action. Every other door keeps restoring the plain copy: a row that holds both stays that way through /meta edits until someone runs the action. One more server-only channel to keep closed to the wire, and it can strip any withheld position an in-process caller names. Needs protocol-save.ts beyond the one call site os-tesla carved out in 7411804939 (on mailbox PR #39411); draft PR #39668 holds that file.
domain:server · rides PR #39676 · precedent PR #30310 (+709/−24, a server-stated save field one judge reads). A member that deletes stored material: 无先例. Dev estimate about 70 lines plus pins.
C
The migration keeps main's direct write.
Works as on main (measured clean). One writer of a packaged row stays outside every kernel judge, history and audit. Reverses ruling 7408558495, which names this fallback.
domain:server · rides PR #39676 · 无先例 as a ruled route; about 30 lines (dev estimate).
A and B are the same order of size; neither is 3× the other. C is the smallest and is not close on ①.
Named for completeness, not on the card and not costed: retiring the migration action. With no production customers its population is near zero, and under A re-entering the secret in the form reaches the same end state. It removes a shipped Setup action, so it is the maintainer's to raise; A does not block it.
F2: options, real cost, workload
What it does
What the admin and operator get
Workload
A
Declare the refusal as the narrowing's second arm: changeset row, the migration entry's acceptance criteria, the door's comments. No code.
An API caller who renames or deactivates such a row is refused, told which key, and succeeds by sending the corrected config in the same request (measured 200). The Setup form is unchanged: it was already refused on main. Both doors now answer alike.
domain:server · rides PR #39676, text only, about 15 lines (dev estimate) · 无先例
B
The kernel save skips its schema gate for a server-stated label-only or active-only edit.
Such rows keep saving with a body the schema refuses. A new exemption in the kernel save and another server-stated member, in protocol-save.ts outside the carve-out.
domain:server · rides or follows · 无先例 (about 50 lines, dev estimate)
Business meaning
F1 A: the vault rule is "once the key is in the safe, no copy stays taped to the door", enforced at every entrance, and the clerk tells you when a copy was removed.
F1 B: only the locksmith's own visit removes the taped copy; every other visit tapes it back.
F1 C: the locksmith keeps using the side door the last ruling closed.
F2 A: a file with an obsolete field cannot be re-stamped until the field is fixed, and the notice says so in advance.
F2 B: the counter keeps stamping files it knows are malformed, as long as only the title changes.
Four axes, from the business standpoint
① Long-term soundness (leads, ≥50%). Two years out, a stored connection never holds a plain password beside a vault reference, whichever door last saved it, and the admin is never told "done" while a copy remains. That is how the mainstream platforms model it: a Salesforce Named Credential's secret lives only in protected storage and never in the deployable definition; ServiceNow's connection and credential aliases split the same way. F1 A states that as one rule in the one place that already decides what a save restores, and reuses the class the maintainer ruled for connectors (6566912252 ②B). It is a conditional use of that class (the key is dead only when a reference is bound), which is a real difference from the connector case and the reason this is not self-applied. B makes clean-up a per-call instruction that one door remembers to give, and widens the server-stated channel ruled a few hours ago. C keeps the second writer the card exists to delete. For F2, A leaves one judge for a stored connection; B makes the kernel store what its own schema refuses.
② Real pull. No production customers (standing word). Rows with an inline password or an undeclared key can only predate August 2026 or come from a direct database write. HotCRM does not use the door. The only pull is that the PR must not merge with a false "migrated". Zero pull points to the option that adds the least surface: A in both forks.
③ Keeping AI and operators from silent mistakes. At the PR head the failure is silent in the worst direction: success on screen, cleartext at rest, visible only after a restart. A makes the outcome structural and loud (the save names what it dropped). B leaves the same silent restore on every door but one. C is silent to the kernel's judges. F2 A is a loud refusal that names the key; B is silent tolerance of an invalid row.
④ Startup focus. F1 A adds no key and no request member; B adds a permanent server-stated member; C adds nothing and keeps a writer. F2 A adds text; B adds an exemption and a member. No option adds a gate. The standing word bears on both forks: no backfill, sweep or staged window for existing rows is owed under any option, and it removes the main argument for F2 B (keeping legacy rows editable is a legacy-data accommodation). It does not settle F1: the migration action is shipped, works on main, and the PR would break it for whoever uses it next.
os-decision-facets
① 项目长远合理性: F1 A puts "no plain password beside a bound reference" in the one save path, on every door, reusing the ruled not-carried-forward class; B adds a per-call server-stated channel; C keeps a second writer and reverses 7408558495. F2 A leaves one judge; B makes the kernel store what its schema refuses.
② 实际业务拉动: no production customers; affected rows predate August 2026 or come from direct database writes; HotCRM zero; cloud unverified. main is clean (measured), so the only pull is not merging a false "migrated".
③ 防 AI 犯错: the PR head fails silently (success shown, cleartext kept, measured). F1 A is structural and names each drop; B and C leave silent paths. F2 A is a loud refusal naming the key; B tolerates an invalid row in silence.
④ 创业阶段不扩散: F1 A adds no key or member; B adds a permanent server-stated member; C keeps a writer. F2 A is text only; B adds an exemption. No option adds a gate. No legacy-data migration is owed under any option.
Prior rulings read: carry-forward,notcarriedforwardkeys,credentialsref,migrate-credential,inline credential,invalid_metadata,legacy datasource,direct write → 3 hits; ADR-0062 D3, ADR-0079 D3; thread: none
Thread and off-thread rulings read: 7408558495 on this card (the script's first-line shape does not match its Ruled: line, hence thread: none); 6566912252 on #28640 (②B); 7184753035 (question 2 A, as quoted in the card and in analysis 7407901133). ADR-0062 D3 read: it supports premise 5 and answers neither fork. ADR-0079 D3 is unrelated (a term collision on invalid_metadata).
Recommendation and confidence gaps
F1: A. Reading ① alone gives A: it is the only option under which the end state holds on every door and no new channel or writer is added. It is a credential boundary and it deletes stored material, so this is input to the maintainer's own decision; no seat may take it.
Not B: a second server-stated member, door-specific, and the plain copy keeps coming back on every other door.
Not C: ruling 7408558495 names the direct write as a forbidden fallback; choosing it is a reversal only the maintainer can make.
Does the earlier ruling already answer F1? It excludes C. It does not choose between A and B. Ruling 6566912252 ②B gives A's shape for connectors; the datasource case is conditional on a bound reference, so it is presented, not inherited.
Confidence gaps, stated and not acted on:
Under A, a save through a door other than the migration action drops the plain copy without proving the reference resolves. If the reference is broken the connection is already down (fail closed), and the copy is readable only with database access; the maintainer may still weigh it.
Premise 5 is read, not run, per driver. The mysql and mongodb URL branches ignore the injected secret; the inline password key is not read there either, but no live connect was made.
A does not touch alias spellings or a password inside a URL. With the served form they are carried forward and reported as remaining, as on main; this is expected, not measured, because A is not built.
The rule has to read the incoming body's binding (premise 3); the precedent PR did not. The contract review judges that design.
The dev's separate finding (a driver change grafts the stored credential onto the new driver's config) is outside both forks and unfiled.
Cloud's use of the door is unverified.
F2: A. Reading ① alone gives A: one judge for a stored connection, and the admin door stops disagreeing with the kernel save, which already refuses these edits on main (premise 6). That is the dispatch rule's "governed side wins".
Not B: an exemption in the kernel save, against "every other save judge still runs" in 7408558495 and against ruling 7184753035 (question 2 A), under which no exemption is added for this door.
Does the earlier ruling already answer F2? In substance yes: its text excludes B, and A is what the ruled route produces. It is presented because the analysis behind that ruling did not put this consequence in front of the maintainer, and contract review 7414632005 called declaring it "a new ask of the maintainer". If the maintainer reads it as execution, the seat records it as such.
Confidence gaps: whether any deployment holds such a row is unmeasured; the pool source named in the dev report was not reproduced; an admin with such a row cannot fix it in the Setup form on main either, because the form sends the hidden key back (read), which is outside this fork.
Self-check.
F1 「只看①选 A;②③④ 是否翻转:否」 (② is zero and moves timing only; ③ agrees; ④ counts no new key for A against a new member for B; no option adds a gate).
F2 「只看①选 A;②③④ 是否翻转:否」 (② is zero and agrees with the standing word; ③ and ④ agree).
After the ruling
If F1 A: the seat records the ruling on this card and re-dispatches the same branch.
Claim amendment: surface gains packages/metadata-protocol/src/metadata-redaction.ts, its pins, and the spec redactor file if the rule is declared there. No protocol-save.ts change beyond the carve-out. The Metadata-protocol line and the changeset are re-read, and the rule gets a contract-tier review before the queue.
Premises the dev verifies first, each falsifiable:
with a reference bound, no driver arm reads the inline key at connect (cite the landed pins or add one);
after a migration through the door on the real save, the stored row holds no inline key, a restart restores the clean record, and a second run answers already-bound. The pin reads the row at rest; the head's green came from reading the registry and a fixture;
a row with no reference keeps its inline credential through a label edit (the M1 pins stay green);
alias spellings and URL passwords are still carried forward and reported as remaining;
every dropped position is named on the save's notices, on the admin door and on /meta.
Prohibition: a failed premise is a fork. No direct write, no source, no second server-stated member.
If F1 B or C is ruled instead, the same branch builds it; B needs os-tesla's consent for the wider protocol-save.ts edit, and C needs the ruling record amended.
If F2 A: text in the same PR. The changeset gains the second FROM → TO row and the sentence the dev proposed, with the status corrected to what the door answers: measured 400 with the door's code and the kernel's sentence, not 422, unless the contract review asks the door to relay the kernel's status. The migration entry's acceptance criteria and the door's comment on the label/active exemption are brought in line. One pin: an edit that sends the corrected config with active: false saves.
If F2 B: a new claim amendment for protocol-save.ts and a contract-tier review of the exemption.
Ruled: 2026-12-04T15:36Z · F1 and F2 · the maintainer tapped 「通用规则:绑定后不补回明文」 at 2026-12-04T15:36:32Z on the project decision card 「密码迁到安全存储后,库里残留的明文密码怎么清?」. The card option read 「所有保存入口一律生效:绑定安全引用后不再补回旧明文,并在结果里点名清掉的项;会删除库里的明文副本;并入当前修复。」. That is F1 option A of the analysis in comment 7416035148. B (a second server-stated member) and C (keep the direct write) were offered and not chosen. F2 is ruled below.
Route A: a declarative kernel rule in the carry-forward: a body that binds external.credentialsRef does not get the driver's inline credential keys restored; every dropped position is named on the save's notices. It applies on every door. It deletes stored cleartext copies, so it is on the human floor; this tap is that word.
Carried from the analysis "After the ruling" section: claim amendment (surface gains packages/metadata-protocol/src/metadata-redaction.ts and its pins; no protocol-save.ts change beyond the carve-out 7411804939; contract-tier review of the rule before the queue). Premises the dev verifies first: with a reference bound, no driver arm reads the inline key at connect; after a migration on the real save the STORED ROW holds no inline key, a restart restores the clean record and a second run answers already-bound (the pin reads the row at rest); a row with no reference keeps its inline credential through a label edit; alias spellings and URL passwords are still carried forward and reported as remaining; every dropped position is named on the admin door and on /meta. Prohibition: a failed premise is a fork; no direct write, no source, no second server-stated member.
F2: the maintainer tapped 「说明里写清连设置一起改」 at 2026-12-04T15:36:37Z on the card 「旧数据源设置里有系统不认识的字段,只改名称被拒怎么办?」 (option text: 「只改变更说明:这类旧数据源要连同改对的设置一起提交才能保存;拒绝信息会点名字段;不改代码。」). That is F2 option A: declare it the narrowing's second arm, text only in the same PR; B (a kernel exemption) not chosen. The changeset gains the second FROM → TO row and the dev's sentence with the status corrected to what the door answers (measured 400DATASOURCE_ADMIN_ERROR with the kernel's sentence, not 422, unless the contract review asks the door to relay the kernel's status); the migration entry's acceptance criteria and the door's comment on the label/active exemption are brought in line; one pin: an edit that sends the corrected config with active: false saves. No legacy-data migration (the maintainer's standing word: no production customers yet).
State: unchanged (pm:dispatched; claim with zone em-upgrade, PR stays draft).
Claim amendment · 2026-12-04T15:38Z · zone em-upgrade · on ruling record 7416154891 (F1 A, F2 A; analysis 7416035148)
Area: em-upgrade
Route F1 (option A): a declarative carry-forward rule. A body that binds external.credentialsRef does not get the driver's inline credential keys restored. The dropped positions are named on the notices, and the rule applies on every door. The migration sends the served form.
Route F2 (option A): a second narrowing arm, as text only. The changeset gets a second FROM → TO row, and the semantic entry's acceptanceCriteria are corrected. The status is the measured 400 DATASOURCE_ADMIN_ERROR, unless contract review asks the door to relay the kernel status. One pin: corrected config + active: false saves.
Premises the dev verifies first (record 7416154891 and the analysis's corrections):
The cleartext-at-rest is this PR's regression at d0dfe00; main bf95e78 is clean.
A pin reads the STORED ROW: clean after a restart, and a second run answers already-bound.
A failed premise is a fork. It is never a direct write, source, or a second server-stated member.
File surface (added): packages/metadata-protocol/src/metadata-redaction.ts (planCarryForward), packages/spec/src/kernel/metadata-type-redaction.ts only if the rule needs a declared hook there, and metadata-protocol pins for the rule. protocol-save.ts stays at carve-out 7411804939, with nothing beyond it. Everything else stands.
{
"issue": 39398,
"status": "done",
"branch": "claude/issue-39398-wip",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39676",
"session": "session_016WV4cxRh6Sbfo2Xm49JPx6",
"premise_still_valid": true,
"summary": "Pushed head bcda59318, built as ruled in record 7416154891 under claim amendment 7416186562. F1 A: a declared rule in @objectstack/spec/kernel (getMetadataTypeCarryForwardRetirement, datasource only) is applied generically in planCarryForward (metadata-redaction.ts). A datasource body that binds external.credentialsRef does not get the driver's inline credential slot (config.password; turso's config.authToken) carried forward. The drop is named on the save's advisories (withheld-key-dropped) on every door. The admin door's update answer names it as droppedWithheldKeys, and the slot is registered without it. migrateCredential now sends the served form on both of its writes. Aliases and URL passwords stay carried and are reported as remaining. protocol-save.ts is untouched beyond the carve-out; no direct write, no `source`, no second server-stated member. F2 A, text only: the changeset gets a second FROM → TO row and sentence (400 DATASOURCE_ADMIN_ERROR naming the key; the edit sent with the corrected config saves), and the entry's surface, replacement and acceptanceCriteria and the door comment are brought in line, with one pin each on the real save and at the door. Correction to my previous report: the cleartext left at rest after `migrated` was this PR's own regression, at its heads b5ea483e6 and d0dfe00bd. Main bf95e789f migrates cleanly (analysis 7416035148, premise 1). My earlier wording 'silently broken at head b5ea483e6' referred to the PR head, never to main. The corrected PR body is ready at /tmp/claude-0/-home-user/4fd62428-5096-5aab-9651-24aa9b79e500/scratchpad/issue-39398/pr-body.md.",
"tests": "At bcda59318. Premise checks, read first. With a reference bound, connect resolves it fail-closed and refuses an empty secret (datasource-connection-service.ts 704-750), and every driver arm prefers spec.secret (default-datasource-driver-factory.ts 569, 577, 796, 805, 836, 965; the per-arm table in datasource-credential-migration.ts). Read, not run per driver. The stored-row premises are pinned. New pins, real save (protocol.datasource-credentials-ref-own-reference.test.ts, 29 passed): (1) a /meta GET → edit → PUT of a row holding a reference and an inline copy drops the copy, the row text no longer contains it, the answer names ['datasources[0].config.password'], and passwd and the URL password are carried; (2) the migration body (served form, minted reference bound and stated) leaves the reference and no password at rest, and a fresh protocol instance serves the clean row; (3) control: no reference, config kept, nothing named; (4) F2: active:false alone is 422 naming legacyOption with nothing written, and with the config corrected it saves with the credentials carried. Door over the real kernel save, reading the STORED ROW (dogfood datasource-meta-door-reaches-admin-door.dogfood.test.ts, describe 'the row at rest', 5 passed; in-process, because the showcase composition wires no secret binder): migrate on a password-only row answers migrated, the row text has no 'hunter2', and the secret resolves; after a restart (a new plugin and protocol over the same rows) getDatasource answers hasSecret true and redactedConfigKeys [], the registry holds no password, a second run answers already-bound, and the row text is unchanged. With passwd also stored: migrated, remaining ['passwd'], the alias kept at rest. A label edit of a row holding a reference and an inline copy: droppedWithheldKeys ['config.password'], the copy gone at rest and from the registry. Control: no reference, kept, nothing named. F2: active:false alone is refused INVALID_METADATA naming legacyOption (the route answers it 400 DATASOURCE_ADMIN_ERROR), and with the config corrected it saves. Suites: service-datasource 77 files / 1335 passed, typecheck 0; metadata-protocol 391 passed + 9 skipped files, 24045 passed + 45 skipped, typecheck 0; spec src/kernel + src/migrations + the datasource redaction file 72 files / 2208 passed + 4 todo, typecheck 0; objectql package-scoped-exact-qualifier 472 passed; dogfood (4 datasource suites + connector-meta-door-url-and-nested-keys) 5 files / 64 passed. Ablations, each edited on disk, run and restored: the F1 retirement emptied in planCarryForward makes 2 real-save pins and 3 stored-row door pins red; servedForm dropped from the migration's writes makes the alias-migration pin red (the raw body is 422 on passwd); registering the record with the dropped position kept makes the edit pin red; not relaying droppedWithheldKeys makes the edit pin red. The red before the fix is the F1 ablation itself: at d0dfe00bd's rule the row keeps 'hunter2'.",
"gates": "Local, on the tree committed as bcda59318: 40 commands, each exit captured before any pipe. 38 exit 0 on the first pass: test-source-alias, cross-package-test-inputs, objectql-double-limit, where-matcher, nul-bytes, undeclared-dep-imports, adr-0087-registration --base origin/main, changeset-no-major, empty-changeset, issue-citations, tenant-audit-census, adr/spec-docblock/scripts symbol anchors, optional-error-sink, durability-log-level, agent-test-spelling, corpus-claim-drift, role-word, logger-receiver-detach, system-context-census, keyed-text-bounds, dispatcher-error-vocabulary, spec api-surface, export-origins, dual-source-exports, entry-nameability (prints its own NOT MEASURED line: no callable export on the entry it samples), exported-any, spec-changes, upgrade-guide, error-code-provenance, type-check-debt, published-files, dts-closure, rest-log-spy-declared, registry-log-declared, error-status-conformance, route-envelope. check:engine-double-contract was exit 1 on the first pass (the new dogfood stub engine was not yet in the pinned ledger), then `node scripts/check-engine-double-contract.mjs --write` and a recheck gave exit 0; the ledger is committed. The spec check:generated run had 2 of 14 stale (api-surface, export-origins: the one new export); `--fix` regenerated them and both rechecked green. Local-only check-dev-prereqs: exit 1 on machine state, not on the diff ('32 of 111 workspace packages declare an entry point under dist/ that is not on disk', the ui packages, unbuilt in this worktree); the spec dist is freshly built. `dispatch-gates --ran` was not re-run this round: the derivation is the whole branch, and the rest of the derived list is CI's on the new head (a declared narrowing). CI check-runs on bcda59318: NOT MEASURED, reason: just pushed; their convergence is the seat's. A new Dogfood battery (opt-in) run is owed on bcda59318.",
"mcp_calls": "0",
"api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). git push of bcda59318 is not REST. Reads: GET issues/comments/7416154891, 7416035148, 7416186562.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed. droppedWithheldKeyNotices (protocol-credential-carry-forward.ts, outside this claim) keeps a hint whose example is a connector's `auth.credentialRef`; for a datasource drop the message is true and the example names the other type. The #8154 comment in protocol-save.ts ('deliberately not attempted on a write door') is now incomplete; that file is held beyond the carve-out. Named in the PR body's Acceptance notes.",
"carrier: none · noted, not filed (unchanged from the last report). A door edit that changes the driver gets the stored credential grafted onto the new driver's config, because planCarryForward does not compare drivers. Read, not run. Dedupe words: carry-forward driver change, planCarryForward driver, datasource restoreRedactedConfig driver."
],
"files_outside_listed_surface": "packages/spec/api-surface/kernel.json and packages/spec/export-origins/kernel.json (generated by check:generated --fix for the one new export of the allowed spec hook file); scripts/engine-double-contract.pinned.json (the ledger already in this PR, now recording the new dogfood stub engine). The new door pins live in the existing dogfood file datasource-meta-door-reaches-admin-door.dogfood.test.ts, one of the four this PR already edits, because only the dogfood package depends on both service-datasource and metadata-protocol.",
"pr_body_file": "/tmp/claude-0/-home-user/4fd62428-5096-5aab-9651-24aa9b79e500/scratchpad/issue-39398/pr-body.md"
}
Claim amendment · 2026-12-04T16:34Z · zone em-upgrade · records the files of head bcda593 outside the listed surface (dev report 7417607627)
Area: em-upgrade
File surface (added, recorded after the fact):
packages/spec/api-surface/kernel.json and packages/spec/export-origins/kernel.json: generated, regenerated by check:generated --fix for the one new export of the allowed metadata-type-redaction.ts.
scripts/engine-double-contract.pinned.json: the ledger already in this PR, now recording the dogfood stub engine.
packages/qa/dogfood/test/datasource-meta-door-reaches-admin-door.dogfood.test.ts: one of the four dogfood files this PR already edits. It now holds the stored-row pins.
packages/services/service-datasource/src/contracts/datasource-admin-service.ts: an optional droppedWithheldKeys on the update answer, which is how the ruled "named on the admin door" is met.
Nothing else changes.
Closed by #39676, which the seat landed after approval. Follow-ups are #39737, #39612 and #39652. Zone em-upgrade releases pm:dispatched. Recorded at 2026-12-04T23:31Z.
Activity
docs(adr): ADR-0070 D1 mark names Setup's datasource create as the on…
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size S, touched 2026-12-03T20:12Z. Rationale: the filer's grade stands. Setup's datasource create writes a package-less row outside the kernel save, against ADR-0070 D1 (every create names a writable package) as #39386 closes it. Under the maintainer's 19:12Z ruling A, the Console offers a landing-package choice and no new exemption is added. It is part of #38174.
Grade: area:package · Bug · p2 · admins creating datasources in Setup · read (contract review M1 on PR #39397, at #39386 head
c913c4a1).objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
2026-12-03T22:46Z · Blocked (zone em-upgrade, not claimed). Waiting on: PR #39386 (seat
repo:objectstack@os-bill, #38174's claim 7384383757). Why: the fix routes the Setup datasource create through the kernel save and refuses it withWRITABLE_PACKAGE_REQUIRED; that refusal is what #39386 adds and it is not onmain301a378, so the card's own Governing text ("as #39386 closes it") is not yet in the tree. Body lineBlocked-by: #39386added; the unlock scan returns it topm:queuewhen #39386 merges. Zone em-upgrade takes it then, unless seat os-bill claims it first as part of #38174.objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock 2026-12-04T03:17Z:
pm:blocked→pm:queue. TheBlocked-by: #39386target (ADR-0070 D1, the kernel closing package-less creates) closed at 2026-12-04T02:56Z. Area, type and grade stand.11 remaining items
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
os-dev-report
{ "issue": 39398, "status": "blocked", "branch": "claude/issue-39398-wip", "pr": null, "session": "session_016WV4cxRh6Sbfo2Xm49JPx6", "premise_still_valid": true, "summary": "Built per claim amendment 7408609939 (ruling record 7408558495, Q1 A + A2, Q2 rides) with the Console half of amendment 7407420662. The Setup door's create, update and migrate-credential write through the kernel save (`saveDatasourceRecord`, new sibling module datasource-record-save.ts); the direct insert/update is gone, the direct delete is NOT touched (deleteDatasourceRow, named for the PR body). A create names its package in the body (`package`); naming none is the kernel's own 422 WRITABLE_PACKAGE_REQUIRED relayed in the door's words with details.writablePackages (the door stamps no code of its own; check:error-code-provenance green), nothing stored, and the secret minted for it removed. The own-reference judge passes a server-stated `mintedCredentialsRef` only when the body ref equals it and no other stored datasource row (any state) holds it. Q2: an import lands in the package the datasource's stored active row carries (unreadable = package-less; two packages = refused). Console: the editor shows the refusal with one button per writable package and re-sends the create into the pick (new DatasourceLandingPick.tsx; page only calls it). ADR-0087: new semantic entry 19.setup-datasource-create-names-package.ts (the only one, per amendment 7409019128). BLOCKED: #39536 is open and its claim 7406386689 (branch claude/project-thread-x8vem3, no PR yet) names call sites in protocol-save.ts, so the one-line protocol-save.ts commit 890ef9e35 is kept local in /home/user/objectstack-issue-39398, unpushed, and no PR is opened; claude/issue-39398-wip is pushed at 7b7c72035 with everything else. Without 890ef9e35 the minted pass is not wired, so the remote branch alone is not shippable: the A2 accepted-pins in metadata-protocol and a real-kernel door create with a secret need it. On #39536's release: merge origin/main, push 890ef9e35, open the draft PR. Four premises: (1) other judges still run: pinned on the real save (no package still 422; body ref other than stated 400; A2 held-by-another 400; draft-held is held; a body carrying the member refused 422 INVALID_METADATA); (2) the wire cannot state the field: pinned on the published SaveMetaItemRequest type (ts-expect-error) and schema (parse drops it), ablated red both ways; the REST/dispatcher/MCP doors were read and measured by a static source pin (ablation red) but that pin is not committed: it reads packages/** outside metadata-protocol and check:cross-package-test-inputs refuses an undeclared walk (turbo.json is outside the surface); (3) PR #29981's pins green on the fixture; (4) no secret left behind: pinned for refused create, refused update and refused migration. Mechanism note M2 measured: the projector's pool convergence on a door write is idempotent (one connect per create, one rebuild per connection change, both pinned), so the in-flight tracking I had added was removed as unneeded.", "tests": "At 890ef9e35 (local HEAD; remote 7b7c72035 = HEAD~1): `pnpm --filter @objectstack/service-datasource test` -> Test Files 77 passed (77), Tests 1332 passed (1332); `pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2` -> Test Files 390 passed | 9 skipped (399), Tests 24027 passed | 45 skipped; typecheck service-datasource and metadata-protocol exit 0 (both include their tests); app-shell: `cd ui && pnpm exec vitest run packages/app-shell/src/views/metadata-admin/datasource/` -> 9 files, 71 passed (4 new landing cases k-n); `pnpm --filter @object-ui/app-shell type-check` exit 0 after building its closure (72 tasks); cli `test/migrate-meta-engine-guidance.test.ts` 3 passed after the cli closure build. Ablations (mutate on disk, run, git checkout restore, each verified): A2 held-by-another clause removed -> 2 A2 pins red; minted pass removed -> 4 red; tryRemoveSecret on refused create removed -> 2 card pins red; Q2 stored-row read removed -> 2 Q2 pins red; `mintedCredentialsRef` added to the REST /meta builder -> static wire pin red (uncommitted pin); `mintedCredentialsRef` added to spec SaveMetaItemRequestSchema + spec rebuild -> committed wire pin red twice (runtime parse, TS2578 unused ts-expect-error), restored and spec rebuilt clean (authorable-surface/api.json ablation residue reverted to committed). M2 early-return ablation stayed green on the full suite, which is why that tracking was dropped. Dogfood: four suites' POST /datasources creates now name a package; full battery not run locally (needs:dogfood-battery on the PR, title-free narrowing).", "gates": "dispatch-gates --commands at 8535319b1 then 890ef9e35: 117 derived; --ran: 115 run with exit 0, 2 NOT-MEASURED (check:dual-build-cjs-loads and check:published-readme-exports: exit 3 PREREQUISITE NOT MET, no dist for packages this diff does not touch), 0 UNRUN, verdict line: 'dispatch-gates --ran: 117 derived famil(ies) accounted for'. Fixed on the way: check-tenant-audit-census (service-datasource write census regenerated: direct insert and update gone); check:error-code-provenance (door no longer stamps WRITABLE_PACKAGE_REQUIRED, it relays the kernel's error); check:engine-double-contract (card double guarded, pinned ledger --write); check:objectql-double-limit, check:where-matcher, check:test-source-alias (doubles honour limit, refuse combinators; driver-sql preloaded in 4 edited suites); check:cross-package-test-inputs (static walk replaced by the published-type pin); check:query-options-erasure re-run with a 580s window, exit 0. Ratchet and touched families re-run at 890ef9e35, all exit 0. CI check-runs: NOT MEASURED, no PR opened (blocked).", "mcp_calls": "0", "api_writes": "1 - POST /repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via post-stamped.mjs); plus one git push (not REST) of claude/issue-39398-wip to 7b7c72035", "classifier_refusals": [], "open_questions": [ { "question": "Metadata-protocol line re-read against the #27762 rule-text change: the A2 pass changes nothing a metadata author can write on any door (only server code states the member), so `none` holds for the rule text. But the door now requires `package` on a create of a datasource item, and #38174's changeset declared the same kind of requirement `Metadata-protocol: narrowed`. Keep `none` or move to `narrowed`?", "options": ["A keep none: the datasource body is unchanged and the requirement is the door's HTTP shape", "B narrowed, to match #38174's reading of a package requirement on a create"], "recommendation": "B, because #38174 is the precedent for the same requirement and narrowed takes minor on the packages the diff moves; the claim line is copied as given (none) until the seat rules" }, { "question": "content/docs/data-modeling/external-datasources.mdx says a datasource created in Setup is 'a datasource item of the environment's metadata'; after this change it is saved into a named package. The file is outside the claim's surface. Add it to the surface so this PR fixes the sentence, or carry it elsewhere?", "options": ["A add it to this PR's surface (one sentence)", "B a docs-only follow-up"], "recommendation": "A, because this change makes the sentence incomplete and the fix is one sentence" }, { "question": "Premise 2's door-level pin (the REST /meta route, the dispatcher's /meta branch and the MCP draft door never name mintedCredentialsRef) was measured with a static source pin and an ablation, but committing it needs a declared cross-package input for @objectstack/metadata-protocol#test in turbo.json (outside the surface). Committed instead: the published request type and schema pin. Enough?", "options": ["A enough: the doors build typed against the published request", "B add turbo.json inputs plus the static pin to this PR", "C behavioural pins in rest/runtime tests in a follow-up card"], "recommendation": "A, because the REST door is typed against the published shape and the ablation on that shape reds both ways; C if the seat wants the dispatcher and MCP doors pinned by behaviour" } ], "security_findings": "none", "out_of_scope_findings": ["carrier: #39536 (os-tesla) - protocol-save.ts held by claim 7406386689; the one-line call-site edit 890ef9e35 waits locally", "carrier: none - the direct delete (DELETE /api/v1/datasources/{name}, deleteDatasourceRow) still writes sys_metadata directly; out of scope per amendment 7408609939, noted, not filed"] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Claim amendment · 2026-12-04T12:38Z · zone em-upgrade · on dev report 7411686922 (open questions 1–3)
Area: em-upgrade
Metadata-protocol: narrowed. This replaces
none, following the #38174 precedent: a create on this door now requires a writablepackage, and #38174 declared the same requirementnarrowed. The changeset takes the level that implies, and the contract review settles it.File surface (added):
content/docs/data-modeling/external-datasources.mdx, one sentence only: a datasource created in Setup is saved into the package the admin picks.Premise 2 pin: the committed published-type and schema pin is enough. The REST door builds its request typed against the published shape, and the ablation on that shape went red both ways. No
turbo.jsonedit is made, and the static source pin is not committed.Serial constraints: unchanged. The one-line
protocol-save.tscommit waits on #39536 (claim 7406386689). Everything else stands.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Claim amendment · 2026-12-04T12:42Z · zone em-upgrade · carve-out granted by os-tesla (mailbox #39411 comment 7411804939)
Area: em-upgrade
Serial constraints (replaces the
protocol-save.tswait in 7408609939): #39536's holder carved out the singledatasourceCredentialsRefSaveRefusal({…})call site inpackages/metadata-protocol/src/protocol-save.ts(about :1953) for this card. Nothing else in that file is held here. Their PR #39668 touches only the imports near :92 and one hunk near :1485. Whichever PR lands second merges main. The build pushes and opens its draft PR now.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
os-dev-report
{ "issue": 39398, "status": "done", "branch": "claude/issue-39398-wip", "pr": "https://github.com/objectstack-ai/objectstack/pull/39676", "session": "session_016WV4cxRh6Sbfo2Xm49JPx6", "premise_still_valid": true, "summary": "Draft PR #39676 is open at head 30a601c0e (Fixes #39398, assignee os-elon-musk, body read back byte-identical). The rulings of amendment 7411737976 are in commit 86b65fafa, under the protocol-save commit. Q1 B: the changeset now reads Metadata-protocol: narrowed, at minor on the four packages the diff moves. Q2 A: a one-sentence edit to content/docs/data-modeling/external-datasources.mdx, with the Skills-docs line set to 'updated here'. Q3 A: turbo.json is untouched. After carve-out amendment 7411818882 (citing 7411804939), origin/main was merged with os-regen-merge.sh (merge 30a601c0e, no artifact residue; spec rebuilt clean), and the branch was pushed with the protocol-save.ts call-site commit (03546fbb5). The PR body carries the carve-out citation, Clause-②: no (narrowing), Metadata-protocol: narrowed, and a line saying the direct delete (deleteDatasourceRow) is not touched. The implementation is as reported before: kernel save for create, update and migrate-credential; the 422 relay; the A2 minted pass; Q2 landing; the Console landing pick; the ADR-0087 entry. needs:dogfood-battery was NOT added. The relay could send it as a pr_create label, but the dev instructions say the dev never adds that label and the seat attaches it; under the rule that the standing instructions win over a dispatch message, I followed them, and I name the conflict here. Review request also not sent: the relay's pr_create carries none for a dev, and the governed review comes after ACCEPT.", "tests": "At 30a601c0e (after the main merge): service-datasource test: Test Files 77 passed (77), Tests 1332 passed (1332), typecheck exit 0. metadata-protocol: the credentials-ref and wire files 23/23, typecheck exit 0. The full suite (24027 passed, 45 skipped) was run at 890ef9e35, before the merge, on the same diff. app-shell datasource views: 9 files, 71 passed. app-shell type-check exit 0 before the merge, not re-run after it: CI Type Check UI covers it. Ablations unchanged from the previous report: A2 clause, minted pass, secret cleanup, Q2 read, and the published-schema member each turned their pins red, and each was restored.", "gates": "Before the merge: dispatch-gates --ran gave 117 derived, 115 exit 0, and 2 NOT-MEASURED (check:dual-build-cjs-loads and check:published-readme-exports: exit 3, unbuilt untouched packages). The docs and changeset commit derived 29 more families, all exit 0. After the merge at 30a601c0e, these ratchet and touched families were re-run, all exit 0: engine-double-contract, objectql-double-limit, where-matcher, test-source-alias, cross-package-test-inputs, nul-bytes, error-code-provenance, adr-0087-registration, empty-changeset, changeset-no-major, tenant-audit-census, authorable-surface, spec-changes, upgrade-guide, api-surface, type-check-debt, system-context-census, undeclared-dep-imports, doc-authoring. CI check-runs on #39676: NOT MEASURED, as the PR was just opened; CI convergence belongs to the seat.", "mcp_calls": "0", "api_writes": "3 - POST issues/39398/comments (first report, 7411686922); pr_create via relay (POST /repos/objectstack-ai/objectstack/pulls plus POST issues/39676/assignees); POST issues/39398/comments (this report). Pushes (not REST): 5a86271e7..7b7c72035, then 7b7c72035..30a601c0e.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none - the direct delete (DELETE /api/v1/datasources/{name}, deleteDatasourceRow) still writes sys_metadata directly; out of scope per amendment 7408609939; named in the PR body as not touched", "carrier: #39668 (os-tesla) - also touches protocol-save.ts (imports near :92, a hunk near :1485); whichever lands second merges main"] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Claim amendment · 2026-12-04T13:31Z · zone em-upgrade · CI red on #39676 at 30a601c (Test Core 5/12,
metadata-registry-question-producers.test.ts)Area: em-upgrade
File surface (added):
packages/metadata-protocol/src/registry-question.ts. OneREGISTRY_QUESTION_PRODUCERSrow for the newpackages/services/service-datasource/src/datasource-record-save.ts :: saveMetaItemproducer, recording the registry question it asks. Nothing else in that file. Everything else stands.Serial constraints cleared:
check-handover.mjs --inflight --paths=packages/metadata-protocol/src/registry-question.ts --card=39398reads no overlap.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
os-dev-report
{ "issue": 39398, "status": "done", "branch": "claude/issue-39398-wip", "pr": "https://github.com/objectstack-ai/objectstack/pull/39676", "session": "session_016WV4cxRh6Sbfo2Xm49JPx6", "premise_still_valid": true, "summary": "Patch round on #39676. New head: b5ea483e6. (1) Test Core 5/12: amendment 7413016250 adds the row `packages/services/service-datasource/src/datasource-record-save.ts`, `saveMetaItem`, 1 call, question `body-only` to REGISTRY_QUESTION_PRODUCERS (commit a0cb208b1). The door writes a datasource record, never an object, and states no writeFace, so `saveRegistryQuestion` answers body-only. (2) Dogfood #21923, line 198: the pin was right and the code was wrong. Inside the save, the kernel save's datasource projector converged the pool first, so the door's own `registerPool` then recorded `already-registered` for the pool its own write had just opened. This is the M2 double registration. My earlier removal of the door-write guard rested on the kernel-save fixture, whose test doubles hid the verdict. Fix (b5ea483e6): while the door's own write is in flight (`doorWritesInFlight`), the projector registers the metadata slot but skips `convergePool`, and the door settles the pool as before. A new unit pin asserts the `datasource-connection` verdict is `connected` after a create. (3) Dogfood line 224 has the same root cause, no separate defect: case 1 failed at line 198, so its PUT and DELETE through /meta never ran, ADMIN_RT stayed stored, and after the restart it was still listed. No package-addressing defect was found, and the pin is unchanged. CORRECTION NEEDED in the PR body, which only the seat writes: the Acceptance notes bullet 'In-flight tracking in the door's write was measured as unneeded ... removed' is now false. Suggested replacement: 'While the door's own write is in flight, the save's projector registers the slot and leaves the pool to the door, so the door's verdict reads connected (pinned in the card test, and by dogfood #21923). The measurement that first called this tracking unneeded was a fixture blind spot.'", "tests": "Producers test (`pnpm --filter @objectstack/runtime exec vitest run --project repo src/metadata-registry-question-producers.test.ts`, metadata-protocol rebuilt each time): without the row, 1 failed, with 'a producer was added, removed or moved'; with the row, 3 passed. Card pin: with the guard, 11 passed; with the guard line removed, red, Expected 'connected', Received 'already-registered'. Dogfood, run locally after building the dogfood closure: the four edited suites (21923, 21899, 21922, 22835) give Test Files 4 passed, Tests 21 passed. With the guard removed and service-datasource rebuilt, the 21923 file reproduces both CI failures (2 failed: expected 'already-registered' to be 'connected', and the post-restart adminEntry is not undefined). Restored and rebuilt clean. service-datasource test: 77 files, 1332 passed. Typechecks for service-datasource and metadata-protocol exit 0.", "gates": "dispatch-gates --commands at b5ea483e6 derives the same 137 families as at 86b65fafa (no new family). Re-run at b5ea483e6, all exit 0: engine-double-contract, objectql-double-limit, where-matcher, test-source-alias, cross-package-test-inputs, nul-bytes, error-code-provenance, tenant-audit-census, system-context-census, undeclared-dep-imports, durability-log-level, adr-symbol-anchors, issue-citations, comment-mask-adoption, plugin-teardown-shape, logger-receiver-detach, startup-registry-verdict, init-service-contract, registry-log-declared, type-check-debt, adr-0087-registration, empty-changeset. CI run 47339334546 at 30a601c0e had only two non-green jobs: 'Test Core (5/12)', which is the registry-question failure fixed here, and 'Test Core', which aggregates that shard. Every other Test Core shard was success. CI at b5ea483e6: NOT MEASURED yet.", "mcp_calls": "0", "api_writes": "1 this round - POST issues/39398/comments (this report). Push, not REST: 30a601c0e..b5ea483e6. Reads: gh api for run 47339334546 jobs and job 145064458300 and 145079651989 logs.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none - the direct delete (DELETE /api/v1/datasources/{name}) still writes sys_metadata directly; out of scope per amendment 7408609939; named in the PR body as not touched"] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
os-dev-report
{ "issue": 39398, "status": "needs_decision", "branch": "claude/issue-39398-wip", "pr": "https://github.com/objectstack-ai/objectstack/pull/39676", "session": "session_016WV4cxRh6Sbfo2Xm49JPx6", "premise_still_valid": true, "summary": "Pushed head d0dfe00bd. M1 measured on the real saveMetaItem: a loose postgres row with config.password, saved as stored with a new label (or active:false) and no parentVersion, answers 422 INVALID_METADATA. That is the L2 prediction, confirmed. Route (a) is built for the edit: updateDatasource now sends the served form (spec getMetadataTypeRedactor('datasource'), the redactor the kernel's carry-forward compares against). On the real save a label edit and active:false on a row holding password, the alias passwd and a URL userinfo password both save, and every credential is carried forward. S1 is built: a refused save after a rebuild converges the pool back to the stored record. N4 and N1 are fixed, and the false changeset sentence is replaced. Two arms of M1 cannot be closed by route (a) without a new rule or exemption, so they come back as forks (open_questions F1, F2) and are not built. F1: route (a) cannot carry a credential migration. Worse, the migration at head b5ea483e6 is already silently broken: the kernel's carry-forward re-grafts the removed config.password (the absent value equals the served absent value). The door then reports `migrated` while the cleartext stays at rest. A row with a second refused key (passwd, a URL password) answers 422. F2: a row whose at-rest body the schema refuses for a reason other than credential material (measured: an undeclared config key) is refused 422 on every edit, label and active:false included, whatever body the door sends.", "tests": "At d0dfe00bd. Measurement (scratch test on the real save, deleted afterwards). Stored body + label: 422 INVALID_METADATA `config.password: password is a credential and is not accepted inline`. Served form + label, and served form + active:false: ok, stored config unchanged with password, passwd and url intact. Migration body (password removed, credentialsRef bound, mintedCredentialsRef stated), raw or served: ok, but the stored config still holds password:'hunter2' next to external.credentialsRef. With passwd or a URL password also stored, the raw migration body answers 422. With an undeclared key `legacyOption`, the served form + label answers 422 `Unrecognized key(s) on this postgres datasource's config: legacyOption`. New pins: metadata-protocol protocol.datasource-credentials-ref-own-reference.test.ts, describe '[#39398 M1]', 4 cases on the real save (control: stored body 422 with nothing written; the served form equals the /meta read minus _diagnostics; label edit and active:false save with config toEqual LEGACY_CONFIG). service-datasource datasource-create-packageless-39398.test.ts: 2 door cases (the body sent equals the redactor's served form, config keys [database, host, username]) and 1 S1 case (built ['wh','wh','wh'], the last built host db.internal, verdict connected, the kept ref stored, the minted secret removed). Runs: own-reference file 25 passed (25); card file 14 passed (14); service-datasource test 77 files / 1335 passed, typecheck exit 0; metadata-protocol test 391 passed + 9 skipped files, 24041 passed + 45 skipped tests, typecheck exit 0. Dogfood (closure built: turbo 79/79): the 4 datasource suites, 4 files / 21 passed. Ablations, each edited on disk, run and restored: servedForm:true changed to false makes 2 door pins red (`a label edit…`, `active: false…`), 12 passed; removing the convergePoolToStored call makes the S1 pin red, 13 passed. Red before the fix on the real save is the control case's 422.", "gates": "Local, at d0dfe00bd (the tree was identical before the commit). Each command's exit was captured before any pipe, all exit 0: check:test-source-alias, cross-package-test-inputs, engine-double-contract, objectql-double-limit, where-matcher, nul-bytes, undeclared-dep-imports, check-adr-0087-registration --base origin/main ('1 migration entry added'), check-changeset-no-major, check-empty-changeset ('No changeset from the merge base modified'), check:issue-citations, check-tenant-audit-census ('364 write call sites certified'), adr-symbol-anchors, spec-docblock-symbol-anchors, scripts-symbol-anchors, optional-error-sink, durability-log-level, agent-test-spelling, corpus-claim-drift, closed-ceremony-text, role-word, logger-receiver-detach, init-service-contract, error-status-conformance, comment-mask-adoption, closing-keyword-parity, system-context-census, vouch-for-reference-callers, keyed-text-bounds, dispatcher-error-vocabulary. `dispatch-gates --ran`: 107 of 137 derived families unrun, exit 1. This is a declared narrowing: the derivation is the whole branch since the merge base, and this round ran only the families that read the six files it changed. The rest ran green on earlier heads of this branch and are CI's on the new head. CI on b5ea483e6: 71 success, 11 skipped, 0 failed. Check-runs on d0dfe00bd: NOT MEASURED, reason: they had not reported when this report was written; their convergence is the seat's. The head moved, so a new Dogfood battery (opt-in) run is owed on d0dfe00bd.", "mcp_calls": "0", "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). git push of d0dfe00bd to claude/issue-39398-wip is not REST. Reads only otherwise: GET issues/comments/7414632005, GET pulls/39676.", "classifier_refusals": [], "open_questions": [ { "question": "F1 (M1, migration arm). The credential migration cannot retire an inline credential through the kernel save. The carry-forward re-grafts every withheld position the body leaves equal to what a read serves, and a removed key is served absent, so the removal is undone after the gates. Measured on the real save, the head is already broken: a password-only row saves `ok` and the door answers `migrated`, but config.password is still at rest beside the new credentialsRef. A row with a second refused key (passwd, a URL password) answers 422. main migrates through a direct write. Governing text: ruling 7408558495 (all three door writes go through the save; no new exemption); the #8154 carry-forward comment in protocol-save.ts ('Getting stored cleartext OUT of the store is #8081 item 3's migration'); the spec's own refusal text ('The resolved secret is injected at connect time and always wins over anything embedded in config'). How should the migration retire the inline copy?", "options": [ "A. Kernel rule, declarative. The carry-forward does not re-graft the driver's bindable credential key(s) (refusedCredentialKeys) into a datasource body that binds external.credentialsRef. The position is treated as withheld and not carried forward (#28640 2B), so the drop is named on advisories, on every door. The door sends the served form for the migration too. Measured constraint: planCarryForward derives notCarriedForwardKeys from the STORED body, which for a migrate does not yet bind the reference, so the rule has to read the incoming body's binding. Business need: real legacy rows (#8081 item 3); the action is broken today. Long term: one rule in the one carry-forward, no second write path, no new request member. AI error prevention: on every door the stored row matches what connects, because the bound secret already wins at connect and the inline copy is read by nothing. Scope: the smallest new surface. Cost: packages/metadata-protocol/src/metadata-redaction.ts planCarryForward (plus possibly a hook in packages/spec/src/kernel/metadata-type-redaction.ts), pins in metadata-protocol, and a one-line door switch. About 40 to 60 lines plus tests. Needs a claim amendment for those files. It changes /meta behaviour: an edit of a row that holds both a reference and an inline password drops the inline copy, loudly.", "B. A second server-stated, non-wire request member (for example retiredCredentialPaths) stated beside mintedCredentialsRef (or alone, for drop-inline), which the carry-forward skips. Business need: same. Long term: it widens the server-stated channel ruled in A2 and touches protocol-save.ts outside the carve-out (#39668 holds the file). AI error prevention: door-specific; /meta keeps re-grafting. Scope: a new request member. Cost: protocol-save.ts carry-forward call, protocol-credential-carry-forward.ts, metadata-redaction.ts planCarryForward, protocol-door-requests.ts, a published-shape pin. About 70 lines plus tests.", "C. The migration keeps writing outside the kernel save (main's path: metadata.register plus a direct row update). It edits an existing row and creates nothing, so ADR-0070 D1 is untouched. Business need: same. Long term: a second datasource write path that no kernel judge, audit or history sees, against the ruling's 'all three writes go through the save'. That is the workaround the card exists to remove. AI error prevention: weakest. Scope: no new contract. Cost: door-only, about 30 lines." ], "recommendation": "A. The kernel already has the declared mechanism for a withheld position that nothing reads (2B). The spec's own connect contract makes an inline credential beside a bound reference dead weight. A fixes the migration on every door without a new request member or a second write path. B widens a ruled server-only channel and needs the protocol-save.ts hold. C reverses the ruling's routing." }, { "question": "F2 (M1, the non-credential residue). On the kernel save, a row whose at-rest body DatasourceSchema refuses for a reason other than withheld credential material (measured: an undeclared config key; L2 also names a pool from before #5714) is refused 422 INVALID_METADATA on every door edit, label and active:false included. The served form withholds credentials only, so route (a) cannot reach it. main answers 200 through the direct write. The 422 names the refused key, and a PATCH that also sends a corrected config passes, because the served form then holds no refused key. Governing text: ruling 7408558495; the L2 record's '(b) declare the second arm' (a new maintainer question); RECORD_JUDGE_EXEMPT_PATCH_KEYS (label/active exempt from the door's own judgement). Should this be declared as the narrowing's second arm, or exempted?", "options": [ "A. Declare it as the narrowing's second arm, with the remedy 'send the corrected config with the edit'. The changeset FROM to TO table gets a second row, and the semantic entry's acceptanceCriteria drops 'UNAFFECTED: editing' for such rows. Business need: whether such rows exist in deployments is unmeasured (stored before #4410/#5714). Long term: a contract-first tightening, with the remedy in the refusal's own words. AI error prevention: a loud refusal instead of a silently stored invalid row. Scope: no new surface. Cost: changeset, entry, door comment; about 15 lines, no code.", "B. A door-side exemption: the kernel save skips the schema for a server-stated label/active-only edit. Business need: same. Long term: a new exemption in the kernel save, against ruling Q2 A 'no exemption is added for this door'. AI error prevention: it stores a body the schema refuses. Scope: a new server-stated member. Cost: protocol-save.ts outside the carve-out, about 50 lines plus pins." ], "recommendation": "A. The refusal names the key and a remedy exists in the same request. B is the exemption both the ruling and the L2 record name as off the table without a new ruling. If A is ruled, proposed changeset row: FROM `PATCH /api/v1/datasources/{name}` `{ \"active\": false }` on a row whose stored config or pool the schema refuses for anything but an inline credential; TO the same PATCH with `config` (or `pool`) sent without the key the 422 names. Proposed changeset sentence: An edit of an existing datasource is saved in place on the body a read serves; stored credentials are carried forward, and a row whose stored config or pool the schema now refuses for any other reason is refused 422 INVALID_METADATA until the edit sends it corrected." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: PR #39676 (this card, F1) · not filed. At b5ea483e6 the credential migration through the kernel save reports `migrated` while the kernel's carry-forward leaves config.password at rest beside the bound reference. Measured on the real saveMetaItem. It is this PR's own regression against main, so it is reported as fork F1, not filed.", "carrier: none · noted, not filed. Any door edit that changes the driver now has the stored credential grafted onto the new driver's config by the kernel carry-forward, because planCarryForward does not compare drivers. The door's own restoreRedactedConfig skips a driver change, so the pool is built without the credential while the stored row holds it. Read, not run; it follows from routing edits through the kernel save. Dedupe words: carry-forward driver change, planCarryForward driver, datasource restoreRedactedConfig driver." ] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxhJCxxgNFHE9Ar94a
维护者速读
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: session_016WV4cxhJCxxgNFHE9Ar94a
Analysis (English)
One-sentence problem. On the fix branch, an admin who moves a connection's password into secure storage is told it is done while the plain password stays in the database beside the secure reference, and an old connection whose saved settings contain a field the platform no longer recognises is refused on every edit until the settings are corrected.
Background
source, a direct write or a door-side package judgment.d0dfe00bd, +1583/−146, 33 files, not merged) builds that. Contract review 7414632005 failed the previous headb5ea483e6on M1: an edit or migration of a row whose stored body the schema refuses moves from 200 to a refusal, and the PR declared the opposite. The dev closed the credential arm for edits (the door now sends the body a read serves, and the kernel's carry-forward restores the withheld credential after the gates) and returned two arms as forks in report 7415555005.b5ea483e6is the PR's previous head, notmain. The dev report says the same: "It is this PR's own regression against main".main(bf95e789f) migrates through the direct write and leaves no cleartext (premise 1, measured). Nothing released is affected.config.passwordis served absent, so the migration's removal is undone after the gates.Governing text
source, a direct write or a door-side package judgment". Also "every other save judge still runs". Read:gh api repos/objectstack-ai/objectstack/issues/comments/7408558495 --jq .body.gh api repos/objectstack-ai/objectstack/issues/comments/6566912252 --jq .body.packages/spec/src/kernel/metadata-type-redaction.ts:127: "the class is for a position nothing reads and no door accepts any more, where keeping the stored value only keeps cleartext at rest". Grep:grep -n "nothing reads and no door accepts any more" packages/spec/src/kernel/metadata-type-redaction.ts.packages/metadata-protocol/src/metadata-redaction.ts:50: "Getting stored cleartext OUT of the store is [services half of #7990] Close the datasource/connector credential write/read paths: scrubgetDatasource().config, fix the false "credential-stripped" claim, and write the stored-cleartext-rows migration story #8081 item 3's migration and is deliberately not attempted here — with ONE exception the redactor itself declares." Grep:grep -n "Getting stored cleartext OUT of the store" packages/metadata-protocol/src/metadata-redaction.ts.packages/spec/src/data/driver/common.zod.ts: "The resolved secret is injected at connect time and always wins over anything embedded inconfig." Grep:grep -n "always wins over anything embedded" packages/spec/src/data/driver/common.zod.ts.docs/adr/0062-external-datasource-runtime.md:92: a datasource whose secret cannot be resolved "fails closed". ADR-0015 §10,docs/adr/0015-external-datasource-federation.md:818: "Credentials never appear in metadata artefacts."packages/services/service-datasource/src/datasource-admin-service.ts:98-101: "renaming a datasource and taking it out of service (active: false) must stay possible on a row stored before a gate landed." Grep:grep -n "a gate landed" packages/services/service-datasource/src/datasource-admin-service.ts.grep -n "One route, one owner" AGENTS.md.Protocol statement
MetadataRedactionResult.notCarriedForwardKeysalready exists in@objectstack/spec. The change is what the kernel save does for typedatasourceon every door: a stored inline credential key stops being restored when the body bindsexternal.credentialsRef. That is a behaviour change to a credential rule, so it takes a contract-tier review and is here, not aBugoption.@objectstack/metadata-protocol, absent from the published request schema, asmintedCredentialsRefis.Metadata-protocol: narrowed).Premises, each with a re-check
Measured in scratch worktrees at
mainbf95e789fand PR headd0dfe00bd, dependency closure built in each (pnpm turbo run build --filter=@objectstack/service-datasource... --filter=@objectstack/metadata-protocol..., exit 0). Three scratch files, none in the tree: one on the #27762 harness (the realsaveMetaItemover its stub engine), one booting the admin plugin onmainover an in-memorysys_metadata, one booting the admin plugin at the PR head with the realObjectStackProtocolImplementationas itsprotocolservice and the HTTP door mounted. Each ran withpnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=1orpnpm --filter @objectstack/service-datasource exec vitest run --maxWorkers=1on the scratch file; all cases passed.mainmigrates cleanly. Measured through the plugin: a password-only row answersmigrated, the stored row holdsexternal.credentialsRefand nopassword, the raw row text does not contain the password, a restart restores the clean record, and a second run answersalready-bound. A row that also holdspasswdanswersmigratedwithremaining: ["passwd"]. Re-check:grep -n "persistDatasourceRow" packages/services/service-datasource/src/datasource-admin-plugin.ts(158, 501 onmain).{status: "migrated", migratedKey: "password"}; the stored row holdsconfig.password: "hunter2"beside the new reference; the in-process registry holds the clean record, so the Setup read showshasSecret: trueand no withheld key until a restart; after a restart the registry holds the password again; a second run answersmigrated(reusedExistingSecret: true) and the row is unchanged. A row that also holdspasswdanswers 422INVALID_METADATA, nothing stored, the minted secret removed. Re-check:git show d0dfe00bd:packages/services/service-datasource/src/datasource-admin-service.ts | grep -n "putDatasourceRecord(migrated\|putDatasourceRecord(withoutConfigKey"(1522, 1487: neither states the served form) andgh api repos/objectstack-ai/objectstack/pulls/39676 --jq '.draft,.merged,.head.sha'.grep -n "const served = redactor(stored" packages/metadata-protocol/src/metadata-redaction.ts(614). The datasource redactor names no not-carried-forward position:grep -c notCarriedForwardKeys packages/spec/src/data/datasource-credential-redaction.tsanswers 0. So A cannot be a one-line use of the existing class: for a first bind the stored row has no reference yet, and the rule must read the incoming body's binding.mainand at the head: a row holding a reference and an inline password, saved with the password removed, is stored with the password; a body that setspassword: ""is refused 422. The/metadoor has the same behaviour.datasource-credential-migration.ts:29-36),default-datasource-driver-factory.ts:577(spec.secret ? … : cfg.password), and the fail-closed rule (grep -n "never falls back to" packages/services/service-datasource/src/datasource-admin-service.ts).main: the two doors already disagree. Measured: the admin door answers 200 for{label}and for{active: false}on a row with an undeclared config key and stores them; the kernel save (the/metadoor's save) answers 422INVALID_METADATAfor the same edits.PATCH {label}andPATCH {active: false}answer 400 with the door's codeDATASOURCE_ADMIN_ERRORand the kernel's sentence, which names the key ("Unrecognized key(s) on this postgres datasource's config:legacyOption", with a "did you mean" for a retired alias such asfile→filename) and links the upgrade guide. It does not say "send the corrected config with this edit". APATCHthat sendsactive: falsetogether with the config minus that key answers 200 and stores both. The kernel's own status is 422; the door relays it as 400.main: a create with an undeclared key answers 400; a config edit that sends the key back answers 400 (details.reason: invalid_config, hint naming the key). The config contract was first enforced by datasource.config 至今无人校验:驱动 configSchema 是声明但完全惰性的(ADR-0049 enforce-or-remove,#4001 收尾发现) #4410 (closed 2026-08-01) and the authorable surface went strict under 未知键静默剥离仍是全仓默认:把 #3405 的 strict 收紧从一个 schema 推广到整个可授权面(ADR-0078 完整性闸门) #4001 (closed 2026-08-16), so the sources are a row stored before August 2026 or a row written straight into the database. The dev report also names a pool block from before datasourcepool声明在 sqlite / sqlite-wasm 驱动臂被静默丢弃(pg / mysql 生效) #5714; the one shape probed here (apoolon a sqlite row) saved, so that source is not confirmed.main. Read: the form sends the stored config with every edit (grep -n "config: requestConfig(f)" ui/packages/app-shell/src/views/metadata-admin/datasource/DatasourceResourcePage.tsx, 710) and the page has no control that sendsactivealone. Measured: that body answers 400 onmain. The 200 that F2 removes is reachable only by an API caller sendinglabeloractivealone.grep -rln "migrate-credential\|api/v1/datasources" /home/user/hotcrmover its sources answers 0 files. Inline passwords were refused at the write doors from feat(spec)!: refuse inline credentials at publish — driver config + connector authoring door (#7990, spec half) #8078 (closed 2026-08-12). Cloud is not in this checkout: unverified.The two questions
main. Which mechanism retires the inline copy through the kernel save?F1: options, real cost, workload
/metasave behaviour changes for these rows./metaedits until someone runs the action. One more server-only channel to keep closed to the wire, and it can strip any withheld position an in-process caller names. Needsprotocol-save.tsbeyond the one call site os-tesla carved out in 7411804939 (on mailbox PR #39411); draft PR #39668 holds that file.main's direct write.main(measured clean). One writer of a packaged row stays outside every kernel judge, history and audit. Reverses ruling 7408558495, which names this fallback.A and B are the same order of size; neither is 3× the other. C is the smallest and is not close on ①.
Named for completeness, not on the card and not costed: retiring the migration action. With no production customers its population is near zero, and under A re-entering the secret in the form reaches the same end state. It removes a shipped Setup action, so it is the maintainer's to raise; A does not block it.
F2: options, real cost, workload
main. Both doors now answer alike.protocol-save.tsoutside the carve-out.Business meaning
Four axes, from the business standpoint
① Long-term soundness (leads, ≥50%). Two years out, a stored connection never holds a plain password beside a vault reference, whichever door last saved it, and the admin is never told "done" while a copy remains. That is how the mainstream platforms model it: a Salesforce Named Credential's secret lives only in protected storage and never in the deployable definition; ServiceNow's connection and credential aliases split the same way. F1 A states that as one rule in the one place that already decides what a save restores, and reuses the class the maintainer ruled for connectors (6566912252 ②B). It is a conditional use of that class (the key is dead only when a reference is bound), which is a real difference from the connector case and the reason this is not self-applied. B makes clean-up a per-call instruction that one door remembers to give, and widens the server-stated channel ruled a few hours ago. C keeps the second writer the card exists to delete. For F2, A leaves one judge for a stored connection; B makes the kernel store what its own schema refuses.
② Real pull. No production customers (standing word). Rows with an inline password or an undeclared key can only predate August 2026 or come from a direct database write. HotCRM does not use the door. The only pull is that the PR must not merge with a false "migrated". Zero pull points to the option that adds the least surface: A in both forks.
③ Keeping AI and operators from silent mistakes. At the PR head the failure is silent in the worst direction: success on screen, cleartext at rest, visible only after a restart. A makes the outcome structural and loud (the save names what it dropped). B leaves the same silent restore on every door but one. C is silent to the kernel's judges. F2 A is a loud refusal that names the key; B is silent tolerance of an invalid row.
④ Startup focus. F1 A adds no key and no request member; B adds a permanent server-stated member; C adds nothing and keeps a writer. F2 A adds text; B adds an exemption and a member. No option adds a gate. The standing word bears on both forks: no backfill, sweep or staged window for existing rows is owed under any option, and it removes the main argument for F2 B (keeping legacy rows editable is a legacy-data accommodation). It does not settle F1: the migration action is shipped, works on
main, and the PR would break it for whoever uses it next.os-decision-facets
① 项目长远合理性: F1 A puts "no plain password beside a bound reference" in the one save path, on every door, reusing the ruled not-carried-forward class; B adds a per-call server-stated channel; C keeps a second writer and reverses 7408558495. F2 A leaves one judge; B makes the kernel store what its schema refuses.
② 实际业务拉动: no production customers; affected rows predate August 2026 or come from direct database writes; HotCRM zero; cloud unverified.
mainis clean (measured), so the only pull is not merging a false "migrated".③ 防 AI 犯错: the PR head fails silently (success shown, cleartext kept, measured). F1 A is structural and names each drop; B and C leave silent paths. F2 A is a loud refusal naming the key; B tolerates an invalid row in silence.
④ 创业阶段不扩散: F1 A adds no key or member; B adds a permanent server-stated member; C keeps a writer. F2 A is text only; B adds an exemption. No option adds a gate. No legacy-data migration is owed under any option.
Prior rulings read: carry-forward,notcarriedforwardkeys,credentialsref,migrate-credential,inline credential,invalid_metadata,legacy datasource,direct write → 3 hits; ADR-0062 D3, ADR-0079 D3; thread: none
Thread and off-thread rulings read: 7408558495 on this card (the script's first-line shape does not match its
Ruled:line, hencethread: none); 6566912252 on #28640 (②B); 7184753035 (question 2 A, as quoted in the card and in analysis 7407901133). ADR-0062 D3 read: it supports premise 5 and answers neither fork. ADR-0079 D3 is unrelated (a term collision oninvalid_metadata).Recommendation and confidence gaps
F1: A. Reading ① alone gives A: it is the only option under which the end state holds on every door and no new channel or writer is added. It is a credential boundary and it deletes stored material, so this is input to the maintainer's own decision; no seat may take it.
Does the earlier ruling already answer F1? It excludes C. It does not choose between A and B. Ruling 6566912252 ②B gives A's shape for connectors; the datasource case is conditional on a bound reference, so it is presented, not inherited.
Confidence gaps, stated and not acted on:
passwordkey is not read there either, but no live connect was made.main; this is expected, not measured, because A is not built.F2: A. Reading ① alone gives A: one judge for a stored connection, and the admin door stops disagreeing with the kernel save, which already refuses these edits on
main(premise 6). That is the dispatch rule's "governed side wins".Does the earlier ruling already answer F2? In substance yes: its text excludes B, and A is what the ruled route produces. It is presented because the analysis behind that ruling did not put this consequence in front of the maintainer, and contract review 7414632005 called declaring it "a new ask of the maintainer". If the maintainer reads it as execution, the seat records it as such.
Confidence gaps: whether any deployment holds such a row is unmeasured; the pool source named in the dev report was not reproduced; an admin with such a row cannot fix it in the Setup form on
maineither, because the form sends the hidden key back (read), which is outside this fork.Self-check.
After the ruling
If F1 A: the seat records the ruling on this card and re-dispatches the same branch.
packages/metadata-protocol/src/metadata-redaction.ts, its pins, and the spec redactor file if the rule is declared there. Noprotocol-save.tschange beyond the carve-out. TheMetadata-protocolline and the changeset are re-read, and the rule gets a contract-tier review before the queue.already-bound. The pin reads the row at rest; the head's green came from reading the registry and a fixture;/meta.source, no second server-stated member.If F1 B or C is ruled instead, the same branch builds it; B needs os-tesla's consent for the wider
protocol-save.tsedit, and C needs the ruling record amended.If F2 A: text in the same PR. The changeset gains the second FROM → TO row and the sentence the dev proposed, with the status corrected to what the door answers: measured 400 with the door's code and the kernel's sentence, not 422, unless the contract review asks the door to relay the kernel's status. The migration entry's acceptance criteria and the door's comment on the label/active exemption are brought in line. One pin: an edit that sends the corrected config with
active: falsesaves.If F2 B: a new claim amendment for
protocol-save.tsand a contract-tier review of the exemption.Related
getDatasource().config, fix the false "credential-stripped" claim, and write the stored-cleartext-rows migration story #8081, [security] GET /api/v1/meta/datasources still serves stored cleartext credentials — the metadata read path has no per-type redaction hook #8154, Migration story for stored cleartext datasource credentials: operator-initiated re-homing into sys_secret (blocked by the managed-schemaMode refusal) #8155 (inline credentials refused, reads redacted, the migration action) · datasource.config 至今无人校验:驱动 configSchema 是声明但完全惰性的(ADR-0049 enforce-or-remove,#4001 收尾发现) #4410, 未知键静默剥离仍是全仓默认:把 #3405 的 strict 收紧从一个 schema 推广到整个可授权面(ADR-0078 完整性闸门) #4001 (config contract enforced).objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxhJCxxgNFHE9Ar94a
Ruled: 2026-12-04T15:36Z · F1 and F2 · the maintainer tapped 「通用规则:绑定后不补回明文」 at 2026-12-04T15:36:32Z on the project decision card 「密码迁到安全存储后,库里残留的明文密码怎么清?」. The card option read 「所有保存入口一律生效:绑定安全引用后不再补回旧明文,并在结果里点名清掉的项;会删除库里的明文副本;并入当前修复。」. That is F1 option A of the analysis in comment 7416035148. B (a second server-stated member) and C (keep the direct write) were offered and not chosen. F2 is ruled below.
external.credentialsRefdoes not get the driver's inline credential keys restored; every dropped position is named on the save's notices. It applies on every door. It deletes stored cleartext copies, so it is on the human floor; this tap is that word.migratedis PR fix(service-datasource): a datasource created in Setup is saved through the kernel save, into a named package #39676's own regression (measured at headd0dfe00bd;b5ea483e6was its previous head). Mainbf95e789fmeasured clean.packages/metadata-protocol/src/metadata-redaction.tsand its pins; noprotocol-save.tschange beyond the carve-out 7411804939; contract-tier review of the rule before the queue). Premises the dev verifies first: with a reference bound, no driver arm reads the inline key at connect; after a migration on the real save the STORED ROW holds no inline key, a restart restores the clean record and a second run answersalready-bound(the pin reads the row at rest); a row with no reference keeps its inline credential through a label edit; alias spellings and URL passwords are still carried forward and reported as remaining; every dropped position is named on the admin door and on/meta. Prohibition: a failed premise is a fork; no direct write, nosource, no second server-stated member.DATASOURCE_ADMIN_ERRORwith the kernel's sentence, not 422, unless the contract review asks the door to relay the kernel's status); the migration entry's acceptance criteria and the door's comment on the label/active exemption are brought in line; one pin: an edit that sends the corrected config withactive: falsesaves. No legacy-data migration (the maintainer's standing word: no production customers yet).pm:dispatched; claim with zone em-upgrade, PR stays draft).objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Claim amendment · 2026-12-04T15:38Z · zone em-upgrade · on ruling record 7416154891 (F1 A, F2 A; analysis 7416035148)
Area: em-upgrade
Route F1 (option A): a declarative carry-forward rule. A body that binds
external.credentialsRefdoes not get the driver's inline credential keys restored. The dropped positions are named on the notices, and the rule applies on every door. The migration sends the served form.Route F2 (option A): a second narrowing arm, as text only. The changeset gets a second FROM → TO row, and the semantic entry's acceptanceCriteria are corrected. The status is the measured 400
DATASOURCE_ADMIN_ERROR, unless contract review asks the door to relay the kernel status. One pin: corrected config +active: falsesaves.Premises the dev verifies first (record 7416154891 and the analysis's corrections):
A failed premise is a fork. It is never a direct write,
source, or a second server-stated member.File surface (added):
packages/metadata-protocol/src/metadata-redaction.ts(planCarryForward),packages/spec/src/kernel/metadata-type-redaction.tsonly if the rule needs a declared hook there, and metadata-protocol pins for the rule.protocol-save.tsstays at carve-out 7411804939, with nothing beyond it. Everything else stands.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
os-dev-report
{ "issue": 39398, "status": "done", "branch": "claude/issue-39398-wip", "pr": "https://github.com/objectstack-ai/objectstack/pull/39676", "session": "session_016WV4cxRh6Sbfo2Xm49JPx6", "premise_still_valid": true, "summary": "Pushed head bcda59318, built as ruled in record 7416154891 under claim amendment 7416186562. F1 A: a declared rule in @objectstack/spec/kernel (getMetadataTypeCarryForwardRetirement, datasource only) is applied generically in planCarryForward (metadata-redaction.ts). A datasource body that binds external.credentialsRef does not get the driver's inline credential slot (config.password; turso's config.authToken) carried forward. The drop is named on the save's advisories (withheld-key-dropped) on every door. The admin door's update answer names it as droppedWithheldKeys, and the slot is registered without it. migrateCredential now sends the served form on both of its writes. Aliases and URL passwords stay carried and are reported as remaining. protocol-save.ts is untouched beyond the carve-out; no direct write, no `source`, no second server-stated member. F2 A, text only: the changeset gets a second FROM → TO row and sentence (400 DATASOURCE_ADMIN_ERROR naming the key; the edit sent with the corrected config saves), and the entry's surface, replacement and acceptanceCriteria and the door comment are brought in line, with one pin each on the real save and at the door. Correction to my previous report: the cleartext left at rest after `migrated` was this PR's own regression, at its heads b5ea483e6 and d0dfe00bd. Main bf95e789f migrates cleanly (analysis 7416035148, premise 1). My earlier wording 'silently broken at head b5ea483e6' referred to the PR head, never to main. The corrected PR body is ready at /tmp/claude-0/-home-user/4fd62428-5096-5aab-9651-24aa9b79e500/scratchpad/issue-39398/pr-body.md.", "tests": "At bcda59318. Premise checks, read first. With a reference bound, connect resolves it fail-closed and refuses an empty secret (datasource-connection-service.ts 704-750), and every driver arm prefers spec.secret (default-datasource-driver-factory.ts 569, 577, 796, 805, 836, 965; the per-arm table in datasource-credential-migration.ts). Read, not run per driver. The stored-row premises are pinned. New pins, real save (protocol.datasource-credentials-ref-own-reference.test.ts, 29 passed): (1) a /meta GET → edit → PUT of a row holding a reference and an inline copy drops the copy, the row text no longer contains it, the answer names ['datasources[0].config.password'], and passwd and the URL password are carried; (2) the migration body (served form, minted reference bound and stated) leaves the reference and no password at rest, and a fresh protocol instance serves the clean row; (3) control: no reference, config kept, nothing named; (4) F2: active:false alone is 422 naming legacyOption with nothing written, and with the config corrected it saves with the credentials carried. Door over the real kernel save, reading the STORED ROW (dogfood datasource-meta-door-reaches-admin-door.dogfood.test.ts, describe 'the row at rest', 5 passed; in-process, because the showcase composition wires no secret binder): migrate on a password-only row answers migrated, the row text has no 'hunter2', and the secret resolves; after a restart (a new plugin and protocol over the same rows) getDatasource answers hasSecret true and redactedConfigKeys [], the registry holds no password, a second run answers already-bound, and the row text is unchanged. With passwd also stored: migrated, remaining ['passwd'], the alias kept at rest. A label edit of a row holding a reference and an inline copy: droppedWithheldKeys ['config.password'], the copy gone at rest and from the registry. Control: no reference, kept, nothing named. F2: active:false alone is refused INVALID_METADATA naming legacyOption (the route answers it 400 DATASOURCE_ADMIN_ERROR), and with the config corrected it saves. Suites: service-datasource 77 files / 1335 passed, typecheck 0; metadata-protocol 391 passed + 9 skipped files, 24045 passed + 45 skipped, typecheck 0; spec src/kernel + src/migrations + the datasource redaction file 72 files / 2208 passed + 4 todo, typecheck 0; objectql package-scoped-exact-qualifier 472 passed; dogfood (4 datasource suites + connector-meta-door-url-and-nested-keys) 5 files / 64 passed. Ablations, each edited on disk, run and restored: the F1 retirement emptied in planCarryForward makes 2 real-save pins and 3 stored-row door pins red; servedForm dropped from the migration's writes makes the alias-migration pin red (the raw body is 422 on passwd); registering the record with the dropped position kept makes the edit pin red; not relaying droppedWithheldKeys makes the edit pin red. The red before the fix is the F1 ablation itself: at d0dfe00bd's rule the row keeps 'hunter2'.", "gates": "Local, on the tree committed as bcda59318: 40 commands, each exit captured before any pipe. 38 exit 0 on the first pass: test-source-alias, cross-package-test-inputs, objectql-double-limit, where-matcher, nul-bytes, undeclared-dep-imports, adr-0087-registration --base origin/main, changeset-no-major, empty-changeset, issue-citations, tenant-audit-census, adr/spec-docblock/scripts symbol anchors, optional-error-sink, durability-log-level, agent-test-spelling, corpus-claim-drift, role-word, logger-receiver-detach, system-context-census, keyed-text-bounds, dispatcher-error-vocabulary, spec api-surface, export-origins, dual-source-exports, entry-nameability (prints its own NOT MEASURED line: no callable export on the entry it samples), exported-any, spec-changes, upgrade-guide, error-code-provenance, type-check-debt, published-files, dts-closure, rest-log-spy-declared, registry-log-declared, error-status-conformance, route-envelope. check:engine-double-contract was exit 1 on the first pass (the new dogfood stub engine was not yet in the pinned ledger), then `node scripts/check-engine-double-contract.mjs --write` and a recheck gave exit 0; the ledger is committed. The spec check:generated run had 2 of 14 stale (api-surface, export-origins: the one new export); `--fix` regenerated them and both rechecked green. Local-only check-dev-prereqs: exit 1 on machine state, not on the diff ('32 of 111 workspace packages declare an entry point under dist/ that is not on disk', the ui packages, unbuilt in this worktree); the spec dist is freshly built. `dispatch-gates --ran` was not re-run this round: the derivation is the whole branch, and the rest of the derived list is CI's on the new head (a declared narrowing). CI check-runs on bcda59318: NOT MEASURED, reason: just pushed; their convergence is the seat's. A new Dogfood battery (opt-in) run is owed on bcda59318.", "mcp_calls": "0", "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/39398/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). git push of bcda59318 is not REST. Reads: GET issues/comments/7416154891, 7416035148, 7416186562.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed. droppedWithheldKeyNotices (protocol-credential-carry-forward.ts, outside this claim) keeps a hint whose example is a connector's `auth.credentialRef`; for a datasource drop the message is true and the example names the other type. The #8154 comment in protocol-save.ts ('deliberately not attempted on a write door') is now incomplete; that file is held beyond the carve-out. Named in the PR body's Acceptance notes.", "carrier: none · noted, not filed (unchanged from the last report). A door edit that changes the driver gets the stored credential grafted onto the new driver's config, because planCarryForward does not compare drivers. Read, not run. Dedupe words: carry-forward driver change, planCarryForward driver, datasource restoreRedactedConfig driver." ], "files_outside_listed_surface": "packages/spec/api-surface/kernel.json and packages/spec/export-origins/kernel.json (generated by check:generated --fix for the one new export of the allowed spec hook file); scripts/engine-double-contract.pinned.json (the ledger already in this PR, now recording the new dogfood stub engine). The new door pins live in the existing dogfood file datasource-meta-door-reaches-admin-door.dogfood.test.ts, one of the four this PR already edits, because only the dogfood package depends on both service-datasource and metadata-protocol.", "pr_body_file": "/tmp/claude-0/-home-user/4fd62428-5096-5aab-9651-24aa9b79e500/scratchpad/issue-39398/pr-body.md" }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Claim amendment · 2026-12-04T16:34Z · zone em-upgrade · records the files of head bcda593 outside the listed surface (dev report 7417607627)
Area: em-upgrade
File surface (added, recorded after the fact):
packages/spec/api-surface/kernel.jsonandpackages/spec/export-origins/kernel.json: generated, regenerated bycheck:generated --fixfor the one new export of the allowedmetadata-type-redaction.ts.scripts/engine-double-contract.pinned.json: the ledger already in this PR, now recording the dogfood stub engine.packages/qa/dogfood/test/datasource-meta-door-reaches-admin-door.dogfood.test.ts: one of the four dogfood files this PR already edits. It now holds the stored-row pins.packages/services/service-datasource/src/contracts/datasource-admin-service.ts: an optionaldroppedWithheldKeyson the update answer, which is how the ruled "named on the admin door" is met.Nothing else changes.
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Closed by #39676, which the seat landed after approval. Follow-ups are #39737, #39612 and #39652. Zone em-upgrade releases
pm:dispatched. Recorded at 2026-12-04T23:31Z.