Repository navigation
Description
Reporting and investigating a bug need no permission. Before implementing a
substantive fix for inclusion in APM, obtain human scope approval and a review
contact on this issue. Trivial documentation corrections have standing
preapproval. See Contributing.
For vulnerabilities, use SECURITY.md
instead of a public issue. Remove credentials and other sensitive data from logs.
Describe the bug
The generated lifecycle model declares an edited managed skill repaired after an ordinary reinstall, although the accepted user-edit protection deliberately preserves that file without explicit overwrite consent. This causes all six mandatory/generated replay variants to fail. It is test-model/contract drift, not evidence that the production protection should be removed.
Observed on commit 6da173e6bd5ae3468696bfaade7a2a211848f554 in non-publishing release-validation run 39658810082: macOS Intel job 119426102725 reports 6 failed, 432 passed, 17 skipped. The same six nodes also fail in Linux ARM job 119433011797. Other failures from that job require separate classification and are not covered by this issue.
To Reproduce
- Run the mandatory and generated replay tests in
tests/integration/test_generated_lifecycle_state_machine.py, across project, global-canonical and global-aliased scope. - The model installs a skill, replaces its deployed content with
# user tamper\n, and invokes its repair transition. - The transition adds
--forceonly for its retained-user-file state, then marks the model clean regardless. The unchanged exact-byte oracle fails because the ordinary reinstall correctly retained the edited managed member.
A separate four-command installed-source-CLI causal check on macOS ARM reproduced initial install, preservation on ordinary reinstall, restoration with existing install --force, and a passing read-only audit. Its execution was at 2958c9088615ea6518ed95d2910b8cd556254463; the relevant production/model blobs were verified unchanged at 6da173e6 and later public 3b9a8503. This is not represented as a full exact-public-head replay or an Intel-only failure.
Expected behavior
Ordinary reinstall preserves edited managed bytes and their original deployment hash. A model transition that deliberately requests restoration uses existing explicit overwrite consent, then retains the original exact restored-byte and audit assertions. Separately owned files and all other protection rules remain intact.
Environment (please complete the following information):
- OS: GitHub-hosted macOS x86_64 and Linux ARM64; causal source-CLI check on macOS ARM64.
- Python Version: See the linked run's setup logs; not independently asserted here.
- APM Version: Exact source commits above; no new release is implied.
- VSCode Version (if relevant): N/A.
Logs
The original oracle receives # user tamper\n where it expects revision-a skill bytes at project step 5 or revision-b skill bytes at global step 36. The Intel focused selection completed in 1084.52 seconds; it was not a timeout. Full logs are available in the linked job.
Causal locations at the observed source: model tampering at test_generated_lifecycle_state_machine.py:405-418, repair transition at :439-454, exact-byte oracle at :796; intentional member preservation in BaseIntegrator.copy_directory_files at base_integrator.py:331-348.
Additional context
Execution authority and ownership
This is a distinct corrective follow-up under the maintainer's existing explicit CI mission: "I do not agree that you park the fix to CI, move full steam ahead, being idle and waiting for me to agree is not acceptable. Your mission is to fix CI" (2026-10-21). It records that existing direction, not a new human approval record, accepted label, specification vote, or approval of unrelated product work. Review contact: Daniel Meppiel (@danielmeppiel). Keep one primary corrective PR for this issue; do not reopen or reuse merged #3325 or closed #3248.
Bounded scope
Align the generated repair transition with existing explicit overwrite consent; add a load-bearing ordinary-reinstall preservation assertion; update directly related generated-model documentation. Preserve the production guard, canonical owners, source/containment/ownership/frozen/prune protections and existing overwrite semantics.
Done when
- All six mandatory/generated scope variants pass against the corrective source with the existing exact restoration oracle intact.
- Ordinary reinstall explicitly preserves edited skill bytes and the original deployment hash; explicit repair restores exact source bytes and audit agrees.
- A surgical mutation removing explicit repair consent reproduces the original byte-oracle failure, and restoring the change passes.
- Directly relevant existing user-edit preservation cases and applicable current lint/architecture gates pass with exact source/runtime attribution.
- One primary PR carries the bounded fix and truthful evidence. Other actual CI failures remain separately recorded; this issue's resolution alone does not establish full main-CI or release-validation success.
Out of scope
No removal of user-edit protection, new force semantics, weakened assertions, unrelated I5 no-op manifest-classification repair, unclassified remaining Linux ARM failures, native client trust/enable changes, README changes without approval, new workflow trust boundary, direct-main push, tag, release, version bump, package publication or deployment. No blind retry or duplicate release-validation dispatch.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
test(ci): align generated skill repair with explicit consent
test(ci): preserve refusal before retained skill repair
test(ci): assert retained skill refusal reason