Skip to content

feat(improvement): add unattended find settings and verified architecture filing - #17091

Merged
kyle-sexton merged 6 commits into
mainfrom
feat/improvement-knobs-unattended-candidates
Nov 18, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
feat/improvement-knobs-unattended-candidates

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

No related issue: no commit on this branch names a work item.

Summary

Unattended /improvement:find could set its per-run cap, size band, scope and dismissed-candidate handling only in the invocation prompt, and it skipped /architecture:improve, whose flow asks questions. This branch makes those four controls settings and gives the deepening lens an unattended mode whose verified Strong candidates find can file.

This repository sets verification_skills.improve: standard, so its unattended runs reproduce the candidates they may file. The reader takes that value from the default branch, so it applies after merge. A repository left at the default light level files no architecture candidate, and the run's report says how to raise the level.

Fix

/improvement:find

  • New .claude/improvement.md keys: find_run_item_cap, find_run_item_cap_floor, find_run_item_cap_ceiling, find_size_band, find_scope and find_suppress_dismissed. Each resolves from the invocation prompt, then config, then the bundled default.
  • find_open_item_cap now applies to each source label separately, and user-global and personal layers can only lower it.
  • The per-run cap counts filings across both source labels.
  • find runs /architecture:improve deepening --unattended inline when that skill is available. It files a candidate under source: architecture-improve only when the entry says recommendation: Strong and signal-verified: true, and the file's verification level is standard or strict. This is a fixed rule with no setting.
  • A verified Strong candidate takes structural-signal confidence, and every other candidate takes judgment confidence.

/architecture:improve

  • deepening --unattended asks nothing, renders no page, and writes a candidate file whose header records the mode, verification level, threshold, producer and source commit.
  • A security defect appears in that file only as a security-defect: withheld line.
  • A new improve object in architecture.yaml holds unattended_min_badge, history_commits and exclude_authors, read by improve-settings.mjs. The defaults match the values the lenses used before.

Config-cascade contract

  • New Implementers and root-rule rows for improvement, with find_open_item_cap declared as a lowest-value policy floor, and for architecture (improve).

Verification

This diff adds five eval cases. find-unattended-run-cap-from-config is among them because no other case covered a run control read from team config. Four ran at commit 9178cd48a0 with three runs per arm, and the fifth could not start on the test machine. The later merge of main changed no skill, reference or eval file in plugins/improvement, so these scores still describe the merged code.

Eval case Validity With plugin Without plugin
find-unattended-files-verified-architecture-only VALID 1.00 0.81
find-unattended-light-files-no-architecture VALID 1.00 0.83
find-unattended-personal-cap-cannot-raise VALID 1.00 0.80
find-unattended-run-cap-from-config VALID 1.00 1.00
improve-unattended-writes-candidate-file Did not run None None
  • The gain over baseline is not established. Each case ran as its own pass, so the noise report reads n too small to call for all four.
  • find-unattended-run-cap-from-config cannot show a gain. The baseline also scored 1.00, because the model reads find_run_item_cap: 1 from the config file without the plugin. It shows the plugin honors the key, and it does not show the plugin causes that behavior.
  • improve-unattended-writes-candidate-file did not run. It grants Bash, and the CLI refused every run: "the Docker (~/.docker, DOCKER_CONFIG) credential store on this machine holds a symbolic link inside it (at or under its "contexts" entry), so the Bash sandbox cannot reliably exclude it". The unattended candidate file is therefore unmeasured.
  • The judge graders are uncalibrated, and the judge was the same model as the model under test. Every judge vote was unanimous, and a read of each case's replies agreed with the verdicts.
  • improve-settings.test.sh: 18 checks passed.
  • sync-config-cascade-semantics.test.sh: 12 passed, 0 failed, and the generated table is current.
  • validate-plugin-contracts.test.sh: 230 passed, 0 failed, and validate-plugin-contracts.mjs passes.
  • check-purged-em-dashes.sh, check-as-of-recheck.sh, check-changelog-fragments.sh (--check and --check-required origin/main) and markdownlint on the changed Markdown pass.
  • No eval case covers these behaviors: the open cap applied per label, rejecting a candidate file whose source-sha differs from HEAD, --unattended on a lens other than deepening, and the /improvement:setup warning for a personal cap above the team value.
  • Left out: real work-item filing, because the find eval cases narrate the filing decision with writes and tracker calls switched off; the CI test lanes and both AI review lanes, because a draft skips them.

