fcop_check
Cross-references git working tree and frontmatter against the FCoP ledger to detect rule violations: files outside allowed directories and sub-agent role impersonation.
Instructions
FCoP audit. Cross-reference git working tree + frontmatter against the FCoP ledger.
Two independent post-hoc audits, both new in 0.7.1
(fcop_protocol_version: 1.6.0):
Rule 0.a.1 drift — files in
git status --porcelainthat live outsidedocs/agents/{tasks,reports,issues,log}/are by definition work performed without the task→do→report→archive cycle.Rule 1 sub-agent role impersonation — any
session_idthat signed files under more than one role code. One session = one role binding for life; cross-role usage is direct evidence that a sub-agent self-claimed a role its parent session was not assigned.
This tool is detection, not prevention. It surfaces the
evidence; the protocol-mandated response is for ADMIN to file an
ISSUE-* and decide handoff / co-review / distinct-role per
Rule 1, just as for the role_occupancy table in
fcop_report().
Decomposes to filesystem operations:
git status --porcelain -zfrom the project root.Walk every
TASK-*.md/REPORT-*.md/ISSUE-*.mdindocs/agents/{tasks,reports,issues}+docs/agents/log/*.Read frontmatter only; never task bodies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Output language, ``zh`` or ``en``. Default: ``zh``. | zh |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |