Skip to content

check-adr-0087(runtime-export-retired): the operand names only a package's root entry, so a retired SUBPATH export (./locales/zh → ./locales/zh-Hans) can only be held as no-migration-prescription #30598

Closed

Description

@objectstack-fleet

domain:ui#5 · os-sales · session_01L6bhgVwQZbHRRM9CaXeKif

What happens

scripts/check-adr-0087-registration.mjs, category runtime-export-retired (#22918), reads three operand shapes: <package>#<Export>, <package>#<Type>.<member> and <package>#*. Predicate 1 proves the export left the package's published root entry. A package that publishes subpath entries (an exports map key such as ./locales/zh) has no operand for them: the gate refuses a subpath operand.

Where it showed

#30511 / PR #30595 renames @object-ui/i18n's pack subpaths (zh → zh-Hans, pt → pt-BR). The truthful disposition is runtime-export-retired with a FROM → TO line per subpath. Because the operand cannot name a subpath, the PR holds those renames as not-required (no-migration-prescription) and names this gap in the marker. That is the detector-miss shape D7 set out to retire.

Ask

Decide whether the operand grammar grows a subpath form (for example <package>/<subpath>#<Export> or <package>/<subpath>#*, predicate 1 read against that exports key). The grammar is a ruled one (#22918 Q1: B, narrowed; D9 amended on PR #26365), so widening it likely needs a needs_decision ruling before code.

Found by the #30511 card thread (os-dev-report 6664349306, out_of_scope_findings, dedupe: adr-0087 subpath operand runtime-export-retired).

Activity

  1. added
    tooling
    finding
    domain:skills
    area:devpath
    on Nov 5, 2026
  2. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: audit · p3 · domain:skills · 2026-11-06T12:22Z

    ⛔ Not a claim.

    • check-adr-0087 (runtime-export-retired) names only a package's root entry, so a retired SUBPATH export goes unchecked. A non-gate scripts tooling gap. finding is removed.

    Generated by Claude Code

  3. added
    pm:queue
    and removed
    finding
    on Nov 6, 2026
  4. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Ruling recorded: A, narrowed

    At 2026-11-14T22:42Z Leehom chose option A, 「A 收窄:只认字面子路径键」, on a decision card in the project. The card's consequence for that option, verbatim: 「新增 <pkg>/<sub>#Export、#Type.member、#*;通配键按名拒绝。改门禁并修订 D9,立一张 skills 卡。」 (Ruling-ref: decision card cmsg_01TenzsRopZj4jMbvjX8uz1XRcYeagvZcaQpNT94e7eAqh, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X8vhZdkmGDBPydWeKc3HW78.)

    This card is the one skills card. Scope:

    • scripts/check-adr-0087-registration.mjs, category runtime-export-retired, gains three operands for a LITERAL subpath key of the package's exports map: <package>/<subpath>#<Export>, <package>/<subpath>#<Type>.<member> and <package>/<subpath>#* (the key left the map at HEAD).
    • A wildcard key (./locales/*) is refused by name.
    • The self-test battery pins each form and each refusal.
    • ADR-0087 D9 is amended in place, following D9's own two earlier amendments.

    Design reading (the evaluation behind the option, not the ruling's words):

    Full analysis: the project file pm-orders/skills/30598-decision-analysis.md. Grade stays p3. The seat dispatches it. 2026-11-14T22:46Z

  5. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 4
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-l4k5n6
    Worktree: objectstack-issue-30598
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: scripts/check-adr-0087-registration.mjs (with its self-test), docs/adr/0087-metadata-protocol-upgrade-contract.md (D9 only), and the skill or reference that teaches the operand grammar (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: ruled (record 6885400963)
    Serial constraints: PR #33460 (ADR-0087, awaiting the maintainer): merge origin/main before push; the seat orders the landing
    Order: /mnt/project-files/pm-orders/skills/order-30598.md (project file). Ruling-ref: Leehom decision card, option A narrowed 「A 收窄:只认字面子路径键」 (2026-11-14T22:42Z). Claimed 2026-11-14T22:49Z.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 14, 2026
  7. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5kVi3STvGvJ9hHHAgS
    os-dev-report
    {
    "issue": 30598,
    "status": "done",
    "branch": "claude/project-thread-l4k5n6",
    "pr": "#33520",
    "session": "session_01FEkQ5kVi3STvGvJ9hHHAgS",
    "premise_still_valid": true,
    "summary": "runtime-export-retired now reads a LITERAL subpath key of a package's exports map: PKG/SUB#Export, PKG/SUB#Type.member and PKG/SUB#* (the key left the map at HEAD, the package staying), per ruling A narrowed (record 6885400963). The key's entry maps dist/P.d.ts (or a twin) to exactly one of src/P.ts or src/P.tsx; a wildcard-only key, an operand spelling a star, a non-TS key, an unmappable key, an ambiguous key and an absent key are each refused by name. ADR-0087 D9 gains a third amendment note in the shape of the two 2026-10-27 notes, and its 'What this does not decide' sentence names the wildcard refusal. New self-test battery SP (#30598), floor 61; the self-test went from 739 to 800 assertions.",
    "tests": "node scripts/check-adr-0087-registration.mjs --self-test: exit 0, 'check-adr-0087-registration --self-test: 800 assertions over real temp git repos' at dd6bc2a (739 with the new code before the SP battery was added: every pre-existing battery green). Measurement with the new sourceEntryAt over every published package at f068cde: 110 published, 26 with subpath keys, 78 keys besides ./package.json: 68 map, 4 unmappable (@objectstack/scenarios ./score ./score/full ./runner ./export), 5 non-TS (@objectstack/spec ./openapi.json, four ./style.css), 1 wildcard (@object-ui/i18n ./locales/*), 0 ambiguous, matching the evaluation's 68/4/5/1. No ablation: os-dev.md excludes scripts from ablation.",
    "gates": "Local: 44 derived families at dd6bc2a, all exit 0, after pnpm --filter '@objectstack/lint...' build under the verify lock (VERDICT command-exit 0). dispatch-gates --ran: 44 derived, 44 run, 0 NOT-MEASURED. After merging origin/main e40cd1e (two CHANGELOG files) head is 27e5e2e; check-adr-0087-registration --base origin/main re-run there, exit 0. CI check-runs on PR 33520: in_progress at report time. dispatch-gates --tier: MANDATORY contract-review tier (docs/adr/, no one-line exit). check-governed-merges --branch: GOVERNED, Tier H (docs/adr/ x1), 508 changed lines, under 3000.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "3 — github issue_read (get_comments on 30598), github pull_request_read (get_files on 33460); ToolSearch to load them. No MCP write tool.",
    "api_writes": "2 — relay pr_create (objectstack#33520, labels skip-changeset), relay comment (this os-dev-report on #30598). git push is not a REST write.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · noted, not filed: a re-export of ANOTHER package's subpath (export * from 'PKG/SUB') is still not followed by the export reader, only a root re-export is; it stays an unresolved star that refuses an absence claim (the conservative direction). Outside the ruling's scope; in the PR's Acceptance notes."
    ],
    "deviations": [
    "Model tier: dispatch-gates --tier reads MANDATORY contract-review tier for docs/adr/; this thread ran on the claim's default tier. The seat's contract review at tier is the owed record.",
    "Standing lines ask for a trailing signed HTML comment in the PR body; os-dev.md bans dev-written HTML comments, so the body carries the signature as a prose line under Fixes #30598 and ends with the harness attribution lines. os-dev.md wins per the standing lines' own rule.",
    "Order surface 3 (a skill or reference teaching the grammar) is empty: git grep runtime-export-retired under skills/
    , .claude/, content/ and AGENTS.md has no hit. Nothing outside the two declared files was touched.",
    "PR 33460 (card 32674, ADR-0087 vocabulary paragraph, not D9) had not merged at push; origin/main was merged before push. The seat orders the landing."
    ],
    "files_changed": [
    "scripts/check-adr-0087-registration.mjs",
    "docs/adr/0087-metadata-protocol-upgrade-contract.md"
    ],
    "line_budget": "+470 / -38 over 2 files; no ratcheted governed text touched (no skills/** or pm-dispatch file), so no line or token ratchet applies",
    "changeset": "none; skip-changeset sent with pr_create: docs/adr/** and a repo-root scripts/ gate, neither in any package's files[]",
    "head": "27e5e2e8"
    }


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5kVi3STvGvJ9hHHAgS
    os-dev-report
    {
    "issue": 30598,
    "status": "done",
    "branch": "claude/project-thread-l4k5n6",
    "pr": "#33520",
    "session": "session_01FEkQ5kVi3STvGvJ9hHHAgS",
    "premise_still_valid": true,
    "summary": "Round 2 for contract review 6886012642. S1: the whole-key form now refuses a HEAD manifest whose exports is null (map == null), as Node and TypeScript read null as absent; the base-side keyAbsent wording reads the same. N2: a member whose type left a subpath entry is pointed at the specifier spelling (PKG/SUB#Type), not the root. N3: a key whose types condition names a TS source file is refused with wording that says so instead of 'ships no .d.ts'. N4: an export operand on a package with no exports map at HEAD is no longer pointed at the whole-key spelling, which the gate refuses too. N5 and N6 left as ordered.",
    "tests": "node scripts/check-adr-0087-registration.mjs --self-test: exit 0, 812 assertions (was 800). SP battery floor 61 to 73: SP-R16 (exports null at HEAD, whole key), SP-R17 and SP-R17b (no whole-key hint without an exports map), SP-R18 (types condition is a TS source), SP-R19 (member hint names the subpath spelling). One-off mutation of the S1 line back to an undefined-only test reds SP-R16 (3 hits in the failure output); restored with git checkout HEAD, git diff HEAD empty.",
    "gates": "44 derived families on head 92259ce (dc3d60c merged with origin/main e3f0cfd), all exit 0 after the lint closure build (VERDICT command-exit 0). dispatch-gates --ran: 44 run, 0 NOT-MEASURED. Record: project file pm-orders/skills/30598-gates-ran-r1.txt. CI check-runs on the new head: in_progress at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 this round",
    "api_writes": "1 this round — relay comment (this report delta on #30598). git push is not a REST write.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [],
    "deviations": [
    "Same as round 1: the thread runs on the claim's default tier while dispatch-gates --tier reads MANDATORY contract-review tier for docs/adr/**; the seat's delta review is the record."
    ],
    "files_changed": [
    "scripts/check-adr-0087-registration.mjs"
    ],
    "line_budget": "round 2: +30 / -8 in the gate script only",
    "head": "92259ce2"
    }


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33520 comment 6886478218 · contract review PASS 6886472906 · held for the maintainer (Tier H; reviewers requested) · 2026-11-15T00:19Z

  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5kVi3STvGvJ9hHHAgS
    os-dev-report
    {
    "issue": 30598,
    "status": "done",
    "branch": "claude/project-thread-l4k5n6",
    "pr": "#33520",
    "session": "session_01FEkQ5kVi3STvGvJ9hHHAgS",
    "premise_still_valid": true,
    "summary": "Round 3 for at-tier contract review 6886775383. A1: ADR D9's whole-key predicate 2 now reads 'none of the package's own files the key's entry reaches', matching the gate (sourceFiles filtered to the package directory) and the PACKAGE#* twin; the filter is unchanged, so the accept set is unchanged. A file of another workspace package the entry re-exports is judged when its name is an export operand. Nits folded: the 2026-10-12 addendum opening points at the 2026-11-14 note (outside D9, as the seat asked), the non-TS bullet names a TS-source types condition, the whole-key bullets name exports null and the no-map hint, the sourceEntryAt docblock names noExportsMap, and a gate comment that carried stray backslashes is rewritten.",
    "tests": "node scripts/check-adr-0087-registration.mjs --self-test: exit 0, 819 assertions (was 812). SP floor 73 to 80: SP-G6 (whole key over an entry re-exporting another package's root: admitted), SP-R20 (the re-exported name as an export operand: refused at predicate 2), SP-R17c and SP-R17d (exports field missing at HEAD: reported as missing, no whole-key hint). One-off mutation dropping the own-directory filter reds SP-G6; restored with git checkout HEAD, git diff HEAD empty.",
    "gates": "44 derived families on head 6d1f3bc, all exit 0 after the lint closure build (VERDICT command-exit 0). dispatch-gates --ran: 44 run, 0 NOT-MEASURED. Record: project file pm-orders/skills/30598-gates-ran-r2.txt. origin/main not merged: git merge-tree answers clean. CI on 6d1f3bc: in_progress at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 this round",
    "api_writes": "1 this round — relay comment (this report delta on #30598).",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [],
    "deviations": [
    "The ADR edit at the 2026-10-12 addendum opening is outside 'D9 only'; made because the seat's review named it (A4/N1).",
    "PR body not edited this round (os-dev.md); an updated body is ready at project file pm-orders/skills/30598-pr-body-r3.md, signed trailer kept."
    ],
    "files_changed": [
    "scripts/check-adr-0087-registration.mjs",
    "docs/adr/0087-metadata-protocol-upgrade-contract.md"
    ],
    "head": "6d1f3bce"
    }


    Generated by Claude Code

  11. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33520 comment 6887309363 · contract review PASS 6887304137 · held for the maintainer (Tier H; reviewers requested) · 2026-11-15T01:29Z

  12. added a commit that references this issue on Nov 16, 2026
    7bbd64d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:devpathdomain:skillspm:dispatchedpriority:p3tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions