StoryLoop
StoryLoop is the product control plane. The current agent harness remains the execution plane.
Start from durable state
- Inspect StoryLoop before acting. Use
list_story_mapsandinspect_story_mapfor map context, or resolve an exact story withsearch_story_mapandinspect_story. - Follow every
nextCursoruntil the response sayscompleteness: completewhen the task needs the whole section. - Call
get_storyloop_capabilitiesbefore the first write when it is available. Follow compatibility if the contract is missing or incompatible. - Choose one mode below. Do not claim work merely to review it.
Choose the mode
- Review or select work. Stay read-only. Inspect the map, story, and relevant history. Use delivery when the user asks what to work on or requests a story review.
- Deliver a Ready story. Inspect the exact story, choose an eligible
repositoryKey, and callbegin_workbefore changing implementation. Read delivery. - Resume or recover. Reinspect the story and active session before continuing. Read recovery whenever a prior response, task, authorization, or owner action may have changed.
- Improve stories or plan a map. Read story writing and planning. Drafting is private and needs no owner approval; only submission and publication involve the owner. Keep questions and assumptions visible instead of turning them into requirements.
- Manage decisions in conversation. Read decisions to inspect current ADRs, draft proposals, apply explicit owner-confirmed lifecycle changes, or follow supersession and history. No delivery claim or browser re-entry is needed.
- Check versions or install/update the skill. Read compatibility.
Invariants
- Treat StoryLoop state as authoritative. A chat transcript, local plan, or remembered tool result may be stale.
- Create one stable client key for each mutation intent and reuse that exact key on retries.
- After a mutation, follow its structured
recommendedActionandallowedActions. Reinspect if the returned state conflicts with the task. - Keep StoryLoop current before the task ends. Report a meaningful milestone, a resumable blocker, a completed outcome, or release unfinished work.
- A completed work session is immutable. Owner-requested follow-up starts with fresh inspection and a new work key on the Ready story.
- Only the owner publishes planning proposals or changes story workflow state outside the work lifecycle. Scoped ADR tools can apply an explicit owner-confirmed decision choice from the conversation.
- StoryLoop never receives shell commands, filesystem paths, sandbox settings, secrets, deployment credentials, merge instructions, or arbitrary executable input.
- Use the harness and GitHub for implementation, checks, review state, and merge state. Store only bounded summaries and safe evidence in StoryLoop.
- Stop and ask for owner action when your principal lost planning permission, another principal owns active work, a material product decision is missing, or the safe next action is not allowed.