Skip to content

feat: reactive permission policy from tool results (issue #374)#413

Closed
Delqhi wants to merge 1 commit into
mainfrom
feat/reactive-permission
Closed

feat: reactive permission policy from tool results (issue #374)#413
Delqhi wants to merge 1 commit into
mainfrom
feat/reactive-permission

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Adds a reactive permission scanner that inspects tool results after execution and surfaces warnings/escalations for secret leakage, destructive confirmations, and network egress markers. Includes a new sin-code permission result-log subcommand and race-clean tests.

  • New ResultPolicy scanner in cmd/sin-code/internal/permission/result_policy.go
  • Wired into Loop.execute\'s tool.post` path; records to ledger and injects warnings
  • Enabled by default in loopbuilder.Build and interactive chat
  • New sin-code permission result-log CLI for smoke-testing detections
  • Updated golden_help.txt to include the new command and other recent additions
  • Race-clean tests pass: go test ./cmd/sin-code/internal/permission/... -race -count=1

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 18, 2026 9:07pm

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27789382740 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

Comment on lines +114 to +117
{
Tool: "aws_cli",
Result: "AKIAIOSFODNN7EXAMPLE",
},
Comment on lines +118 to +121
{
Tool: "cat_env",
Result: "api_key = '1234567890abcdef1234567890abcdef'",
},
@Delqhi

Delqhi commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #417, which integrates this branch together with the other v3.23.0 features and resolves merge conflicts.

@Delqhi Delqhi closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants