8000 ROADMAP §4.6, §4.9, §4.10, §4.11: rendered plan views, host swap, context-window share, aladdin entry point by adeelahmad · Pull Request #15 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

ROADMAP §4.6, §4.9, §4.10, §4.11: rendered plan views, host swap, context-window share, aladdin entry point - #15

Merged
adeelahmad merged 6 commits into
masterfrom
claude/project-thread-vm6wyr-render
Oct 18, 2026
Merged

adeelahmad merged 6 commits into
masterfrom
claude/project-thread-vm6wyr-render

Conversation

@adeelahmad
@adeelahmad adeelahmad commented Oct 18, 2026 •
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: the planner wrote tasks.md, validate.md and plan.md by hand beside targets.json, so the two could drift; a sprint belonged to the host it started on; stats.md showed the context peak but not how much of the window it was; the product had no entry point of its own beyond /aloop.

After: with tasks in targets.json the semantic plan is the execution source: aloop targets render writes the three md files as deterministic views and targets check (gate-stage2-complete) refuses a hand-edited one. aloop host swap --to codex|opencode|claude hands a sprint to another host from portable state only (sprint dir, .aladdin/config.yaml, .agentic/logs); a missing piece or a live worker worktree blocks, capability gaps are named, and SessionStart on the new host resumes under the same resume rule. stats.md adds the context-window share from the new AGENTIC_CONTEXT_WINDOW setting (context.window). aladdin "<intent>" records the Intent Contract and prints how to start; aladdin status|resume|report read the harness files; the semantic queries and every aloop tool answer under the new name; a /aladdin skill defers to /aloop; installs link and copy the new names.

This closes the last open items of ROADMAP §4.6, §4.9 and §4.10 and starts §4.11 (README reorder and site remain).

How: targets gains render [--check] and the render diff inside check; host gains swap, writing .agentic/state/host-swap.json and emitting sprint.context_handoff, which session-start consumes (also mid-sprint, without NEXT.md); _paths/_config/aloop-init learn CONTEXT_WINDOW; bin/aladdin is a bash dispatcher over the existing tools; the stray bin/aloop-init.orig from the rename merge is removed.

Evidence:

  • new suites, all in make test-hosts: plan-render.test.py 5, host-swap.test.py 5, aladdin-cli.test.py 5; metrics.test.py gains the share row
  • make test-hosts 30 suites green locally, make lint (shellcheck, pyflakes, json) clean, claude plugin validate --strict passes, check-tracking.py 38 requirements ok
  • ROADMAP, TRACKING, CHANGELOG, bin/README, planner agent and the skills updated

🤖 Generated with Claude Code

https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV

…an.md (ROADMAP §4.6)

With "tasks" in a story's targets.json the plan is the execution source:
`targets render` writes the three md files as deterministic views over it
(the shapes gate-plan-shape, ids freeze and gate-stage2-complete already
check) and `targets check` refuses a view that was hand-edited, so the md
files cannot fork from the plan. A targets-only file keeps today's
behaviour. Test: scripts/test/plan-render.test.py (5 checks).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
… state (ROADMAP §4.9)

`host swap --to H` hands the sprint over from the sprint dir (handoff.json /
plan-ready.md), .aladdin/config.yaml and .agentic/logs only. A missing piece
or a live worker worktree blocks (it would be orphaned); the target host's
capability gaps are named; the resume rule lists tasks to re-gate. It writes
.agentic/state/host-swap.json and emits sprint.context_handoff. SessionStart
on the new host consumes the record, resumes with the same rule (also
mid-sprint, without NEXT.md) and records the rotation.
Test: scripts/test/host-swap.test.py (5 checks).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
@adeelahmad adeelahmad self-assigned this Oct 18, 2026
…P §4.10)

Hosts do not report the model's context window, so the human states it
(context.window in .aladdin/config.yaml, default 200000) and stats.md
divides the context peak by it. Closes the last open §4.10 item.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
@adeelahmad
adeelahmad changed the base branch from claude/project-thread-vm6wyr to master October 18, 2026 06:06
…ll (ROADMAP §4.11)

`aladdin "<intent>"` records the Intent Contract (and the raw words beside
it) and prints how to start the run on this host; `run` repeats the pending
intent; `status` sweeps the sprint, applies the resume rule and shows token
totals; `resume` shows what SessionStart loads; `report` shows stats.md;
`target|context|refs|callers|callees|shadow|scope` are the semantic queries;
every other aloop tool answers unchanged. `/aladdin` defers to `/aloop`.
Installs link ~/.local/bin/aladdin and copy the skill. Drops the stray
bin/aloop-init.orig left by the rename merge.
Test: scripts/test/aladdin-cli.test.py (5 checks).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
@adeelahmad adeelahmad changed the title ROADMAP §4.6 + §4.9: semantic plan renders the md views; host swap from portable state ROADMAP §4.6, §4.9, §4.10, §4.11: rendered plan views, host swap, context-window share, aladdin entry point Oct 18, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
@adeelahmad
adeelahmad merged commit 816a21e into master Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4713 Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0