Agent Governed
Operating Rule
Use the smallest governed process that can honestly support the final claim.
Default sequence:
- clarify the task contract when ambiguity could change execution
- classify risk, side effects, and rollback needs
- inspect current state before changing it
- identify coupled files, flows, and contracts
- make the smallest coherent change
- validate with evidence matched to risk
- update documentation and directive trackers when affected
- report results, checks, blockers, and residual risk
Do not treat governance as paperwork. Add process only when it improves safety, evidence, traceability, or maintainability.
When To Use
Use this tier for:
- release-sensitive work
- CI, validation, policy, or governance changes
- auth, payment, production, secret, or data-sensitive work
- migrations or rollback-sensitive changes
- broad multi-file changes
- formal reviews, audits, ratings, or readiness claims
- durable user directives that need fulfillment evidence
Move to a lighter tier for tiny local edits, answer-only requests, or simple commands where governance would add noise.
Task Contract
Before substantive work, establish:
- goal
- scope
- non-goals
- constraints
- acceptance criteria
- validation depth
- rollback or recovery expectations
Ask only questions that materially change execution. Discover safe details from files and environment before asking.
Risk Tiers
Classify work by the highest matching tier:
low: answer-only, inspection-only, or tiny reversible text edits
standard: normal code, docs, command, or workflow changes with local validation
governed: policy, CI, release posture, multi-file contracts, or durable directive changes
critical: destructive, production, auth, payment, data-loss, secret, migration, or unclear rollback risk
Critical work requires explicit confirmation before irreversible mutation and a credible rollback or recovery path.
Sequencing
Follow dependency-correct order:
- clarify only when needed
- inspect before mutation
- establish safety rails before risky actions
- update shared contracts before dependent callers when compatibility is preserved
- update tests near changed behavior
- update docs after behavior, workflow, or policy changes
- validate from cheap checks to expensive checks
- report residual risk clearly
Parallelize only independent reads or checks. Do not parallelize writes or commands sharing mutable state.
Diagnosis
For bugs, failures, regressions, or reported root causes:
- capture the observed symptom
- treat suggested causes as hypotheses
- inspect or reproduce direct evidence before patching
- consider at least one plausible alternative when feasible
- fix the verified cause
- rerun the reproducer or targeted check
If the cause cannot be verified, limit changes to safe mitigation and say what remains uncertain.
Validation Evidence
Validation must match the risk claim:
- syntax, formatting, or static checks for file correctness
- unit tests for logic and branches
- integration or contract tests for boundaries
- browser or end-to-end tests for critical user flows
- smoke checks for startup or runtime behavior
- policy or schema validators for governed artifacts
Never claim full safety when an important validation layer was blocked. Report the blocker and residual risk.
Documentation And Directives
Update durable artifacts when work changes:
- setup, run, deploy, or test commands
- public APIs, configuration, environment variables, or file formats
- user-visible behavior
- operational caveats
- policy or workflow expectations
- long-lived user directives and their fulfillment status
Directive tracking should be compact, evidence-based, and bounded. Mark work done only when evidence supports it.
Backup And Rollback
Before destructive or hard-to-reverse work:
- identify the rollback path
- confirm a backup or recovery route exists when impact is high
- avoid proceeding when rollback is unknown and the impact is critical
- document blocked recovery assumptions
Do not impose backup ceremony on low-risk reversible edits.
Reviews And Audits
For review, rate, score, assess, evaluate, benchmark, or compare requests:
- lead with findings
- cite file, command, or artifact evidence
- define a weighted rubric totaling 100 when scoring is requested or useful
- explain major deductions
- identify missing validation and residual risk
- recommend the smallest corrective action
Final Response
When complete:
- state what changed
- state what was validated
- state what was not validated and why
- state residual risk
- include file references when useful
- keep the response concise
1---2name: agent-skill-foundry-governed3description: Use for high-complexity Agent work that needs risk classification, auditability, validation evidence, documentation synchronization, directive tracking, and rollback-aware execution.4---56# Agent Governed78## Operating Rule9Use the smallest governed process that can honestly support the final claim.1011Default sequence:12131. clarify the task contract when ambiguity could change execution142. classify risk, side effects, and rollback needs153. inspect current state before changing it164. identify coupled files, flows, and contracts175. make the smallest coherent change186. validate with evidence matched to risk197. update documentation and directive trackers when affected208. report results, checks, blockers, and residual risk2122Do not treat governance as paperwork. Add process only when it improves safety, evidence, traceability, or maintainability.2324## When To Use25Use this tier for:26271. release-sensitive work282. CI, validation, policy, or governance changes293. auth, payment, production, secret, or data-sensitive work304. migrations or rollback-sensitive changes315. broad multi-file changes326. formal reviews, audits, ratings, or readiness claims337. durable user directives that need fulfillment evidence3435Move to a lighter tier for tiny local edits, answer-only requests, or simple commands where governance would add noise.3637## Task Contract38Before substantive work, establish:39401. goal412. scope423. non-goals434. constraints445. acceptance criteria456. validation depth467. rollback or recovery expectations4748Ask only questions that materially change execution. Discover safe details from files and environment before asking.4950## Risk Tiers51Classify work by the highest matching tier:52531. `low`: answer-only, inspection-only, or tiny reversible text edits542. `standard`: normal code, docs, command, or workflow changes with local validation553. `governed`: policy, CI, release posture, multi-file contracts, or durable directive changes564. `critical`: destructive, production, auth, payment, data-loss, secret, migration, or unclear rollback risk5758Critical work requires explicit confirmation before irreversible mutation and a credible rollback or recovery path.5960## Sequencing61Follow dependency-correct order:62631. clarify only when needed642. inspect before mutation653. establish safety rails before risky actions664. update shared contracts before dependent callers when compatibility is preserved675. update tests near changed behavior686. update docs after behavior, workflow, or policy changes697. validate from cheap checks to expensive checks708. report residual risk clearly7172Parallelize only independent reads or checks. Do not parallelize writes or commands sharing mutable state.7374## Diagnosis75For bugs, failures, regressions, or reported root causes:76771. capture the observed symptom782. treat suggested causes as hypotheses793. inspect or reproduce direct evidence before patching804. consider at least one plausible alternative when feasible815. fix the verified cause826. rerun the reproducer or targeted check8384If the cause cannot be verified, limit changes to safe mitigation and say what remains uncertain.8586## Validation Evidence87Validation must match the risk claim:88891. syntax, formatting, or static checks for file correctness902. unit tests for logic and branches913. integration or contract tests for boundaries924. browser or end-to-end tests for critical user flows935. smoke checks for startup or runtime behavior946. policy or schema validators for governed artifacts9596Never claim full safety when an important validation layer was blocked. Report the blocker and residual risk.9798## Documentation And Directives99Update durable artifacts when work changes:1001011. setup, run, deploy, or test commands1022. public APIs, configuration, environment variables, or file formats1033. user-visible behavior1044. operational caveats1055. policy or workflow expectations1066. long-lived user directives and their fulfillment status107108Directive tracking should be compact, evidence-based, and bounded. Mark work done only when evidence supports it.109110## Backup And Rollback111Before destructive or hard-to-reverse work:1121131. identify the rollback path1142. confirm a backup or recovery route exists when impact is high1153. avoid proceeding when rollback is unknown and the impact is critical1164. document blocked recovery assumptions117118Do not impose backup ceremony on low-risk reversible edits.119120## Reviews And Audits121For review, rate, score, assess, evaluate, benchmark, or compare requests:1221231. lead with findings1242. cite file, command, or artifact evidence1253. define a weighted rubric totaling 100 when scoring is requested or useful1264. explain major deductions1275. identify missing validation and residual risk1286. recommend the smallest corrective action129130## Final Response131When complete:1321331. state what changed1342. state what was validated1353. state what was not validated and why1364. state residual risk1375. include file references when useful1386. keep the response concise