Skip to content

fix(app-control): switch to the upkeep branch before map refresh's source wave and live pass - #10901

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9947-40831902867-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9947-40831902867-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9947

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/app-control:map refresh switched to (or created, or merged the default branch into) the upkeep branch only at step 6.1, after the source wave and live pass had read whatever branch was checked out, so corrections could describe a tree the upkeep PR does not ship. Per the recorded decision (option a), the branch step, with its dirty-tree checks and blocked outcomes, now runs in a new § Upkeep branch before step 4 for every pass that ships through the upkeep PR. Ticket-branch passes still stay on and commit to their own branch (the later § Ticket branch design), and every pass returns to its starting point however it ends. The clean-pass record runs after that return, so it stores the HEAD the next step 2 compares.

Not verified

  • Tidy partly ran: the write-for-agents pass ran (reflowed long lines). The ai-slop detector script could not run because this lane's Bash allows only the named wrappers, so the AI-slop pass was a by-hand rubric read of the listed lines (no em dashes, no flagged vocabulary). Passes 1-2 (code) did not
  • Eval suites for app-control (map-* cases, including map-legacy-dirty-map-blocks and the edited map-triage-product-regression) were not executed here; left to the PR's CI
  • check-affected skipped validate-plugins sub-checks, changed-skills and typos in this lane (they run checked-tree code or typos is not installed); left to the PR's CI
  • Acceptance criterion 'for every pass' is applied to every pass that ships through the upkeep PR. Ticket-branch passes (which commit on the ticket branch per the § Ticket branch design added after the decision) and detached-HEAD-off-tip passes (report only) do not switch, because their evidence alrea
  • Finding: the checkout holds untracked files this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). They are not part of this change and must not go into the patch
  • Review ran as a local fresh-context subagent because review-venue.txt was absent from the scratchpad

