feat(native): export session markers and point doctrine at the shadow #996
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!996
Loading…
Reference in a new issue
No description provided.
Delete branch "aos/claude/native-session-markers"
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?
A native session had no way to tell it was already isolated. AOS exported no session marker, and
AOS_REPO_ROOTnames the canonical checkout, so AGENTS.md told agents to hand-make a worktree in the resolved temporary directory instead.That location is not durable. Four such worktrees have already been emptied by an OS temp purge (
acompose-evals-240,aos-native-ui-236,claude-native-ui-surfaces, and one codex infrastructure session): directory skeletons with zero files and a missing gitdir, which Git reports asprunable. Committed work survived because linked worktrees share the canonical object store. Uncommitted work in them left no trace.Changes
AOS_NATIVE_SESSIONandAOS_NATIVE_SESSION_PROJECTS, from the linked-worktree path only. A launch that links no worktree stays in the canonical checkout, where the isolation claim would be false, so it leaves both unset and the pair stays a truthful answer.docs/native-session-shadow.md, and point hand-made worktrees at the platform cache rather than the temporary directory.The documentation-layout cap on AGENTS.md is deliberate back-pressure, so this displaces rather than extends: mechanics moved to docs and the foreign-work section was compressed. AGENTS.md lands at 287/290 lines and 25997/26000 chars. That char headroom is thin enough to be worth a look.
Verification
ward aos-fmt,ward aos-build,ward aos-lint,ward aos-test(full suite green), andpre-commit run --all-filesall pass. New testTestNativeLaunchExportsSessionMarkersasserts both markers match the session lease.