test(native): cover a regenerated launch that selects a new repository #1313
No reviewers
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/agentic-os!1313
Loading…
Reference in a new issue
No description provided.
Delete branch "aos/claude/vt77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #903.
Follows #1309, which landed #1215 (the launch-path half of #903). This adds the one acceptance bullet #1309 left partly covered: "a successful regenerated launch that includes a newly selected repository".
The reload after regeneration has to be a full one. A plan regenerated from moved policy can select a repository the stale plan never named, and nothing proved the launch links it rather than reusing the stale residency. The test regenerates a plan whose residency grows from one repository to two and asserts the lease carries both worktrees.
#903 acceptance, as it now stands
agent-compose.repositories.v2with strict unknown-field, duplicate-key, path, identity, ordering, and provenance validation - already inloadAOSRepositoryPlan.aos repositories --format lines|jsonprojects the validated contract - already present.docs/FEATURES.md- #1309.ci / ward-doctorgreen.Two deliberate deviations from the literal acceptance
The digest triggers regeneration, not the revision. This takes the director recommendation in the second comment on #903 over that issue's original wording. A repository holding policy also takes ordinary commits; gating on revision drift would regenerate an already-correct plan at every launch, and a fail-closed gate that fires constantly gets routed around. Revision drift is still reported.
Policy-source worktrees are not based on the sealed revision. Doing that literally would start every session in a policy-holding repository at the sealed commit, which for
agentic-ositself means starting behind main and falling further behind for as long as the policy does not change. The invariant the bullet exists for, session policy no newer than repository selection, is instead enforced by verifying the sealed digest againstorigin/main, the exact commitworktree adduses. Same guarantee, no stale sessions.Both are recorded in
docs/native-session-start.mdso the next reader sees the reasoning rather than an unexplained gap against the acceptance list.One constraint worth knowing
docs/is at its 40-doc cap and everynative-*page is at or near its 120-line cap, so this work could not take its own documentation page. The provenance section went intodocs/native-session-start.md, which required reflowing that page denser to buy the room. The next feature touching native startup will hit the same wall.🤖 Generated with Claude Code