Repository navigation
fix(commands): resolve short-form persona ids in agent/solve + memory/consolidate (#164) - #2054
Merged
Merged
Conversation
…/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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#164 — short-form ids should resolve on every id param
The proven short-id resolver (
id_resolve::resolve) already backswork/*(cards) andpersona/{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_idmemory/consolidate—persona_idBoth now route
persona_idthrough the ONE sharedid_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_strsites 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 concretepersona_idinconsistency now.Validation
continuum-corecompiles clean (--features metal,accelerate, 0 errors); the resolver's own comprehensive tests (normalize/resolve/error-scaling inid_resolve.rs) already cover the behavior this wiring reuses.