fix(capsule): clear stale maker patch before author reset - #353
Merged
Conversation
Clear the stale maker patch at author reset while preserving feedback. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clear the stale
.ai/hypothesis.patchscratch artifact during the capsule pipeline'sauthor_reset, while preserving feedback and making cleanup failure loud. The change is one line in the shippedauthor_resetcommand plus three regression tests that extract and execute the shipped command rather than duplicating it. This is part of cross-repo dot-runner#79; it does not close that issue before the port ships. No engine-fidelity core or extension behavior changes, and no paid LLM semantic pipeline claim is made.This is a toward-spec / graph-owned lifecycle hygiene fix: the surrounding attractor lifecycle describes reset/restart and context updates, while the graph owns this scratch-state cleanup. The change does not alter engine lifecycle semantics or imply an engine change. The relevant local context is the canonical lifecycle/reset description in
specs/canonical/attractor-spec-canonical.md§3.1 and the repo's recorded graph-owned idempotency/lifecycle policy inSPEC_CONFORMANCE.md(ATX-2 and ATX-12). The reset remains loud: failure to prove the pinned clean state routes toreset_fail.Verification checklist
pytest modules/loop-pipeline/)uv run --isolated --with pyyaml --with pytest pytest -q tests/test_capsule_author_reset.py— 3 passed. The source-root prerequisite was supplied only for this test invocation; no production dependency was changed.specs/EXTENSIONS.mdentry (new or updated), or this box is checked with an explicit one-line reason the change doesn't need one (e.g. "internal refactor, no observable change"). This changes only capsule scratch cleanup and adds no engine/extension contract.docs/OPERATIONS.md), or this box is checked with a one-line reason none is needed. No docs changed.gh pr checks <n>and look forCI Gate (all checks passed)reportingpass. This is checked after opening the PR; merge will not bypass red or pending CI.Verification evidence
CAPSULE_AUTHOR_RESET_DOT=<parent graph> python -m pytest tests/test_capsule_author_reset.py -q→ 3 failed.python -m pytest tests/test_capsule_author_reset.py -q→ 3 passed.reset_unproven; feedback bytes are asserted unchanged in all cases..amplifier/evaluation/finish-round-20260908/dtu/validation-attempt3-independent.log.Notes for reviewers
Observations
None arose.
Part of dot-runner#79; do not close that issue until the port ships.