Skip to content

feat(setup-preflight): remind to run isolated-setup-update after upgrades and weekly - #1392

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:preflight-isolated-setup-reminders
Sep 26, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:preflight-isolated-setup-reminders

Conversation

@potiuk

@potiuk potiuk commented Sep 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Isolated-setup reminders in the pre-flight. Every skill's pre-flight now proposes setup-isolated-setup-update on machines that use the isolated (secure agent) setup:

    • once per change, when an upgrade moved the fingerprint of the files an install copies (tools/agent-isolation/, tools/agent-guard/src/, tools/container-gateway/src/, the dogfooded .claude/settings.json; docs excluded);
    • on a timer, weekly by default, configurable with isolated_setup_update_interval_days in .apache-magpie-local/project.md or .apache-magpie-overrides/project.md (0 turns the timer off but keeps the change report).

    The proposal never runs the update and never blocks the skill. Running /magpie-setup:isolated-setup-update directly resets both reasons.

  • Upgrade docs explain reconciliation. marketplace update and auto-update only replace plugin files. Each skill checks itself against the last reconciliation on its first run after an upgrade, and /magpie-setup:setup reconcile forces the full pass.

"Used on this machine" means the install or update skill recorded a run (an isolated_setup block in .apache-magpie-local/reconciled.json), or the project's .claude/settings*.json enables the sandbox. "isolated_setup": {"enabled": false} opts a machine out.

Type of change

  • Skill change (setup-isolated-setup-install, setup-isolated-setup-update: record the run; pre-flight explanation)
  • Python package (tools/setup-preflight: new isolated.py, machine-scope finding, rules section step-11)
  • Documentation (docs/setup/secure-agent-setup.md, docs/setup/marketplace.md, docs/setup/marketplace-install.md, README.md, locks.md, upgrade.md)
  • CI / dev loop (new isolated-setup-fingerprint prek hook keeps the shipped fingerprint constant current)

Test plan

  • prek run --all-files passes (including lychee)
  • tools/setup-preflight: pytest (71 passed, 15 new in tests/test_isolated.py), ruff check, ruff format --check, mypy
  • Checker run end to end on a scratch sandboxed project: first run reports isolated-setup-changed with its rules, record-reminder silences it
  • Skill evals not re-run: the ## After the report step the update suite extracts is unchanged; the new sections come before it

RFC-AI-0004 compliance

  • HITL — the pre-flight only proposes; the update skill stays report-only, and the one write is a gitignored run record
  • Sandbox — no network, no new host access; the checker reads only in-project files
  • Conversational + correctable — interval and opt-out are adopter/user-tunable

Notes for reviewers (optional)

  • Marketplace installs see a new fingerprint once /magpie-setup upgrade refreshes the checker copy in .apache-magpie-local/, which the post-update prompt already asks for. Snapshot installs and the framework checkout hash the source directly.
  • Spec sync: criterion 27 added to tools/spec-loop/specs/adoption-and-setup.md. .last-sync is 15 commits behind main for unrelated work, so it is not bumped here.
  • Existing problem, not fixed here: the checker exits with unknown key: 'source' on this repo's own method: local lock, so the pre-flight does not run in the framework checkout itself.

Generative AI disclosure: prepared with Claude Code (Claude Opus 5), reviewed by the author.

🤖 Generated with Claude Code

…ades and weekly

The pre-flight every skill runs now proposes setup-isolated-setup-update
on machines that use the isolated (secure agent) setup:

- once per change, when an upgrade moved the fingerprint of the files an
  install copies (tools/agent-isolation, agent-guard, container-gateway,
  the dogfooded .claude/settings.json; docs excluded);
- on a timer, weekly by default, configurable via
  isolated_setup_update_interval_days (0 turns the timer off).

The fingerprint is computed from the framework source when the checkout
has it, otherwise read from a generated constant kept current by a new
prek hook. The install and update skills record their runs, and the
proposal is never auto-run and never blocks the skill.

The upgrade docs also explain that marketplace update / auto-update only
replace plugin files: each skill self-checks against the last
reconciliation on its first run after an upgrade, and
/magpie-setup:setup reconcile forces the full pass.

Generated-by: Claude Opus 5
@potiuk potiuk added family:setup setup-* skills capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) labels Sep 26, 2026
@potiuk
potiuk merged commit d4e4b3d into apache:main Sep 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:setup setup-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant