Repository navigation
[FEATURE] SOSA: A production-tested methodology for supervised autonomous agents (open-source, shipping since 2025) #40498
Copy link
Copy link
Closed as duplicate
Closed as duplicate
Copy link
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Preflight Checklist
- I have searched existing requests and this feature hasn't been requested yet
- This is a single feature request (not multiple features)
Problem Statement
As Claude Code plugins and agents become more autonomous, the community is hitting real safety walls — and several open issues here prove it:
- Background task notifications race with pending user questions, causing self-approval and unauthorized actions #36690 — Background tasks self-approve actions without user consent
-
- [Bug] Auto-compact prompt causes Claude to self-approve and continue executing without user confirmation #32029 — Auto-compact causes Claude to self-approve and execute without confirmation
-
-
- [FEATURE] Support for project-level ethical constraint files (evidence that CLAUDE.md works as operational guardrails) #32646 — Need for project-level ethical constraint files (CLAUDE.md as guardrails)
-
-
-
-
- Feature: directory-scoped permission allow rules #28321 — Directory-scoped permission allow rules needed
-
-
-
-
-
-
- [BUG] bypassPermissions v2.1.81: .claude/skills/ not exempt from protected directory prompt despite documentation #37157 — Skills bypass protected directory prompts
These aren't isolated bugs — they're symptoms of a missing layer: a formal methodology for graduated agent autonomy with structured safety guarantees.
- [BUG] bypassPermissions v2.1.81: .claude/skills/ not exempt from protected directory prompt despite documentation #37157 — Skills bypass protected directory prompts
-
-
-
We've been running production autonomous agents on Claude Code since early 2025 (18+ department types, daily operations across LinkedIn, WhatsApp, email, CRM, invoicing, recruiting). Every one of these issues bit us — and we built a systematic solution.
Proposed Solution
We open-sourced SOSA (Supervised Orchestrated Secured Agents) — a four-pillar methodology that directly addresses these gaps:
The Four Pillars
- Supervised — Graduated autonomy based on impact level. Low-impact tasks (read-only, local) run autonomously. Medium-impact (sending messages, modifying data) include confirmation checkpoints. High-impact (financial, bulk outreach) require human approval. A trust gradient means plugins that consistently succeed earn expanded autonomy.
- Orchestrated — Agents coordinate through structured registries and DAG execution, not ad-hoc message passing. Every plugin follows Plan > Act > Verify loops with structured outputs feeding downstream workflows.
- Secured — Security at every layer: scoped credentials (never hardcoded), declared capability sets, prompt injection scanning, pinned MCP package versions, audit trails via daily summary reports, principle of least privilege.
- Agents — Goal-directed entities defined as A = (R, T, M, P): Role spec, Tool manifest, Memory store, Planning policy. Each maps directly to plugin SKILL.md, .mcp.json, persistence layer, and workflow instructions.
How This Maps to Claude Code
| SOSA Pillar | Claude Code Mechanism |
|---|---|
| Supervised | Impact-level declarations in plugin metadata, approval gates |
| Orchestrated | Plugin dependency graph, Plan>Act>Verify execution loop |
| Secured | Scoped credentials, capability sets, injection scanning |
| Agents | SKILL.md (role), .mcp.json (tools), structured stores (memory) |
Live Implementation
- Full spec: SOSA.md
-
- Open-source plugin marketplace (30+ production plugins, all SOSA-compliant): github.com/MSApps-Mobile/claude-plugins
-
-
- OpsAgent — first commercial SOSA implementation, running in production since early 2025
-
What We're Proposing
We'd love to see Anthropic consider adopting SOSA patterns (or similar) natively in Claude Code:
- Plugin metadata should declare impact levels (low/medium/high)
-
- A formal Plan>Act>Verify execution model for agent tasks
-
-
- Built-in trust gradient that expands autonomy for reliable plugins
-
-
-
-
- Scoped credential management at the plugin level
-
-
-
-
-
-
- Standardized audit logging for agent actions
This would address Background task notifications race with pending user questions, causing self-approval and unauthorized actions #36690, [Bug] Auto-compact prompt causes Claude to self-approve and continue executing without user confirmation #32029, [FEATURE] Support for project-level ethical constraint files (evidence that CLAUDE.md works as operational guardrails) #32646, Feature: directory-scoped permission allow rules #28321, [BUG] bypassPermissions v2.1.81: .claude/skills/ not exempt from protected directory prompt despite documentation #37157 and many more at a systemic level rather than patching symptoms individually.
- Standardized audit logging for agent actions
-
-
-
Alternative Solutions
No response
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Activity
github-actions commentedon Mar 29, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Apr 1, 2026
This issue has been automatically closed as a duplicate of #39309.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Apr 10, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.