Repository navigation
feat(close): two-stage close; completed only through rill workspace complete - #110
Merged
Merged
Conversation
/close Stage 1 records how a workspace ended (kind, conclusion, distill hint), turns open items into tasks, syncs related tasks, and moves it to distill-pending with rill workspace close. Stage 2 (--distill <id>, interactive or --unattended for a distill job) runs the analysis and distillation sub-agents in the foreground; they record the analysis and every outcome through rill workspace distill, and completed is written only by rill workspace complete after verify passes. A failed or interrupted run leaves the workspace distill-pending and the next run resumes it. - analysis-agent: reads the CLI coverage set (incl. _workspace.md, _log.md, subdirectories), creates _summary.md via distill summary, emits the analysis JSON and records it, returns one line - distillation-agent: source_path in the note, records its own outcome, returns one line - handbook and /promote chain removed from /close (handbook on request) - rules, SPEC lifecycle, workspace/CLAUDE.md, architecture: status is active | distill-pending | completed, written only by rill workspace - /focus reopens via rill workspace reopen and offers snooze; skips _distill.md on resume; /distill, /promote, /retrospective, /refresh-project, briefing-context follow the new values Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- distillation-agent: every early stop (contradicted, invalidated, evergreen duplicate) records its skip through Step 7 - duplicate merge amends every outcome pointing at the deleted note - post-processing takes created notes from the record (effective_outcomes in distill show --json), so a resumed run covers earlier runs - the run number is passed into both sub-agent templates (--run) - Stage 1 uses the resolved metadata file (legacy _session/_project) - frontmatter completion is limited to NNN-*.md (HTML has none) - test-close copies lib/ into the test vault Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rospective
- unattended Stage 2 takes {run} from RILL_DISTILL_RUN and stops when it is
not the open run (never adopts open_run)
- duplicate merges also re-point MERGED_INTO_OTHER outcomes aimed at the loser
- /retrospective collects and weights distill-pending workspaces closed in
the period
- test-close SC-04 checks the new self-check line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Builds on #109 (
rill workspace)./closeStage 1 (default, interactive, about a minute): close kind, conclusion, distill hint, open items to tasks, related task sync, thenrill workspace close(statusdistill-pending). No handbook, no/promotechain./close --distill <id>Stage 2 (interactive, or--unattendedfor a distill job): analysis and distillation sub-agents run in the foreground and return one line; they record the analysis and every outcome throughrill workspace distill, passing--run. Interactive runs ownbegin/complete/end; unattended runs leave them to the job wrapper.completedis written only byrill workspace completeafterverifypasses, so a failed or interrupted run leaves the workspacedistill-pendingand the next run resumes it._workspace.md,_log.md, subdirectories), creates_summary.mdviadistill summary(rill mkfilewould number it), and records an analysis JSON in which every file has candidates or a note.workspace/CLAUDE.md, architecture: status isactive | distill-pending | completed, written only byrill workspace./focusreopens viarill workspace reopenand offerssnooze;/distill,/promote,/retrospective,/refresh-project, briefing context follow the new values.distill show --jsonaddseffective_outcomes(resume post-processing, merge amendments).Test plan
bash test/cli/test-workspace-state.sh(88), skill preamble, CJK guard, CLI smokeclaude -p(tracked separately; run from the user's terminal)🤖 Generated with Claude Code