Skip to content

fix(commands): resolve short-form persona ids in agent/solve + memory/consolidate (#164) - #2054

Merged
joelteply merged 1 commit into
canaryfrom
fix/164-shortid-resolver-persona-id
Jul 28, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/164-shortid-resolver-persona-id

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#164 — short-form ids should resolve on every id param

The proven short-id resolver (id_resolve::resolve) already backs work/* (cards) and persona/{identity,instances,wall} (personas): a caller can pass the 8-char short id the surfaces display and it expands against the live registry. But two persona-facing siblings still parsed a raw UUID and failed "is not a UUID" on the exact short/mistyped ids the rosters show — the ~28% work/claim-class miss in the live captures (#161):

  • agent/solve (the headless benchmark-agent entrypoint) — persona_id
  • memory/consolidate — persona_id

Both now route persona_id through the ONE shared id_resolve::resolve(_, &persona::card::ids(), "persona") primitive — clean UUID passes through, short/mistyped form resolves, a genuine miss fails loud naming the kind + enumerating the valid short forms (self-correcting, not a silent dead-end) — identical to the seven existing callers.

Scope note

The remaining Uuid::parse_str sites in the audit are internal — wire-state/optional-field .ok() parses and .expect() invariants on system-supplied ids, not persona-typed tool params — so they legitimately need no resolver. The fuller "per-type resolver at the dispatch base" (resolve once, universally) stays the architectural target; this closes the concrete persona_id inconsistency now.

Validation

continuum-core compiles clean (--features metal,accelerate, 0 errors); the resolver's own comprehensive tests (normalize/resolve/error-scaling in id_resolve.rs) already cover the behavior this wiring reuses.

…/consolidate (#164)

The proven short-id resolver (`id_resolve::resolve`) already backs work/* (cards)
and persona/{identity,instances,wall} (personas) — a caller can pass the 8-char
short id rosters DISPLAY and it expands against the live registry. But two
persona-facing siblings still parsed a RAW UUID and failed "is not a UUID" on the
exact short/mistyped ids the surfaces show (the ~28% work/claim-class miss in the
live captures, #161):

- agent/solve (the headless benchmark-agent entrypoint) — `persona_id`
- memory/consolidate — `persona_id`

Both now route persona_id through the ONE shared `id_resolve::resolve(_, &persona::card::ids(), "persona")` primitive: a clean UUID passes straight through, a short/mistyped form resolves against the persona card registry, and a genuine miss fails LOUD naming the kind + enumerating the valid short forms (self-correcting, not a silent dead-end) — identical to the seven existing callers.

Scope note (#164): the remaining `Uuid::parse_str` sites in the audit are internal —
wire-state/optional-field `.ok()` parses and `.expect()` invariants on
system-supplied ids, not persona-typed tool params — so they legitimately need no
resolver. The fuller "per-type resolver at the dispatch base" (resolve once,
universally) stays the architectural target; this closes the concrete persona_id
inconsistency now.

Validated: continuum-core compiles clean (`--features metal,accelerate`, 0 errors);
the resolver's own comprehensive tests (normalize/resolve/error-scaling in
id_resolve.rs) already cover the behavior this wiring reuses.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 654c8a8 into canary Jul 28, 2026
4 checks passed
@joelteply
joelteply deleted the fix/164-shortid-resolver-persona-id branch July 28, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant