feat(agentd): enforce consent-plane terminal-surface envelope (enforce-sweep) - #43
Merged
Merged
Conversation
…force-sweep) Extends the enforce-sweep (after goose voice + netwatch) to turtle-agentd, the terminal-surface tool-execution host. An AUTONOMOUS AGENT acting on the terminal surface may read/edit/test (discover/implement/verify) but may NOT egress (push/publish/network) or operate (deploy/infra) — the consent-plane surface envelope (deny_purposes=[egress,operate]) now holds at runtime. - consent_plane_check(command, actor_id): denies egress/operate commands for agent actors; humans keep full authority (envelope governs agents only). _is_agent_actor is fail-closed — only an explicit `human:` id gets authority, every other non-empty id is governed. - classification is local (regex over network/publish/deploy/infra commands) so containment holds even when the consent engine is unreachable. - wired into policy_evaluate: a consent-plane deny short-circuits before Policy Fabric (defence in depth). - 5 tests: agent egress denied, agent read/edit/test allowed, human unrestricted, policy_evaluate short-circuits, fail-closed actor detection. Daemon smoke green.
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.
Extends the enforce-sweep (gap #1) — after goose (voice) and netwatch — to turtle-agentd, the terminal-surface tool-execution host. The consent-plane surface envelope (
terminal:deny_purposes=[egress, operate]) now holds at runtime.What it does
An autonomous agent on the terminal surface may read/edit/test (discover/implement/verify) but may not egress (push/publish/network-send) or operate (deploy/infra). A prompt-injected or runaway agent is contained; the human operator keeps full authority (the envelope governs agents only).
consent_plane_check(command, actor_id)— denies egress/operate commands for agent actors._is_agent_actoris fail-closed: only an explicithuman:id gets authority; every other non-empty id is governed (an unknown actor can't slip past as human).policy_evaluate: a consent-plane deny short-circuits before Policy Fabric (defence in depth, deny wins).Proof
5 tests (agent egress denied · agent read/edit/test allowed · human unrestricted ·
policy_evaluateshort-circuits · fail-closed actor detection); daemon smoke tests green; compiles clean.Enforcement now lives at three surfaces (voice, netwatch, terminal). Remaining sweep targets: BearBrowser (browser surface) and sourceos-shell.