verify-agent-action

人工智能 / Agent Agent 与技能管理 1 文件 EN 原文

'Review a proposed AI-agent action or human-appr

'Review a proposed AI-agent action or human-approval packet before execution. Use when an agent wants to run a consequential tool, command, deployment, message, purchase, credential operation, or data mutation; when checking whether approval still matches the exact action; or when auditing action evidence for forged results, parameter swaps, replay, correlated reviewers, missing evidence, expiry, or stale monitoring. Produce an evidence-based review only—never execute or authorize the action.'

说明语言:英文

来源githubawesome-copilot ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/github/awesome-copilot --skill verify-agent-action

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: verify-agent-action description: 'Review a proposed AI-agent action or human-approval packet before execution. Use when an agent wants to run a consequential tool, command, deployment, message, purchase, credential operation, or data mutation; when checking whether approval still matches the exact action; or when auditing action evidence for forged results, parameter swaps, replay, correlated reviewers, missing evidence, expiry, or stale monitoring. Produce an evidence-based review only—never execute or authorize the action.' ---

Verify Agent Action

Treat a plausible approval screen as a claim, not proof. Verify the complete decision path before a human or an external enforcement point decides whether to act.

Preserve the safety boundary

Set this field in every final result:

{"execution_authorized": false}

Collect the review packet

Request only the artifacts needed for the review:

  1. The original user or system request.
  2. The exact proposed action:
  3. operation or tool name
  4. target resource
  5. complete parameters
  6. filesystem and network scope
  7. maximum execution count
  8. not-before and expiry times
  9. The assessment that claims the action is justified.
  10. The source evidence and policy used by that assessment.
  11. The approval record, including approver identity, role, action digest, nonce, audience, issue time, expiry, and use count.
  12. The latest monitoring events and expected heartbeat interval.
  13. The current trusted time and any prior nonce-use record.

List missing fields before analysis. Do not silently substitute defaults.

Build the exact action identity

Create one normalized action object without dropping fields:

{
  "operation": "git.push",
  "target": "owner/repository",
  "parameters": {
    "branch": "fix/example",
    "commit": "40-character-sha",
    "remote": "origin"
  },
  "filesystem_scope": [],
  "network_scope": ["github.com:443"],
  "execution_count": 1,
  "not_before": "RFC3339 timestamp",
  "expires_at": "RFC3339 timestamp"
}

Use a project-specified canonicalization and digest algorithm when provided. Otherwise, report that cryptographic identity cannot be independently verified; still compare every field structurally.

Never normalize away a security-relevant distinction such as:

Run the six controls

Evaluate every control as PASS, FAIL, INCONCLUSIVE, or NOT_APPLICABLE.

1. Recompute the assessment

2. Match the exact approved action

3. Reject replay and identity ambiguity

4. Test reviewer independence

Build a dependence table for every reviewer or evaluator:

DimensionCompare
Modelfamily, version, fine-tune
Provideraccount and control plane
Promptshared template or ancestry
Retrievaloverlapping sources and indexes
Toolsshared evaluator code and runtime
Operatorcommon owner or approval authority

Do not count correlated reviewers as independent quorum members. Mark FAIL if the policy requires independent approval and the remaining independent set is too small.

5. Preserve evidence and contradiction

SupportRefutationEpistemic state
absentabsentUNDETERMINED
presentabsentSUPPORTED_ONLY
absentpresentREFUTED_ONLY
presentpresentCONFLICTED

6. Verify lifecycle and monitoring

Challenge convenient conclusions

Before producing the final result, attempt these mutations mentally or with project-provided test fixtures:

  1. Replace a blocked assessment with an allowed result.
  2. Change one approved target, parameter, scope, amount, or commit.
  3. Reuse an otherwise valid approval nonce.
  4. Replace independent reviewers with correlated copies.
  5. Remove one refuting evidence item.
  6. Stop the monitoring heartbeat after approval.

If any mutation would pass the reviewed controls, record the affected control as FAIL; do not merely recommend future hardening.

Determine the review result

Use exactly one result:

ELIGIBLE_FOR_HUMAN_DECISION is not approval. A human authority and a separate enforcement point remain responsible for any real action.

Report in this format

# Agent Action Review

## Result
- Review result: BLOCKED | INCONCLUSIVE | ELIGIBLE_WITH_CONTROLS |
  ELIGIBLE_FOR_HUMAN_DECISION
- Execution authorized: false
- Exact action digest: <verified value or NOT_VERIFIED>

## Action
- Operation:
- Target:
- Material parameters:
- Scope:
- Validity window:
- Maximum uses:

## Control matrix
| Control | Status | Evidence | Reason |
|---|---|---|---|
| Recomputed assessment | PASS/FAIL/INCONCLUSIVE/N/A | ... | ... |
| Exact action binding | ... | ... | ... |
| Replay and identity | ... | ... | ... |
| Reviewer independence | ... | ... | ... |
| Evidence completeness | ... | ... | ... |
| Monitoring freshness | ... | ... | ... |

## Supporting evidence
- ...

## Refuting evidence and defeaters
- ...

## Required next action
- State the smallest concrete step that could change the result.

## Boundaries
- State what this review did not prove.

Lead with the result and the exact reason. Prefer a reproducible blocker over a confidence score.

同类技能
add-new-opc-skillagent-architectureagent-browseragent-governanceagent-owasp-complianceagent-skill-stackagent-supply-chainagentcore
本页内容来自开源项目 github, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。