Repository navigation
v1.8.0
okf-grc 1.8.0 binds every number in an agent's draft to what it counts. A review of the demo repository's posture draft from 1.7.0 found "plus 11 additional CVEs at 4 findings each": 11 was a number the tools had reported, so 1.7.0's validation passed it, but the right figure was 7. This release closes that gap and shows it closed on the same outputs.
uv tool install 'okf-grc[llm,mcp] @ git+https://github.com/cdevarenne/okf-grc-skill@v1.8.0'
Changed: validation binds numbers (#124)
- A count in a field must be that thing's count: a draft's
{key, findings}or{rule, findings}must match what the tools reported for that control or rule, exactly. - A number in text must be the count of what it sits next to: the control or rule before or after it in the same sentence, or the object it belongs to, or a total the tools reported. In 1.7.0 it only had to appear somewhere in the tool results. Run ids, reported dates and their years, ids the tools returned verbatim, and framework names are names, not counts.
- One correction round: a rejected draft goes back to the model once with the reasons, on the budget that is left; the record keeps every attempt, and the agent ledger has a line for each.
- On the demo repository's outputs, the first draft put "11 rules at 4 findings each" next to soc2:cc7.1. It was true this time, but no tool reports how many rules share a count, so it was rejected; the corrected draft left it out and passed. Binding cannot tell a true derived count from a false one: a number reaches a person only if a tool reported it for that thing. A person still reviews the words; the same corrected draft called CC7.1 "system monitoring".
- The drafts recorded under 1.7.0 are now rejected, for a group named only in words ("namespace isolation violations (41)") and for per-tool counts the model added up itself; the tests keep them as examples.
Changed: MCP tools
findingsacceptslimit0 and then returns onlytotalandby_rule. Claude Code saves a very large tool result to a local file and shows the model a preview, which the validator cannot read;posture(prompt version 2) asks for totals instead.
Upgrading from 1.7.0
grc sync-base # base_version 1.8.0; the base bundle's content did not change
No change to scan results, the gate, or output contract 1.1. Agent runs record rejected_attempts.
Full Changelog: v1.7.0...v1.8.0