You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/10/25 14:59:11 UTC
[PR] fix(setup): complete-upgrade review follow-ups [magpie]
potiuk opened a new pull request, #1816:
URL: https://github.com/apache/magpie/pull/1816
## Summary
Follow-up to #1813, from an adversarial review (codex) of that PR plus the leftovers noted there.
- **Stale script copies are no longer mistaken for local edits.** The old rule skipped any user-scope copy with lines the framework copy lacks, which an unmodified older copy also has whenever upstream changes or removes a line (hardening changes included), so it blocked the very updates the skill exists for. Now a copy whose blob hash matches a shipped version in the framework's git history is an *Update* / *Fix* item; only an unmatched copy is held back as a local edit. Without history to compare (marketplace or snapshot), the copy becomes an item that names the lines it replaces, and the old copy is saved to the scratch directory before the write.
- **Correct install step for non-plain script entries.** Everything used to be sent to `setup-isolated-setup-install` Step P, which only installs allowlists and git hooks. Now: `gpg-touch-wrap-*` / `shims/` → Step K, git-hook flavours → Step P.3, `container_gateway` → Step L, `skill_evals` + `magpie-run-evals.sh` → Step M, `agent-guard.py` + `guards.d` → the agent-guard wiring.
- **Missing-checker fallback that can actually run.** It ran the plugin's `setup_preflight` inside the sandbox, where Bash cannot read the plugin cache. Now it uses the in-tree package (framework checkout or snapshot) or applies `setup config` Step 2's personal-layer rule by hand (marketplace).
- **"Gathered sandbox write scope" is defined**: a sandboxed probe write per target directory.
## Type of change
- [x] Skill change — eval fixtures updated below
## Test plan
- [x] `prek run --all-files --skip workspace-pytest` passes
- [x] `prek run workspace-pytest --from-ref upstream/main --to-ref HEAD` passes
- [x] Eval suite `tools/skill-evals/evals/setup-complete-upgrade/`: 16/16, twice in a row (was 13 cases; apply case 2 — previously flaky — now states the checker refresh is not a bypass)
- [x] New fixtures: `step-plan/case-10-stale-shipped-version`, `case-11-no-history`, `case-12-python-package-route`; `case-4-local-only-lines` now states the hash matched no shipped version
## RFC-AI-0004 compliance
- [x] **HITL** — the no-history overwrite is a plan item whose line names the lines it replaces; nothing is written without the plan approval
- [x] **Sandbox** — the fallback no longer suggests executing anything outside the tree; bypassed calls still execute only code from `~/.claude/scripts/`, the plugin cache or system paths
## Notes for reviewers
- `measured_tokens` 5599 → 6170; `docs/mode-economics.md` updated.
- The design doc's two affected sentences are updated to match.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(setup): complete-upgrade review follow-ups [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1816:
URL: https://github.com/apache/magpie/pull/1816
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org