Skip to content

fix(architecture): unattended deepening sometimes omits the withheld security line #17196

Open

Description

@kyle-sexton

What happened

/architecture:improve deepening --unattended left the security-defect: withheld line out of its candidate file in 1 of 3 runs of the eval case improve-unattended-writes-candidate-file.

Why it matters

The placeholder is how an unattended run tells a person that a security defect needs review. A run that omits it reports nothing about that defect, and /improvement:find then has no count to carry.

No schedule runs this mode yet, so nothing is affected today.

Not known

The cause. The run's artifact keeps no trace, so it is not known whether the failing run missed the defect or found it and left the line out.

Done when

  • A rerun of the case that keeps traces shows why the line was left out.
  • The case passes security-placeholder-written in every run of a pass with at least 5 runs per arm.

Activity

  1. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Medium
    Uncertainty: Unknown
    Flags: none
    Blocked by: none
    Blast radius: the architecture plugin's deepening skill text and/or the improve-unattended-writes-candidate-file eval case; read by anyone running unattended deepening or its evals.
    Reversible: yes; revert the skill or eval edit.
    Open questions: none
    I understood this as: in 1 of 3 eval runs, unattended deepening wrote no security-defect: withheld line, and the cause is unknown. The done-when asks for a traced rerun that shows why, then a pass with at least 5 runs per arm where security-placeholder-written passes every run. The traced rerun and the repeated pass are runs an unattended lane may not be able to do, so they may be routed to a host. Whether the fix goes in the skill text, the eval case or both depends on what the trace shows. #17017 looks related (another flaky eval case), but this is not a duplicate of it, and no merged pull request I can see already fixes this.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: Uncertainty unknown is not one of known, knowable; no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Make the unattended deepening run write the security-defect: withheld line in every run, by first finding from a traced rerun whether the scan missed the defect or omitted the line, then fixing the skill text or the eval case.

    Related work

    Open questions

    1. The cause is unknown and the first done-when item is a traced eval rerun. Can an unattended run do that rerun, or is it a host-run step that must come before any edit?
      RECOMMENDED: Treat the traced rerun as a separate host-run step, and have its result decide the fix. Basis: judgment
    2. Should the fix change the skill text, the eval case, or both? If the failing run did not find the defect, the eval prompt may be at fault. If it found the defect and left the line out, the skill instruction is.
      RECOMMENDED: Wait for the trace. If the line was left out despite a found defect, make the skill say that the placeholder is a required step before the file is closed. If the defect was not found, make the scaffold's defect easier to find or have the case allow for the scan's real behavior. Basis: .base/plugins/architecture/skills/improve/actions/deepening.md:156
    3. What counts as a pass for the second done-when item: 5 of 5 runs per arm with a grader threshold of 1.00, or a measured pass rate across a larger sample? One failure in three runs gives little evidence either way.
      RECOMMENDED: Require all runs in a pass of at least 5 runs per arm to pass security-placeholder-written, keeping the existing threshold of 1.00. Basis: .base/plugins/architecture/evals/improve-unattended-writes-candidate-file/case.yaml:14
    4. Should the trace be kept by changing the eval harness so artifacts retain tool-call traces, or by a one-off local rerun?
      RECOMMENDED: Do a one-off rerun with traces on, and open a separate issue if the harness should keep traces permanently. Basis: judgment

    Sources read

    • plugins/architecture/evals/improve-unattended-writes-candidate-file/case.yaml:14: the security-placeholder-written grader requires a Write whose input matches 'security-defect: withheld', min 1, so a run with no such Write fails it.
    • plugins/architecture/skills/improve/actions/deepening.md:156: tells the run to write one security-defect: withheld line for each security defect the scan raised, just before the closing lines.
    • plugins/architecture/skills/improve/actions/deepening.md:158: the final output reports the count of withheld lines, so a skipped line also makes that count wrong.
    • plugins/improvement/skills/find/context/unattended.md:174: /improvement:find carries the withheld line as a count only, so an omitted line means nothing is carried.
    • plugins/architecture/CHANGELOG.md:10: describes the unattended deepening candidate file and the withheld-line behavior.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  5. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

  6. added
    host-run
    on Nov 22, 2026
  7. added this to the After zero milestone on Nov 22, 2026
  8. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    Both done-when items are eval runs (a traced rerun, then a pass of at least 5 runs per arm), and the cause stays unknown until the traced rerun. Evals are off org-wide (CLAUDE_EVALS_DISABLED=true), so this goes to the host queue (host-run) and the "After zero" milestone. Release condition: API key returns and CLAUDE_EVALS_DISABLED=false.

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

    host-run

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions