Optional [taxonomy] + [lineage] TOML sections on capability.toml and atom .md frontmatter. Backward-compat — all fields optional, existing files parse unchanged. TaxonomyFacets struct (7 facets): kingdom, mechanism, domain, layer, stage, stability, language. Lineage struct: parents[], creator, created, fork_from. AtomMeta extended with taxonomy: Option<TaxonomyFacets> + lineage: Option<Lineage>. docs/TAXONOMY.md — canonical vocabulary. Graph-based (DAG with typed edges), not tree. Multi-faceted nodes allowed. 3 pilot primitives tagged: policy::no-git-ops, quality::cargo-check-green, tools::bash-allowlist. Tests: 16/16 (was 12, +4: full/partial/no-facets/parents-array). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
874 B
TOML
39 lines
874 B
TOML
[capability]
|
|
name = "policy::no-git-ops"
|
|
category = "policy"
|
|
version = "1.0"
|
|
description = "Forbid git, gh repo, and gh api /repos shell operations from the agent."
|
|
rationale = "RULE 0.13 (orchestrator-branch-first.md): orchestrator owns branch + commit + push; agents sandbox-deny Bash inside .claude/worktrees/<agent>/. See ~/.claude/rules/orchestrator-branch-first.md."
|
|
|
|
[restricts]
|
|
tool-patterns = [
|
|
'^git( |$)',
|
|
'^gh repo',
|
|
'^gh api /?repos',
|
|
]
|
|
tools-denied = []
|
|
|
|
[parameterized]
|
|
accepts = []
|
|
|
|
[text]
|
|
path = "text.md"
|
|
|
|
[gate]
|
|
rust-module = "gates::policy_no_git_ops"
|
|
event = "PreToolUse:Bash"
|
|
severity = "block"
|
|
bypass-env = "ORCHESTRATOR_META"
|
|
|
|
[taxonomy]
|
|
kingdom = "capability"
|
|
mechanism = "gate"
|
|
domain = "policy"
|
|
layer = "agent-substrate"
|
|
stability = "stable"
|
|
language = "rust"
|
|
|
|
[lineage]
|
|
parents = []
|
|
creator = "ag-orchestrator-human"
|
|
created = "2026-04-23"
|