Repository navigation
ROADMAP M1: worktree markers move to .aladdin/ with a .agentic/ read fallback - #23
Merged
Merged
Conversation
…ADMAP M1) The task.env copy, budget-exceeded and scaffold-symbols markers are written to the worker worktree's .aladdin/ (self-ignoring guard, so nothing there reaches the task's diff), or .agentic/ in a legacy project, and read from either: hosts and older sprints that still write .agentic/<marker> are understood. _paths gains marker_dir/marker and agentic_marker_dir/agentic_marker; budget, _gatelib, gate-supervisor-scope, gate-scaffold-verify, bind, selfcheck, transcripts, host-adapter and task-worktree use them. The layout move is complete. Tests: layout.test.py (7 checks; markers case), supervisor-scope gains .aladdin/task.env cases, fixtures moved to the new marker dir; conformance 58/58. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
…t-thread-vm6wyr-markers
adeelahmad
changed the base branch from
claude/project-thread-vm6wyr-layout
to
master
October 18, 2026 13:12
adeelahmad
pushed a commit
that referenced
this pull request
Oct 18, 2026
…n/ (master red after #23 met #24) #24 added a case expecting the copy at .agentic/task.env; #23 moved the worktree markers to .aladdin/. budget already writes through _paths.marker_dir, so only the test's expected path was stale. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
adeelahmad
added a commit
that referenced
this pull request
Oct 18, 2026
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.
Requested by Adeel · project thread
Stacked on #21 (base is that branch; retargeted to master once it lands).
Before: after #21 the main tree's run data lived in
.aladdin/, but the three worktree-local markers (thetask.envcopy,budget-exceeded,scaffold-symbols) were still written to and read from the worker worktree's.agentic/, so a fresh project had both names on disk.After: the markers are written to the worker worktree's
.aladdin/(with a self-ignoring.gitignore, so nothing there can reach the task's diff), or.agentic/in a project that still keeps its run data there, and read from either, so a host or an older sprint that still writes.agentic/<marker>is understood.aloop task-worktree addcreates the guarded marker dir. The scaffolder persona and SKILL.md name the new path. The layout move (ROADMAP M1) is complete.How:
_paths.pygainsmarker_dir/markerand_paths.shgainsagentic_marker_dir/agentic_marker;budget(contract copy, worktree lookup, the hard-limit marker),_gatelib(load_task_env,budget_release),gate-supervisor-scope(write patterns and fallback),gate-scaffold-verify,bind,selfcheck,transcripts,host-adapterandtask-worktreeuse them.Evidence:
scripts/test/layout.test.pygains a markers case (7 checks): the write dir per project kind, the guard, a legacy.agentic/task.envstill read bybindand the helpers, andgit statusshowing nothing under.aladdin/in the worktreescripts/test/supervisor-scope.test.pygains.aladdin/task.envwrite-block cases (Write and Bash) and allows.aladdin/scaffold-symbolsmake test-hostsall green,make conformance58/58, shellcheck, pyflakes, json, eval-validate,claude plugin validate --strictGenerated by Claude Code