Repository navigation
fix(spec,cli): os migrate meta judges the protocol-19 notices by the stack keys they live under, and says why when it cannot - #39137
Conversation
…under, and name what an open question could not read Every step-19 semantic entry whose surface is authored metadata under top-level stack keys carries a relevantWhen question; the rest are on a reviewed stays-listed table, with why, and a coverage pin names any entry from protocol 19 on that is in neither place. The chain result gains the optional `unanswered` member: the entries whose question answered unknown and what the evaluation could not read (plugins, tiers, an unreadable key). Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
…why a question stayed open Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
Every module under src/commands is an oclif command; the printer helper lives in src/utils. Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 2 package(s): 19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 193 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 3d14a3b8552534c5f81baabfe5bf4699cc7ff333 && git checkout 3d14a3b8552534c5f81baabfe5bf4699cc7ff333
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d79520c07456bc58f2101de8da355c2f0ad774ac 7e5626ffbf8bbaad0c8a27140f749e31a9feaa7d && git checkout -B drift-repro d79520c07456bc58f2101de8da355c2f0ad774ac && git merge --no-ff 7e5626ffbf8bbaad0c8a27140f749e31a9feaa7d
node scripts/docs-audit/affected-docs.mjs --json d79520c07456bc58f2101de8da355c2f0ad774ac
|
…he build it lands in An entry file that lands after the coverage tables (one landed on main while this branch was in CI) is named as a todo in every run; the reviewed tables' own invariants and the enumeration still fail. Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head e70ead9 · 2026-12-02T14:18Z First record. Faces: the published schema (non-test |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract reviewServed-tier: PR #39137 for card #38929. Head unchanged from the dispatch ( Faces: published schema (non-test FindingsM1 (must-fix) — seeds authored under
S1 (should-fix) — no test catches a key missing from a list by behaviour.
S2 (should-fix) — an unclassified entry is counted, not named.
S3 (should-fix) — the published rule text and the new rule disagree.
S4 (should-fix) —
N1 (nit) — N2 (nit) — the N3 (nit) — changeset wording: "Every protocol-19 semantic entry whose surface is metadata authored under top-level stack keys now carries a ① Derived judgments
② Semver level
Changeset, sentence by sentence: the ③ Boundary flags
④ Design judgment
Local runsRun in a separate worktree at the head, with dependencies linked from
Implemented-by: VERDICT: FAIL |
…n, pin each authoring site by behaviour - stackDeclaresVerdict reads manifest[key] as a package body is read, so a seed under manifest.data keeps the seed notices listed. - A SITES table, written from where the schemas embed each shape, pins that a stack carrying a surface at any one site is not proven absent. - Unjudged entries are printed by id on a warning line, still not failed. - The relevantWhen rule text states the protocol-19 rule; onEnable is named as outside the proof, in types.ts, chain.ts and the printed scope line. - --json emits `unanswered` when a question stayed open. Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYoLud3xhDCWLSM6HSE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 7e5626f · 2026-12-02T15:54Z Delta record after FAIL 7348878065. Read by the same reviewer at |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract reviewServed-tier: Delta round on PR #39137 for card #38929, after FAIL record 7348878065 at No must-fix, no should-fix. Findings by idM1: closed.
S1: closed.
S2: closed.
S3: closed.
S4: closed, as stated rather than as a carrier.
N1, N2, N3: closed.
New this round (nits only)N4 (nit) — one entry-and-key pair has no site row. N5 (nit) — the ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Local runRun in a private worktree at the head under the scratchpad, removed afterwards; the shared checkout was not checked out or changed.
NOT MEASURED locally this round: the spec and CLI suites at the new head, the unjudged-entry warning line, the typechecks and the repo gates. The head's check-runs cover the suites and gates. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39137 (#38929) · head Seat check · ACCEPTACCEPT · repo:objectstack@os-justin · head
|
|
repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc Landing · 2026-12-02T16:01Z · head
|
Fixes #38929
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
Measured first (the card's Expected 1). The 18.6.0 blank template is not plugin-free: its
objectstack.config.tslistsplugins: [new ConnectorRestPlugin(), new ConnectorOpenApiPlugin(), new ConnectorMcpPlugin()](read from the publishedcreate-objectstack@18.6.0tarball).stackDeclaresVerdictanswersunknownfor any key while a plugin is listed, by design: a plugin can register metadata at boot that the stack does not show. With theplugins:block removed, the same stack already provedagentsandknowledgeSourcesabsent onorigin/main(2 notices counted). So there is no reading bug to fix in the verdict; the card's premise "noplugins:" holds for the current blank template, not for the 18.6.0 one. What was missing is the second arm of Expected 1: the output never said why the notices stayed.chain.ts,types.ts). The relevance evaluation now records what it could not read whenever a question answersunknown:plugins/devPlugins/tiers, a key whose value is not a list or a map, an unreadable manifest or package body, or(stack). The chain result gains the optionalunanswered: { todos, unread }. The reason is collected beside the fold and never decides it.stackDeclaresVerdictnow readsmanifest[key]as it reads a package body's, so a seed dataset undermanifest.data(a declared, served seed site) keeps the four seed notices and thedataarm ofpublish-refuses-seeds-and-actionslisted. This is the one change to a verdict, and it can only move an answer fromabsenttopresentorunknown.onEnable(S4).onEnableis not a carrier. The proof covers the definitions the stack declares. What the start hook registers through the engine it is handed lies outside the proof, as metadata a deployment stores does; registering metadata there is off-label, because the schema describes the hook for handlers and drivers.types.ts,chain.ts, the changeset and the printed scope line now say so. Making it a carrier is a follow-up: a top-levelexport const onEnableis not on the stack object, so the loader would have to hand it over.relevantWhen, each naming every top-level key its surface can be authored under (an extra key keeps a notice listed; a missing one would prove it absent wrongly). The other protocol-19 entries carry no question and sit on a reviewedSTAYS_LISTEDtable, each with a class (code,deployment,every-stack) and why. No prose is matched. The rule is now stated where entry authors read it, in therelevantWhenJSDoc intypes.ts(S3). A surface that a stored copy also meets still takes a question, because the proof covers the loaded stack and never stored rows. An entry whose own check runs over stored rows stays listed.SITEStable in the coverage test lists every place a protocol-19 surface can be authored: inline object actions, list views, fields, fieldGroups, relatedLists, lifecycle and validations; extension fields and validations; views, viewItems and forms; pages, dashboards and apps; hooks, jobs and flows; sharing rules and permissions;data,manifest.dataandpackages[].manifest.data; translations, mappings and books;requires, knowledge sources and agents. Each site is a stack carrying only that site, with the entries written there. The table is written from where the schemas embed each shape, never from the entries' key lists. A stack carrying only a site must not prove its entries absent, and every protocol-19 entry with a question must be pinned at one site or more.semantic-relevance-coverage-38929.test.tsenumerates the registry from protocol 19 on. Any entry that carries norelevantWhenand is not onSTAYS_LISTEDis printed by id on a warning line in every run, with a todo carrying what to do, and fails nothing. It reads the registry, never a list or count of today's entries, so an entry that lands later (fix(formula)!: flow-condition verdicts agree with the run — severity, the index spelling, macro variables #39072's, flows: a fan-out to an approval and a subflow whose child pauses loses the parent branch continuation (the subflow branch never resumes) #38876's) is named from the day it lands without reddening a pull that never touched this file. What fails is what the tables state: aSTAYS_LISTEDrow naming no registered entry, a row with no class or reason, or an entry both questioned and tabled. The enumeration insemantic-relevance.test.tsfails when an entry gains, loses or changes a question, and the SITES pins fail on a key missing by behaviour.onEnableregisters. The new code is inpackages/cli/src/utils/migrate-meta-relevance.ts; inmeta.ts,printAbsentNoticesand its import line change.--json(N1). The payload carriesunansweredunder the same name when a question stayed open, through a conditional spread besideabsentTodosin therunblock; otherwise it is unchanged. N2: a question of a kind this build cannot answer now names itself inunread, and the printer never prints an empty list. N3: the changeset's two "every" sentences are narrowed.Tests
packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts(new): COVERAGE (unjudged entries printed by id; table rows registered, classed and explained; no entry in both places), SITES (each authoring site; every questioned protocol-19 entry pinned at a site; anti-vacuity on a bare stack), CHAIN (a stack whose only seed site ismanifest.data, throughnormalizeStackInput(…, { convert: false })and the chain: no seed entry absent), ACCEPTANCE (the blank template's stack proves both notices absent; a stack declaring an agent and a knowledge source keeps both (control); the 18.6.0 shape with three plugin instances proves nothing absent and namesplugins; an unreadableagentsvalue is named by its key; atierspreset bytiers), EVALUATION of theunreadcollection.packages/spec/src/migrations/semantic-relevance.test.ts: the reviewed enumeration table gains the 50 rows. Theis 31 entriescount assertion is deleted under AGENTS.md "Volatile counts are deleted, not synced": the table equality above it is the pin.packages/cli/src/commands/migrate/meta.relevance-count.test.ts(new): loads the real blank template throughloadConfig(…, { authoredSource: true })and the command's ownapplyMetaMigrationsToPackages, then prints: both notices counted, not listed; the scope line names stored metadata andonEnable; control with an agent; with a plugin, the zero line, the open-question line namingpluginsand the plugin sentence, in order; no zero line when no crossed entry asks.packages/cli/src/commands/migrate/meta.report-order.test.ts: the pin "prints no ④ at all when the chain proved nothing absent" now says what the report does (only the zero count).Acceptance notes
scripts/ablation-replace.mjs, blob back to HEAD,git diff HEADempty; spec rebuilt andablation-dist-preflight --absentgreen after the restore). Readings below.meta-relevance.tswas first written undersrc/commands/migrate/, where oclif reads every module as a command (migrate:meta-relevance), which reddenedtest/migrate-meta-engine-guidance.test.ts. Moved tosrc/utils/in the third commit.view-bulk-actions-declared-on-the-action(unchanged here) carries a question although its acceptance names stored view rows; the permission entry's comment rules the other way for the same shape. This PR does not reconcile them; the new rows follow the permission entry's rule (an entry whose check runs against stored rows stays listed).view-bulk-actions-declared-on-the-actionand fix(formula)!: flow-condition verdicts agree with the run — severity, the index spelling, macro variables #39072's entry are left alone.content/docs/upgrading.mdxstates no count, so it is not edited.19.flow-condition-mismatch-warning-and-index-mismatch-refusedlanded onmainwhile this pull was in CI, and the first spelling of the coverage pin failedTest Core (4/12)on the merge ref at 073d5f9. It is now named, not failed: with that file copied in fromorigin/main, the coverage test reports 42 passed and 1 todo, and the run's output names the id once, on the warning line. Its owner's card adds its question.origin/mainis not merged, because nothing in this diff needs it and GitHub reports no conflict.Verification
Read first, by risk:
packages/spec/src/migrations/chain.ts:stackDeclaresVerdict(the newmanifest[key]read) andsemanticRelevanceVerdict(theunreadset is merged only when the fold answersunknown).SITEStable against the 50relevantWhenkey lists. A key missing from a list is the one way this change could hide a notice that applies, and a site missing from the table is the one way that could go unpinned.packages/cli/src/utils/migrate-meta-relevance.ts.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations/semantic-relevance-coverage-38929.test.ts, expect 42 passed.S1 and S2 through the public door, os migrate meta --from 18, before (a533126) and after (073d5f9)
create-objectstack@18.6.0blank template as published (1 object, three connector plugins)plugins"plugins:block (the shape the current template has)examples/app-showcaseat 958ee03)plugins"S1 here is the template as scaffolded, not the card's runner app (which added a second object, a dataset, a dashboard, a flow and permission sets); those additions answer
presentfor their keys and would lower the "without plugins" absent count. The protocol-19 catalogue is 91 entries on this base (85 at the card'sea6e312a).Ablations
else if (verdict === 'unknown') unansweredTodos.push(todo);replaced so nothing is collected; spec rebuilt, dist pre-flight: marker present in 2 built files. Spec coverage test: 3 failed / 9 passed. CLImeta.relevance-count.test.ts: 2 failed / 3 passed.relevantWhen: deleted from19.flow-sequential-branch-durable-pause-refused.ts, registry regenerated, at e70ead9. Spec relevance + coverage tests: 2 failed / 31 passed / 1 todo (is exactly the reviewed table…,on a stack declaring none of the batch's keys…; the todo names the entry).'objects'dropped from19.body-regexp-pattern-refused.tsAND from its row insemantic-relevance.test.ts, registry regenerated.vitest run src/migrations: 1 failed / 253 passed (objects[].actions (an action an object carries inline)). Both files restored, blob back to HEAD.manifest[key]read replaced byundefined.vitest run src/migrations: 2 failed / 252 passed (themanifest.datasite and the CHAIN pin). Restored, blob back to HEAD.Local runs at 7e5626f
pnpm --filter @objectstack/spec exec vitest run src/migrations: 6 files, 254 passed.pnpm --filter @objectstack/cli exec vitest runover the 20 non-integrationmeta.*/migrate-meta*files: 165 passed, 1 skipped.pnpm --filter @objectstack/spec run typecheck,pnpm --filter @objectstack/cli run typecheck: exit 0.dispatch-gates --commands(98 derived) with--ran: 96 run at exit 0, 2 NOT MEASURED:check-plugin-teardown-shape.mjs --self-test(shallow clone, pinned positive control not held) andcheck:dual-build-cjs-loads(needs every package built; CI Build Core).Generated by Claude Code