Related

🤖 Generated with Claude Code

…ended architecture scan

Unattended /improvement:find takes its per-run cap, size band, scope and
dismissed-candidate handling from .claude/improvement.md, in the order
invocation prompt, config, bundled default. Personal layers can only
lower find_open_item_cap, which now applies to each source label.

/architecture:improve deepening --unattended asks nothing, renders no
page and writes a candidate file whose header records the mode,
verification level, threshold, producer and source commit. A security
defect appears there only as a placeholder line. find runs it inline and
files only candidates whose signal was verified, under the
source: architecture-improve label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held as a draft until the owner decides how verified filing becomes reachable and confirms the filing rules listed under Open decisions.

kyle-sexton and others added 3 commits November 18, 2026 09:23
A candidate can keep signal-verified: true after re-badging lowers it
below Strong, so the filing rule now requires both the Strong badge and
the verified signal.

Set verification_skills.improve to standard for this repository, so
unattended runs reproduce the candidates they may file once this reaches
the default branch.

Add config-cascade rows for the improvement plugin, with
find_open_item_cap as a lowest-value policy floor, and for the
architecture improve settings.

Add an eval case for a per-run cap set in team config, and make the
verified filing case hold a verified candidate below Strong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The stock lookup candidate is verified, so a reply that calls it
unverified gives the wrong reason and must fail the judge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 15:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T15:12:27.400102Z 80e9b5f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 80e9b5f0fd4933e2bb84854a8f0d2df8fb4bc5a9. What it wrote, as data:

What it wrote (33 lines)
Summary: The spec is PR #17091's own title and body, since no issue is linked. The diff covers
  everything the body describes: the six new `find_*` keys and their resolution order, the per-label
  open cap that personal layers can only lower, and the per-run cap counted across both labels.
  Inline `/architecture:improve deepening --unattended` is there too: `find` files a candidate only
  when it is Strong and signal-verified at `standard` or `strict`, and it checks the source-sha. So
  are the candidate file header and the `security-defect: withheld` placeholder, the `improve`
  schema object read by `improve-settings.mjs` (defaults 100 and `[bot]`), the config-cascade rows,
  and `verification_skills.improve: standard` in `docs/conventions/architecture.yaml`. Reading the
  diff, I found no logic error or safety problem. The verdict is fail because nothing tested the
  change on the judged head. The pr-require-checks run has Select Tests green, but Test Bash, Check
  Plugins, Lint Shell, Check Skills and Check Tests were all skipped, and those suites cover the new
  `improve-settings.test.sh`, the new scaffold scripts and the plugin skill changes. CI Status
  failed. The body says a draft skips these lanes, and its local test results are not CI evidence.
  For a human: giving `find_open_item_cap` a separate count per source label lets unattended filing
  keep up to twice the default 5 open items, one cap per label. The spec asks for this, but a
  trusted comment says the PR is held as a draft until the owner confirms the filing rules. That
  comment refers to an "Open decisions" section the body does not have. The
  `improve-unattended-writes-candidate-file` eval never ran, so the unattended candidate file is
  unmeasured. I found no text that tries to steer the reviewer.
- plugins/architecture/skills/improve/scripts/improve-settings.test.sh: the Test Bash job
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44331979270/job/134899009219)
  was skipped on the judged head, so this new suite never ran in CI. Run the pr-require-checks lanes
  on the head, for example by marking the PR ready for review, and get Test Bash green.
- plugins/architecture/skills/improve/SKILL.md: Check Plugins
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44331979270/job/134899008331)
  and Check Skills
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44331979270/job/134899009408)
  were skipped although they cover the changed plugin skills, schema and evals. Get them to run and
  pass on the judged head.
