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
verify: the os verify CRUD phase may write into an app's declared external datasource #35255
Filing gate: owed follow-up of landed work, named by L1 6990771676 on PR #35243 (card #34779), item C1; the dev noted it in 6987214963. ⛔ Not a claim.
Grade: p2 · area:build · Bug · data wrong × rare · test rows can reach a real external database for an app that declares a writable external datasource; the reach at a public door has not been measured
What happens
The os verify header promises the harness "never touches a real database". But packages/verify/src/derive.ts:236-244 lets writable objects on an app's declared external datasource into the CRUD phase. So a verify run on such an app may insert, update and delete rows in that external database.
Expected
The CRUD phase writes only to the ephemeral stack. An object on an external datasource is either left out of the write phases and named as "external, not exercised", or bound to the ephemeral store for the run. Whichever shape is chosen, the docs and the header say exactly what happens. Per the scope rule, this card adds no new flag or interface.
Done when
A test with a writable external datasource shows that no write reaches it, and the header and docs match what the test shows.
First touch: p2 kept (seat grade, v2 line accepted). The os verify CRUD phase can write test rows into an app's declared writable external datasource. That is wrong data in a rare configuration, and it is not a queue jump. The seat's v2 grade line matches.
Lane: domain:devx added beside the seat's area:build, so the multi-lane board can route the card until the area:* switch lands (#35205). The grade is unchanged (p2).
Claim: PM loop round 3 · area b1-B (lease lease:b1-B) · 2026-11-19 · p2, dispatched to an os-dev subagent of this area thread (seat release on PR #35463 entering the merge queue)
Session: session_01L6bhgTyMahdAdhXSzgy2nt
Account: os-sales
Branch: claude/issue-35255-verify-external-no-writes
Worktree: objectstack-issue-35255
Domain: domain:devx
Seat: repo:objectstack#1 (area b1-B)
File surface: packages/verify/src/derive.ts (the external-object branch of pass 1) and the verify-report wording that names a skipped case, packages/verify/src/harness.ts header comment, packages/verify/README.md, the docs page(s) that state what os verify writes, their tests, one changeset. Stop on breach.
Container & model: S, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate, effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack packages/verify derive.ts:236-244 (read at origin/main 5756ae0d) | none | an app author running os verify on an app that declares a writable external datasource (datasource allowWrites and object writable both true); read from the code, reach at a public door not measured
Thread-read: 6992568774
Premise: holds — at origin/main5756ae0dderive.ts blocks an external object only when it is NOT writable (ds.external.allowWrites === true && obj.external.writable === true lets it into the CRUD phase); the harness header (harness.ts:20) and packages/verify/README.md:72 promise it never touches a real database
Route (seat ruling 2026-11-19 06:08Z on the area W0, from the two shapes the card allows): leave external objects out of the write phases and name them as external, not exercised. No new flag or interface.
Pre-claim lane: packages/verify/** is area b1-B of repo:objectstack#1; docs pages follow the surface they document.
Pre-claim deps: none named; no open PR references #35255 (search, 2026-11-19 12:0xZ); overlap-check runs before each push.
Prior rulings read: verify,crud,phase,write,declared,external,datasource → 228 hits; ADR-0062 D2, ADR-0062 D5, ADR-0005 Decision §5, ADR-0036 Decision §3, ADR-0036 Decision §5, ADR-0037 Decision §2, ADR-0038 Decision §7 (ADR-0062 is the external-datasource runtime; none rules on what the verify harness may write); thread: none; repo: objectstack-ai/objectstack
Serial constraints cleared: none (in-flight b1-B PR #35495 touches packages/cli skills files only; #35463 is in the merge queue on packages/cli and one bench script)
{
"issue": 35255,
"status": "done",
"branch": "claude/issue-35255-verify-external-no-writes",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35509",
"session": "session_01L6bhgTyMahdAdhXSzgy2nt",
"premise_still_valid": true,
"summary": "Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.",
"tests": "Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.",
"gates": "Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm",
"line_budget": "n/a — the diff touches no skills/** file",
"files_changed": [
".changeset/35255-verify-external-no-writes.md",
"content/docs/deployment/cli.mdx",
"packages/cli/test/fixtures/option-b-collection-zoo.ts",
"packages/cli/test/fixtures/option-b-reader-probe.ts",
"packages/cli/test/option-b-reader-acceptance.pin.test.ts",
"packages/verify/README.md",
"packages/verify/src/artifact-collections.test.ts",
"packages/verify/src/derive.test.ts",
"packages/verify/src/derive.ts",
"packages/verify/src/harness.ts",
"packages/verify/src/verify.external-datasource-no-writes.test.ts"
],
"deviations": [
"File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).",
"Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).",
"PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.",
"Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.",
"packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).",
"Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.",
"check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success."
],
"mcp_calls": "0 — no MCP GitHub calls",
"api_writes": "2 — relay strokes: (1) fleet-write pr_create = POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35509/assignees (os-sales), run 44526416442, body read back identical 6487 bytes; (2) post-stamped report comment POST /repos/objectstack-ai/objectstack/issues/35255/comments. git push not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.",
"carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.",
"carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose."
]
}
{
"issue": 35255,
"status": "done",
"branch": "claude/issue-35255-verify-external-no-writes",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35509",
"session": "session_01L6bhgTyMahdAdhXSzgy2nt",
"premise_still_valid": true,
"summary": "REWORK round for L1-a 7011371936, prose only, new head 15031aee. M1: packages/verify/README.md and the harness.ts header now say verify's own writes never reach an object on an EXTERNAL datasource, and that an object bound to a declared MANAGED datasource (or one declaring no schemaMode) is written through it, as under os dev, matching cli.mdx. Nit: the changeset now attributes the external-block trigger to verify's existing behaviour and only the schemaMode half to the engine's write gate, and states the managed-datasource case. No code or test changed; derive.ts's own comment still groups both halves under the engine's gate (code file, left untouched per the round's no-code instruction). Earlier round: Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.",
"tests": "This round: none re-run (diff 2c3c6e69..15031aee is README.md, harness.ts comment lines, changeset only). Previous round readings stand: Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.",
"gates": "This round at 15031aee, exit codes captured before any pipe: pnpm check:nul-bytes exit 0; pnpm check:published-readme-links exit 0; pnpm check:doc-authoring exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 0; node scripts/check-changeset-no-major.mjs --base origin/main exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main exit 0; pnpm check:issue-citations exit 0; pnpm check:role-word exit 0; pnpm check:closed-ceremony-text exit 0; eslint --no-inline-config packages/verify/src/harness.ts exit 0; control-byte self-scan of the 3 files: no hits. Narrowed per the coordinator's instruction (only the related quick checks); full derived set and CI belong to CI on 15031aee, in_progress at report time. overlap-check VERDICT clean exit 0. Previous round: Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm",
"line_budget": "n/a — the diff touches no skills/** file",
"files_changed": [
".changeset/35255-verify-external-no-writes.md",
"content/docs/deployment/cli.mdx",
"packages/cli/test/fixtures/option-b-collection-zoo.ts",
"packages/cli/test/fixtures/option-b-reader-probe.ts",
"packages/cli/test/option-b-reader-acceptance.pin.test.ts",
"packages/verify/README.md",
"packages/verify/src/artifact-collections.test.ts",
"packages/verify/src/derive.test.ts",
"packages/verify/src/derive.ts",
"packages/verify/src/harness.ts",
"packages/verify/src/verify.external-datasource-no-writes.test.ts"
],
"deviations": [
"File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).",
"Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).",
"PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.",
"Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.",
"packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).",
"Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.",
"check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success.",
"Rework round narrowed local checks to prose/doc/changeset gates by instruction; the full 105-command derivation was not re-run at 15031aee."
],
"mcp_calls": "0 — no MCP GitHub calls",
"api_writes": "3 — previous two strokes (pr_create + assignee leg; report comment 7011226452) plus this round's report comment POST /repos/objectstack-ai/objectstack/issues/35255/comments via post-stamped. git push not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.",
"carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.",
"carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose."
],
"head": "15031aee6c1d3bb5a21a2716f6a8eac01e79d5c8"
}
{
"issue": 35255,
"status": "done",
"branch": "claude/issue-35255-verify-external-no-writes",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35509",
"session": "session_01L6bhgTyMahdAdhXSzgy2nt",
"premise_still_valid": true,
"summary": "Merge round after L1-a ACCEPT 7012204755 at 15031aee: merged origin/main c0484c8f into the branch with git merge (no rebase, no force). The merge is clean and needed no conflict resolution. The merge commit ff7922b6 is the new head and is pushed. No other change; the comment in derive.ts was left for the follow-up card. The PR delta vs origin/main is still exactly the 11 files, +372/-67. Earlier rounds: REWORK round for L1-a 7011371936, prose only, new head 15031aee. M1: packages/verify/README.md and the harness.ts header now say verify's own writes never reach an object on an EXTERNAL datasource, and that an object bound to a declared MANAGED datasource (or one declaring no schemaMode) is written through it, as under os dev, matching cli.mdx. Nit: the changeset now attributes the external-block trigger to verify's existing behaviour and only the schemaMode half to the engine's write gate, and states the managed-datasource case. No code or test changed; derive.ts's own comment still groups both halves under the engine's gate (code file, left untouched per the round's no-code instruction). Earlier round: Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.",
"tests": "Post-merge at ff7922b6 under the verify lock (VERDICT command-exit 0): rebuilt the verify dependency closure, pnpm --filter @objectstack/verify typecheck passed (check:test-typecheck OK, 0 errors), and pnpm --filter @objectstack/verify test gave Test Files 54 passed (54) and Tests 463 passed (463). Earlier rounds: This round: none re-run (diff 2c3c6e69..15031aee is README.md, harness.ts comment lines, changeset only). Previous round readings stand: Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.",
"gates": "Post-merge at ff7922b6: overlap-check VERDICT clean exit 0; verify typecheck and tests as in tests. Per the instruction, no other local gates were run; CI on ff7922b6 was in_progress when this report was written. Earlier rounds: This round at 15031aee, exit codes captured before any pipe: pnpm check:nul-bytes exit 0; pnpm check:published-readme-links exit 0; pnpm check:doc-authoring exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 0; node scripts/check-changeset-no-major.mjs --base origin/main exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main exit 0; pnpm check:issue-citations exit 0; pnpm check:role-word exit 0; pnpm check:closed-ceremony-text exit 0; eslint --no-inline-config packages/verify/src/harness.ts exit 0; control-byte self-scan of the 3 files: no hits. Narrowed per the coordinator's instruction (only the related quick checks); full derived set and CI belong to CI on 15031aee, in_progress at report time. overlap-check VERDICT clean exit 0. Previous round: Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm",
"line_budget": "n/a — the diff touches no skills/** file",
"files_changed": [
".changeset/35255-verify-external-no-writes.md",
"content/docs/deployment/cli.mdx",
"packages/cli/test/fixtures/option-b-collection-zoo.ts",
"packages/cli/test/fixtures/option-b-reader-probe.ts",
"packages/cli/test/option-b-reader-acceptance.pin.test.ts",
"packages/verify/README.md",
"packages/verify/src/artifact-collections.test.ts",
"packages/verify/src/derive.test.ts",
"packages/verify/src/derive.ts",
"packages/verify/src/harness.ts",
"packages/verify/src/verify.external-datasource-no-writes.test.ts"
],
"deviations": [
"File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).",
"Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).",
"PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.",
"Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.",
"packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).",
"Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.",
"check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success.",
"Rework round narrowed local checks to prose/doc/changeset gates by instruction; the full 105-command derivation was not re-run at 15031aee.",
"Merge round: only the verify typecheck and test suite were re-run, as instructed."
],
"mcp_calls": "0 — no MCP GitHub calls",
"api_writes": "4 — the previous three (pr_create stroke; report comments 7011226452 and 7011456201) plus this round's report comment, POST /repos/objectstack-ai/objectstack/issues/35255/comments, through post-stamped. git push not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.",
"carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.",
"carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose."
],
"head": "ff7922b62bfb4d287c3c8e0ff586d169f7014353",
"merge_commit": "ff7922b62bfb4d287c3c8e0ff586d169f7014353"
}
Delivered · 2026-11-19T15:26Z · PR #35509 merged as cf6bb70e, and its Fixes line closed this card. os verify now leaves every object on an external datasource out of its write phases: CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach and dashboard windows. It names each skipped object in the report as external datasource NAME (writes allowed | read-only): not exercised. An object counts as external when it has an external block or sits on a datasource whose declared schemaMode is not managed. The README, the harness header and the os verify docs say what still happens.
State: pm:dispatched and lease:b1-B removed. Still open: an object on a declared managed datasource is still written through it, plus the cascade wording and the derive.ts comment. Both are filed as #35523.
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 kept (seat grade, v2 line accepted). The
os verifyCRUD phase can write test rows into an app's declared writable external datasource. That is wrong data in a rare configuration, and it is not a queue jump. The seat's v2 grade line matches.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Lane:
domain:devxadded beside the seat'sarea:build, so the multi-lane board can route the card until thearea:*switch lands (#35205). The grade is unchanged (p2).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
Claim: PM loop round 3 · area b1-B (lease
lease:b1-B) · 2026-11-19 · p2, dispatched to an os-dev subagent of this area thread (seat release on PR #35463 entering the merge queue)Session:
session_01L6bhgTyMahdAdhXSzgy2ntAccount:
os-salesBranch:
claude/issue-35255-verify-external-no-writesWorktree:
objectstack-issue-35255Domain:
domain:devxSeat:
repo:objectstack#1(area b1-B)File surface:
packages/verify/src/derive.ts(the external-object branch of pass 1) and the verify-report wording that names a skipped case,packages/verify/src/harness.tsheader comment,packages/verify/README.md, the docs page(s) that state whatos verifywrites, their tests, one changeset. Stop on breach.Container & model: S,
mode:subagent,model: default (opus) — dispatch-gates --tier: no path-derived mandate,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
objectstack packages/verify derive.ts:236-244 (read at origin/main 5756ae0d) | none | an app author running os verify on an app that declares a writable external datasource (datasource allowWrites and object writable both true); read from the code, reach at a public door not measuredThread-read: 6992568774
Premise: holds — at
origin/main5756ae0dderive.tsblocks an external object only when it is NOT writable (ds.external.allowWrites === true && obj.external.writable === truelets it into the CRUD phase); the harness header (harness.ts:20) andpackages/verify/README.md:72promise it never touches a real databaseRoute (seat ruling 2026-11-19 06:08Z on the area W0, from the two shapes the card allows): leave external objects out of the write phases and name them as external, not exercised. No new flag or interface.
Pre-claim lane:
packages/verify/**is area b1-B of repo:objectstack#1; docs pages follow the surface they document.Pre-claim deps: none named; no open PR references #35255 (search, 2026-11-19 12:0xZ); overlap-check runs before each push.
Prior rulings read: verify,crud,phase,write,declared,external,datasource → 228 hits; ADR-0062 D2, ADR-0062 D5, ADR-0005 Decision §5, ADR-0036 Decision §3, ADR-0036 Decision §5, ADR-0037 Decision §2, ADR-0038 Decision §7 (ADR-0062 is the external-datasource runtime; none rules on what the verify harness may write); thread: none; repo: objectstack-ai/objectstack
Serial constraints cleared: none (in-flight b1-B PR #35495 touches packages/cli skills files only; #35463 is in the merge queue on packages/cli and one bench script)
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
os-dev-report
{ "issue": 35255, "status": "done", "branch": "claude/issue-35255-verify-external-no-writes", "pr": "https://github.com/objectstack-ai/objectstack/pull/35509", "session": "session_01L6bhgTyMahdAdhXSzgy2nt", "premise_still_valid": true, "summary": "Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.", "tests": "Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.", "gates": "Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm", "line_budget": "n/a — the diff touches no skills/** file", "files_changed": [ ".changeset/35255-verify-external-no-writes.md", "content/docs/deployment/cli.mdx", "packages/cli/test/fixtures/option-b-collection-zoo.ts", "packages/cli/test/fixtures/option-b-reader-probe.ts", "packages/cli/test/option-b-reader-acceptance.pin.test.ts", "packages/verify/README.md", "packages/verify/src/artifact-collections.test.ts", "packages/verify/src/derive.test.ts", "packages/verify/src/derive.ts", "packages/verify/src/harness.ts", "packages/verify/src/verify.external-datasource-no-writes.test.ts" ], "deviations": [ "File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).", "Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).", "PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.", "Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.", "packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).", "Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.", "check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success." ], "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "2 — relay strokes: (1) fleet-write pr_create = POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35509/assignees (os-sales), run 44526416442, body read back identical 6487 bytes; (2) post-stamped report comment POST /repos/objectstack-ai/objectstack/issues/35255/comments. git push not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.", "carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.", "carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose." ] }Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
os-dev-report
{ "issue": 35255, "status": "done", "branch": "claude/issue-35255-verify-external-no-writes", "pr": "https://github.com/objectstack-ai/objectstack/pull/35509", "session": "session_01L6bhgTyMahdAdhXSzgy2nt", "premise_still_valid": true, "summary": "REWORK round for L1-a 7011371936, prose only, new head 15031aee. M1: packages/verify/README.md and the harness.ts header now say verify's own writes never reach an object on an EXTERNAL datasource, and that an object bound to a declared MANAGED datasource (or one declaring no schemaMode) is written through it, as under os dev, matching cli.mdx. Nit: the changeset now attributes the external-block trigger to verify's existing behaviour and only the schemaMode half to the engine's write gate, and states the managed-datasource case. No code or test changed; derive.ts's own comment still groups both halves under the engine's gate (code file, left untouched per the round's no-code instruction). Earlier round: Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.", "tests": "This round: none re-run (diff 2c3c6e69..15031aee is README.md, harness.ts comment lines, changeset only). Previous round readings stand: Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.", "gates": "This round at 15031aee, exit codes captured before any pipe: pnpm check:nul-bytes exit 0; pnpm check:published-readme-links exit 0; pnpm check:doc-authoring exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 0; node scripts/check-changeset-no-major.mjs --base origin/main exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main exit 0; pnpm check:issue-citations exit 0; pnpm check:role-word exit 0; pnpm check:closed-ceremony-text exit 0; eslint --no-inline-config packages/verify/src/harness.ts exit 0; control-byte self-scan of the 3 files: no hits. Narrowed per the coordinator's instruction (only the related quick checks); full derived set and CI belong to CI on 15031aee, in_progress at report time. overlap-check VERDICT clean exit 0. Previous round: Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm", "line_budget": "n/a — the diff touches no skills/** file", "files_changed": [ ".changeset/35255-verify-external-no-writes.md", "content/docs/deployment/cli.mdx", "packages/cli/test/fixtures/option-b-collection-zoo.ts", "packages/cli/test/fixtures/option-b-reader-probe.ts", "packages/cli/test/option-b-reader-acceptance.pin.test.ts", "packages/verify/README.md", "packages/verify/src/artifact-collections.test.ts", "packages/verify/src/derive.test.ts", "packages/verify/src/derive.ts", "packages/verify/src/harness.ts", "packages/verify/src/verify.external-datasource-no-writes.test.ts" ], "deviations": [ "File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).", "Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).", "PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.", "Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.", "packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).", "Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.", "check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success.", "Rework round narrowed local checks to prose/doc/changeset gates by instruction; the full 105-command derivation was not re-run at 15031aee." ], "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "3 — previous two strokes (pr_create + assignee leg; report comment 7011226452) plus this round's report comment POST /repos/objectstack-ai/objectstack/issues/35255/comments via post-stamped. git push not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.", "carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.", "carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose." ], "head": "15031aee6c1d3bb5a21a2716f6a8eac01e79d5c8" }Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
os-dev-report
{ "issue": 35255, "status": "done", "branch": "claude/issue-35255-verify-external-no-writes", "pr": "https://github.com/objectstack-ai/objectstack/pull/35509", "session": "session_01L6bhgTyMahdAdhXSzgy2nt", "premise_still_valid": true, "summary": "Merge round after L1-a ACCEPT 7012204755 at 15031aee: merged origin/main c0484c8f into the branch with git merge (no rebase, no force). The merge is clean and needed no conflict resolution. The merge commit ff7922b6 is the new head and is pushed. No other change; the comment in derive.ts was left for the follow-up card. The PR delta vs origin/main is still exactly the 11 files, +372/-67. Earlier rounds: REWORK round for L1-a 7011371936, prose only, new head 15031aee. M1: packages/verify/README.md and the harness.ts header now say verify's own writes never reach an object on an EXTERNAL datasource, and that an object bound to a declared MANAGED datasource (or one declaring no schemaMode) is written through it, as under os dev, matching cli.mdx. Nit: the changeset now attributes the external-block trigger to verify's existing behaviour and only the schemaMode half to the engine's write gate, and states the managed-datasource case. No code or test changed; derive.ts's own comment still groups both halves under the engine's gate (code file, left untouched per the round's no-code instruction). Earlier round: Premise measured and holds: bootStack wires DatasourceAdminServicePlugin when an app declares datasources, so a declared external datasource is connected, and with the old derive.ts the CRUD, reference-shape, delete-behaviour and unique-scope families sent 10 creates to its driver (ablation run). Ruled shape implemented: deriveCrudCases now blocks every object on an external datasource (an object with an external block, or a datasource whose declared schemaMode is not managed, the engine write gate's own definition), whatever its write gate says; the reason reads external datasource NAME (writes allowed | read-only): not exercised, verify writes only to its ephemeral store, and every write family that builds from the CRUD case (CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach, dashboard windows) leaves it out with that reason. No new flag or interface. harness.ts header (and its quotation at the sign-up site), packages/verify/README.md and the os verify section of content/docs/deployment/cli.mdx now say exactly what happens: own database in-memory, declared datasources connected as under os dev, verify's own writes never reach an external object, the app's own writes (seed, hooks/flows a verify write fires) go where the app sends them, only --flow confines every write. Two cross-package datasource witnesses (verify artifact-collections.test.ts, cli option-B probe row) read the same datasource map through the reason's (writes allowed) instead of through an unblocked case.", "tests": "Post-merge at ff7922b6 under the verify lock (VERDICT command-exit 0): rebuilt the verify dependency closure, pnpm --filter @objectstack/verify typecheck passed (check:test-typecheck OK, 0 errors), and pnpm --filter @objectstack/verify test gave Test Files 54 passed (54) and Tests 463 passed (463). Earlier rounds: This round: none re-run (diff 2c3c6e69..15031aee is README.md, harness.ts comment lines, changeset only). Previous round readings stand: Final head 2c3c6e69. pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2 src/verify.external-datasource-no-writes.test.ts src/derive.test.ts src/artifact-collections.test.ts at 2c3c6e69: Test Files 3 passed (3), Tests 39 passed (39), lock VERDICT command-exit 0. pnpm --filter @objectstack/verify test (whole package) at 20b78906: Test Files 54 passed (54), Tests 463 passed (463), VERDICT command-exit 0; the only later commit (2c3c6e69) edits the new test file alone (field renamed, collection-time import added) and that file was re-run green at 2c3c6e69. pnpm --filter @objectstack/verify typecheck at 2c3c6e69: VERDICT command-exit 0, check:test-typecheck OK 0 errors. pnpm --filter @objectstack/cli exec vitest run test/option-b-reader-acceptance.pin.test.ts (verify dist rebuilt first; grep -c of the new reason phrase in packages/verify/dist/index.js = 2): Tests 9 passed (9), VERDICT command-exit 0. Ablation once, via node scripts/ablation-replace.mjs on packages/verify/src/derive.ts restoring the old let-through for a fully write-opted-in external object (fix committed first at 08b7505c, derive.ts resolved from source by relative import so no dist leg): anchor x1 to x0, blob d29f7503 to 0aa7a191; mutated run Tests 2 failed | 1 passed (3), recording driver received 10 create writes on vxn_remote (expected []), CRUD row vxn_remote read-failed (404) instead of skipped; restore: blob after restore d29f7503 == HEAD, git diff HEAD empty. Expected direction red, observed red.", "gates": "Post-merge at ff7922b6: overlap-check VERDICT clean exit 0; verify typecheck and tests as in tests. Per the instruction, no other local gates were run; CI on ff7922b6 was in_progress when this report was written. Earlier rounds: This round at 15031aee, exit codes captured before any pipe: pnpm check:nul-bytes exit 0; pnpm check:published-readme-links exit 0; pnpm check:doc-authoring exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 0; node scripts/check-changeset-no-major.mjs --base origin/main exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main exit 0; pnpm check:issue-citations exit 0; pnpm check:role-word exit 0; pnpm check:closed-ceremony-text exit 0; eslint --no-inline-config packages/verify/src/harness.ts exit 0; control-byte self-scan of the 3 files: no hits. Narrowed per the coordinator's instruction (only the related quick checks); full derived set and CI belong to CI on 15031aee, in_progress at report time. overlap-check VERDICT clean exit 0. Previous round: Local subset at 2c3c6e69: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands; all 105 run, exit codes captured before any pipe: 104 exit 0, 1 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, positive control commit 621a4876 unreachable from this shallow clone, NOT MEASURED). --ran reconciliation (with exit codes): 105 derived, 104 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. An earlier run of the batch on 08b7505c-era trees found check:error-code-casing (a fixture body key named code) and check:test-source-alias (missing collection-time import of service-automation) red; both fixed in 2c3c6e69 and re-run exit 0 (error-code-casing is no longer derived at 2c3c6e69; its last run on this content exit 0). node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0. CI on PR head 2c3c6e69 (check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success, Check Changeset success, Build Docs success, Spec property liveness success, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by selector; Dogfood Verify CLI and Temporal Conformance skipped (push/schedule only).", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no with no (narrowing) arm", "line_budget": "n/a — the diff touches no skills/** file", "files_changed": [ ".changeset/35255-verify-external-no-writes.md", "content/docs/deployment/cli.mdx", "packages/cli/test/fixtures/option-b-collection-zoo.ts", "packages/cli/test/fixtures/option-b-reader-probe.ts", "packages/cli/test/option-b-reader-acceptance.pin.test.ts", "packages/verify/README.md", "packages/verify/src/artifact-collections.test.ts", "packages/verify/src/derive.test.ts", "packages/verify/src/derive.ts", "packages/verify/src/harness.ts", "packages/verify/src/verify.external-datasource-no-writes.test.ts" ], "deviations": [ "File surface: the claim named derive.ts, the skip wording, harness.ts header, README, docs, their tests and one changeset. Three files outside packages/verify were edited as tests of derive.ts: packages/cli/test/fixtures/option-b-reader-probe.ts (the B2 federated write-gate row used an unblocked write-opted-in external case as its witness and would always read LOST), and comment-only edits in option-b-collection-zoo.ts and option-b-reader-acceptance.pin.test.ts; plus packages/verify/src/artifact-collections.test.ts (same witness). Each now reads the datasource map through the reason's (writes allowed).", "Scope of the predicate: besides an object carrying an external block (the old trigger), an object bound to a datasource whose declared schemaMode is not managed is also treated as external, matching the engine's write gate (externalWriteGateClosure in objectql engine-registration.ts).", "PR body was written once at pr_create (before the final-head runs) and is not PATCHed per os-dev.md; it cites the ablation but not the final-head sha union readings, which live in this report.", "Whole verify package suite last ran at 20b78906, not the final head 2c3c6e69; the final commit only edits the new test file, which was re-run green at 2c3c6e69, and CI Test Core is green on 2c3c6e69.", "packages/cli: only the option-B acceptance pin was run locally (diff is test-fixture only there); cli unit/integration tiers and cli typecheck declared to CI (TypeScript Type Check and Test Core success on 2c3c6e69).", "Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the model-named trailer from the harness reminder.", "check:plugin-teardown-shape --self-test NOT MEASURED locally (shallow clone); CI Lint & Repo Gates success.", "Rework round narrowed local checks to prose/doc/changeset gates by instruction; the full 105-command derivation was not re-run at 15031aee.", "Merge round: only the verify typecheck and test suite were re-run, as instructed." ], "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "4 — the previous three (pr_create stroke; report comments 7011226452 and 7011456201) plus this round's report comment, POST /repos/objectstack-ai/objectstack/issues/35255/comments, through post-stamped. git push not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (PR Acceptance notes): during os verify, a write the APP makes to an object on a writable external datasource (its seed datasets for that object, or an app hook or flow that a verify write fires) still reaches that datasource, as under os dev; read from code (seed loader and engine write gate have no verify gate), reach not measured. The other card shape (confine every write like --flow does) would close it; the seat ruled for this one. Dedupe words: verify seed external datasource, verify hook write external, verify confinement middleware, ephemeral store writes.", "carrier: none · noted, not filed (PR Acceptance notes): an object the app routes to a declared MANAGED secondary datasource is still written by verify through it; if that datasource points at a real database, verify writes there. Read from code (ADR-0062 D2 connects a datasource an object binds to), not measured. Dedupe words: verify managed datasource real database, os verify secondary datasource writes, datasource D2 auto-connect verify.", "carrier: none · noted, not filed (wording only): a managed object that requires a reference to an external object is reported with the generic cascade sentence required relational target X is not synthesizable, which does not say the target was withheld on purpose." ], "head": "ff7922b62bfb4d287c3c8e0ff586d169f7014353", "merge_commit": "ff7922b62bfb4d287c3c8e0ff586d169f7014353" }Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
Delivered · 2026-11-19T15:26Z · PR #35509 merged as
cf6bb70e, and itsFixesline closed this card.os verifynow leaves every object on an external datasource out of its write phases: CRUD, RLS, reference shapes, delete behaviours, unique scopes, parent write reach and dashboard windows. It names each skipped object in the report asexternal datasource NAME (writes allowed | read-only): not exercised. An object counts as external when it has anexternalblock or sits on a datasource whose declaredschemaModeis notmanaged. The README, the harness header and theos verifydocs say what still happens.State:
pm:dispatchedandlease:b1-Bremoved. Still open: an object on a declared managed datasource is still written through it, plus the cascade wording and thederive.tscomment. Both are filed as #35523.