feat: Allow/Denylist Provenance Command (#34)#36
Open
nhuelstng wants to merge 11 commits into
Open
Conversation
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
…nance display Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
…vironmentView Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
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.
Closes #34
Summary
Adds
omac provenance— a read-only command that dumps every effective allow/deny entry across all four subsystems (network, filesystem, environment, skills), each row annotated with the config layer it came from.What it does
pages.json),allow_domain,deny_domain, hard-deny metadata hosts, mode/prompt/on_unavailable summaryallow_varsallowlistEach row carries a
SOURCEcolumn:workdir,global,builtin,learned, orblocklist.Design + Plan
docs/superpowers/specs/2026-07-02-allow-denylist-provenance-command-design.mddocs/superpowers/plans/2026-07-02-allow-denylist-provenance-command.mdTesting
internal/cli/provenance_test.go(gatherer, text formatter, JSON formatter, CLI wiring)internal/e2e/provenance_test.go(//go:build e2e) — cross-checks provenance output against actual sandbox behavior via the self-audit skillgo build ./...,go vet,gofmtall cleanCommits
TDD throughout, 8 tasks with spec + code-quality review after each. Two bugs caught in review:
builtinin fs/env views (fixed)Manual testing
Not merging yet — pending manual testing.
🤖 Generated with opencode