Skip to content

ci: a v18 → v19 source-upgrade gate — a committed 18.6.0 project and database walked through migrate, validate, build, the protocol switch, --stored and boot, plus a helper-built wiring - #39150

Merged
os-zhuang merged 12 commits into
mainfrom
claude/issue-39009-upgrade-source-gate
Dec 3, 2026

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #39009

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:这是一道新的持续集成检查,每次有人改动升级工具、转换条目、存储行转换、校验与构建命令或项目模板时(以及每晚),都会拿一个按 18.6.0 真实用户形状搭好的项目和它的数据库,完整走一遍升级到 19 的流程,并逐项报告结果。
  • 属于 19.0.0 正式版跟踪卡里"重点解决 18 升 19 的升级"这一部分:之前五个升级缺陷都通过了各自的单元测试,只靠人工验收才发现,这道检查把那次人工验收变成每次都自动跑。
  • 这道检查不是必过项,出错只会让它自己变红,不挡任何合并;它等待的最后一张修复卡(迁移工具点名权限集自带的隐藏字段行)已经合入,现在全部检查项都通过,没有预期中的红项,可整体撤回。
  • 本改动涉及工作流目录,且改动行数超过人工审阅线,需要你亲手合并;其余无。

What changes

A new, non-required workflow, Upgrade Source Gate (.github/workflows/upgrade-source-gate.yml), walks the v18 → v19 source upgrade a real 18.x user takes, against this checkout's packed tarballs, with no model key. Its paths: name the upgrade tooling, the conversions and the field axis the walk asserts, each by the step that reads it; the nightly run covers the rest of the platform the walk installs and boots:

  • os migrate meta / apply / protocol, the source writer and the schema migration (packages/cli/**/migrate*, packages/cli/src/utils/authored-source-*, packages/cli/src/utils/schema-migrate.ts);
  • os validate / os build and the protocol-range check (packages/cli/src/commands/{validate,build,compile}.ts, packages/cli/src/utils/protocol-version-gap.ts), and the dry run's own-field-row list T2 reads (packages/cli/src/utils/own-field-row-narrowing.ts);
  • the runtime field axis B5 and B6 exercise (packages/plugins/plugin-security/src/{permission-evaluator,field-masker,security-plugin-authz-middleware}.ts, packages/core/src/security/effective-object-permissions.ts);
  • the ADR-0087 conversion table and the chain that replays it (packages/spec/src/conversions/**, packages/spec/src/**/migrations/**);
  • the stored-row conversion (packages/metadata-protocol/src/stored-migration.ts, packages/metadata-protocol/src/protocol-stored-*);
  • the template (packages/cli/src/commands/init.ts, packages/create-objectstack/**);
  • how the walk installs this checkout (scripts/publish-smoke-pack.mjs, .github/actions/setup-workspace/**);
  • the gate's own files.

It also runs nightly at 04:41 UTC and on workflow_dispatch. It is in no required-checks list.

Everything else lives in packages/qa/upgrade-source/:

Path What
fixture-18.6.0/ An 18.6.0 project shaped like a user's. Scaffolded with npx create-objectstack@18.6.0 crm18 --skip-skills, its metadata written with that install's os generate and then edited. It holds the blank template's objectstack.config.ts with the exportsOf(…) wiring unchanged; crm18_account, and crm18_contact with a master-detail and a lookup to it; list views with list.bulkActions; three actions; crm18_auditor (View All + Modify All on contacts, plus its own crm18_contact.salary row with readable: false, the #38924 shape); crm18_member (a field row hiding account notes); a validation rule, a record-triggered flow, a dataset, a dashboard; and a committed access-matrix.json. os validate and os build are green on 18.6.0. The object files are src/objects/{account,contact,note}.ts, not *.object.ts: two platform-objects sweeps import every *.object.ts under packages/, and os migrate meta never reads a file name.
fixture-db-18.6.0/ The SQLite database the published 18.6.0 CLI wrote for that project, dumped to deterministic SQL text (the 18.0 upgrade-harness fixture's form). Beside it, manifest.json (people, records with their seeded values, the stored view, what 18.6.0 served) and provenance.json (the exact command, versions and sha256s; the run checks them).
generate-fixture-db.mjs The generator behind the database, as the provenance's exact command. It installs the fixture from the npm registry at 18.6.0, runs os start from that install, and populates over HTTP. One step is a Studio-style view save (GET, drop a column, PUT), which stores an overlay row still carrying bulkActions (the #38923 shape).
helper-wiring/ The second wiring: the same sources behind composeStacks([createCrmStack(…)]), the HotCRM shape. It is an overlay laid over a copy of the fixture; its package.json is the fixture's under another name, so the type-check coverage walk reads it as a project of its own.
run.mjs The walk and its 30 assertions, plus --self-test (43 cases in 13 pinned batteries, with the verdict handshake).

scripts/pm/dispatch-gates.self-test.mjs gains one named row in its census of no-check-families declarations: this workflow's, the twelfth.

The walk.

  • P1: database.sql and manifest.json hash to what provenance.json records.
  • Template wiring (T1–T11). Install from tarballs (T1 scans every name in overrides.json, as scaffold-e2e.yml does). Run the dry run: T11 requires both dry runs to exit 0 with a JSON report, and T2 requires its ownFieldRowNarrowing list to name crm18_auditor's crm18_contact.salary row, read-and-edit on 18 → hidden on 19, and the human report to name the same row. T10 pins the dry run's applied set: 12 changes by conversion id and path. Then --write, a re-run, the engines.protocol range in source, os validate, and os build under a drift rule: every access-matrix drift line must be a View All Fields gain the migration made.
  • Data (D1–D4). os migrate apply --yes; os migrate protocol --to 19 --apply --yes (the boot names this switch for an 18 database). D3: --stored exits 1 with clean: false and the view row servedInvalid at list.bulkActions, pending rewrite. D4: --stored --apply --yes rewrites that row.
  • Boot (B1–B8). os start on the migrated database. The three people sign in with their 18 passwords. Every seeded record reads back with every seeded value. The stored view is served valid, with its stored columns. The auditor reads every contact but no salary, while the owner reads every salary. The auditor's salary edit is refused 403 PERMISSION_DENIED (the ruled 19 field axis, Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only viewAllFields bit carries the admin channel (end state, v19) #34365). The member reads no account notes, while the owner reads them all. The validation rule still answers 400 VALIDATION_FAILED.
  • Helper wiring (H1–H6). H1: --write writes, or names with the call that built it, every mechanical change and the range. H2: it exits non-zero exactly when it left one by hand. H3–H5: once the named edits are applied, a re-run reports applied: 0, and validate and build pass. H6 pins the 15-change applied set.

How a red is read. An assertion that waits on a card (waitsOn) counts as an expected red only when two things hold. The red must be the failure that card describes; a step that broke another way, such as a dry run exiting non-zero, flags its red unexpected. And the card must read open on the GitHub API in this run. Anything else prints as UNEXPECTED. A waiting assertion that passes is a STALE entry and keeps the run red until its waitsOn is dropped. Each red prints ::error::, and the step summary is a table of all 30.

Expected red on current origin/main (§C list)

None. T2 runs and passes since #39160 (7f72b4945f): the dry run's ownFieldRowNarrowing names the auditor's own crm18_contact.salary row beside Modify All, protocol18: read-and-edit, protocol19: hidden. No assertion carries a waitsOn. On the merge preview of 3abccf0574, all 30 pass and the job concludes success. A negative control against tarballs packed before #39160 reds T2: the --json report carries no ownFieldRowNarrowing list.

Tests

Acceptance notes

  • Helper-built wiring (ruled A). On composeStacks([createCrmStack(…)]), --write writes 0 of 15 and exits 1. Every site is listed [helper], naming composeStacks(…): the honest refusal cli: os migrate meta --write writes 0 edits on the stock create-objectstack wiring (exportsOf(…)) and on helper-built stacks (HotCRM 0 of 144), while both outputs say "Applied N mechanical change(s)" #38879 delivered. So H1–H6 assert "every change named with its builder, an honest exit, green once the named edits are applied, the set pinned", not "all written".
  • Object file names (ruled A). Explained in the fixture's README. A dot-directory is not an option: check-affected-docs pins that no tracked .ts under packages/** lives in one.
  • D2 (ruled kept). os start refuses an 18 database with no adr-0159-form-type-switch record, and names os migrate protocol --to 19 --apply --yes.
  • The 18.6.0 auth flow seen while generating. After the first sign-up, self-registration is invite-only. The administrator creates users through /auth/admin/create-user, and each must change their password before any read. Sign-ins are rate-limited, so both scripts wait out a 429.
  • Fixed boot values. OS_AUTH_SECRET and OS_SECRET_KEY are published, non-secret values (the key is derived at run time), so any runner can open what 18.6.0 sealed.
  • Size. The diff is 3,124 changed lines (database.sql is 590 of them, run.mjs 947), over the 3,000-line human-merge line. It is one PR on purpose, and Tier H already.

Verification

Files to read first, by risk:

  1. packages/qa/upgrade-source/run.mjs: ASSERTIONS, EXPECTED_APPLIED, verdict() and walk().
  2. .github/workflows/upgrade-source-gate.yml: the paths: list, and the absence from any required list.
  3. packages/qa/upgrade-source/fixture-db-18.6.0/provenance.json, with generate-fixture-db.mjs.

Two-minute check: node packages/qa/upgrade-source/run.mjs --self-test prints ✓ … 43 cases in 13 batteries pass. For the walk, this PR's Upgrade Source Gate run summary shows all 30 assertions PASS and Verdict: GREEN.

Governed surface: .github/workflows/** makes this Tier H, and the maintainer merges it. The workflow does not run named local check families and declares so in its header (dispatch-gates: no-check-families), as scaffold-e2e.yml does. No published package changes, so the PR is labelled skip-changeset.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2

…tabase the published 18.6.0 CLI wrote for it

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Dec 2, 2026
@github-actions github-actions Bot added size/xl ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): packages/qa, crm18, crm18-helper-wiring, touching 101 documentable anchor(s). ⚠️ 21 changed file(s) yielded no anchor (packages/qa/upgrade-source/README.md, packages/qa/upgrade-source/fixture-18.6.0/.gitignore, packages/qa/upgrade-source/fixture-18.6.0/access-matrix.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

65 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 9a13387dedf752ff22cae4d9cfd74856a86c1ddd.

⛔ 13 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 21 changed file(s) yielded no anchor (packages/qa/upgrade-source/README.md, packages/qa/upgrade-source/fixture-18.6.0/.gitignore, packages/qa/upgrade-source/fixture-18.6.0/access-matrix.json, …) — pages documenting those are invisible to this run
  • 5 anchor(s) matched too much of the corpus to be a work list: objectName (symbol, 61 pages), sharingModel (symbol, 50 pages), PERMISSION_DENIED (literal, 56 pages), VALIDATION_FAILED (literal, 52 pages), objectstack.config.ts (literal, 42 pages)
  • 33 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 9a13387dedf752ff22cae4d9cfd74856a86c1ddd → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c3a3cede2c0f9a15ffb1430fcb312dfb78cd74bc — the merge of head 3abccf05748874b7a58231a717c0a721d6d409ca into base 9a13387dedf752ff22cae4d9cfd74856a86c1ddd, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c3a3cede2c0f9a15ffb1430fcb312dfb78cd74bc && git checkout c3a3cede2c0f9a15ffb1430fcb312dfb78cd74bc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9a13387dedf752ff22cae4d9cfd74856a86c1ddd 3abccf05748874b7a58231a717c0a721d6d409ca && git checkout -B drift-repro 9a13387dedf752ff22cae4d9cfd74856a86c1ddd && git merge --no-ff 3abccf05748874b7a58231a717c0a721d6d409ca

node scripts/docs-audit/affected-docs.mjs --json 9a13387dedf752ff22cae4d9cfd74856a86c1ddd

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 9a13387dedf752ff22cae4d9cfd74856a86c1ddd → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…n; --stored is followed by --apply as an operator does, and the expected-red list tracks the fixes that landed

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
…ies the source sweeps skip; register the workflow's no-check-families declaration in the dispatch-gates census

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
…iles drop the .object.ts suffix the platform-objects sweeps import, and the database is regenerated from them

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 3e56994 · 2026-12-02T15:50Z

First record. Face: governed rule text (rules; check-owed-reviews reads it at CONTRACT_REVIEW_TIER). The .github/workflows/upgrade-source-gate.yml governed path makes landing Tier H (a human merge).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3e569944c179afcccd5a67eeeef88c1fbb8f9d19
Local-runs: none
Scope: .github/workflows/upgrade-source-gate.yml + packages/qa/upgrade-source/run.mjs, packages/qa/upgrade-source/generate-fixture-db.mjs, packages/qa/upgrade-source/README.md, packages/qa/upgrade-source/fixture-18.6.0/, packages/qa/upgrade-source/helper-wiring/, packages/qa/upgrade-source/fixture-db-18.6.0/manifest.json, packages/qa/upgrade-source/fixture-db-18.6.0/provenance.json, packages/qa/upgrade-source/fixture-db-18.6.0/database.sql (provenance only), scripts/pm/dispatch-gates.self-test.mjs
Security-touching: yes
Rule-change-verified: none

Read for this record: card #39009 with its three comments (first touch 7330148113, claim 7346932228, dev report 7350928964, the report read as claims); PR #39150's body, its 43-file list and the net diff (five commits on ffda6dab9e); the 55 check-runs on the head (41 success, 13 skipped, 1 failure) with the failing job's log and annotations; contract-review.md, SKILL.md and AGENTS.md. Code outside the diff was read on origin/main (8236b793b1) and on the create-objectstack@18.6.0 tag, never reviewed. record-recognisers.mjs --template --paths over the file list returns one hit, the workflow; scripts/pm/dispatch-gates.self-test.mjs is not a hit and sits after the + as the pin that enforces the workflow's marker.

Findings: M1 (must-fix), S1 to S5 (should-fix), N1 to N4 (nit). Each is stated once, in the section it belongs to.

① Derived judgments

Accept-set and public surface. No published schema, no export, no CLI flag and no accepted metadata value changes. packages/qa/upgrade-source/ has no package.json of its own, and the root pnpm-workspace.yaml globs (packages/qa/*) do not reach the two nested ones (crm18, crm18-helper-wiring, both private), so nothing here is a workspace member or a published package. The only new surfaces are a CI check name (v18 → v19 source upgrade) and one census row.

The workflow's triggers. pull_request with eight path filters, schedule (04:41 UTC) and workflow_dispatch. There is no push and no merge_group trigger. Each input the header claims to guard, against the tree:

Claimed input Filter Holds?
the migrate CLI packages/cli/**/migrate*, packages/cli/**/migrate*/** yes: src/commands/migrate/**, src/utils/migrate-*.ts, test/migrate-*.test.ts
the authored-source writer packages/cli/src/utils/authored-source-* yes: all four modules
"the ADR-0087 conversion entries and the chain that replays them" packages/spec/src/**/migrations/** the chain only: see M1
the template packages/cli/src/commands/init.ts, packages/create-objectstack/** yes (src/templates/blank/** is under the second)
the gate's own files packages/qa/upgrade-source/**, the workflow yes for those two; see S1 for the rest

M1 (must-fix) — the conversion table is not a trigger, so a conversion regression never runs this gate on its own pull request. packages/spec/src/migrations/chain.ts imports ALL_CONVERSIONS from ../conversions/registry.js: every mechanical change os migrate meta --from 18 applies is defined under packages/spec/src/conversions/** (registry.ts, apply.ts, walk.ts, stored.ts, entries/19/*.ts). That includes entries/19/view-bulk-actions-to-action-selection.ts and entries/19/permission-view-all-fields-beside-record-bypass.ts, the two conversions this fixture is built around and the source of the VIEW_ALL_FIELDS id run.mjs reads. No filter matches that directory: packages/spec/src/**/migrations/** reaches chain.ts, spec-changes.ts and the semantic and retired entries, nothing else. The workflow's comment on that filter says it covers the conversion entries, and the card lists "ADR-0087 entries" as a trigger of its own beside the migrations path. Measured on main: #39120 (b706ec6ed2) edited four files under conversions/entries/19/ and matches none of the eight filters. Until the nightly, such a change lands with this check absent; and while T2 waits, the nightly is red either way (S2). Fix: add packages/spec/src/conversions/** and correct the comment.

S1 (should-fix) — four more inputs the walk executes are outside the filters, and the header does not say they are nightly-only.

The census pin (dispatch-gates.self-test.mjs): eleven to twelve in both places, one row .github/workflows/upgrade-source-gate.yml:28 no-check-families. Line 28 of the workflow at this head is the marker, and its reason ends on its own line. Lint · PM dispatch-gates is green on the head. Right as written.

② Semver level

No semver movement. Nothing published changes, so skip-changeset is the right label and Check Changeset reads skipped on the head, as expected.

N1 (nit) — the PR body carries neither declaration line AGENTS.md's Post-Task step 3 asks for. The claim (7346932228) declares both, and the tree agrees with it. The body should read, each at line start:

Clause-②: no
Metadata-protocol: none

No Skills-docs: line is owed, since the kind is none. The body is also stale in three places the report already names: the §C table (four rows; one is true on this head), "25 assertions" (26) and the object file names. The seat writes the body.

③ Boundary flags

Open question 1, helper wiring A or B: A. The card asks for the helper-built stack "for the edits the tool can prove", and A asserts exactly that: every change written or named with the call that built it, the exit code honest, green once the edits are in. B needs a product decision on how far the writer follows helpers, which no card holds; if it is wanted, it is a new card. Two limits of A as implemented, both under S3: H1 is relative to the tool's own applied, and H3 to H5 do not apply what the tool listed. They copy the template leg's written src/ over the helper project, so they test the template leg's output under a second wiring, not the completeness of the helper's list.

Open question 2, object file names: A for this PR. The claim that os migrate meta never reads a file name holds on main: SourceGraph.resolveModule (authored-source-codemod.ts) probes extension suffixes and maps .js to .ts, and never splits a dotted basename. The dotted specifiers survive in the fixture through the view, action, permission, flow, dashboard, dataset and app files. What is lost is three specifiers of the 18.6.0 template itself (./note.object.js became ./note.js in objects/index.ts, views/note.view.ts and apps/main.app.ts). N3 (nit) — file option B as a follow-up (the two platform-objects sweeps exclude this directory beside the templates), because fidelity to what 18.6.0 writes is the fixture's whole value and this is its one departure.

Open question 3, D2 in the walk: A, keep it. content/docs/upgrading.mdx on main documents os migrate protocol --to 19 --apply --yes as a step of the 18 to 19 path, and the fixture database carries no adr-0159-form-type-switch row, so a 19 boot needs it. Its red would be a real regression.

Declared deviations.

  • Worktree made with git worktree add on the assigned branch: process only, nothing in the tree.
  • File surface plus the census row: inside the claimed surface ("any workflow/gate register entry the repo's gates demand").
  • The generator committed beside the database: accepted, and it is what makes the provenance checkable (see ④).
  • Background gate loop and the discarded harness exits: process only.
  • Commit trailers: all five commits carry the model-free pair AGENTS.md requires.
  • Stale PR body: N1.

Out-of-scope finding in the report (the connect-agent-ui navigation contribution logged at ERROR on every boot): not in this diff; the seat routes it.

The red check, judged against SKILL.md's rule on a check red by design. The red on this head is T2 alone: the job log reads 25 PASS and one FAIL, and its only two annotations are upgrade-source T2 (waits on #38924) and the step's exit code 1. Of the rule's three conditions:

  1. The source says so: the workflow header ("NOT a required check ... its first state is red on purpose") and run.mjs's header. Met.
  2. It does not run on merge_group: the workflow has no such trigger. Met.
  3. A PR comment naming the gate and the reason: not met yet. ci: a v18 → v19 source-upgrade gate — a committed 18.6.0 project and database walked through migrate, validate, build, the protocol switch, --stored and boot, plus a helper-built wiring #39150's two comments are the docs-drift bot and the review claim. The gate and reason are stated on the card (7350928964), and the PR body's table is stale. The seat owes that comment before this PR lands.

Non-required, as claimed: yes. REQUIRED_CONTEXTS in scripts/check-required-contexts.mjs does not name the job at this head, that file's rule 6 refuses a required context whose workflow lacks merge_group, and the PR's mergeable_state is unstable, the reading of a failing non-required check. The state of #38924 was not read: it is outside this review's inputs.

Security (why the line reads yes). The workflow itself is clean: top-level permissions: contents: read; no secret read; no pull_request_target; no github.event value interpolated into a run: line (the one unquoted expansion, $FILTERS, is word-split turbo arguments derived from the committed fixture manifest, the shape scaffold-e2e.yml already uses); first-party actions at the major tags the repo uses everywhere (actions/checkout@v7, actions/cache@v6, actions/upload-artifact@v7) and one local composite action. What makes the diff security-touching is the rest: B5 and B6 assert permission behaviour (the ruled field axis the claim cites from #34365, not re-ruled here), and the fixture commits fixed boot secrets, three test passwords in clear, their sys_account rows and five session rows. Those are fixture-only values on .test addresses and protect nothing, as FIXTURE_ENV says.

Rule change (why the line reads none). No hunk changes what an agent may do without the maintainer, the order of work, or what goes to him. The workflow gates neither the merge queue nor a required check. The census row changes no derived command: the marker declares that this workflow yields no check family, so dispatch-gates --commands asks nothing new of a dev. One consequence is worth saying aloud though it is the existing rule applied, not a new one: every later PR that touches these paths carries this red until #38924 lands, and each needs the three conditions above to enter the queue.

SQL push-down. Nothing to flag. The diff adds no query code; the walk reads seven fixture rows over the HTTP API.

Author. The PR's user.login is objectstack-fleet[bot].

④ Design judgment

Does the gate prove what the card asks? In substance, yes, apart from the trigger (M1).

  • The fixture is what 18.6.0 scaffolds. Compared against the create-objectstack@18.6.0 tag: objectstack.config.ts differs only in the identity the scaffolder rewrites (id, namespace, name, description), so the exportsOf(…) wiring is unchanged; pnpm-workspace.yaml, tsconfig.json and the gitignore are identical; package.json differs in its name only. Every item of the card's fixture list is present.
  • The database is 18.6.0's. The hashes of database.sql and manifest.json at this head equal the two in provenance.json (blobs hashed, nothing run). The dump's birth record reads platformVersion: 18.6.0, it holds five sys_migration rows and no adr-0159-form-type-switch row, and one stored view row for crm18_contact carrying bulkActions with the email column dropped. The generator installs from the registry at the fixture's pins and refuses to continue unless the installed cli and spec read 18.6.0.
  • The 26 assertions are the 26 rows of ASSERTIONS (9 T, 4 D, 8 B, 5 H), in the order of the documented upgrade loop.
  • It cannot exit 0 on a partial walk. An assertion never reached is not-run and red, an undeclared id throws, and a walk that throws still reaches the verdict. The self-test has the pinned battery roster, the floor and the verdict handshake AGENTS.md asks for, and its batteries exercise failure arms (a registry leak, a missing pin, unexplained drift, four dishonest helper reports, a waiting red, an unexpected red, a not-run row).

Can an upgrade-path regression pass it? Five attempts.

S2 (should-fix) — the expected-red handling can mask a different failure, three ways.

S3 (should-fix) — the set of mechanical changes is never pinned. T4, T5, T8, T9 and H1 to H3 all measure against the applied list the tool itself reports. A conversion that stops firing on the fixture is caught only when the 19 spec refuses the shape left behind. That holds for bulkActions (T7). It does not hold for the viewAllFields addition: read from the code, not run: T4 passes on eleven of eleven, T8 passes because movesMatrix is false, T9 is left with no drift line to explain, and no boot read is written to observe the difference. The fixture is frozen, so its expected conversion ids and counts are a fixed fact (the report says 12 for the template wiring, 15 for the helper). Pin them. A PASS line prints no detail either, so today's log cannot tell 12 from 11.

S4 (should-fix) — T1 is narrower than the scaffold-e2e.yml reading it cites. scaffold-e2e.yml scans the lockfile for a registry resolution of every name in overrides.json; lockfileResolution scans the fixture's nine declared names only. A transitive @objectstack/* package resolved from the registry at the bumped version (a published prerelease) would go unseen, and the walk would then test published code for exactly the packages in S1. Scan every override name for leaks, as the precedent does.

S5 (should-fix) — four assertions accept more than their titles say.

  • B5 and B7 have no control. They pass if salary or notes is served to nobody at all (a column lost in migration, or a field hidden from the owner too).
  • B3 compares id and name. manifest.json records values for every record, including the master-detail and lookup ids, and the walk never reads them.
  • D3's first arm passes on any non-zero exit, a crash with no JSON included.
    Fix: the owner's read equals the manifest's values, and D3 requires the stored row to be named in both arms.

Attempts that did not break it: a fixture that is not 18.6.0's (matches the tag), a database from another CLI (hashes, birth record and migration rows agree), a self-test with no failure arm (it has them), a walk that exits 0 without finishing (not-run is red).

N2 (nit) — nothing enforces the provenance. "Never hand-edit the outputs" has no reader: no step compares the two committed files to the hashes in provenance.json. A self-test battery could. The generator also proves only the cli and spec versions, not the other seven pins.

N4 (nit) — record() prints the detail on a FAIL only, so the written and by-hand counts never reach a green log.

Implemented-by: claude/issue-39009-upgrade-source-gate
Reviewed-by: session_01QSeKYnrQ7UMtHofKQVjcH2

VERDICT: FAIL

1 similar comment
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3e569944c179afcccd5a67eeeef88c1fbb8f9d19
Local-runs: none
Scope: .github/workflows/upgrade-source-gate.yml + packages/qa/upgrade-source/run.mjs, packages/qa/upgrade-source/generate-fixture-db.mjs, packages/qa/upgrade-source/README.md, packages/qa/upgrade-source/fixture-18.6.0/, packages/qa/upgrade-source/helper-wiring/, packages/qa/upgrade-source/fixture-db-18.6.0/manifest.json, packages/qa/upgrade-source/fixture-db-18.6.0/provenance.json, packages/qa/upgrade-source/fixture-db-18.6.0/database.sql (provenance only), scripts/pm/dispatch-gates.self-test.mjs
Security-touching: yes
Rule-change-verified: none

Read for this record: card #39009 with its three comments (first touch 7330148113, claim 7346932228, dev report 7350928964, the report read as claims); PR #39150's body, its 43-file list and the net diff (five commits on ffda6dab9e); the 55 check-runs on the head (41 success, 13 skipped, 1 failure) with the failing job's log and annotations; contract-review.md, SKILL.md and AGENTS.md. Code outside the diff was read on origin/main (8236b793b1) and on the create-objectstack@18.6.0 tag, never reviewed. record-recognisers.mjs --template --paths over the file list returns one hit, the workflow; scripts/pm/dispatch-gates.self-test.mjs is not a hit and sits after the + as the pin that enforces the workflow's marker.

Findings: M1 (must-fix), S1 to S5 (should-fix), N1 to N4 (nit). Each is stated once, in the section it belongs to.

① Derived judgments

Accept-set and public surface. No published schema, no export, no CLI flag and no accepted metadata value changes. packages/qa/upgrade-source/ has no package.json of its own, and the root pnpm-workspace.yaml globs (packages/qa/*) do not reach the two nested ones (crm18, crm18-helper-wiring, both private), so nothing here is a workspace member or a published package. The only new surfaces are a CI check name (v18 → v19 source upgrade) and one census row.

The workflow's triggers. pull_request with eight path filters, schedule (04:41 UTC) and workflow_dispatch. There is no push and no merge_group trigger. Each input the header claims to guard, against the tree:

Claimed input Filter Holds?
the migrate CLI packages/cli/**/migrate*, packages/cli/**/migrate*/** yes: src/commands/migrate/**, src/utils/migrate-*.ts, test/migrate-*.test.ts
the authored-source writer packages/cli/src/utils/authored-source-* yes: all four modules
"the ADR-0087 conversion entries and the chain that replays them" packages/spec/src/**/migrations/** the chain only: see M1
the template packages/cli/src/commands/init.ts, packages/create-objectstack/** yes (src/templates/blank/** is under the second)
the gate's own files packages/qa/upgrade-source/**, the workflow yes for those two; see S1 for the rest

M1 (must-fix) — the conversion table is not a trigger, so a conversion regression never runs this gate on its own pull request. packages/spec/src/migrations/chain.ts imports ALL_CONVERSIONS from ../conversions/registry.js: every mechanical change os migrate meta --from 18 applies is defined under packages/spec/src/conversions/** (registry.ts, apply.ts, walk.ts, stored.ts, entries/19/*.ts). That includes entries/19/view-bulk-actions-to-action-selection.ts and entries/19/permission-view-all-fields-beside-record-bypass.ts, the two conversions this fixture is built around and the source of the VIEW_ALL_FIELDS id run.mjs reads. No filter matches that directory: packages/spec/src/**/migrations/** reaches chain.ts, spec-changes.ts and the semantic and retired entries, nothing else. The workflow's comment on that filter says it covers the conversion entries, and the card lists "ADR-0087 entries" as a trigger of its own beside the migrations path. Measured on main: #39120 (b706ec6ed2) edited four files under conversions/entries/19/ and matches none of the eight filters. Until the nightly, such a change lands with this check absent; and while T2 waits, the nightly is red either way (S2). Fix: add packages/spec/src/conversions/** and correct the comment.

S1 (should-fix) — four more inputs the walk executes are outside the filters, and the header does not say they are nightly-only.

The census pin (dispatch-gates.self-test.mjs): eleven to twelve in both places, one row .github/workflows/upgrade-source-gate.yml:28 no-check-families. Line 28 of the workflow at this head is the marker, and its reason ends on its own line. Lint · PM dispatch-gates is green on the head. Right as written.

② Semver level

No semver movement. Nothing published changes, so skip-changeset is the right label and Check Changeset reads skipped on the head, as expected.

N1 (nit) — the PR body carries neither declaration line AGENTS.md's Post-Task step 3 asks for. The claim (7346932228) declares both, and the tree agrees with it. The body should read, each at line start:

Clause-②: no
Metadata-protocol: none

No Skills-docs: line is owed, since the kind is none. The body is also stale in three places the report already names: the §C table (four rows; one is true on this head), "25 assertions" (26) and the object file names. The seat writes the body.

③ Boundary flags

Open question 1, helper wiring A or B: A. The card asks for the helper-built stack "for the edits the tool can prove", and A asserts exactly that: every change written or named with the call that built it, the exit code honest, green once the edits are in. B needs a product decision on how far the writer follows helpers, which no card holds; if it is wanted, it is a new card. Two limits of A as implemented, both under S3: H1 is relative to the tool's own applied, and H3 to H5 do not apply what the tool listed. They copy the template leg's written src/ over the helper project, so they test the template leg's output under a second wiring, not the completeness of the helper's list.

Open question 2, object file names: A for this PR. The claim that os migrate meta never reads a file name holds on main: SourceGraph.resolveModule (authored-source-codemod.ts) probes extension suffixes and maps .js to .ts, and never splits a dotted basename. The dotted specifiers survive in the fixture through the view, action, permission, flow, dashboard, dataset and app files. What is lost is three specifiers of the 18.6.0 template itself (./note.object.js became ./note.js in objects/index.ts, views/note.view.ts and apps/main.app.ts). N3 (nit) — file option B as a follow-up (the two platform-objects sweeps exclude this directory beside the templates), because fidelity to what 18.6.0 writes is the fixture's whole value and this is its one departure.

Open question 3, D2 in the walk: A, keep it. content/docs/upgrading.mdx on main documents os migrate protocol --to 19 --apply --yes as a step of the 18 to 19 path, and the fixture database carries no adr-0159-form-type-switch row, so a 19 boot needs it. Its red would be a real regression.

Declared deviations.

  • Worktree made with git worktree add on the assigned branch: process only, nothing in the tree.
  • File surface plus the census row: inside the claimed surface ("any workflow/gate register entry the repo's gates demand").
  • The generator committed beside the database: accepted, and it is what makes the provenance checkable (see ④).
  • Background gate loop and the discarded harness exits: process only.
  • Commit trailers: all five commits carry the model-free pair AGENTS.md requires.
  • Stale PR body: N1.

Out-of-scope finding in the report (the connect-agent-ui navigation contribution logged at ERROR on every boot): not in this diff; the seat routes it.

The red check, judged against SKILL.md's rule on a check red by design. The red on this head is T2 alone: the job log reads 25 PASS and one FAIL, and its only two annotations are upgrade-source T2 (waits on #38924) and the step's exit code 1. Of the rule's three conditions:

  1. The source says so: the workflow header ("NOT a required check ... its first state is red on purpose") and run.mjs's header. Met.
  2. It does not run on merge_group: the workflow has no such trigger. Met.
  3. A PR comment naming the gate and the reason: not met yet. ci: a v18 → v19 source-upgrade gate — a committed 18.6.0 project and database walked through migrate, validate, build, the protocol switch, --stored and boot, plus a helper-built wiring #39150's two comments are the docs-drift bot and the review claim. The gate and reason are stated on the card (7350928964), and the PR body's table is stale. The seat owes that comment before this PR lands.

Non-required, as claimed: yes. REQUIRED_CONTEXTS in scripts/check-required-contexts.mjs does not name the job at this head, that file's rule 6 refuses a required context whose workflow lacks merge_group, and the PR's mergeable_state is unstable, the reading of a failing non-required check. The state of #38924 was not read: it is outside this review's inputs.

Security (why the line reads yes). The workflow itself is clean: top-level permissions: contents: read; no secret read; no pull_request_target; no github.event value interpolated into a run: line (the one unquoted expansion, $FILTERS, is word-split turbo arguments derived from the committed fixture manifest, the shape scaffold-e2e.yml already uses); first-party actions at the major tags the repo uses everywhere (actions/checkout@v7, actions/cache@v6, actions/upload-artifact@v7) and one local composite action. What makes the diff security-touching is the rest: B5 and B6 assert permission behaviour (the ruled field axis the claim cites from #34365, not re-ruled here), and the fixture commits fixed boot secrets, three test passwords in clear, their sys_account rows and five session rows. Those are fixture-only values on .test addresses and protect nothing, as FIXTURE_ENV says.

Rule change (why the line reads none). No hunk changes what an agent may do without the maintainer, the order of work, or what goes to him. The workflow gates neither the merge queue nor a required check. The census row changes no derived command: the marker declares that this workflow yields no check family, so dispatch-gates --commands asks nothing new of a dev. One consequence is worth saying aloud though it is the existing rule applied, not a new one: every later PR that touches these paths carries this red until #38924 lands, and each needs the three conditions above to enter the queue.

SQL push-down. Nothing to flag. The diff adds no query code; the walk reads seven fixture rows over the HTTP API.

Author. The PR's user.login is objectstack-fleet[bot].

④ Design judgment

Does the gate prove what the card asks? In substance, yes, apart from the trigger (M1).

  • The fixture is what 18.6.0 scaffolds. Compared against the create-objectstack@18.6.0 tag: objectstack.config.ts differs only in the identity the scaffolder rewrites (id, namespace, name, description), so the exportsOf(…) wiring is unchanged; pnpm-workspace.yaml, tsconfig.json and the gitignore are identical; package.json differs in its name only. Every item of the card's fixture list is present.
  • The database is 18.6.0's. The hashes of database.sql and manifest.json at this head equal the two in provenance.json (blobs hashed, nothing run). The dump's birth record reads platformVersion: 18.6.0, it holds five sys_migration rows and no adr-0159-form-type-switch row, and one stored view row for crm18_contact carrying bulkActions with the email column dropped. The generator installs from the registry at the fixture's pins and refuses to continue unless the installed cli and spec read 18.6.0.
  • The 26 assertions are the 26 rows of ASSERTIONS (9 T, 4 D, 8 B, 5 H), in the order of the documented upgrade loop.
  • It cannot exit 0 on a partial walk. An assertion never reached is not-run and red, an undeclared id throws, and a walk that throws still reaches the verdict. The self-test has the pinned battery roster, the floor and the verdict handshake AGENTS.md asks for, and its batteries exercise failure arms (a registry leak, a missing pin, unexplained drift, four dishonest helper reports, a waiting red, an unexpected red, a not-run row).

Can an upgrade-path regression pass it? Five attempts.

S2 (should-fix) — the expected-red handling can mask a different failure, three ways.

S3 (should-fix) — the set of mechanical changes is never pinned. T4, T5, T8, T9 and H1 to H3 all measure against the applied list the tool itself reports. A conversion that stops firing on the fixture is caught only when the 19 spec refuses the shape left behind. That holds for bulkActions (T7). It does not hold for the viewAllFields addition: read from the code, not run: T4 passes on eleven of eleven, T8 passes because movesMatrix is false, T9 is left with no drift line to explain, and no boot read is written to observe the difference. The fixture is frozen, so its expected conversion ids and counts are a fixed fact (the report says 12 for the template wiring, 15 for the helper). Pin them. A PASS line prints no detail either, so today's log cannot tell 12 from 11.

S4 (should-fix) — T1 is narrower than the scaffold-e2e.yml reading it cites. scaffold-e2e.yml scans the lockfile for a registry resolution of every name in overrides.json; lockfileResolution scans the fixture's nine declared names only. A transitive @objectstack/* package resolved from the registry at the bumped version (a published prerelease) would go unseen, and the walk would then test published code for exactly the packages in S1. Scan every override name for leaks, as the precedent does.

S5 (should-fix) — four assertions accept more than their titles say.

  • B5 and B7 have no control. They pass if salary or notes is served to nobody at all (a column lost in migration, or a field hidden from the owner too).
  • B3 compares id and name. manifest.json records values for every record, including the master-detail and lookup ids, and the walk never reads them.
  • D3's first arm passes on any non-zero exit, a crash with no JSON included.
    Fix: the owner's read equals the manifest's values, and D3 requires the stored row to be named in both arms.

Attempts that did not break it: a fixture that is not 18.6.0's (matches the tag), a database from another CLI (hashes, birth record and migration rows agree), a self-test with no failure arm (it has them), a walk that exits 0 without finishing (not-run is red).

N2 (nit) — nothing enforces the provenance. "Never hand-edit the outputs" has no reader: no step compares the two committed files to the hashes in provenance.json. A self-test battery could. The generator also proves only the cli and spec versions, not the other seven pins.

N4 (nit) — record() prints the detail on a FAIL only, so the written and by-hand counts never reach a green log.

Implemented-by: claude/issue-39009-upgrade-source-gate
Reviewed-by: session_01QSeKYnrQ7UMtHofKQVjcH2

VERDICT: FAIL

…, an expected red is excused only as its own failure on an open card, the applied sets are pinned, T1 scans all of overrides.json, and the reads carry controls

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
claude and others added 2 commits December 2, 2026 16:44
…), and the generator refuses unless every fixture pin installed at 18.6.0

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 1f1ba22 · 2026-12-02T19:20Z

Delta record after FAIL 7351475798. The same reviewer reads it at CONTRACT_REVIEW_TIER (face: governed rule text), over the fix round (dev report 7354429576) and the platform base sync 1f1ba22934.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1f1ba229340c78e31cac83a7e0a571c0b97bffbd
Local-runs: none
Scope: .github/workflows/upgrade-source-gate.yml + packages/qa/upgrade-source/run.mjs, packages/qa/upgrade-source/generate-fixture-db.mjs (the three files of the delta; the fixture, the database, the helper wiring, the README and scripts/pm/dispatch-gates.self-test.mjs are byte-identical to the head record 7351475798 read)
Security-touching: yes
Rule-change-verified: none

DELTA review after record 7351475798 (FAIL at 3e569944c179afcccd5a67eeeef88c1fbb8f9d19: M1, S1 to S5, N1 to N4), by the same reviewer · 2026-12-02T19:31Z

Read for this record: the delta 3e569944c1..1f1ba22934 net of main (two dev commits, 252825fcc6 and e46ff2971a, three files, +287 / -52, and the base-sync merge); the dev's fix report 7354429576 on #39009, read as claims; the PR body as it stands; the check-runs on this head with the walk's log and annotations. Nothing was checked out, built or run.

The merge 1f1ba22934 adds nothing of its own. Its parents are e46ff2971a and main at b98173cea8. Every one of the PR's 43 files is identical between e46ff2971a and the merge, and no file outside those 43 differs between main and the merge. The net diff against main is the dev's: 43 files, +3109 / -2.

Result: M1 closed, S1 to S5 closed, N1, N2 and N4 closed, N3 with the seat. Two new nits, N5 and N6. No must-fix, no should-fix.

① Derived judgments

  • M1: closed. paths: now carries packages/spec/src/conversions/**, and the comment above it names the conversion table and the chain as two separate inputs. The false claim that the migrations glob covers the entries is gone. Checked against the case that proved the gap: the four conversions/entries/19/* files fix(metadata-core): the artifact door replays the form move, so pre-19 package artifacts read again (#39101) #39120 edited now match.
  • S1: closed. All four groups are filters now: packages/metadata-protocol/src/stored-migration.ts and protocol-stored-*; packages/cli/src/commands/{validate,build,compile}.ts and packages/cli/src/utils/protocol-version-gap.ts; packages/cli/src/utils/schema-migrate.ts; scripts/publish-smoke-pack.mjs and .github/actions/setup-workspace/**. Each group's comment names the step that reads it.
  • The census pin holds. The workflow grew only below line 28, the marker is still on line 28, the self-test diff is unchanged, and Lint · PM dispatch-gates is green on this head.
  • Accept-set and public surface: unchanged from 7351475798, none. The assertion roster went from 26 to 30 (P1, T10, T11, H6).

② Semver level

No semver movement; skip-changeset stands and Check Changeset reads skipped.

N1: closed. The PR body now carries Clause-②: no and Metadata-protocol: none at line start (lines 3 and 4), the one-row expected-red table, the 30-assertion count and the size note.

③ Boundary flags

The seat's rulings (helper A, file names A, D2 kept) are what the tree does. H6 now pins what the helper's list must hold, which answers the first of the two limits 7351475798 noted under ruling A. The second stands as accepted: H3 to H5 still apply the template leg's written sources, not the helper's own list.

N3 (a follow-up card for option B on the object file names): with the seat, as ruled.

The dev's two new open questions. The PR body is the seat's to write, and it has been written. The Validate Package Dependencies flake is gone on this head: the check reads success.

The red check, against SKILL.md's rule on a check red by design. On this head the walk reads 29 PASS and one FAIL, T2, with card #38924: open printed by the run itself; its two annotations are T2's and the step's exit code.

  1. The source says so (workflow header, run.mjs header). Met.
  2. No merge_group trigger. Met.
  3. A PR comment naming the gate and the reason. Record 7351475798 named both on the earlier head; this record does so for this one, once posted.

It is still in no required list, and nothing in the delta moves it toward one.

Landing order with #39160. The fix for #38924 is now open as #39160. Whichever of the two PRs lands second has to drop T2's waitsOn in run.mjs, because a waiting assertion that passes now keeps the run red. That is the tripwire S2 asked for, working as meant; the seat sequences it.

Size. 3,111 changed lines, over the 3,000 human-merge line, and Tier H by the workflow path in any case. The growth is inside the card: all 235 added lines are in three files of the claimed surface, they are the fixes this review asked for, and no file was added. database.sql is 590 of the total and generated.

Security (the line stays yes). One new element: the walk step now receives GITHUB_TOKEN. The workflow's permissions are still contents: read alone, the repository is public, and the token is used for one GET of an issue's state. See N6.

Rule change (the line stays none). The delta changes how the gate reads its own expected red. It gives no agent a new permission, order of work or escalation.

SQL push-down. Nothing to flag; no query code in the delta.

④ Design judgment

  • S2: closed. The three masks are answered as follows.
    • A dry run that breaks is its own red: T11, with no waitsOn, requires both dry runs to exit 0 and the JSON run to print JSON. When it fails, T2 is recorded with unexpected: true and a measured detail, not the constant sentence.
    • A waiting assertion that passes is a STALE entry and the verdict stays red until its waitsOn is dropped.
    • A red counts as waiting only while its card reads open on the GitHub API in that run; closed or unreadable makes it UNEXPECTED.
      The self-test pins each arm: eight verdict cases, among them stale-is-red, closed, unreadable and flagged-on-an-open-card. T2's own predicate is tighter too: one JSON entry or one human line must carry both the auditor set and salary. The third point of S2 (the check concludes failure either way while anything waits) is the card's design and is unchanged, as 7351475798 said.
  • So, can this T2 red hide a different T2 failure? No. With both dry runs clean and the card open, the only way T2 fails is that no entry names the auditor set's salary row, which is what cli: os migrate meta --from 18 says adding viewAllFields: true keeps a permission set's field reads, but a set with Modify All and its own row hiding a field still loses that field (read and edit) on 19 — the tool should name such entries #38924 describes. Every other way to fail is routed to UNEXPECTED or STALE. One reading surface lags behind: N5.
  • S3: closed. EXPECTED_APPLIED pins both sets by conversion id and path, compared as multisets: 12 for the template (T10, on the dry run) and 15 for the helper (H6). The run on this head prints 12 applied = the pinned 12 and 15 applied = the pinned 15. The pin was measured from the tool on the earlier head, which is the right source for a frozen fixture; a PR that adds a protocol-19 conversion firing on this fixture will now red T10 on its own run, because of M1, and must move the pin.
  • S4: closed. lockfileResolution scans every name in overrides.json for a registry leak and keeps the declared names for the pinned check, as scaffold-e2e.yml does. The run prints 66 resolved from tarballs, 0 from the registry, over 114 names. A new self-test case covers an undeclared name that leaks.
  • S5: closed. B3 compares every seeded value (7 records, 32 values, the master-detail and lookup ids among them). B5 and B7 carry the owner as a control (salary on 4 of 4, notes on 3 of 3). D3 requires exit 1, clean: false, and the view row pending with servedInvalid at list.bulkActions; a crash no longer passes.
  • N2: closed. P1 compares database.sql and manifest.json to the hashes in provenance.json on every walk, with a two-case battery. The generator now refuses unless all nine fixture pins installed at 18.6.0. It was not re-run and did not need to be: the database, manifest and provenance are unchanged.
  • N4: closed. A PASS prints the first line of its detail, with the counts. See N5 for one line that reads wrongly because of it.
  • The self-test went from 30 cases in 10 batteries to 43 in 13, with the floor moved to 13 and the handshake intact.

New in the delta.

N5 (nit) — two reading surfaces still say less than the verdict does.

  • The ::error annotation title is built from a.waitsOn alone, at record time. A T2 red flagged unexpected, or one whose card later reads closed, is still annotated upgrade-source T2 (waits on #38924). The summary and the log line are right; the annotation is the surface a seat reads first.
  • T8's PASS line prints its failure sentence ("... neither the dry run nor --write names os build --update-access-matrix"), because its detail is a constant written for the red case. T7, H4, D1 and D2 print a log tail as their PASS line.
    Neither changes a verdict.

N6 (nit) — GITHUB_TOKEN reaches every child process. sh() and the server spawn pass the whole process.env, so pnpm install's build scripts, the os CLI and the booted app inherit the token. It is a contents: read token on a public repository, so it grants nothing an anonymous caller lacks; reading the card states before the walk and dropping the variable from the children's environment would keep it that way if the permissions ever widen.

Check-runs on this head, as read at 2026-12-02T19:29Z: 39 success, 16 skipped, 1 failure (the walk, T2 as declared) and 2 still running (Test Core (2/12) and the Test UI aggregate). On e46ff2971a, the same tree for every PR file, the completed set read 40 success, 13 skipped and two failures: the walk, and the Validate Package Dependencies flake that is green here. The seat reads the two running checks before it asks for approval; this verdict is on the diff.

Implemented-by: claude/issue-39009-upgrade-source-gate
Reviewed-by: session_01QSeKYnrQ7UMtHofKQVjcH2

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Seat status · 2026-12-02T19:40Z · head 1f1ba229340c78e31cac83a7e0a571c0b97bffbd

The red v18 → v19 source upgrade check is red by design. Its walk reads 29 PASS and 1 FAIL: T2. T2 asserts that os migrate meta --from 18 names the fixture's own salary field row beside Modify All. That naming is #38924's deliverable (PR #39160, open). The run itself reads card #38924: open and marks T2 as waiting on it. The check is not required. The contract review's delta record 7356327508 (PASS, CONTRACT_REVIEW_TIER, same head) confirms that no other T2 failure can hide behind this red. A dry-run crash goes red separately as T11, and a closed or unreadable card counts as UNEXPECTED. Every other check at this head is green: 42 success, 16 expected skip.

Landing plan (Tier H: governed .github/workflows/**, and 3,111 lines).

  1. PR fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows #39160 (cli: os migrate meta --from 18 says adding viewAllFields: true keeps a permission set's field reads, but a set with Modify All and its own row hiding a field still loses that field (read and edit) on 19 — the tool should name such entries #38924) lands first. Its own contract review is in progress.
  2. This PR then gets one more commit, which removes T2's waitsOn in packages/qa/upgrade-source/run.mjs. Without it, the walk would read STALE and keep the gate red. With it, T2 is a plain assertion, green on main.
  3. That head gets a delta contract review, then the seat's ACCEPT and the hand-off to the governed approvers.

So main never carries a red gate, and the maintainer approves once, on the final head. Until then this PR stays a draft. No seat readies, enqueues or arms it.

…or's own salary row, so T2 runs and must pass

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
… for the auditor's salary row, read-and-edit on 18 → hidden on 19

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 98a45d6 · 2026-12-02T22:21Z

Delta record after PASS 7356327508 (head 1f1ba22934). The same reviewer reads it, at the same tier, over the merge of main after #39160 and T2's live assertion (dev report 7360321920 on #39009).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 98a45d6331e58adf48657ff0b7b71027d1c68f81
Local-runs: probe — the question was whether T2 reds when #39160's naming regresses, so T2's three-line predicate, copied from run.mjs at this head, was run with node over this head's own CI artifact (the --json dry-run log) and nine mutants of it; nothing was checked out, built or re-run, and the merge was checked with git merge-tree --write-tree, which writes no working tree
Scope: .github/workflows/upgrade-source-gate.yml + packages/qa/upgrade-source/run.mjs (the one file the delta changes; every other PR file is byte-identical to the head record 7356327508 read)
Security-touching: yes
Rule-change-verified: none

DELTA review after record 7356327508 (PASS at 1f1ba229340c78e31cac83a7e0a571c0b97bffbd), by the same reviewer · 2026-12-02T22:27Z

Read for this record: the delta 1f1ba22934..98a45d6331 (the merge 26b1c3efd3 and two dev commits, c7c57af005 and 98a45d6331); #39160's merged code on this head (packages/spec/src/conversions/own-field-rows-beside-modify-all.ts, packages/cli/src/utils/own-field-row-narrowing.ts and its ten lines in meta.ts), read, not reviewed; the dev report 7360321920 on #39009 with its ready PR body, read as claims; the 55 check-runs on this head, the walk's log and its artifact.

Result: PASS. No must-fix. One new should-fix, S6, to close before landing; two new nits, N7 and N8; N5 and N6 from 7356327508 stand.

① Derived judgments

  • The merge is clean and carries nothing of its own. 26b1c3efd3 has parents 1f1ba22934 and main at 7f72b4945f (fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows #39160). git merge-tree --write-tree over those two parents gives tree 425280a5d2, which is the commit's tree: no hand resolution. None of the PR's 43 files differs between the first parent and the merge, and no file outside them differs between 7f72b4945f and the merge.
  • The dev's own delta is one file. run.mjs, +11 / -10: T2's waitsOn: 38924 is gone, T2's title and predicate are rewritten, and one comment is reworded. The workflow, the fixture, the database, the generator, the README and the census row are untouched.
  • Net diff against main: 43 files, +3110 / -2. It still merges cleanly with main as it stands now (9a13387ded, four commits past the merge base).
  • Accept-set and public surface: none, as before.
  • The trigger list is unchanged, and it no longer covers what T2 asserts: S6, below.

S6 (should-fix) — the module T2 now asserts is not a trigger. #39160 put the walk over the source stack, and the printed block, in a new file, packages/cli/src/utils/own-field-row-narrowing.ts; meta.ts only calls it. Its basename does not start with migrate and it is not authored-source-*, so none of the workflow's filters matches it. The predicate it calls is covered (packages/spec/src/conversions/own-field-rows-beside-modify-all.ts, under conversions/**), and so is meta.ts. A PR that edits this one file, say to change what ownFieldRowNarrowingSites returns, runs without the gate, against the workflow's own sentence: "A step's code missing here lets a PR change what the walk asserts without the walk running on it." This is S1's class, arrived with the merge. Fix: add the file. The list names packages/cli/src/utils modules one by one, so the next helper meta.ts imports will fall outside it the same way; packages/cli/src/** would end that, at the price of running the walk on every CLI change. (packages/metadata-protocol/src/stored-own-field-rows.ts, the --stored side of #39160, is outside the list too, but nothing in the walk asserts it: the fixture database stores no permission set.)

② Semver level

No semver movement. skip-changeset stands; Check Changeset reads skipped. The body's two declaration lines stay Clause-②: no and Metadata-protocol: none, and the ready text keeps them.

③ Boundary flags

Nothing waits by design any more. No row of ASSERTIONS carries a waitsOn. The walk on this head reads 30 of 30 PASS and Verdict: GREEN.; the job concludes success with no annotation. SKILL.md's rule on a check red by design has nothing to apply to on this PR. The check-runs, as read at 2026-12-02T22:23Z: 42 success, 13 skipped, none failed, none running.

The waiting machinery is kept, and none of it is dead. verdict(), readCardStates(), the STALE arm and the unexpected flag are still reached by the eight self-test verdict cases, and they are what the next waiting assertion will use. With an empty list readCardStates() makes no request. The { unexpected: true } T2 records when the dry run breaks no longer changes the verdict (a red with no card is unexpected either way); it is harmless and its comment was updated.

Declared deviations. origin/main was merged into the branch on the seat's order, outside the three cases AGENTS.md allows by default; the seat owns that order, and the merge is verified clean above. The PR body is again delivered as ready text for the seat. One figure in the report is off and is not in the body: this round's change to run.mjs is 11 lines added and 10 removed, not 9 lines.

Out-of-scope note in the report (#39176, the list's "protocol 18" answer is 18.6.0's): not built here, as the report says. T2 pins protocol18: read-and-edit, which is what the fixture's 18.6.0 served (observedOn18.auditorReadsSalary: true in the manifest), so the pin and the fixture agree today. If #39176 changes that word, T2 reds on that PR's own run and moves with it.

Size. 3,112 changed lines (+3110 / -2), one more than at the last record. Tier H by the workflow path.

Security (the line stays yes) and rule change (the line stays none): the delta touches neither. N6 from 7356327508 stands, and is a little stronger: the walk step still receives GITHUB_TOKEN, which now has no reader at all.

SQL push-down. Nothing to flag; no query code in the delta.

④ Design judgment

Is T2 asserting the right row and outcome? Yes. #39160 emits ownFieldRowNarrowing in the --json report as a list of { set, at, object, field, protocol18, protocol19, choice }, where field is the row's key as written (OBJECT.FIELD). The fixture's auditor set holds modifyAllRecords: true on crm18_contact with no viewAllFields, and its own row 'crm18_contact.salary': { readable: false, editable: false }; narrowedOutcome answers hidden for readable: false, and the 18 outcome is the type's single value, read-and-edit. T2 looks up set === 'crm18_auditor' and field === 'crm18_contact.salary' and requires exactly those two outcomes. The run on this head prints the entry: protocol18 read-and-edit, protocol19 hidden (1 entry). This also agrees with what the boot asserts later: B5 (the auditor reads no salary) and B6 (the edit is refused) are the hidden outcome, observed.

Would it red if #39160's naming regressed? On the JSON report, yes; on the human report, no. The probe ran T2's predicate over the real report and nine mutants:

Mutant T2
the real report PASS
the key dropped from the report red
the list empty red
the set name lost red
the field reported bare (salary) red
the 19 outcome read as read-only red
the 18 outcome missing red
object wrong (crm18_account) PASS
choice emptied PASS
at lost PASS

The first two red arms are the pre-#39160 state (the report omits the key when the list is empty), which is the dev's negative control, here reproduced on the predicate alone.

N8 (nit) — T2 reads the --json report only. Its title says so, and it is stricter than the form 7356327508 passed, which accepted either channel. What it leaves unread: the human dry run, which the walk already captures and which is what a person at a terminal sees (this head prints permission set 'crm18_auditor' (permissions[0]), objects entry 'crm18_contact', field row 'crm18_contact.salary' with the two outcomes), and three members of the JSON entry (object, at, choice). A regression that drops the printed block alone stays green here and is left to #39160's unit test. One more conjunct over dryHuman.stdout and entry.object would close it.

Did T2's removal leave anything stale? Two sentences, no dead code.

N7 (nit) — two comments still say the job is red on purpose, which is false at this head.

  • The workflow header, lines 20 to 23: "It lands while fixes it asserts are still open, so its first state is red on purpose".
  • run.mjs, line 46: "It still reds the run — the job's first state is red on purpose".
    The README says nothing about an expected red and needs no change. Neither sentence changes behaviour, and a red on this job would still print as UNEXPECTED with no card to name. But the header is the source statement SKILL.md's rule reads first, so it should say what is true: the job lands green, and a waitsOn is the declared exception when one exists. The natural place is the edit that makes the job required, which the card schedules before GA and which has no open fix left to wait for.

N5 and N6 (7356327508) are unchanged. N5's annotation half is latent while no assertion waits; T8's PASS line still prints its failure sentence.

The ready PR body in 7360321920, sentence by sentence against this head: true but for one sentence, and with one claim this review cannot see for itself.

  • The 速读 lines: true. Nothing is expected red, the last waited fix has merged, and the maintainer merges (workflow path, and over the size line).
  • "What changes": the paths: list matches the workflow. Its lead sentence, "Its paths: cover every input the walk runs through", is not true at this head: S6. It becomes true when S6 is fixed, with own-field-row-narrowing.ts added to the first bullet. "In no required-checks list" holds (check-required-contexts.mjs does not name the job); 30 assertions and 43 cases in 13 batteries match the run.
  • "The walk": T2's sentence matches the predicate; the rest is unchanged and was true at 7356327508.
  • "How a red is read": still describes code that exists, and reads correctly as the rule for a future waiting assertion.
  • The expected-red section: "None", no waitsOn, 30 pass and success on this head: all true. Its last sentence, the negative control against tarballs packed before fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows #39160, is a dev-local run that no check-run shows. It is consistent with the code (the quoted words are the predicate's own message for a missing list) and with the probe above, and it is the dev's claim, not this record's measurement.
  • "Size": 3,112 lines, database.sql 590, run.mjs 943: all three correct.
  • "Acceptance notes" and "Verification": true; the two-minute check now names 30 PASS and Verdict: GREEN., which is what the run summary shows.
    Beyond S6, the body and the tree disagree in one place only, and the tree is the stale side: N7. Since S6 touches the workflow, the same commit can correct the header.

Implemented-by: claude/issue-39009-upgrade-source-gate
Reviewed-by: session_01QSeKYnrQ7UMtHofKQVjcH2

VERDICT: PASS

… field axis, the comments stop calling the red intentional, and T2 also pins the human report's row

Claude-Session: https://claude.ai/code/session_01QSeKYnQLxmc8FwPpCabvUr
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 3abccf0 · 2026-12-02T22:53Z

Delta record at CONTRACT_REVIEW_TIER, by the same isolated reviewer that wrote 7360724100, over round 3 (report 7361274822 on #39009, 98a45d6331..3abccf0574: S6, N7, N8).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3abccf05748874b7a58231a717c0a721d6d409ca
Local-runs: probe — the question was whether T2's new human-report conjunct reds when the report omits the row, so T2's seven-line predicate, copied from run.mjs at this head, was run with node over this head's own CI artifact (the --json and the human dry-run logs of run 46985725333) and eighteen mutants of them; nothing was checked out, built or re-run
Scope: .github/workflows/upgrade-source-gate.yml + packages/qa/upgrade-source/run.mjs (the two files the delta changes; every other PR file is byte-identical to the head record 7360724100 read)
Security-touching: yes
Rule-change-verified: none

DELTA review after record 7360724100 (PASS at 98a45d6331e58adf48657ff0b7b71027d1c68f81, with S6 open), by the same reviewer · 2026-12-02T23:03Z

Read for this record: the delta 98a45d6331..3abccf0574 (one commit, parent 98a45d6331, trailers in form); the workflow and run.mjs whole at this head; the imports of the six CLI commands the walk runs (migrate/meta.ts, migrate/apply.ts, migrate/protocol.ts, validate.ts, build.ts, compile.ts) and of stored-migration.ts, read for the trigger question, not reviewed; the dev report 7361274822 on #39009, read as claims; the PR body as patched by the seat; the 59 check-runs on this head, the walk's log and its artifact.

Result: PASS. No must-fix, no should-fix. S6 is closed as filed, N7 is closed, N8 is closed on the human channel. Two new nits, N9 and N10, both prose; N5 and N6 stand.

① Derived judgments

  • The delta is one commit over two files. Workflow +16 / -4, run.mjs +20 / -12. No merge of main this round; the merge base is still 7f72b4945f. The head still merges cleanly with main as it stands now (53ca7319a1, checked with git merge-tree --write-tree).
  • Net diff against the merge base: 43 files, +3122 / -2, 3,124 changed lines. database.sql is 590 of them and run.mjs 947.
  • Accept-set and public surface: none, as before.
  • S6 is closed as filed. The five new paths: entries are exact file paths with no glob in them, and each exists at this head:
  • Every trigger the card names is covered. ci: a v18 → v19 source-upgrade gate — a committed 18.6.0-shaped project (template exportsOf wiring) goes through migrate meta --from 18 --write, validate, build, boot and --stored on every PR touching the upgrade path, no LLM needed #39009 asks for packages/cli/**/migrate*, packages/spec/src/**/migrations/**, the template and the ADR-0087 entries, plus the nightly run. All four are in the list, and the schedule leg is unchanged.
  • The dispatch-gates census still matches. The header is four lines replaced by four, so the marker is still line 28 of the workflow; the self-test's named row .github/workflows/upgrade-source-gate.yml:28 no-check-families is untouched and is the twelfth; seven workflows carry the marker at this head. Lint · PM dispatch-gates reads success on this head.

Does every input the walk runs through now sit under paths:? No, and no list of files can make that true. The walk installs the whole packed workspace, runs six CLI commands and boots the app. What it runs through and the list does not name, by step:

Step Outside the list
T9, H5 packages/lint/src/build-access-matrix.ts. diffAccessMatrix writes the drift line ('SET' gains View All Fields on 'OBJECT') that explainDrift matches by regular expression.
B1, and the refusal D2 answers packages/cli/src/commands/serve.ts, start.ts, and packages/runtime/src/form-type-switch-boot-guard.ts (the protocol-19 boot refusal for an 18 database).
D3, D4 packages/metadata-protocol/src/stored-own-field-rows.ts. stored-migration.ts imports it, so --stored runs through it; no assertion reads its output, as 7360724100 said.
T2 to T11, D1, D2 The helpers the migrate commands import under other names: config.ts, stack-collections.ts, format.ts, data-migration-plugins.ts, schema-migration-plugins.ts, absent-table-reads.ts, sqlite-occupancy.ts, apply-drop-gates.ts, organization-ownership-drop-gate.ts, schema-sync-indexes.ts, one-shot-exit.ts, all in packages/cli/src/utils/; and packages/metadata-core/src/protocol-handshake.ts.
T7, T9, H4, H5 The authoring rules os validate and os build run (packages/lint/**) and the rest of their helpers in packages/cli/src/utils/.
T6, D3 packages/spec/src/** outside conversions/ and migrations/: the protocol major, and the 19 schemas that make the stored view invalid.
B2, B3, B4, B8 The sign-in (plugin-auth), the data and metadata routes, the SQL driver, and packages/objectql/src/validation/rule-validator.ts.

N9 (nit) — two sentences claim more than the list delivers. The workflow's comment above the list reads "Every input the walk runs through, by the step that reads it", and the PR body's lead sentence reads "Its paths: cover every input the walk runs through". Neither is true, by the table above. Nothing here touches correctness or the card's contract: the card's four triggers are covered, the nightly leg walks every input whatever changed, and the job is not required, so a change through one of these files is read the next morning instead of on its own PR. That is scaffold-e2e.yml's shape too. The fix is prose. For the body, the seat can replace the sentence without a commit, for instance: "Its paths: name the upgrade tooling, the conversions and the field axis the walk asserts, each by the step that reads it; the nightly run covers the rest of the platform the walk installs and boots". For the workflow comment, the edit that makes the job required is the natural place, and that edit should also settle whether serve.ts and build-access-matrix.ts join the list, since a required job that reds on the nightly run alone has no PR to answer for it.

A correction to my own record: 7360724100 said the body's sentence "becomes true when S6 is fixed". That was wrong. I had read the trigger list against T2 alone; read against the whole walk, as asked this round, the sentence was never reachable. S6 itself stands as filed and is closed.

② Semver level

No semver movement. skip-changeset stands; Check Changeset reads skipped. The body keeps Clause-②: no and Metadata-protocol: none.

③ Boundary flags

Nothing waits by design. No row of ASSERTIONS carries a waitsOn. The walk on this head (run 46985725333, job 143838765559) reads 30 of 30 PASS and Verdict: GREEN.; the self-test prints 43 cases in 13 batteries. The check-runs, as read at 2026-12-02T23:00Z: 43 success, 16 skipped, none failed, none running. The dev report counts 42 success; the one more arrived after it. The job is in no required list: scripts/check-required-contexts.mjs does not name it.

Declared deviations. One, the same as the last two rounds: the PR body is delivered as ready-text deltas and the seat applies them. The seat has applied all four.

The PR is still a draft, as the report says. Tier H by the workflow path, and over the 3,000-line human-merge line; the maintainer merges.

Security (the line stays yes) and rule change (the line stays none): the delta touches neither. Triggers and permissions: are otherwise unchanged: one pull_request leg with paths, the schedule, workflow_dispatch; no push, no merge_group; contents: read. N6 from 7356327508 stands: the walk step still receives GITHUB_TOKEN, which has no reader while no assertion waits.

SQL push-down. Nothing to flag; no query code in the delta.

④ Design judgment

N7 is closed. The workflow header now reads "NOT a required check, and green: no assertion waits on an open card", says how a red would be read, and says the job joins the required set only by a later edit of scripts/check-required-contexts.mjs. The run.mjs header says a waiting assertion "would be declared" with waitsOn, "(none is today)". No other sentence in the workflow, run.mjs or the README calls a red intended; the two that remain (the walk step's comment on the card each red waits on, and verdict()'s "Expected red" line) describe the mechanism for a card that exists.

N10 (nit) — the rewritten run.mjs header says a red reads as waiting "only while all three hold" and then names two conditions: the red is the card's own failure, and the card reads open. The count is older than this round, the sentence was rewritten in it, and the PR body says "two things hold", which is right.

T2's human-report conjunct: it reds when the report omits the row. The new predicate asks for one line of the human dry run's stdout that holds both permission set 'crm18_auditor' and field row 'crm18_contact.salary', and T2 passes only when that and the JSON half both hold. The probe, over this head's two logs:

Mutant JSON half Human half T2
the real reports yes yes PASS
human: the row line removed yes no red
human: the whole block removed yes no red
human: the report empty yes no red
human: the set name lost, or another set named yes no red
human: the field row printed bare (salary) yes no red
human: set and field row on two lines yes no red
human: the two labels reworded yes no red
human: the protocol 18 and 19 lines removed yes yes PASS
human: the protocol 19 line reads "read only" yes yes PASS
human: the objects entry wrong yes yes PASS
human: the choice line removed yes yes PASS
JSON: the key dropped, or the list empty; human intact no yes red
JSON: the 19 outcome read-only; human intact no yes red
JSON: object wrong, or choice emptied; human intact yes yes PASS
both in the shape before #39160 no no red

No new false-pass. The risk with a substring test is a second line that satisfies it by accident, so that the block could vanish and T2 stay green. There is none: of the 330 lines of the human report, exactly one holds both strings, the block's own row line, and crm18_contact.salary appears nowhere else in the report. The block is printed on stdout, which is the stream the predicate reads. The FAIL detail states the two halves separately, so a red says which channel lost the row.

What stays unread, and why that is acceptable. The human check pins the row's subject and not its outcome lines; the outcomes are pinned on the JSON half and observed again at the boot (B5, B6). object, at and choice of the JSON entry are still unread; 7360724100 suggested entry.object and the dev left it. N8 is closed on what mattered, the channel a person reads. The human check does pin two label words and a one-line layout, so a rewording of that line reds T2. That is the right place for it to land: the line is written in own-field-row-narrowing.ts, which is now a trigger, so the rewording PR meets the red itself. The predicate is inline in walk() and has no self-test case, as its JSON half had none; the walk on every run is its test.

N5 (7356327508) is unchanged: the annotation half is latent while no assertion waits, and T8's PASS line still prints its failure sentence.

The PR body against this head.

  • The eight paths: bullets match the workflow's list entry for entry, the two new ones included.
  • The Template wiring line states T2 as the predicate now is: the list names the row, read-and-edit on 18, hidden on 19, and the human report names the same row.
  • The expected-red section: "None", no waitsOn, all 30 pass and success on 3abccf0574: true. Its last sentence, the negative control against tarballs packed before fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows #39160, remains the dev's own run; the probe's last row reproduces it on the predicate alone.
  • The size line: 3,124 changed lines, database.sql 590, run.mjs 947: all three correct.
  • "In no required-checks list", 30 assertions, 43 cases in 13 batteries, the census row as the twelfth: true.
  • One sentence is not true: the lead sentence on paths:, N9. The 速读 line above it is the accurate one: it lists the kinds of change that run the walk, and the nightly run.

This is a final round. Only nits are open. N9's body half and N10 are prose and need no new head; N9's workflow half, N5 and N6 belong to the edit that makes the job required, which the card schedules before GA; N3 (a follow-up card for the *.object.ts names) is with the seat.

Implemented-by: claude/issue-39009-upgrade-source-gate
Reviewed-by: session_01QSeKYnrQ7UMtHofKQVjcH2

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

L1 ACCEPT · PR #39150 (#39009) · head 3abccf05748874b7a58231a717c0a721d6d409ca · read 2026-12-02T23:05Z

席位核对

ACCEPT · repo:objectstack@os-justin · head 3abccf05748874b7a58231a717c0a721d6d409ca

  1. Shape. Fixes #39009 is right. The card's four triggers are each in paths:; the walk's 30 assertions are each pinned, and none carries a waitsOn.
  2. Contract review. Delta record 7361515464 at CONTRACT_REVIEW_TIER reads PASS at this head, a final round: S6 closed as filed, N7 closed, N8 closed on the human channel. T2's new human-report check reds on 18 mutants of this head's CI artifact and on either channel missing alone; no new false-pass. Security-touching: yes.
  3. Round 3. Report 7361274822: S6 (five exact paths: entries, all present at this head), N7 (both "red on purpose" comments rewritten; the no-check-families marker stays on line 28, census twelve), N8 (T2 also pins the human report's row).
  4. Body. The seat applied the ready text of 7360321920 with the report's four deltas, then replaced the lead paths: sentence per N9 (it claimed "every input"; it now names what the list covers and that the nightly run covers the rest). Read back identical.
  5. Gates at this head. The upgrade-source job: 30 of 30 PASS, Verdict: GREEN.; self-test 43 cases in 13 batteries. CI: 43 success, 18 expected skip, 0 failed. Mergeable with main 53ca7319a1. check-governed-merges: governed, .github/workflows/**, Tier H; +3122 / −2, over the 3,000-line human-merge line.
  6. Open nits, not blocking. N9's workflow-comment half, N5 and N6 belong to the edit that makes the job required, which the card schedules before GA; N10 (run.mjs header says "all three hold" and lists two). They go to the review follow-ups card after merge, with N3 (the *.object.ts names).

Clause-②: no · Metadata-protocol: none

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

维护者速读(交接 · 2026-12-02T23:06Z)

Head-sha: 3abccf05748874b7a58231a717c0a721d6d409ca

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 2, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 2, 2026 23:06
@os-zhuang
os-zhuang marked this pull request as ready for review December 3, 2026 02:05
@os-zhuang
os-zhuang enabled auto-merge December 3, 2026 02:05
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Maintainer ruling · 2026-12-03T02:06Z · the schedule of the upgrade-source gate this PR adds.

The question put: is a nightly run needed, and is the gate retired once 19 ships? The seat's answer, as put to the maintainer:

  • The PR-path trigger covers changes to the migration tool. The nightly run covers changes elsewhere (boot, auth, data layer) that break the upgrade without touching those paths.
  • Most 18.x users upgrade after 19 ships, so the gate matters most then.

The maintainer, verbatim, in seat repo:objectstack@os-justin's session: 「节奏可以」, on this cadence:

  1. Until 19.0.0 GA: nightly, as this PR ships it. No change to this PR.
  2. From 19.0.0 GA: weekly.
  3. When 18.x leaves support: retire the gate, or move its baseline to a 19.x project for the 19 → 20 path.

Steps 2 and 3 are carried by a follow-up card, filed after this PR merges.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Maintainer ruling · 2026-12-03T02:07Z · supersedes the cadence ruling posted just above on this PR.

The maintainer, verbatim, in seat repo:objectstack@os-justin's session: 「现在每天跑,19 正式版后撤掉」.

Ruled:

  1. Until 19.0.0 GA: nightly, as this PR ships it. No change to this PR.
  2. At 19.0.0 GA: the gate is retired (the workflow, packages/qa/upgrade-source/** and its fixtures). There is no weekly step.

The weekly step and the 18.x-support condition in the earlier ruling are withdrawn. A follow-up card carries the retirement, filed after this PR merges and blocked on the 19.0.0 GA release.

Merged via the queue into main with commit 57d7b96 Dec 3, 2026
71 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-39009-upgrade-source-gate branch December 3, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl skip-changeset PR has no user-facing published change; bypasses the changeset gate tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants