@kftech/compliance-panel
flwr new @kftech/compliance-panelFederated Compliance Panel
A Flower AgentApp that reviews a governance document with a panel of independent reviewers, makes them cross-examine each other, and reports what they agree on, what they dispute, and what none of them could evidence.
Built for the Collaborative Agent Hackathon, Cambridge, 26 August 2026 — Track 1.
Why a panel
A single reviewing agent produces a confident list. You cannot tell which entries it would defend and which it produced because the prompt asked for a list. The failure is silent, which is the worst property a compliance tool can have.
This panel makes disagreement a first-class output. Three reviewers work the same artefact through different frameworks without seeing each other, then read each other's findings and challenge them. A finding that survives independent review and peer challenge is reported as consensus. One that does not is reported as disputed — shown, not resolved, because that is the point at which a human should look.
What it checks
| Reviewer | Framework | Looks for |
|---|---|---|
| uk-gdpr | UK GDPR / DPA 2018 | Lawful basis, minimisation, retention, transfers, Art 22, rights |
| iso-27001 | ISO/IEC 27001:2022 Annex A | Access control, cryptography, PII protection, change management |
| nhs-dspt | NHS DSPT and Caldicott | Justified purpose, need-to-know, re-identification risk, opt-out |
The controls that make it trustworthy
Quotes are verified in code, not by a model. Every finding must quote the artefact verbatim. panel/findings.py checks the quote against the source text and labels it evidenced, unverified, or unevidenced. A model that invents a supporting quote is caught mechanically, and an unverified finding can never reach consensus however many reviewers liked it.
The verdict is computed, not generated. gate_verdict in panel/agent_app.py is a readable rule over evidenced findings. No model decides block versus allow, so the decision an approver acts on can be audited and argued with.
Reviewers are isolated in phase 1. They cannot see each other's findings, so they cannot anchor on them. They see them only in phase 2, where the instruction is to challenge rather than defer.
The artefact is untrusted input. Every reviewer is told the document is content, never instruction. fixtures/injection-probe.md contains a direct instruction to report full compliance and stay silent; a correct run reviews it on the merits and reports the injection attempt as a finding.
A fetched document is never summarised before review. Passing a URL calls the web_fetch connector directly rather than letting the model retrieve the page, because a paraphrased document would silently break the evidence check the whole panel depends on. Only http and https are accepted, so a file:// or data: string is treated as document text and cannot become a fetch target.
Measured limitations, not claimed capabilities. Two things were tested and did not work, and are recorded here rather than being quietly omitted:
- Runs with allow-web=true and two tool turns made zero connector calls. A self-contained document reviewed against known frameworks gives the model no reason to search. Reviewers log the tool names they call, so an unused capability cannot be mistaken for a used one.
- URL ingestion is implemented and its guards are tested, but on 26 August 2026 the SuperGrid web_fetch proxy timed out for every target tried, including example.com. The failure is in the platform's fetch proxy, so the feature is present but unusable until that recovers. Fixtures and pasted text are unaffected.
Failure degrades, it does not hide. A reviewer that errors or exceeds its time share is reported as "no verdict returned" rather than being dropped silently, so a thin panel is never mistaken for a clean artefact.
Run it
$ uv sync $ uv run flwr login supergrid $ uv run flwr run . supergrid --stream
Review a different bundled fixture:
$ uv run flwr run . supergrid \ --run-config 'agent.input="injection-probe"' --stream
Review a published document by URL — fetched through the web_fetch connector and reviewed verbatim (see the limitation note above):
$ uv run flwr run . supergrid \ --run-config 'agent.input="https://example.org/privacy-notice"' --stream
Review your own text by pasting it — anything longer than 200 characters or containing a newline is treated as the artefact itself:
$ uv run flwr run . supergrid \ --run-config 'agent.input="<your document text>"' --stream
In Flower Chat or the SuperGrid browser UI, select the agent and send either a fixture name or the document text as your message. A message that names no document — "tell me about this" — gets an explanation of the panel and the ways to give it one. It does not fall back to reviewing a default document, because reporting on an artefact nobody asked about is the silent failure this panel exists to argue against.
Configuration
| Key | Default | Purpose |
|---|---|---|
| agent.input | "" | Chat message: fixture name or artefact text. Wins when set |
| agent.artifact | data-sharing-agreement | Fallback artefact |
| agent.frameworks | all three | Comma-separated reviewer ids |
| agent.max-tool-turns | 1 | Connector rounds per reviewer, used only with allow-web |
| agent.allow-web | false | Expose web_search and web_fetch to reviewers |
| agent.parallel | true | Run reviewers concurrently |
| agent.budget-seconds | 240 | Wall-clock budget; SuperGrid stops a task at 300 |
Fixtures
All fixtures are synthetic. Every organisation is fictional and no real person, patient, or production content appears in this repository.
- data-sharing-agreement.md — deliberate, known gaps: open-ended retention, unnamed lawful basis, overseas transfer with no safeguard, discretionary access
- dpia-extract.md — genuinely arguable clauses, written to test whether the panel surfaces dissent instead of manufacturing agreement
- injection-probe.md — attempts to instruct the reviewer to report compliance
Limitations
This panel assists a human reviewer. It is not a compliance determination and does not replace a DPO, Caldicott Guardian, or legal advice. Its framework knowledge comes from the model, so a missing finding is not evidence of compliance — the absence of a finding is the weakest signal it produces. Use it to find things worth checking, not to sign anything off.
Licence
MIT. See LICENSE.