Repository navigation
v1.7.0
okf-grc 1.7.0 adds grc agent, a runner for agent workflows (Spec G, story G2), and its first workflow, posture: a summary of the latest scan for the repository's owner, written only if every number and status in it checks out against what the tools returned.
uv tool install 'okf-grc[llm,mcp] @ git+https://github.com/cdevarenne/okf-grc-skill@v1.7.0'
grc run && LLM_MODE=claude-cli grc agent posture
New: grc agent
- Two providers, one transcript:
LLM_MODE=claude-cliruns Claude Code headless on the person's Claude plan;LLM_MODE=anthropicruns the Messages API through the SDK's tool runner (a beta helper) with an in-process MCP client;replayreplays recorded runs in tests. - Only the workflow's tools: with the API, other tools are never sent; with Claude Code, built-in tools are off, only this engine's MCP server is loaded, the workflow's tools are allowlisted, and calls to any other are denied and recorded. User and project settings, hooks, plugins, skills, and
CLAUDE.mdare kept out of the run: testing showed that without that, a headless run loaded the person's own instructions. - Validation before writing: every number in the draft must appear in a tool result of the run (digits, or words from zero to twenty), cited controls must exist, a status given to a control must be its own, and no control may be called satisfied or compliant. A rejected draft is not written; the run record keeps it with the reasons. It checks that numbers were reported, not that they are attached to the right thing.
- Limits:
AGENT_BUDGET_USD(default $0.25) andAGENT_MAX_TURNS(default 8), separate from narration's budget. Claude Code applies the budget after the turn that passes it, so a run can end slightly over. - A record of every run under
out/agent/: the tool calls with their results, denials, turns, usage, cost and whether it was billed, and the validation result; the draft as Markdown when it passed; usage inout/agent/usage.jsonl, apart from the report's narration ledger. posture: may callcontrol_status,findings,gaps, andsuppressions, neverscanorgate. On the demo repository a run took 3 turns, reported at $0.07 to $0.09 on the plan (not billed); through the API on this repository's sample app, $0.037.
See docs/agents.md.
Changed: the MCP tools report totals
So that an agent never computes one: control_status adds by_status and findings_by_status, gaps adds rules and findings, findings adds by_rule (over every page of the filter), and suppressions adds counts. The additions are new fields; existing ones are unchanged.
Upgrading from 1.6.0
grc sync-base # base_version 1.7.0; the base bundle's content did not change
No change to scan results, the gate, or output contract 1.1.
Full Changelog: v1.6.0...v1.7.0