docs(spec): document skill safe_mode, resource taxonomy, and script execution gate #184
No reviewers
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
#164 docs(spec): document skill safe_mode, resource taxonomy, and script execution gate
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core!184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/m1-skill-resource-spec-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ADR-2034's 2026-11-09 revision added D-8 (resource-directory taxonomy), D-9 (skill-local
safe_modeand the double-safety gate), and D-10 (gated script execution), but the Package Registry Standard and the Actor Configuration Standard did not describe these capabilities. This PR closes that gap, purely in documentation — the described behavior already ships (see thefeat(skills): ...commits already ondevelop).docs/actor-registry-standard.md§16.3: extends the example with an asset and a non-standard folder alongside the existing script, so all four resource classes appear together, with a short note on whensafe_mode: falseis (and isn't) warranted. §16.1/§15.1 already carried thesafe_modefield and the 1.2.0 revision row from prior work.docs/index.md§4.4: documents the optionalskillsfield in full — it had never been documented, even for its original D-5 introduction — covering the three reference schemes (local:/ID:/registry:), resolution/validation behavior, the discovery/activation/execution progressive-disclosure model, and the D-9 double-safety gate, in a new §4.4.8. Also documents thesafe_modeLLM-agent config field (reusing thetype: toolfield's semantics), since it is the gate's "global" half. Bumps the standard to 1.10.0 with a §21.1 revision-history entry.docs/tools/safe-mode.md: while reviewing user-facing documentation for this feature, found that the "Bundled skill script execution" section described the gate'sallow_shell/safe_moderequirements as belonging to "the tool agent" — but theskilltool is only ever loaded onto atype: llmagent's ownskills:catalogue (AgentFactoryonly resolvesskillswhenagent_type == "llm"). Clarified that both fields live on that sametype: llmagent's own config, matching the pattern already documented forshell/http_requesttimeouts.No behavioral change. New Behave/Robot tests are not required for a documentation-only change, per the issue's acceptance criteria.
Test plan
nox -s docs— MkDocs builds cleanly, no new warningsnox -s lint— cleannox -s typecheck— clean (0 errors)nox -s security_scan— cleannox -s dead_code— cleanyaml.safe_loadtimeouts.md/index.mdCloses #164
PR Review: !184 (Ticket #164)
Verdict: Approve
Documentation-only PR that folds ADR-2034's 2026-11-09 revision (D-8 resource taxonomy, D-9
safe_mode+ double-safety gate, D-10 gated script execution) into the Package Registry Standard (§16.3) and the Actor Configuration Standard (§4.4, new §4.4.8, §21.1). Every normative statement in the new text was verified against ADR-2034 and the shipped implementation and is accurate; the two blocking-worthy inconsistencies found are one stale version header (minor) and two nits. Nothing here warrants blocking the merge, but the version header should ideally be fixed before merge (one line).Scope notes: no prior reviews or comments existed on this PR, so nothing was excluded as out-of-scope/deferred. Per reviewer instructions, red-tape items (commit footers, labels, base-branch wording in the ticket's DoD) are excluded.
Critical Issues
None.
Major Issues
None.
Minor Issues
docs/index.md:3§21 now declares Version 1.10.0 and §21.1 carries the 1.10.0 row, but the document header still reads
**Version:** 1.9.0. The precedent bump commit (4b98ce0, the 1.9.0 bump) updated both places, so this deviates from established practice. Since §21 states "Conformance MUST be declared against a specific version of this standard," a header pointing at 1.9.0 (which predatesskills/safe_mode) makes the standard internally inconsistent about which version it declares. Recommendation: change line 3 to**Version:** 1.10.0.Nits
§4.11 not cross-updated —
docs/index.md:933,docs/index.md:936New §4.4.8 says a loaded catalogue "contributes the
"skill-loading"capability identifier (§4.11)" and is "reflected in this agent's metadata (skills_loaded,skill_names)" — all three verified in the implementation (src/cleveractors/agents/llm.py:2471-2494). But §4.11's capability-identifier list and the LLM-agent metadata enumeration ("provider, model, temperature, max_tokens, memory_enabled, supports_structured_output") don't mention them, so a reader following the §4.11 pointer finds nothing. The capability list is non-exhaustive ("include"), so this is not a contradiction — consider appendingskill-loadingto the identifier list andskills_loaded/skill_namesto the metadata sentence for cross-section consistency.Example ID contradicts its own format specifier —
docs/index.md:554vsdocs/index.md:566The new reference-scheme table documents
ID:pkg_skl_<40-hex-sha1>(matching PRS §16.2), but the example immediately below usesID:pkg_skl_a1b2c3d4e5f67890abcdef1234567890abcdef(38 hex chars). The identical 38-hex string is also used in PRS §5.3 and ADR-2034 D-5, so this follows corpus precedent — but it sits directly under a format specifier this PR adds. Consider padding the example to 40 hex.Verification performed
safe_moderow with type/default/canonical-absence rules and §15.1 1.2.0 row were already ondevelopfrom prior work as the PR claims (verified present at base). New §16.3 text describes all four resource classes with correct read/execute semantics; §4.4/§4.4.8 documentskills, the three reference schemes (local:,ID:,registry:with@latestdefault — matches PRS §5.3/§7.3 and §4.1.1), progressive disclosure, and the double-safety gate; §21.1 entry added; additions are purely additive under §1.3 (no normative requirement weakened)._is_global_unsafe/gate_openinsrc/cleveractors/agents/tool.py(global = agentsafe_mode: falseOR context_unsafe_mode: true; gate open = both false; execution additionally requiresallow_shelland scripts/non-standard class; non-standard reads gated, references/assets/root files and script source inspection exempt; manifest hides non-standard entries while closed; errors name both states and the resource). §4.4.8 loading claims matchSkillLoader(src/cleveractors/agents/skills.py): list of non-empty strings, agent-creation-time resolution, schema-validation failures and unresolvable references raiseAgentCreationErrornaming the reference, duplicate skill names rejected, discovery catalogue appended tosystem_prompt,skilltool synthesized unless already declared.safe_mode/allow_shellread from thetype: llmagent's own config confirmed atsrc/cleveractors/agents/llm.py:965andllm.py:1029;skillsresolved only foragent_type == "llm"confirmed infactory.py.skilltool indeed only reachestype: llmagents'skills:catalogues, and the referencedexamples/packages/calculator-app-builder.yamlhassafe_mode: false+allow_shell: truealongsideskills:, while the referencedprogramming-patternsskill sets nosafe_modeand bundles no scripts — the parenthetical caveat is correct._unsafe_mode), PRS §5.3/§7.3/§8, §4.1.1, ADR-2034 paths, and the anchors../index.md#44-llm-agents-type-llmandtimeouts.md#type-llm-agents-dispatch-these-tools-tooall verified.yaml.safe_load.nox -s docspasses with no new warnings (only the pre-existing nav INFO notices and the pre-existing mkdocs-2 deprecation notice). No tests parse the documentation, so the doc-only change cannot affect lint/typecheck/unit tests.Summary
A precise, well-scoped documentation PR. The new §4.4.8 is unusually rigorous — every MUST/claim it introduces is backed by both ADR-2034 and the actual implementation, and the safe-mode.md fix resolves a real reader-facing ambiguity about where
safe_mode/allow_shelllive. The only substantive defect is the stale**Version:**header atdocs/index.md:3(one-line fix, recommended before merge); the two nits are optional polish. Approve.7c81079b050ae6963a09