Repository navigation
feat(handoff,work): add multi-day cross-session work handoff and timeline - #320
Merged
Merged
Conversation
…andoff-timeline # Conflicts: # CHANGELOG.md
…andoff-timeline # Conflicts: # CHANGELOG.md # docs/reference/cli.md # packages/coding.sh/src/cli/commands/work.ts
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
Closes the multi-day, cross-session traceability gap for long-horizon tasks by stitching every session in a work item into a chronological timeline and $0 cross-session handoff brief:
coding.sh handoff --work <id>(core/handoff.ts,cli/commands/handoff.ts): Resolves a work item by id, prefix, or member session id (--since 30ddefault,--max-sessions 20preserving the earliest session's original goal,--max-dead-ends 10,--out,--json,--fresh) and produces a deterministic $0, secret-redacted multi-day handoff brief with:latestDirection)Timeline(spanDays,firstStartedAt,lastEndedAt, agent, checks, compactions, risk, proof verdict, dead ends)Do Not RepeattoolUseId-namespaced across sessions, with escape resolution andoscillatingChecks)compactions + sessionHandoffs)coding.sh work show <id>(cli/commands/work.ts): Prints a compact chronologicalTimelinesection for multi-session items (and exposestimeline/spanDaysin--json, omitted for single-session items), and updates high-risk hints to suggestcoding.sh handoff --work <id>whenitem.sessionIds.length > 1.docs/reference/cli.mdand updatesdocs/guides/evals.mdandCHANGELOG.md.Verification
tsc --noEmit -p packages/coding.sh: 0 errors insrc/and new teststest/core/work-handoff.test.ts,test/cli/work-handoff.test.ts, plushandoff,work,help, and docs reference tests: 70 pass, 0 fail (verified fails-without proof: 0/5 pass whensrc/reverted)node scripts/lint/slop.mjs --strict-allowlist&node scripts/changelog/add.mjs --check: cleanapps/site/test/*.test.mjs: 161 pass, 0 fail