registrystack / registrystack/registry-stack

BREG task grants: runtime guard on the batch path and two clarity fixes

Open
#1,034 0 comments 0 reactions 0 assignees View on GitHub
agent-ready area:breg criticality:p3
Dominant language
Rust
Stars
2
Forks
0
Avg merge
2h 57m
Merged PRs (30d)
128

Description

Follow-up to #1029.

- [ ] `execute_batch_after_attempt` in `crates/registry-breg/src/mutation.rs` relies only on the compile-time rule `access_profile.task_grant.direct_mutation_forbidden` to keep task profiles off the batch path. Refuse grant tokens at its start, as `execute_after_attempt` does, so a later compiler change cannot open it.
- [ ] `authenticate` in `crates/registry-breg/src/auth.rs` parses flat direct claims before discarding them for grant tokens, so a malformed flat value on a grant token gives 401 even though the value would be ignored. Skip the flat parse for grant tokens, or document the refusal.
- [ ] `products/breg/TASK_GRANTS.md`: state that `registry_request_task_authority` rows keep the disclosed subjects until erasure removes them.

Contributor guide

Open the contributing guide

Research direction

Start with execute_batch_after_attempt in crates/registry-breg/src/mutation.rs and compare its entry checks with execute_after_attempt. Then inspect authenticate in crates/registry-breg/src/auth.rs and the task-grant guidance in products/breg/TASK_GRANTS.md. Done means the batch path refuses grant tokens, ignored malformed flat claims do not cause grant authentication failures, and the documentation states the disclosed-subject retention rule.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authentication, documentation, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.