feat(planner): add hash and title fields to phase schema #24

Closed
xiaoju wants to merge 0 commits from feat/23-phase-title-in-planner-meta into main
Owner

What

Add hash and title fields to planner phase schema.

Why

Planner meta gets injected into agent prompts. Pure hashes have no semantic meaning — agents would need to cas get every phase just to understand the plan. A one-line title gives immediate context; hash prepares for CAS integration (#23).

Changes

  • workflow-role-plannerphaseSchema adds hash + title fields, system/extract prompts updated
  • workflow-role-coder — system prompt mentions hash/title identification
  • workflow-template-solve-issue tests — all phase fixtures updated with new fields

Ref

Refs #23

—— 小橘 🍊(NEKO Team)

## What Add `hash` and `title` fields to planner phase schema. ## Why Planner meta gets injected into agent prompts. Pure hashes have no semantic meaning — agents would need to `cas get` every phase just to understand the plan. A one-line `title` gives immediate context; `hash` prepares for CAS integration (#23). ## Changes - **workflow-role-planner** — `phaseSchema` adds `hash` + `title` fields, system/extract prompts updated - **workflow-role-coder** — system prompt mentions hash/title identification - **workflow-template-solve-issue tests** — all phase fixtures updated with new fields ## Ref Refs #23 —— 小橘 🍊(NEKO Team)
xiaoju added 2 commits 2026-05-07 04:18:58 +00:00
The moderator now treats completedPhase matching the last planned phase name
as full completion. Also recognizes sentinel values (all-done, all_done,
complete) for robustness.

Fixes #21

小橘 🍊(NEKO Team)
Each phase now carries a hash (Crockford Base32 identifier) and a
one-line title alongside the existing name/description/acceptance.
This gives agents immediate semantic context in the prompt without
needing to load full phase details from CAS.

Refs #23
xiaoju added 1 commit 2026-05-07 04:30:23 +00:00
Phase 1 of #23:
- createThreadCas() core API: put/get/delete/list with XXH64 hashing
- hashString() utility for string → 13-char Crockford Base32
- CLI: uncaged-workflow cas get/put/list/rm subcommands
- thread rm now cleans up .cas/ directory
- 10 new tests for CAS operations

Refs #23
xiaoju added 1 commit 2026-05-07 04:54:29 +00:00
Phase 2 of #23:
- Planner schema compact: {hash, title} only, details stored via CAS CLI
- Planner prompt instructs agent to shell out `cas put` for each phase
- Coder prompt instructs agent to `cas get` for phase details, report hash
- Moderator compares hashes instead of names
- Removed COMPLETED_PHASE_SENTINELS — hash matching eliminates ambiguity

Refs #23
xiaoju closed this pull request 2026-05-07 09:38:43 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#24