feat(proxy): enforce canonical claim grammar in roles.add_claim #43
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_proxy!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_lee_claim_validator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds claim_format::is_valid_claim — the canonical grammar checker
documented in docs/claims.md and the hero_claim_format skill (regex
^[a-zA-Z0-9][a-zA-Z0-9_-]{0,62}(.[a-zA-Z0-9][a-zA-Z0-9_-]{0,62})*$,
total length <=255, segments <=8). Wired into roles.add_claim ahead of
the existing reserved-namespace check, so malformed strings can't
land in role_claims and lurk as dead rows. Updates docs/claims.md
to drop the "(planned)" marker.
11 unit tests cover happy path, every rejection branch, and the
boundary conditions (8 segments, 63-char segments, 255-char total).
Adds claim_format::is_valid_claim — the canonical grammar checker documented in docs/claims.md and the hero_claim_format skill (regex ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,62}(\.[a-zA-Z0-9][a-zA-Z0-9_-]{0,62})*$, total length <=255, segments <=8). Wired into roles.add_claim ahead of the existing reserved-namespace check, so malformed strings can't land in role_claims and lurk as dead rows. Updates docs/claims.md to drop the "(planned)" marker. 11 unit tests cover happy path, every rejection branch, and the boundary conditions (8 segments, 63-char segments, 255-char total).as i64cast on bob_id