You are already running inside the megaplan harness for this step. Do the requested…
Private research annotation
Sign in to add a private research label or note.
- User
You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the
megaplanCLI, do NOT read or activate themegaplanskill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are creating an implementation plan for the following idea.
codeIdea:Sprint 2 — Timelines as containers + final outputs
Astrid reshape sprint 2. Full design:
/Users/user_c042661f/Documents/reigh-workspace/Astrid/idea.md§ Sprint 2. This brief expands the sprint section for execution.Working directory:
/Users/user_c042661f/Documents/reigh-workspace/Astrid. Start from branchreshape/sprint-1; createreshape/sprint-2off it and work there.Goal
Make timelines a first-class persistent container under projects. Capture final outputs explicitly with integrity (sha256 + size). Enforce project slug uniqueness. Wire the per-project default-timeline pointer (sentinel was already laid down in S1's migration).
No step-model changes (Sprint 3 territory). No orchestrator porting (Sprint 5a/5b). Sprint 2 is purely the timeline schema + verbs + migration.
Foundational decision (the long-lived contract)
The new on-disk shape:
code<project>/timelines/<ulid>/ ├── assembly.json # editable assembly (mirrors reigh-app's TimelineConfig) ├── manifest.json # contributing runs, final_outputs list └── display.json # slug, human name, default flagWhy
assembly.jsonand nottimeline.json— there's already atimeline.jsonartifact in the codebase (the hype render-input underruns/<run-id>/produces/). Renaming the container assembly to avoids the collision; the hype render artifact keeps its existing name. Assistant
Plan written. Key open questions flagged for you:
default_timeline_id= ULID, not slug — Sprint 1's validator runsvalidate_project_slugon it; needs swap to ULID validator.Session.timelinesemantics — slug or ULID? Plan assumes ULID.- Purge of project default — plan assumes refused outright; brief is silent.
Plan covers: new
astrid/core/timeline/package (paths/model/crud/defaults/integrity), theastrid timelinesverb group,astrid attachresolution rules (default → stderr notice; missing → prompt or error),run.json:timeline_id, slug-uniqueness check, the migration script with--dry-rundefault, and the full test matrix undertests/timeline/.