Fix

  • plugins/app-control/skills/map/reference/refresh.md: new § Upkeep branch before step 4, holding the old step 6.1 (branch name, feature-map-upkeep listing, create-or-merge, ls-files/status checks, blocked outcomes) plus the legacy conversion's dirty-map check and attended ask, now run before any swit
  • plugins/app-control/skills/map/SKILL.md: Refresh step 4 now switches to the upkeep branch first (with the ticket-branch and detached-off-tip exceptions) and lists feature-map-upkeep branches; step 6 commits on the upkeep branch; record runs after step 7's return; step 7 covers passes blocked early
  • plugins/app-control/evals/map-triage-product-regression/case.yaml: the clean-pass criterion no longer requires 'creates no upkeep branch' (a clean pass now creates or merges it locally before step 4); it requires no committed edit, no push and no pull request
  • .changes/app-control/work-resolve-issue-issue-9947-3e8b51d2.md: patch changelog fragment (### Fixed), written by hand because new-changelog-fragment refuses a detached HEAD

Verification

The runner ran each check from the base copy against 5830691:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • check-changelog-fragments: all 13 fragments valid (failed first for a missing ### section, fixed, passed on every rerun after tidy and review)
  • check-affected: 11 passed, 7 skipped, 0 failed over 4 changed files
  • check-evals-quality plugins/app-control/skills/map/evals/evals.json: PASS, 0 warnings
  • fresh-context review subagent over the whole diff: 7 confirmed findings (legacy dirty check and attended ask had moved after the switch, breaking map-legacy-dirty-map-blocks; map-triage-product-regression eval contradicted the new order; SKILL.md omitted the ticket-branch legacy-conversion switch an
  • git-read diff/status: 4 changed files in one area (plugins/app-control + .changes/app-control), under the tidy cutoffs
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40831902867

Left out: the items under Not verified.

Related

#9947

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5830691434452452811ab141f47525ab3408ec7a: 0 finding(s), 0 as inline comments.

No security findings.

critical-findings: 0

I read the whole diff (4 files) and the PR context. The PR context was treated as data. It contained no embedded instructions aimed at the lane.

What changed

  • plugins/app-control/skills/map/reference/refresh.md and SKILL.md move the upkeep-branch step (old step 6.1) ahead of the source wave and live pass, as a new § Upkeep branch.
  • One eval criterion in plugins/app-control/evals/map-triage-product-regression/case.yaml is reworded.
  • A changelog fragment is added.

Trusted paths: none of the four changed files matches a listed trusted path or a trust control. The diff has no workflow, action, token-scope, kill-switch, merge-hold or manifest change.

Manifest lens: no plugin.json or marketplace.json change, so there are no manifest <field> lines.

Instruction-surface lens: the diff relocates standing rules in a skill body, so I checked each one for deletion or softening:

  • The legacy-conversion dirty-map check and the attended ask now run first in § Upkeep branch, before any switch.
  • The git ls-files / git status --porcelain --untracked-files=all checks and their blocked outcomes are kept, moved ahead of step 4 unchanged.
  • The feature-map-upkeep/* rule "report by name, never check out, commit to, merge or adopt" is kept.
  • The "never rebase" and "Regressions go to the report or /bugs:write, never into the pull request" rules are kept.
  • The rule that a ticket-branch pass pushes and opens nothing is kept.
  • Hardening is added: a merge left in progress is aborted before the return. The return-to-start rule now also covers passes blocked early.
  • The eval criterion drops "creates no upkeep branch" and replaces it with "commits no edit, pushes nothing and opens no pull request". This follows from a clean pass now creating or merging the upkeep branch locally. Nothing is pushed or opened on a clean pass, which the Outcomes text still states.

No protected-class rule is removed that nothing else enforces. I did not read docs/conventions/instruction-exception-register/README.md; I judged by consequence.

Spend: none beyond existing lane runs; no hold.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 5830691434452452811ab141f47525ab3408ec7a: 1 finding(s), 0 as inline comments.

Code review

I read the whole diff and the closing issue #9947. I did not run any of the code or the evals.

The change meets the three acceptance criteria. The upkeep branch step now runs before step 4 in refresh.md § Upkeep branch. The dirty-tree checks and blocked outcomes moved with it. Every pass returns to its starting point, and step 7 now covers passes blocked early.

Finding: sibling evals still assert "no branch is created"

This PR makes a clean pass create or merge the local upkeep branch before step 4. map-triage-product-regression/case.yaml was updated for that. plugins/app-control/skills/map/evals/evals.json was not, and three cases there now contradict the new behavior. The lines are unchanged, so no inline comment can carry them.

  • evals.json L280 and L286 (refresh-clean-pass-records): the expected output says "no branch is created", and the expectation says "Creates no branch and opens no pull request". Per refresh.md § Outcomes (clean), the pass has already created the upkeep branch locally.
  • evals.json L293 and L300 (refresh-driver-unavailable-writes-no-candidate): the same "No branch is created" and "Creates no branch" assertions. The driver failure is a step 5 blocked outcome, so the switch before step 4 has already happened.

A run that follows the new SKILL.md would fail these graders. Change them to "pushes nothing and opens no pull request", as the PR did for the map-triage-product-regression case. Case 27 (L334 and L340) is still correct, because that block happens before any switch.

The PR's "check-evals-quality: PASS" cannot catch this, because the check does not compare an assertion with the skill text. The PR also lists the eval suites as not run.

Notes

  • Behavior change, per the recorded decision (option a): a dirty tree outside the control skill directory now blocks both passes up front. Before, it blocked only when a correction needed shipping.
  • Spend: none that is prepaid-credit relevant, and no cost hold.
  • Trusted paths: none of the changed files match the trusted globs.
  • PR context: no embedded instructions found.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 5830691434452452811ab141f47525ab3408ec7a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 920a230 Oct 29, 2026
42 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9947-40831902867-1 branch October 29, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(app-control): run map upkeep passes on the tree the upkeep PR ships

0 participants