Skip to content

ci: a label-gated lane runs the three dogfood shards on a breaking PR's head, outside the required set (ruling D on #38688) #38694

Description

@objectstack-fleet

triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

Filing gate: ③ maintainer ruling. Source: maintainer — 「云端流水线代跑」, picked on the decision card for #38688 at 2026-11-30T05:08Z (recorded in #38688 comment 7269391948, option D of the analysis in comment 7269199735).

维护者速读

What

A .github/workflows/** opt-in lane, gated on a label put on breaking PRs (title ! or a Clause-②: (narrowing) arm), that runs the three dogfood shards the merge queue runs, on the PR head. Not in the required set; never auto-labelled by path. Precedents named in the ruling: #14266 (+185/−0), #24554 (+136/−0).

Done when

Order and follow-through

Tier H (.github/workflows/**): the maintainer's approval before merge.

Activity

  1. added
    priority:p2
    pm:queue
    domain:devx
    on Nov 30, 2026
  2. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25

    Claim: PM loop round 1
    Session: session_01ADHkmRJUY9Ncce14hVHd25
    Account: os-steve
    Branch: claude/issue-38694-dogfood-optin-lane
    Worktree: objectstack-issue-38694
    Domain: domain:devx
    Seat: repo:objectstack#3
    Area: o3-F
    File surface: .github/workflows/dogfood-optin.yml (new; one label-gated opt-in workflow, the file name may change only if the dev's precedent read says so and the PR names it). Not .github/workflows/ci.yml, not any other workflow, not .github/labeler.yml, not scripts/pm/** (the landing door's read of this lane is #38688's other half). If the change needs anything else, stop and say so in the report.
    Container & model: M, mode:subagent, model: opus (dispatch-gates --tier: "Model tier — no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: no workflow runs the three dogfood shards on a breaking PR's head before the queue (.github/workflows/ci.yml:2966 dogfood job, Dogfood Regression Gate (k/3), is skipped on pull_request) | maintainer ruling D on #38688 (7269391948) asks for an opt-in lane | every breaking PR once #38684 removes the background route
    Thread-read: none
    Rulings read: card body (0 comments at 2026-11-30T05:17Z); #38688 7269199735 (analysis) and 7269391948 (ruling)
    Premise: holds (origin/main 5ac1ee0: grep -c 'pull_request.title' .github/workflows/*.yml → all 0; opt-in lanes pack-smoke-optin.yml, upgrade-harness-optin.yml exist; no dogfood*optin* file)
    Pre-claim lane: domain:devx — one new .github/workflows/** file; Tier H. Zone order rule 6 exception by the seat for this card (o3-area-F.md line 15, 2026-11-30T05:16Z); the seat takes Steve's nod before landing, then os-zhuang.
    Pre-claim deps: none. Blocks PR #38684 and #38688's door change.
    Prior rulings read: 2026-09-01 opt-in ruling quoted in pack-smoke-optin.yml (never a paths: filter, never in labeler.yml); #38688 ruling D (not in the required set, never auto-labelled; about 8 % runner cost).
    Fold-or-serial: not folded with #38688's door change (different surface scripts/pm/**, and it reads this lane's label and conclusion, so it follows serially).
    Serial constraints cleared: check-handover --inflight --paths=.github/workflows/dogfood-optin.yml --card=38694: clear.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 30, 2026
  4. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25
    os-dev-report

    {
     "issue": 38694,
     "status": "done",
     "branch": "claude/issue-38694-dogfood-optin-lane",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38705",
     "session": "session_01ADHkmRJUY9Ncce14hVHd25",
     "container_model": "M · mode:subagent · model: opus · effort: high (as dispatched; no served-tier reading taken in subagent mode)",
     "premise_still_valid": true,
     "summary": "Added one file, .github/workflows/dogfood-optin.yml (name per the two precedents). It is a pull_request-only lane gated on the label needs:dogfood-battery, with the precedents' two-limb label guard on every job, types [opened, synchronize, reopened, labeled], a per-PR workflow-level concurrency group plus job-level groups (the shard group carries the shard number), and contents: read with no secret. It runs a 3-way copy of ci.yml's dogfood job: closure build, OS_TEST_SHARD=k/3, vitest worker cap, stall guard, completeness guard, restore-only turbo seed, fail-fast false. The aggregate check the door reads by head SHA is 'Dogfood battery (opt-in)': it is success only when the matrix result is success AND all three --emit credentials of the run are present, so a cancelled or skipped matrix never passes. The lane is not a required context, has no merge_group, paths filter or labeler entry, and nothing applies the label. Live: on PR #38705, which is unlabelled, both new check names publish 'skipped' on head 9e8e9b20, so the file parses on the platform and an unlabelled PR runs no battery. The label does not exist yet (open question 1).",
     "tests": "No unit test applies to a workflow file. Live platform reading: GET commits/9e8e9b20e8/check-runs shows 'Dogfood battery (opt-in)' completed/skipped and 'Dogfood battery shard (${{ matrix.shard }}/3, opt-in)' completed/skipped, twice each (the opened and labeled skip-changeset events). Runner minutes: measured on 30 green merge_group ci.yml runs (2026-11-29T16:58Z..2026-11-30T04:16Z, 90 shard jobs): per shard 18.8 min median / 25.8 max, which makes one labelled push about 59 runner-min (61 billed, 75 worst). The ruling's arithmetic is 12.5/164 = 7.6 % (about 8 %) at one labelled push per PR. A re-read gives 99 queue runs in the last 24 h and 1428 in 7 d (about 204 a day, so 6.1 %). PR-side closure build on 27 green upgrade-harness-optin runs: 4.8 median / 6.2 max min. Not run: no ablation (a workflow, so os-dev's rule excludes it), no dogfood battery (no ! in the title and no narrowing arm), and no labelled live run (the label does not exist, and this dev may not add it).",
     "gates": "Final head 9e8e9b20. `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 36 commands. All 36 ran with exit codes captured before any pipe, every one exit 0, including check:required-contexts, check:pm-expected-skips, check:shard-attestation, check:stall-guard-budget, check:stall-guard-headroom, check:workflow-status-functions, check:workflow-step-name-quoting, check:aggregator-roster, check:pm-governed-merges, check:nul-bytes and check:pm-dispatch-gates (`timeout 560` foreground, fast tier 2686 cases in 409.3 s, exit 0). `--ran` reconciliation: '✓ dispatch-gates --ran: 36 derived famil(ies) accounted for — 36 run, 0 NOT-MEASURED'. On the first head ff2fb61f, check:stall-guard-headroom exit 1: its self-test needs guarded step names unique tree-wide, and the copied names collided with ci.yml. Commit 9e8e9b20 renamed the two guarded steps, and the gate re-ran with exit 0. check-governed-merges --branch: 'landing tier: H(人合)', split 'Tier H by content — a new workflow file', +274/-0. check-expected-skips --roster derives both new names as 'job-gate label opt-in needs:dogfood-battery', none refused. overlap-check --branch=HEAD before each push: 'VERDICT clean exit 0'. No actionlint exists in the repo. PR check-runs: NOT MEASURED, reason: the report goes out at PR open and CI convergence is the seat's.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "line_budget": "+274 / -0, 1 file (precedents +185/-0 and +136/-0). The header is about 115 lines of the 274: ruling, door contract, cost arithmetic, wiring rationale and drift risk. No ratchet or skills ledger is touched.",
     "files_changed": [
      ".github/workflows/dogfood-optin.yml"
     ],
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (dispatch fw-20261130T055909Z-77ef3d; POST pulls + labels skip-changeset; read-back identical 9636 bytes, labels skip-changeset, assignees none), and this os-dev-report via post-stamped (POST issues/38694/comments). git push x3 (probe, ff2fb61f, 9e8e9b20) are not REST writes.",
     "deviations": [
      "My second gate sweep was one foreground bash loop over 35 commands. The harness moved it to the background when it passed the 600 s tool limit; I did not spell a background run. It finished: every recorded line is exit 0, and the --ran reconciliation read them afterwards.",
      "check:pm-dispatch-gates ran in the foreground under `timeout 560`, not via os-verify-lock (os-dev: check:* gates do not go through the lock). It finished in 409 s, exit 0.",
      "Worktree created with --probe (an empty-branch push), per os-dev rule 1 for a self-built branch."
     ],
     "classifier_refusals": [],
     "open_questions": [
      {
       "question": "Create the label needs:dogfood-battery. It does not exist; GET /labels shows 96 labels and the needs: family holds only needs:contract-review, needs:pack-smoke and needs:upgrade-harness.",
       "options": [
        "A seat creates it (color 006b75 like the needs: opt-in family, description 'Opt-in pre-merge dogfood battery: the three queue shards on a breaking PR head (ruling D, #38688)') and adds its gh label create line to scripts/pm/ensure-pm-labels.sh beside the two precedents' lines, in a separate change",
        "B rename it before landing, which means editing four literals in the workflow and telling #38688's door card"
       ],
       "recommendation": "A, because the name follows the existing needs: opt-in family and #38688's door change only needs the literal fixed now."
      },
      {
       "question": "Exercise one labelled run before landing?",
       "options": [
        "A after the label exists, a seat hangs it on PR #38705 once (the lane runs from the PR's own merge commit), reads 'Dogfood battery (opt-in)' = success on the head, then removes it",
        "B land on the skipped-run evidence alone and let the first breaking PR be the first live run"
       ],
       "recommendation": "A. It costs about 59 runner-minutes and proves the green path, the credential count and the check-run-by-head-SHA read before #38688's door depends on them."
      },
      {
       "question": "Steve's OK. The PR is Tier H (.github/workflows/**, check-governed-merges verdict H).",
       "options": [
        "A the seat asks Steve on the thread with the PR link; it stays draft until then"
       ],
       "recommendation": "A. The ruling zone already says this; it is restated so the hand-off is explicit."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat (no card) · drift between two copies of one battery. The shard steps of dogfood-optin.yml copy ci.yml's dogfood job, and nothing pins them equal. Options for the seat: a pin test asserting the two jobs' test-step env/commands match, or extracting a workflow_call / composite unit (that edits ci.yml). Unrehearsed drift, so not a filed defect class. Dedupe words: dogfood optin drift, ci.yml dogfood copy, workflow_call dogfood",
      "carrier: #38688 (door change) · the door must read 'is there a success named Dogfood battery (opt-in) on the head SHA', not the newest run of that name: unrelated label events on the same head publish skipped runs of the same name. Noted, not filed.",
      "carrier: none · observation: on changeset-release/main, pack-smoke-optin.yml and upgrade-harness-optin.yml show conclusion 'failure' with zero jobs (e.g. run 41149496273, event pull_request, 'chore: version packages'). That looks like a startup failure on the bot's PR, not a lane verdict, and the new lane will look the same there. Read-only inference, not filed."
     ]
    }
  5. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25

    Closed by PR #38705 (Tier H; L1 ACCEPT 7270529850, contract review PASS 7270873623, verification run 46365583981 green on the head; maintainer's OK on the workflow change 2026-11-30T08:14Z; approved and merged by os-zhuang). Merge commit a1ef710a9b00f154725460fceb209c295c53dcef. pm:dispatched removed with this note. The landing door's read of the lane is PR #38727 (#38688), now unblocked. Recorded 2026-11-30T08:44Z.

  6. removed
    pm:dispatched
    on Nov 30, 2026
  7. added 2 commits that reference this issue on Dec 1, 2026
    a1ef710
    991520c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions