Skip to content

work-items/setup: check probe 6 FAILs on the zero-row schedule a skeleton-only bind now produces #1298

Closed

Description

@kyle-sexton

Filed by AI from the /work-items:work lane's post-review deferred-finding path while executing #1211.

Context

#1211 makes /work-items:setup apply write a skeleton-only recurring schedule ({"items": []}) by
default on a first-time bind, with the candidate-inference-and-interview pass opt-in. That makes
"binding present, schedule present, zero rows" the expected steady state after a first bind.

check probe 6 (the recurring-maintenance role-label probe) still gates on schedule file
presence
: "When a schedule exists, verify the resolved label is present … an absent label … — FAIL".
It was deliberately left untouched in #1211, whose Agent Brief scopes check's inspection behavior out.

The consequence: in a repo that has not provisioned the resolved recurring-maintenance label,
probe 6 reports FAIL for a [Maintenance] item that can never be created, because a zero-row
schedule produces no rows for the recurring automation or the work due-recurring tier to act on.
apply's own step 5 was updated in #1211 to gate on the schedule's final row count and treats zero
rows as informational, not a gate — so check and apply now disagree about the same state.

Reachability: apply's step-8 re-run is scoped to four probes (binding validity, JSON validity,
unique id/title, tracked-not-ignored) and excludes the label probe, so a bare first apply does
not trip it. It surfaces on a standalone /work-items:setup check, and on a second apply
(whose intro runs check in full) once the binding exists.

Cost of leaving it: the first thing an operator sees after the deliberately-quiet skeleton-only bind
#1211 introduced is a spurious hard FAIL, which is the opposite of that change's intent.

Proposed work

  • Change check probe 6's condition from "a schedule exists" to "the schedule carries ≥1 item",
    mirroring the row-count wording apply step 5 already uses, and keep zero rows as INFO with the
    note that the label must exist before the schedule is ever seeded.
  • Consider adding a probe-3 INFO row for a present-but-empty schedule that points at
    apply --seed-schedule; today a zero-row schedule reports nothing at all, so check never tells
    an operator the schedule has no rows or how to seed it. (Surfaced by the same review; same file,
    plausibly the same change.)

Both stay read-only — this is the probe's verdict condition, not new inspection behavior.

Acceptance criteria

  • check against a binding + present schedule carrying zero rows, in a repo lacking the resolved
    recurring-maintenance label, reports INFO (not FAIL) for the role-label probe.
  • check against a schedule carrying ≥1 row in that same repo still reports FAIL for the
    role-label probe — the existing behavior is unchanged where it is load-bearing.
  • check's probe 6 verdict for a given state agrees with apply step 5's treatment of that
    same state.
  • check remains read-only — no file is written, no label is created.

References

Metadata

Field Value
Category unspecified
Area unspecified
Ecosystem unspecified

Activity

  1. added
    needs-triage
    on Jul 25, 2026
  2. added theissue type on Jul 25, 2026
  3. added
    needs-human
    and removed
    needs-triage
    on Jul 25, 2026
  4. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Verified

    This item describes a state that does not exist on main — it is a follow-up to unlanded work.
    Verification therefore ran against both surfaces, and every claim holds:

    On main (7cad5cae): --seed-schedule does not exist, and apply's role-label step is
    unconditional ("it is load-bearing, not optional"). So the reported disagreement is not present
    today.

    On the PR #1301 branch (chore/1211-setup-seed-schedule-opt-in, OPEN, unmerged), diffed against
    origin/main:

    • The skeleton-only default is introduced: a first-time bind writes "the provider binding, the
      role-label pass, and the empty {"items": []} skeleton", and "Steps 4–5 do not run". Zero rows is
      the expected steady state, as claimed.
    • apply's role-label step (renumbered 5 → 6) is rewritten to key on "the schedule's final row
      count
      , not on what this run wrote", and states that with zero rows a missing label is
      "informational, not a gate". Exactly as the item reports.
    • check probe 6 is untouched by the branch. It still reads "When a schedule exists, verify the
      resolved label is present … an absent label … — FAIL". Confirmed by grepping the branch blob and
      by finding zero diff hunks touching that text.

    So the disagreement the item describes is a genuine, unaddressed property of the #1301 branch, not
    something that PR already fixed. The item's reachability analysis also checks out: apply's
    verification re-run (renumbered 8 → 9) is scoped to binding validity, JSON validity, unique
    id/title, and tracked-not-ignored, and explicitly excludes the label lookup — so a bare first
    apply does not trip it, and it surfaces on a standalone check or a second apply.

    Blocked

    Linked blocked-by #1211. The premise this item corrects only exists once PR #1301 merges; ACs 1–3
    are unevaluable before then, and a fix written against main would have nothing to correct.

    Classification

    • Work class: work-class: scoped (C3, bug-fix-shaped). Two read-only surfaces of one skill
      file disagree about the same state — a defect, not a feature. Blast radius is bounded by the brief
      (one probe's verdict condition plus one optional INFO row), the change is docs/skill text with no
      runtime surface, and reversal is a bounded revert.
    • Priority: medium. It blocks no in-flight work; it produces a spurious hard FAIL that is
      cosmetically bad (it is the first thing an operator sees after a deliberately-quiet bind) but not
      functionally blocking.
    • Disposition: queued for ratification — not dispatched. The class above is C3
      bug-fix-shaped, which the loop's admission gate makes autonomous only under the first-drain
      earn-trust rule. Checked both paths: this item carries no recorded ratification of its own, and the
      work-loop's durable state on Lane telemetry: work-loop #1248 still reports "first_drain_complete": false. Fail-closed, so
      needs-human is applied and agent-ready withheld pending a human ratification reply on this
      comment. On ratification the item returns to the frontier autonomous-eligible — the ratification
      travels with it and it is never re-queued.

    Intended dispatch (what is being ratified)

    Scope is the item's own proposed work, which triage endorses as correctly bounded:

    1. Change check probe 6's condition from "a schedule exists" to "the schedule carries ≥1 item",
      mirroring the row-count wording apply step 6 already uses on the branch, and keep zero rows as
      INFO noting the label must exist before the schedule is ever seeded.
    2. Optionally add a probe-3 INFO row for a present-but-empty schedule pointing at
      apply --seed-schedule — same file, plausibly the same change.

    Both stay read-only. The item's four acceptance criteria are already well-formed as a behavioral
    contract and need no restatement here.

    Note for the implementer

    Write the fix against the post-#1301 text, not against main. The step this probe must agree
    with is numbered 6 on the branch (it was 5 pre-#1301), and the item body — filed before the
    renumbering settled — refers to it as "step 5". Match on the wording ("final row count"), not the
    number.

    Role-label resolution

    .work-item-tracker.json carries no config.role_labels, so the canonical roles resolved to their
    documented defaults (agent-ready / needs-human / recurring). Surfacing that explicitly rather
    than defaulting silently. needs-human was verified present in this repo's live label set before
    application.

  5. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor

    This comment was generated by AI. Claiming this item for a gate-audit pass on the pending kind=ratify-c3 marker; no labels changed by this comment.

  6. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor

    This comment was generated by AI during a gate-audit pass.

    This is a reply to the kind=ratify-c3 marker comment on this item — its first line is
    <!-- work-items:escalation lane=work-loop kind=ratify-c3 -->, posted 2026-07-25:
    #1298 (comment)

    No second marker is posted; this reply is the ratification record.

    The blocker in that marker has cleared

    The marker's Blocked section is now stale and its condition is satisfied:

    Verification — the defect is real on main today

    Re-verified against origin/main at c9879fb7 (the local file is byte-identical to the
    origin/main blob for this path):

    • plugins/work-items/skills/setup/SKILL.md:150-159 — check probe 6 gates on schedule file
      presence
      : "When a schedule exists, verify the resolved label is present … an absent label …
      — FAIL."
    • plugins/work-items/skills/setup/SKILL.md:265-272 — apply step 6 gates on row count:
      "Key this on the schedule's final row count, not on what this run wrote: with ≥1 row … With
      zero rows … a missing label is informational, not a gate."

    Two surfaces of one skill therefore return different verdicts for the identical state
    (binding present + schedule present + zero rows + resolved label absent). Confirmed live.

    This repo is a live instance of the zero-row steady state, though deliberately stated: not of
    the false FAIL itself. .work-item-tracker.json is the skeleton
    ({"schema_version":"1.0","provider":"github","config":{"lease_ttl_hours":24}}, no
    config.role_labels, so the role resolves to its documented default recurring), and
    .github/recurring-schedule.json is present carrying 0 rows (jq '.items | length' → 0) —
    exactly the post-bind steady state #1301 made the default. Probe 6 does not FAIL here only because
    the resolved recurring label is provisioned in this repo's label set, so the presence branch
    finds it. The spurious FAIL requires this same state in a repo that has not provisioned that label.
    The textual disagreement between the two surfaces, verified above, is what establishes the defect —
    it does not depend on this repo reproducing the failure.

    Note for the implementer, confirming the marker's own note: the item body's "step 5"/"step 8"
    citations are stale. The live file numbers these step 6 and step 9. Match on the wording
    ("final row count"), not the number.

    Which fix shape this is

    Correcting the probe's logic — NOT relaxing what the probe demands. This distinction decided the
    adjudication, so it is recorded explicitly:

    Panel

    Three seats, prior rationale withheld from both external seats — each received only the issue
    title + body + the classification question. The kind=ratify-c3 marker, the work-class label, the
    merged state of #1301, and all prior lane conclusions were withheld.

    Seat Who Class (a) sec (b) pin (c) cross-cut (d) irreversible (e) human call Autonomous? Confidence
    A Fresh Claude reviewer (isolated context, required to ground in the real file) C3 NO NO NO NO NO YES high
    B OpenAI Codex (alternate vendor) C3 NO NO NO NO NO YES high
    C This gate-audit agent's own read, formed before reading A or B C3 NO NO NO NO NO YES high

    Consensus: unanimous 3-of-3, all high confidence, all five human-floor gates NO.

    Independent corroboration from the seats:

    Cross-cutting answered on evidence, not shape: a repo-wide grep found no consumer anywhere that
    gates on check's PASS/FAIL verdict table. apply's step-9 re-run is scoped to four probes and
    excludes the label lookup; work/SKILL.md:63 references /work-items:setup only as a
    binding-absent remediation pointer, never on probe 6's verdict. The FAIL→INFO change alters no
    admission behavior outside this file.

    Ratification

    I ratify this item for autonomous execution under the first-drain C3 earn-trust rule. It is
    genuinely C3 — bounded and reversible — and is not a security-surface change, not a
    dependency-pin/checksum/SHA change, not cross-cutting, not hard to reverse, and not a product or
    priority call reserved to a human. agent-ready is added and needs-human removed in a single edit;
    the ratification travels with the item and it is not to be re-queued.

    Normal PR review and merge gating still apply in full — only pre-implementation approach approval is
    waived. This item authorizes authoring a PR; it does not authorize merging one.

    Intended dispatch (what is ratified)

    1. Required. In plugins/work-items/skills/setup/SKILL.md, change check probe 6's condition
      from "a schedule exists" to "the schedule carries ≥1 item", mirroring the "final row count"
      wording apply step 6 already uses, and report zero rows as INFO noting the label must exist
      before the schedule is ever seeded. The ≥1-row FAIL is retained verbatim — acceptance
      criterion 2 is the guard on that, and it must not be weakened.
    2. In scope, discretionary placement. The INFO row for a present-but-empty schedule pointing at
      apply --seed-schedule. Ratified as in scope so the implementer is not left to decide
      admissibility — but note Seat B's finding that probe 3 establishes only file presence and cannot
      distinguish empty from malformed, so probe 4 (after JSON/root-shape validation) is the sounder
      home
      than the probe 3 the body proposes. Implementer's judgment on placement; both are the same
      file and the same change.
    3. Recommended. Add check-side eval coverage for the two states (zero rows + missing label →
      INFO; ≥1 row + missing label → FAIL). Both seats flagged that check has no eval coverage at all
      today, and criterion 2 deserves a regression guard. Plus this repo's conventional patch version
      bump and CHANGELOG entry for the plugin.

    check remains read-only throughout — no file written, no label created (acceptance criterion 4).

    This is an edit to a skill's prose body, which CLAUDE.md explicitly scopes out of this
    repo's fresh-docs mandate ("that same skill's prose body is a prose edit and is out"). No
    upstream-documentation gate applies. Write the fix against the current main text.


    Edited after posting to correct two evidence statements in the original text: a blocked-by summary
    field misattributed from #1211's API object to this item, and an overstatement that the spurious FAIL
    was reachable in this repo (it is not — the recurring label is provisioned here). Neither correction
    changes the classification, the consensus, or the ratification; both are corrected above.

  7. added
    agent-ready
    and removed
    needs-human
    on Jul 29, 2026
  8. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor

    This comment was generated by AI. Gate-audit pass complete and the triage-lane claim is released; the item is ratified and autonomous-eligible.

  9. self-assigned this
    on Jul 29, 2026
  10. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  11. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor

    This comment was generated by AI from the work-loop worker lane.

    PR #1747 is open and close-linked (Closes #1298): probe 6 now branches on the schedule's row count exactly as apply step 6 does, with the ≥1-row FAIL clause retained byte-identical, an unparseable schedule explicitly barred from being read as zero rows, probe 4's empty-items INFO row added, and the first check-side eval coverage (zero-row → INFO, ≥1-row → still FAIL, malformed ≠ zero rows). Cleared by an independent fresh-context review with rationale withheld — no blocking findings; its two should-fix items were applied before the PR was opened. Not merged: the merge lane owns everything after.

  12. kyle-sexton commented on Jul 29, 2026

    @kyle-sexton
    MemberAuthor

    This comment was generated by AI. Work complete and the work-loop claim is released; PR #1747 is open and awaiting review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Bug.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions