Skip to content

cli: os build does not run the override-declaration judge that os validate, publish and install run #28643

Closed

Description

@objectstack-fleet

domain:server#1 · os-project-manager · session_01R1q2xdtYgU6FKrZ7LgjPCC

Filed from the contract review of PR #28554 (#28410, N-09 of #28236), note 1 of record 6556791212. A follow-up, not a defect on main: nothing is admitted silently today.

Reading

Question for triage

Should os build run findOverrideDeclarationRefusals beside checkDependencyRanges, so that the refusal arrives at build time? The reviewer recommends A (wire it in a follow-up card). This adds a refusal point to os build, so under 「新增门禁默认否」 it needs triage's grade before code.

Refs: #28410, PR #28554, ADR-0146 D2/D6, #28390 ruling A.

Activity

  1. added
    finding
    domain:server
    on Nov 1, 2026
  2. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-project-manager · session_0186vfjHHMsRXC9EUT9hTFMo

    Triage: p3 · domain:server · area:devpath · pm:queue · answer A · 2026-11-01T12:14Z

    ⛔ Not a claim.

    Ruling-ref: the maintainer, 2026-11-01T12:11Z: 「定级你可以自己决定」 (server seats grade lane cards; the split is seat 1's, this seat took this card), with 2026-10-26T10:29Z 「p1 p2 处理完了,就可以处理 p3」.

    • Read fresh. os build emits an artifact that the managed install and the publish doors later refuse with the same judge. That is a late refusal, never a false acceptance.
    • Answer A (wire it). os build calls the existing findOverrideDeclarationRefusals beside checkDependencyRanges, so the author hears the refusal at build time. On 「新增门禁默认否」: this adds no new rule and no repo/CI gate. It moves one existing product judge earlier in a product command, and the VALIDATE_ONLY_GATES row PR feat(metadata-protocol,cli,cloud-connection)!: the override write gate — only the base's paired .custom declares an override (ADR-0146 D2) #28554 recorded is retired by it. ⛔ No second spelling of the judge.
    • Grade p3: authoring ergonomics; nothing is admitted silently today.
    • Dispatchable now; this seat dispatches it.

    Generated by Claude Code

  3. added
    area:devpath
    pm:queue
    on Nov 1, 2026
  4. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-project-manager · session_0186vfjHHMsRXC9EUT9hTFMo

    Claim: PM loop round 4 · card thread · 2026-11-01T12:21Z
    Session: session_0186vfjHHMsRXC9EUT9hTFMo (the seat); the card thread is session_01FEkQ5nEQqaP6EhMwUoWpZf
    Account: os-project-manager (the seat's linked user; the card's assignee)
    Branch: claude/project-thread-a4xts4 (the card thread's harness-pinned branch; it names no issue, so this claim is the identity record)
    Worktree: the card thread's own container checkout
    Domain: domain:server
    Seat: domain:server#2
    Ruling-ref: the maintainer, 2026-11-01T03:46Z: 「server 车道现在就是你负责,任务有一大堆啊,都可以派,包括 p3」, with 2026-10-26T10:29Z 「p1 p2 处理完了,就可以处理 p3」. With 2026-11-01T12:11Z 「定级你可以自己决定」; graded p3, answer A, by this seat (6557795179).
    File surface: packages/cli/src/commands/compile.ts, packages/cli/src/utils/override-declarations.ts (reuse only), the VALIDATE_ONLY_GATES row, tests; changeset
    Container & model: M, mode:thread, model: opus (--tier names no path mandate: PM's call, default), effort: medium
    Clause-②: no (narrowing) expected — a build that emitted an artifact with a refused override declaration is refused; the dev measures and declares
    Metadata-protocol: none (expected; the dev measures and declares)
    Responsibility: the dev wires the existing judge into os build, retires the validate-only row, with red-first, controls and ablation; the seat runs the contract review owed and lands
    Thread-read: none
    Premise: read from PR #28554's review (6556791212); the dev re-reads compile.ts on origin/main first
    Serial constraints cleared: PR #28554 merged (d6e09673); epic #28236 cards active in the cli, re-read open PRs before pr_create
    Resume-from: none — fresh from origin/main

    State: → pm:dispatched, assigned to os-project-manager, recorded by this claim.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-project-manager · session_01FEkQ5nEQqaP6EhMwUoWpZf

    os-dev-report
    {
    "issue": 28643,
    "status": "done",
    "branch": "claude/project-thread-a4xts4",
    "pr": "#28681",
    "session": "session_01FEkQ5nEQqaP6EhMwUoWpZf",
    "premise_still_valid": true,
    "summary": "Premise held on origin/main 0b6a52e: os build --json exited 0 and wrote dist/objectstack.json for a dependent declaring overrides of com.acme.crm and for a packages[] stack whose dependent ships the base's dashboard name, while os validate refused both. compile.ts step 3b-iii (right before checkDependencyRanges, ahead of every artifact write) now calls the existing findOverrideDeclarationRefusals and refuses with os validate's rows and exit code 1, writing no artifact; --json carries the rows on errors, the text face prints os validate's heading and PATH [CODE] MESSAGE bullets. The parity ledger's findOverrideDeclarationRefusals row moved from VALIDATE_ONLY_GATES (now empty) to SHARED_NON_REGISTRY_GATES. New in-process unit test (no spawn) pins build rows and exit code EQUAL to os validate's for the same config, plus the pair control. Claim fields: Clause-②: no (narrowing) and Metadata-protocol: none as measured; cli patch changeset with ADR-0087 not-required (no-migration-prescription), which check-adr-0087-registration requires on a (narrowing) arm.",
    "tests": "Red at 0b6a52e (spawned bin/run-dev.js): partner and undeclared os build --json exit=0 + artifact; os validate --json exit=1 NOT_OVERRIDABLE. Green at head: both exit=1, errors equal validate's, no dist/; pair control exit=0 with artifact sha256 638c0fb8...b0b3a6 identical to base. Test file packages/cli/test/build-override-declarations.test.ts 4/4. Ablation via scripts/ablation-replace.mjs (anchor 1->0, blob 101f6bc6->597254ac, test imports src/ so no build hop): Tests 3 failed | 1 passed (4); restored blob == HEAD, git diff HEAD empty. cli typecheck clean + vitest run --project unit at 3ed0c55: Test Files 364 passed (364), Tests 5167 passed (5167), VERDICT command-exit 0. integration tier declared to CI (no spawn entry or integration file touched).",
    "gates": "dispatch-gates --commands: 61 families at 3ed0c55; changeset gates (adr-0087, no-major, empty-changeset) + nul-bytes + closing-keyword-parity re-run at 9d2ea03 (changeset-only delta), all exit 0. --ran: 61 derived, 60 run, 1 NOT-MEASURED (DERIVED from recorded exit 3): check:dual-build-cjs-loads, reason: needs a full pnpm build (packages/apps/studio/dist absent); CI runs it. check:type-check-debt and check:i18n-coverage first exit 3 (lock queue-timeout behind dogfood; showcase deps unbuilt), re-run under the lock: exit 0 each (0 raw tsc errors; 14 configs, none new). Record: /mnt/project-files/pm-orders/server/28643-gates-ran.txt. PR check-runs: in_progress at report time.",
    "dogfood_battery": "3ed0c554 (head 9d2ea03 adds only a changeset line) · os-verify-lock: VERDICT command-exit 0 · Test Files 369 passed | 3 skipped (372) · Tests 2981 passed | 28 skipped (3009) · no failures",
    "mcp_calls": "2 — issue_read x2 (#28643 get, get_comments); no MCP write tool",
    "api_writes": "1 relay stroke (fw-20261101T131546Z-bba287, run 41310404569): pr_create #28681 (POST /repos/objectstack-ai/objectstack/pulls); plus this os-dev-report comment (POST /repos//issues/28643/comments). git push x2 (not REST).",
    "open_questions": [],
    "out_of_scope_findings": ["carrier: none · noted, not filed — the text-face heading is spelled in both compile.ts and validate.ts (the #20393 view-container precedent); folding it into one export like picklistRefusalHeading needs validate.ts, outside this claim's file surface. The new test pins build's block equal to validate's. In PR Acceptance notes."]
    }


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-project-manager · session_0186vfjHHMsRXC9EUT9hTFMo

    Landing record · #28643 · PR #28681

    domain:server seat 2 · session_0186vfjHHMsRXC9EUT9hTFMo · 2026-11-01T14:00Z

    Reading Probe Result
    Merged PR #28681 state merged, merge commit 7dcbc038
    On main git merge-base --is-ancestor 7dcbc038 origin/main yes
    Queue refs git ls-remote origin refs/heads/gh-readonly-queue/* matching 28681 0
    Content git grep -c findOverrideDeclarationRefusals origin/main -- packages/cli/src/commands/compile.ts 2

    Release: claim 6557871622 (session_01FEkQ5nEQqaP6EhMwUoWpZf, branch claude/project-thread-a4xts4) · landed.

    • State: pm:dispatched removed; assignee cleared; the card closed on merge.
    • Resume-from: none.

    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devpathdomain:serverfindingpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions