Skip to content

Architect run drops the to-tickets report of work held back for a release #1340

Open

Description

@JacobStephens2

Finding

PR #1339 (for #1075) tells the Factory thirdshift-to-tickets skill what to do when one Ticket needs a release, deployment or host install of earlier Tickets in the same Spec. The skill publishes only Spec A's Tickets. In its final message, it reports that the rest needs a separate Spec after a release, naming the Ticket that needs the release and listing the work it held back.

The Spec review of #1339 found that, in an Architect run, nothing carries that report to the Day shift. The Spec's body also still describes the full scope.

Evidence

  • conclude in src/architect.rs (around line 498) reads only the strength line and the last line of the final message. With a plan, it marks the Spec ready and dispatches a Spec run.
  • This exits 1 on Split a Spec where a Ticket needs a release of its earlier Tickets #1339's branch, so nothing carries the report: rg -n "PlanReady\(" src/architect.rs | rg -q "final_message|report|held".
  • thirdshift-to-spec writes the Spec body earlier in the same session, and Split a Spec where a Ticket needs a release of its earlier Tickets #1339 leaves that skill unchanged. A Spec could therefore describe Spec A and Spec B while having only Spec A's Tickets. Its Spec PR would then close it with Spec B's work undone.
  • The held-back work survives only in the Session trace.

For Security fix publishing, a public repository's staged text has no place for the held-back work either.

Why this is not the implementing session's call

The Agent Brief on #1075 settled on "reports the rest as needing a separate Spec" and ruled out code changes ("A code check that enforces the rule", "Changing how a Spec run's readiness is computed"). The options here change product behaviour, and choosing between them is a Day shift decision:

  • carry the report into the Run notification or an issue comment;
  • have thirdshift-to-spec scope the Spec to Spec A when the session already knows about the split;
  • have the Architect run decline a plan whose report says work was held back;
  • accept that the report lives only in the Session trace.

Activity

  1. added
    needs-triage
    on Oct 25, 2026
  2. added
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  3. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed on selected Base main at 02c9654. Keep #1340 open for a Day shift decision and scope split.

    Evidence:

    • skills/thirdshift-to-tickets/SKILL.md:48-50 publishes only Spec A's Tickets and requires the release prerequisite and held-back work in the final message. PR Split a Spec where a Ticket needs a release of its earlier Tickets #1339 is merged; this guidance is present on the Base.
    • src/architect.rs:414-452 parses the final issue line and returns PlanReady containing only the issue URL and title. Earlier reporting text is discarded. For plans, strength is assumed Strong.
    • src/processes/architect.rs:62-84 dispatches that plan unless --plan-only was requested. src/architect.rs:548-581 checks repository, open state, freshness and labels, without checking whether the Spec's scope matches the published Tickets.
    • src/run_ending.rs:435-476 constructs notification accounting without the report; src/notification.rs:433-444 renders only the review outcome, title, strength and dispatch status.
    • skills/thirdshift-to-spec/SKILL.md:23 publishes the Spec before ticket splitting and contains no release-split narrowing instruction. An overbroad Spec is therefore possible. src/pull_request.rs:238-247 creates its Spec PR with a closing reference. An incomplete Spec actually being merged was not reproduced; Spec review could catch the mismatch.
    • src/security/fixing/publication.rs:271-326 retains only staged Spec title, body and Tickets, ignoring text before the staging marker. There is no separate held-work report field. Putting the report inside a staged body would publish it, so Security handling must preserve ADR 0015's privacy boundary.
    • src/run_ending.rs:482-486 and src/notification.rs:264 have no held-work condition preventing email-unless-merged suppression after Spec A merges.

    Recommended direction for decision: allow a correctly scoped Spec A to proceed, retain the release prerequisite and deferred work durably, and leave publishing the release step and Spec B to the Day shift. Use an Architect issue comment for its handoff and a private Security record for sensitive handoff details; notifications should expose only appropriate summaries or links. Decide these semantics before implementation.

    Validation: 33 Architect tests, 23 Security publication tests and 21 notification tests passed. These exercise existing contracts rather than an injected release-split scenario. scripts/affected-tests main reported no changed files. No source, Git history or GitHub changes were made.

    Questionnaire

    For the Day shift deciding #1340: the Factory skill reports work deferred until a release, but the successful Architect conclusion discards that report. Public Security staging also lacks a separate report field. The code establishes the gap; the following product decisions remain.

    1. Should a release split allow Spec A to become ready and run, provided its body covers only its published Tickets, or should the whole plan wait for the Day shift? I recommend allowing the narrowed Spec A; this determines readiness and dispatch behavior.

    2. Should the durable handoff be an Architect issue comment and, for Security fixes, an update to the private finding record, with only terse scope and private-record links in public text? Confirm the destinations so deferred work survives without exposing private finding details, consistent with ADR 0015.

    3. Should deferred work count as waiting for the Day shift even after Spec A Self-merges, so email-unless-merged still sends the handoff? I recommend yes; otherwise adding notification content alone can leave it unemailed.

    4. Do you approve shaping this into a small Spec with two Tickets after those decisions: (A) Architect scope narrowing and durable release-split reporting through conclusion and notification, including skill guidance and regression coverage; (B) Security staging and private handoff using the agreed contract, including privacy regression coverage? Ticket B should depend on A if they share a new reporting contract. This separates the public Architect behavior from the Security privacy work; this investigation publishes neither Ticket.

  4. added
    bug
    ready-for-human
    and removed
    in-progress
    on Nov 10, 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

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions