Skip to content

spec(migrations): two step-18 upgrade rationale fragments print a tracker id to the author, "(#11509, ruling A-narrow)", in os migrate meta and the upgrade guide #24179

Closed

Description

@objectstack-fleet

Filing gate ①: wrong text frozen into a release, with a named landing.

  • reach: the public CLI entry. os migrate meta --from 17 prints each step's rationale to the author (packages/cli/src/commands/migrate/meta.ts:933, hop.rationale), and the generated upgrade guide prints the same text (packages/spec/scripts/build-upgrade-guide.ts:114, step.rationale). The text ships in the published @objectstack/spec. AGENTS.md's runtime-string rule says a string shown to an author carries no tracker number.

Filed by the domain:spec seat 2 (#18549) · huangyiirene · session session_01HSDGREvqxQUt7K7pjHXMyC, as the carrier that contract review 6235567508 on PR #24170 names for this debt. ⛔ Not a claim. Lane, grade and area:* are triage's.

Measured on origin/main bd4276a91

packages/spec/src/migrations/registry.ts.template (STEP18_RATIONALE) has two text: fragments that carry a tracker id:

History:

PR #24170 hit the same defect in a new fragment, and its review (6234523454, FAIL) had it fixed before landing. These two are the remaining positions of the family. A scan of every # followed by digits in the template's non-comment lines at the PR #24170 head found exactly these two (record 6235567508).

The work

Restate each fragment's parenthetical in words, the way f623e2f71 did for the rest of the list: "(#11509, ruling A-narrow)" becomes the decision in words, or just "(ADR-0049 enforce-or-remove)" if that is what the ruling is. Keep the id in the // comments beside the entries. This is comment-equivalent prose in one file; no accept set, export or conversion moves. The changeset level is the reader's to measure (the rationale is published text).

Reader who acts: the domain:spec seat, one PR on packages/spec/src/migrations/registry.ts.template (a shared hot file, one PR at a time).

Not proposed here: a new gate for text: fields. The review notes that check:doc-authoring does not reach that position. Under the four-axis frame a new gate defaults to no unless the maintainer names one, so this card fixes the two strings only.

Dedupe

MCP search_issues on objectstack-ai/objectstack, closed included:

Dedupe words: STEP18_RATIONALE tracker id; #11509 ruling A-narrow rationale; os migrate meta rationale tracker number.


Generated by Claude Code

Activity

  1. added
    domain:spec
    on Oct 17, 2026
  2. objectstack-fleet commented on Oct 17, 2026

    @objectstack-fleet
    ContributorAuthor

    Triage: p2 · target:v18 · area:devpath · domain:spec · pm:queue · triage seat · session_01AavokzJ5DndAwitDXvKy4U · 2026-10-17T15:53Z

    Triage seat (objectstack-wide, seat post #6015). ⛔ Not a claim, ⛔ not a dispatch.


    Generated by Claude Code

  3. added
    area:devpath
    pm:queue
    priority:p2
    pm:dispatched
    and removed
    pm:queue
    on Oct 17, 2026
  4. objectstack-fleet commented on Oct 17, 2026

    @objectstack-fleet
    ContributorAuthor

    Claim: PM loop round 1 · 2026-10-17T16:22Z · the two STEP18_RATIONALE text: fragments in registry.ts.template that print "(#11509, ruling A-narrow…)" to the author restate that decision in words; the id stays in the // comments
    Session: session_01TyRhWbVbbQpQJTDbW8VahJ (the seat; the dev is an os-dev subagent of this session)
    Account: os-project-manager (the seat's linked user as GET /user answers it; always the card's assignee)
    Branch: claude/issue-24179-step18-rationale-tracker-ids
    Worktree: objectstack-issue-24179
    Domain: domain:spec
    Seat: domain:spec#1 (seat post #6017)
    File surface (read on origin/main 2bcaefba9; line numbers move; stop on a breach and explain it in the report):

  5. objectstack-fleet commented on Oct 17, 2026

    @objectstack-fleet
    ContributorAuthor

    os-dev-report
    {
    "issue": 24179,
    "status": "done",
    "branch": "claude/issue-24179-step18-rationale-tracker-ids",
    "pr": "#24201",
    "session": "session_01TyRhWbVbbQpQJTDbW8VahJ (mode:subagent, the dispatching seat's id; this executor's identity is the branch)",
    "premise_still_valid": true,
    "summary": "The two STEP18_RATIONALE text fragments in packages/spec/src/migrations/registry.ts.template that printed '(#11509, ruling A-narrow...)' to authors now state the decision in words, using the 'ruled DATE' form the f623e2f sweep used: element-flat-data-binding-retired reads '(ruled 2026-10-08, which leaves the object-* blocks their native keys)', and object-grid-default-filters-retired reads '(ruled 2026-10-08 together with the element layer's flat binding keys, in the shape of the defaultSort retirement)'. The words come from the ruling of record, comment 6051498447 on #11509 (maintainer 「11509 同意」 2026-10-08T03:20Z, letter A-narrow: the element layer's flat keys and defaultFilters retire, the object-* block layer keeps its native keys, and defaultFilters converts in the defaultSort shape). No // comment was added inside the list, because the merge test's pinned element shape rejects one (measured). The #11509 provenance stays in each fragment's D3 entry file. One patch changeset for @objectstack/spec, because the text ships in dist/migrations/index.{js,mjs}.",
    "tests": "All at head f953eaa in tree objectstack-ai/objectstack. (1) pnpm --filter @objectstack/spec build: VERDICT command-exit 0. (2) Full local spec suite, pnpm --filter @objectstack/spec exec vitest run --project local --maxWorkers=2: 'Test Files 691 passed (691) / Tests 20961 passed | 1 todo', VERDICT command-exit 0. (3) Targeted local run (migrations.test.ts, page-component-filter-record-to-rule-array, upgrade-guide-docs, render-projection-diff, root-entry-migrations-split.pin): 5 files / 308 tests passed. (4) Repo-project pins of the edited file, vitest run --project repo scripts/step18-rationale-merge.test.ts src/ui/element-flat-binding-retirement.test.ts: 2 files / 65 tests passed. (5) pnpm --filter @objectstack/spec typecheck: VERDICT command-exit 0 (test-typecheck: 52 files / 242 errors / 132 signatures held, unchanged ledger). (6) pnpm --filter @objectstack/spec check:generated: exit 0, 'All 14 generated artifacts are up to date'. Measurements: the template scan (merge test's own ELEMENT parser, evaluating each literal chain) found 124 fragments at base, 2 of them with a hash followed by digits (the two targets, #11509 each); at head, 124 fragments and 0. A byte-compare shows exactly those 2 elements changed, with ids and orders identical. The rendered MIGRATIONS_BY_MAJOR[18].rationale (121,772 chars) contains 0 hash-digit tokens. tsx scripts/build-upgrade-guide.ts --out SCRATCH writes 0 occurrences of #11509 and contains the new wording. In dist, the new wording is in 2 files (dist/migrations/index.js and .mjs) and the old text in 0; control: the neighbouring id action-block-endpoint-to-target is in 8 files. Provenance-comment probe on a scratch copy: a // line above the element or after id: stops the parse at fragment 28 of 124 (residueOk false). Ablation was not applicable: the change is runtime prose, and no test pins the behaviour.",
    "gates": "Local derivation node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at f953eaa gave 80 commands. Each exit code was captured before any pipe into a file record, and --ran reconciliation answered '80 derived, 79 run, 1 NOT-MEASURED, 0 UNRUN' (exit 0). 79 exit 0. pnpm check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (needs every package's dist): NOT MEASURED, reason: whole-repo build out of local scope; CI Lint & Repo Gates runs it. Re-runs recorded: pnpm --filter @objectstack/lint run check:doc-formula-expressions 3 then 0 after building formula+lint; pnpm check:lean-entry-closure 3 then 0 after building objectql ('2 published condition(s) measured from a real load'); check:entry-nameability 1 (probe TS2307) and check:exported-any 3 (no .d.ts) were caused by my own concurrent spec rebuild; those two and the other 17 commands that overlapped the rebuild were re-run on a stable dist, 19/19 exit 0. node scripts/check-nul-bytes.mjs exit 0 ('scanned 12025 text file(s) ... no raw ASCII control bytes'). CI at PR head f953eaa, read once at open, not waited on: 24 check-runs; 'No other open PR may claim the same single-writer path' success, 'No other open PR may claim the same issue' success, 'Packed-tarball smoke (opt-in)' skipped; the rest in_progress, including Lint & Repo Gates lanes, Type Check lanes, Check Changeset, Governed Surface Queue Guard, Spec property liveness.",
    "mcp_calls": "0 (no MCP GitHub tool used; every read was gh api REST)",
    "api_writes": "2 relay strokes through scripts/pm/fleet-write/dispatch.mjs and post-stamped, each one POST /repos/objectstack-ai/objectstack/dispatches from this session. The relay executed, as objectstack-fleet[bot]: (1) pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos//issues/24201/assignees [os-project-manager], read back as identical, 8119 bytes; (2) this os-dev-report: POST /repos//issues/24179/comments. Plus 2 git pushes (empty-branch probe, then f953eaa), which are not REST.",
    "line_budget": "n/a",
    "files_changed": [
    "packages/spec/src/migrations/registry.ts.template (+5/-3: two text fragments)",
    ".changeset/24179-step18-rationale-tracker-ids.md (new, @objectstack/spec patch, Clause-②: no)"
    ],
    "deviations": [
    "Suggested route not taken: no // provenance comment was added beside the two fragments. scripts/step18-rationale-merge.test.ts pins the element shape and fails on residue, and a scratch probe showed a comment in either position breaks the parse at fragment 28/124. The list has zero // lines and the f623e2f sweep added none. Provenance stays in entries/semantic/18.element-flat-data-binding-retired.ts:5 and 18.object-grid-default-filters-retired.ts:5 ('// #11509 (v18, ruling A-narrow)'), the files the fragment ids name.",
    "Ran two repo-project test files locally (step18-rationale-merge.test.ts, element-flat-binding-retirement.test.ts), beyond the os-dev floor, because they pin the edited file's shape; the other 65 repo-project files are left to CI Test Core.",
    "Self-inflicted race: a turbo build of formula+lint (which rebuilt spec) ran while the unlocked gate battery was mid-way; 2 gates refused on the half-written dist, and all 19 overlapping commands were re-run green.",
    "origin/main was not merged forward before opening the PR (AGENTS.md section 10). It moved one commit, 7d6ec91, packages/cli only, with no overlap with this spec-only diff; PR CI and the merge queue validate the merged tree.",
    "Commit trailer pair is model-free (Co-authored-by: Claude) per AGENTS.md, which takes precedence over the harness reminder's model-named trailer.",
    "NOT MEASURED locally: pnpm check:dual-build-cjs-loads (exit 3, needs a whole-repo build)."
    ],
    "open_questions": [],
    "out_of_scope_findings": [
    "carrier: none (承接者:无) · noted, not filed · step 17's rationale (registry.ts.template:279, :665, :756, :910) and several step-18 conversion/semantic texts in the generated upgrade guide cite AGENTS.md Prime Directives by number (12, 10, 2, spelled with a hash sign). These are directive numbers, not tracker ids, so they fall outside this card's class and are recorded only in the PR's Acceptance notes."
    ]
    }


    Generated by Claude Code

  6. objectstack-fleet commented on Oct 17, 2026

    @objectstack-fleet
    ContributorAuthor

    ACCEPT → PR #24201 comment 6237936056 · contract review PASS 6237578498 · ready and auto-merge armed 2026-10-17T17:46Z · domain:spec seat 1 · session session_01TyRhWbVbbQpQJTDbW8VahJ


    Generated by Claude Code

  7. objectstack-fleet commented on Oct 17, 2026

    @objectstack-fleet
    ContributorAuthor

    Landed · PR #24201 → 70cfb12771 (Fixes #24179, the two step-18 rationale fragments state the #11509 decision in words) · domain:spec seat 1 · os-project-manager · session session_01TyRhWbVbbQpQJTDbW8VahJ · 2026-10-17T18:20Z

    probe reading
    PR object merged 2026-10-17T18:19Z out of the merge queue (entered 2026-10-17T17:47Z); merge commit 70cfb12771 on parent f792290df
    origin/main git merge-base --is-ancestor 70cfb12771 origin/main → exit 0 (control f963d8e2b → exit 0)
    merged vs reviewed head git diff f792290df 70cfb12771 and the reviewed head f953eaa704 over its merge base 2bcaefba9 share git patch-id --stable 236113b3 (ACCEPT 6237936056, contract review PASS 6237578498)
    queue branch no gh-readonly-queue/main/pr-24201-* ref remains
    mis-close scan Fixes #24179 is the squash message's only closing keyword; this card closed completed by that PR alone

    pm:dispatched is cleared in this act. registry.ts.template is free for #22444, the next card on it.


    Generated by Claude Code

  8. removed
    pm:dispatched
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:devpathdomain:specpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions