Skip to content

0.2.1: structured handoff records + huggingface pip extra#6

Merged
Arrmlet merged 2 commits into
mainfrom
handoff-v0.2.1
Jun 6, 2026
Merged

0.2.1: structured handoff records + huggingface pip extra#6
Arrmlet merged 2 commits into
mainfrom
handoff-v0.2.1

Conversation

@Arrmlet

@Arrmlet Arrmlet commented Jun 6, 2026

Copy link
Copy Markdown
Owner

v0.2.1 — Structured handoff records

tracecraft complete now writes a structured handoff instead of just a
free-text note, so the next agent can act without a human relaying context.

New flags on complete

  • --to <agent> — who picks the step up next
  • --next-action "<text>" — one line: what the next agent should do first
  • --blocked — mark the step blocked rather than complete
  • --needs-review — mark the step as needing review
  • --changed-files-from-git — record changed files from git diff (no-op outside a repo)

Handoff schema

Handoff records are now schema v2 (state / next_agent / next_action /
changed_files). The v1 keys are unchanged — old handoffs and readers keep
working. A blocked or needs-review step records that status and omits
completed_at.

Machine-checkable fields (changed files) are auto-sourced from git rather
than hand-typed; open questions stay in the free-text --note. There is no
mandatory assumptions field by design.

HuggingFace install

Adds the huggingface extra:
pip install 'tracecraft-ai[huggingface]'
which pulls huggingface_hub for the HF Buckets backend
(tracecraft init --backend hf --bucket <user>/<name>).

Full changelog: v0.2.0...v0.2.1

@Arrmlet Arrmlet self-assigned this Jun 6, 2026
Adds a 'format' job to the tests workflow that runs 'ruff format --check sdk/'
on every push/PR, so style drift fails CI instead of reaching review.

To make the gate green, ran 'ruff format' across sdk/ (15 files reformatted,
whitespace/line-wrap only — no logic changes). Verified the full suite still
passes (66 tests).

Also lands sdk/tests/test_handoff_v2.py — the 9-test suite for the 0.2.1
structured handoff (complete/blocked/needs_review state, next_action/--to,
git-derived changed_files, mutual-exclusion, no mandatory assumptions field).
The fixture chdirs to an isolated dir and writes config to both the CWD-local
and HOME paths, so a stray ./.tracecraft.json can't shadow it (this was making
the tests hit a real endpoint and fail).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Arrmlet Arrmlet merged commit c1bd215 into main Jun 6, 2026
5 checks passed
Arrmlet added a commit that referenced this pull request Jun 9, 2026
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.

1 participant