Repository navigation
[CTX-0711] feat(sec): candidate trust/identity/secrets/roles kernels (OQ-054/055/057/084/085) - #1304
Merged
Merged
Conversation
…(OQ-054/055/057/084/085)
This was referenced Sep 23, 2026
Merged
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.
Priority: P1 | Area: area:security | Labels: feat,P1,area:security | Milestone: v0.1.0 | RFC: OQ-054/OQ-055/OQ-057/OQ-084/OQ-085 (open) | Task: CTX-0711
Scope
Candidate kernels for the five open SEC sub-issues of epic #975: trust-level model (SEC-21), core ontology/identity (SEC-24), secret-storage tiers (SEC-22), api_key_env vs api_key_cmd semantics (SEC-23), role contract (SEC-25). Pure, bounded, tested, fail-closed types in
bitty-plugin-host; no live-path wiring, no behavior change.Per-issue verdicts
TrustLevel0-4 +CapabilityDomainadmission sets only; enforcement needs the OQ-085 ruling firstEntityKind/OntologyId/Ownershipnaming only; persistence/permission need the OQ-084 ruling firstSecretTier+ per-tier policy descriptors only; resolution/execution need the OQ-055 ruling firstCredentialRefnaming + exclusive-or precedence + narrow-only project boundary only; needs the OQ-054 ruling firstAgentRoletable + enforcement points + sandbox flags only; authority still comes from grants viaeffective; needs the OQ-057 ruling firstRelates #1090 (EVIDENCE_ONLY: blocked on open OQ-085 owner ruling).
Relates #1093 (EVIDENCE_ONLY: blocked on open OQ-084 owner ruling).
Relates #1091 (EVIDENCE_ONLY: blocked on open OQ-055 owner ruling).
Relates #1092 (EVIDENCE_ONLY: blocked on open OQ-054 owner ruling).
Relates #1094 (EVIDENCE_ONLY: blocked on open OQ-057 owner ruling).
Contract outcome
trust_levels,identity,secret_tiers,credential_ref,roles) following the [CTX-0678] feat(execution): RUN analysis batch risk class + sensitive input + lease + supervisor #1281 RUN pattern: pure data + validation, bounded constants with accepted-contract precedent, typed errors viaPluginError, redacting-or-valueless diagnostics, 36 new unit tests.cargo +1.85 check -p bitty-plugin-hostclean.Security/performance impact
No new trust transition (no socket, no new authority, no enforcement added). No hot-path code touched: the kernels are pure and deterministic. No perf-sensitive change.
Affected crates
bitty-plugin-host: 5 new modules +lib.rsre-exports and candidate-mapping docs.Validation
cargo fmt --all -- --checkcleanRUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets --lockedcleancargo check --workspace --lockedcleancargo test -p bitty-plugin-host --lockedgreen (263 lib + integration suites, incl. 36 new unit tests)cargo +1.85 check -p bitty-plugin-host --lockedclean