- plugins/improvement/evals/find-unattended-files-verified-architecture-only/scaffold.sh: Lint Shell
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44331979270/job/134899009387)
  was skipped, so none of the new shell scripts (all eval scaffold.sh files and
  improve-settings.test.sh) were linted in CI. Get Lint Shell to run and pass on the judged head.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44332643089

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 120d9aa
Run 44332643089

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton

Copy link
Copy Markdown
Member Author

The earlier hold has ended: the owner settled the filing rules on 2026-11-18, and this pull request carries those answers. Filing stays Strong-only, verified-only stays a fixed rule, and this repository sets verification_skills.improve: standard.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 120d9aa941658d84e811de39c3c9eda24f402c3f; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 691b6dfe9ba483e998d9dfc13290ede5ba3c28cd: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): 120d9aa → 691b6df

I read the whole incremental change, which is one file: plugins/improvement/skills/find/SKILL.md. This lane had already reviewed an earlier head, so this pass looked for blocking findings only. I found none.

The earlier finding is fixed. Both places that list what an unattended /improvement:find run may write now include the memory-root .gitignore that architecture:improve creates:

  • The "Nothing else mutates" rule (L228) uses the same wording as the code-metrics entry on the next line.
  • The verb contract's unattended list (L269-L271) adds the .gitignore to the third item rather than as a fourth. "Exactly three more things" is still accurate.

The thread on this point is settled (resolved, lines changed since resolution: no), and this push does not reopen it.

No plugin manifest changed in this push. The PR closes no issue, so there are no acceptance criteria to check. Loosened checks: no test, grader or check was weakened. The prompt gave no verdict or patterns line, so the default applies. Loosened-check verdict: fail; patterns: 0. I found no embedded directives in the PR context, settled-threads or prior-findings files.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 691b6dfe9ba483e998d9dfc13290ede5ba3c28cd: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17091 (head 691b6df), incremental since 120d9aa

I found no security issues in this change. This is a blocking-only review because this lane already reviewed head 120d9aa. I read the whole incremental change: the one listed file, plugins/improvement/skills/find/SKILL.md, with two hunks.

What changed: two sentences in the find skill's list of what an unattended run may write. Both now include the memory-root .gitignore that architecture:improve creates beside its git-ignored candidate file under <memory_dir>/architecture/improve/<branch-slug>/.

Why this is not a finding:

  • It brings the docs in line with what already happens. The skill already lets an unattended run write the candidate file under the memory root. The new text names the .gitignore that keeps that file out of git. The same sentence already allowed this for code-metrics' clone-growth file ("with its memory-root .gitignore").
  • It cannot overwrite an existing file. The text only allows the file to be created when it is absent.
  • It stays inside the memory root. The new write has no path outside <memory_dir>. It does not widen any token, trusted actor, credentialed-lane input or billing path.
  • No guardrail was removed. The rules that the run "never picks a candidate, never prioritizes the queue, never starts implementation" are unchanged. Prioritization of filed items is still always human-gated. Because no rule was removed, I did not need to check the instruction exception register.

The changed file matches no trusted-path glob. The change touches no trust control, merge hold or plugin manifest.

Prior finding: the earlier summary on 120d9aa (#17091 (comment)) reported no findings, so there is nothing to carry over.

critical-findings: 0

…may write

The inline architecture lens creates <memory_dir>/.gitignore before its
first write, which the skill's list of allowed unattended writes left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 18, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 17fca9d Nov 18, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the feat/improvement-knobs-unattended-candidates branch November 18, 2026 16:15
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
kyle-sexton added a commit that referenced this pull request Nov 18, 2026
…ed pull requests

Record #17091, #17093 and ci-workflows#1136 as landed, state that the merge
gate now trusts admitted own-agent filings, and say that no lane produces
telemetry yet because the receiver is off by default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/architecture/skills/improve/scripts/improve-settings.mjs 6 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/architecture/skills/improve/scripts/improve-settings.mjs:24 ROR productive input-gap

The run's summary has the full report.

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

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant