Apply atomic Kit capability selection before composition #229

Closed
opened 2026-10-27 13:35:28 +00:00 by sam · 0 comments
Owner

sandbox-kit-spec m.7 adds atomic capability groups and m.8 changes selectors to context plus descriptor plus CapabilityDecision. kit.Admit currently loops over individual capabilities after fetch composition, skipping optional members independently. Investigate upstream selection at resolution so rejecting an optional group removes all its hooks, files, context, and capabilities; required rejection must fail with useful diagnostics. Preserve Archie refusals for forge credentials and OAuth passthrough. Unknown new capability types remain unsupported unless separately authorized.

Acceptance criteria

Optional groups are accepted or omitted atomically without surviving hooks/files/context from omitted members; required rejection refuses launch; cancellation discards partial selection; existing security refusals remain enforced; security boundary regression tests and task check pass.

Notes

Implemented in be31522e. Archie passes its selector into Fetch.Resolve before composition, using upstream atomic group selection. Retains upstream skip records and selected contributor guidance. TestKitCapabilitySelection verifies optional unknown/forge groups leave no hooks, files or context; required rejection is diagnostic; argument exports survive; canceled resolution fails. Unknown capabilities and OAuth passthrough remain refused. Final task check and focused race tests passed.

Close reason

API migration or audit completed in be31522e; task check, Docker acceptance and focused race tests passed.


Imported from beads archie-core-egkf.19 · GitHub #1514 · type task · priority P1 · created 2026-10-09 · closed 2026-10-09

sandbox-kit-spec m.7 adds atomic capability groups and m.8 changes selectors to context plus descriptor plus CapabilityDecision. kit.Admit currently loops over individual capabilities after fetch composition, skipping optional members independently. Investigate upstream selection at resolution so rejecting an optional group removes all its hooks, files, context, and capabilities; required rejection must fail with useful diagnostics. Preserve Archie refusals for forge credentials and OAuth passthrough. Unknown new capability types remain unsupported unless separately authorized. ### Acceptance criteria Optional groups are accepted or omitted atomically without surviving hooks/files/context from omitted members; required rejection refuses launch; cancellation discards partial selection; existing security refusals remain enforced; security boundary regression tests and task check pass. ### Notes Implemented in be31522e. Archie passes its selector into Fetch.Resolve before composition, using upstream atomic group selection. Retains upstream skip records and selected contributor guidance. TestKitCapabilitySelection verifies optional unknown/forge groups leave no hooks, files or context; required rejection is diagnostic; argument exports survive; canceled resolution fails. Unknown capabilities and OAuth passthrough remain refused. Final task check and focused race tests passed. ### Close reason API migration or audit completed in be31522e; task check, Docker acceptance and focused race tests passed. --- _Imported from beads `archie-core-egkf.19` · GitHub #1514 · type task · priority P1 · created 2026-10-09 · closed 2026-10-09_
sam added the hightask labels 2026-10-27 13:35:28 +00:00
sam self-assigned this 2026-10-27 13:35:28 +00:00
sam closed this issue 2026-10-27 13:35:29 +00:00
sam added a new dependency 2026-10-27 13:41:47 +00:00
sam added a new dependency 2026-11-14 14:45:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#229