Skip to content

feat(handoff,work): add multi-day cross-session work handoff and timeline - #320

Merged
jackulau merged 5 commits into
mainfrom
feat/multi-day-work-handoff-timeline
Nov 28, 2026
Merged

jackulau merged 5 commits into
mainfrom
feat/multi-day-work-handoff-timeline

Conversation

@jackulau

Copy link
Copy Markdown
Owner

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 30d default, --max-sessions 20 preserving 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:
    • Original goal + latest direction pivot (latestDirection)
    • Chronological multi-day Timeline (spanDays, firstStartedAt, lastEndedAt, agent, checks, compactions, risk, proof verdict, dead ends)
    • Union of changed files and latest passing checks
    • Cross-session deduplicated failed approaches under Do Not Repeat
    • Formal-proof rollup across sessions (toolUseId-namespaced across sessions, with escape resolution and oscillatingChecks)
    • Supervision risk and context-reset rollup (compactions + sessionHandoffs)
  • coding.sh work show <id> (cli/commands/work.ts): Prints a compact chronological Timeline section for multi-session items (and exposes timeline/spanDays in --json, omitted for single-session items), and updates high-risk hints to suggest coding.sh handoff --work <id> when item.sessionIds.length > 1.
  • Regenerates docs/reference/cli.md and updates docs/guides/evals.md and CHANGELOG.md.

Verification

  • tsc --noEmit -p packages/coding.sh: 0 errors in src/ and new tests
  • test/core/work-handoff.test.ts, test/cli/work-handoff.test.ts, plus handoff, work, help, and docs reference tests: 70 pass, 0 fail (verified fails-without proof: 0/5 pass when src/ reverted)
  • node scripts/lint/slop.mjs --strict-allowlist & node scripts/changelog/add.mjs --check: clean
  • apps/site/test/*.test.mjs: 161 pass, 0 fail

@jackulau jackulau added the ready Run the full suite on this pull request; main requires its check label Nov 28, 2026
…andoff-timeline

# Conflicts:
#	CHANGELOG.md
#	docs/reference/cli.md
#	packages/coding.sh/src/cli/commands/work.ts
@jackulau
jackulau merged commit 401b051 into main Nov 28, 2026
35 checks passed
@jackulau
jackulau deleted the feat/multi-day-work-handoff-timeline branch November 28, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Run the full suite on this pull request; main requires its check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant