Skip to content

feat(harness): reliability foundation (M1) - #3

Closed
lutfi-haslab wants to merge 1 commit into
feat/harness-v3from
feat/harness-v3-m1
Closed

lutfi-haslab wants to merge 1 commit into
feat/harness-v3from
feat/harness-v3-m1

Conversation

@lutfi-haslab

Copy link
Copy Markdown
Contributor

Milestone 1 of the harness v0.3 roadmap (stacked on #2).

  • Permission engine: plan/build/edit/yolo/auto, allow/deny/ask rules, per-call decisions, settings files.
  • Hooks: Claude-Code-compatible hooks.json (PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart/End, PreCompact).
  • Checkpoints: touched-file snapshots + git tree, /undo.
  • Resume journal: interrupted approval/ask turns recover and resume; tools never auto-run.
  • Plan mode tools with plan artifacts.
  • Tool metadata drives scheduler/permissions/loop.
  • LLM retry/backoff with Retry-After; non-fatal tool errors.
  • New events + TUI /mode, /undo, /resume, esc-denies-approval, steer-on-busy.

Verification: gofmt -l . clean, go build ./..., go test ./... pass.

… mode

- permission: modes plan/build/edit/yolo/auto + allow/deny/ask rules,
  per-call decisions, sandbox exemption, settings in ~/.rakit + .rakit/
- hooks: Claude-Code-compatible hooks.json for pre/post tool use, prompt
  submit, stop, session, pre-compact; exit 2 blocks with a reason
- checkpoints: snapshot touched files + git tree, /undo and Engine.UndoLast
- resume: turn journal restores interrupted approval/ask turns; /resume
- plan mode tools enter_plan_mode / exit_plan_mode with plan artifacts
- tool metadata (read-only/destructive/approval/scope/timeout) is the single
  source for scheduler, permissions and the agent loop
- llm: jittered retry/backoff for 429/5xx/network + Retry-After
- tool failures no longer kill the turn; consecutive failures stop it
- events: agent:updated/usage/tool_progress/permission_request/
  subagent_update/compaction/turn_resumed/plan_update
- TUI: /mode /undo /resume, esc denies approvals, busy submit steers

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@lutfi-haslab

Copy link
Copy Markdown
Contributor Author

Merged directly into main via fast-forward (58fdf15). Closing this stacked PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants