policy-register
Skill2 starsChanged 4 months agoApache-2.0View on GitHub
Keep a defensible register of the organisation's security policies — what exists, who owns it, what version, who approved it on what date, when it is next reviewed, and which requirement each document is aimed at — persisted in a local file, so the question every auditor asks every CISO every year can be answered from a record rather than from memory. Grounded in the Policy and Procedures control in each NIST SP 800-53 Rev. 5 family and in NIST CSF 2.0 GV.PO-01 and GV.PO-02, both shipped with the skill so nothing needs downloading. Refuses to record a policy as approved without a named approver and a date, and refuses to say a requirement is met, covered, satisfied or compliant because a policy maps to it — a mapping records that a document exists and what it is aimed at, nothing more. Reports counts, never percentages. Supersedes and never deletes, because the audit question is what was in force on the date of the incident. A requirement with no policy reads not declared rather than absent, and an overdue review flags without blocking anything. Use when asked which policies exist, who approved one and when, what a policy is aimed at, which requirements have no document behind them, what is overdue for review, or to produce the policy inventory an auditor or a regulator asks for. Carries a kind field reserved for plans and playbooks; only policies behave in this release.
In this repository11 other files it gives its agents.
- ai-registerSkill
- attention-surfaceSkill
- board-packSkill
- business-contextSkill
- ciso-board-translationSkill
- exceptions-registerSkill
- incident-materialitySkill
- metrics-registerSkill
- nist-csfSkill
- risk-registerSkill
- vendor-registerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Every auditor asks it. Most organisations answer it from a shared drive, a spreadsheet that went stale in March, and somebody's memory of …
- Very specific: line 208
Every escalation carries the six CAC-EL-1 §1.3 keys — trigger, subjectKind, subjectRef, severity, since, evidence — and subjectKind is …
- Distinctive: line 223
No other skill has to have been run.
- Very specific: line 242
Ingesting a hundred documents changes nothing: No policy record, no requirement state, no count, no rendered page.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Policy Register
"Show me your policies, and which requirement each one satisfies."
Every auditor asks it. Most organisations answer it from a shared drive, a spreadsheet that went stale in March, and somebody's memory of who signed what. This skill answers it from a record: what exists, who owns it, what version, who approved it on what date, when it is next reviewed, and what each document is aimed at.
It stands alone. No other skill needs to have been run, no other store needs to exist, and an empty register is a normal state rather than a fault.
The refusal is the product
A mapped policy is never evidence that a requirement is met.
That sentence is the whole reason this is a skill and not a spreadsheet. "We have a policy for that", accepted as "that risk is controlled", is the most common quiet untruth in this industry — and a register that permitted the slide would make a CISO less defensible for having used it, because a register looks like a system.
So a policy record supports exactly one claim:
a document exists, a named person approved it on a date, and it is aimed at these requirements.
There is no state meaning covered, met, satisfied or compliant. There is no percentage. The four things a requirement row can say all describe the documents, never the requirement:
| State | What it says |
not-declared | Nothing in this register names this requirement. Not a finding that no policy exists — many organisations hold one omnibus policy across several control families. |
draft-only | Every document mapped here is still a draft. Nobody has approved one. |
superseded-only | Every document mapped here has been superseded and nothing approved replaced it. The state that most often goes unnoticed. |
approved-policy | At least one approved document is aimed at this requirement. A document exists and a named person approved it. It does not say the requirement is met, and this register cannot tell you whether it is. |
evals/no-coverage-claim.sh and evals/no-coverage-percentage.sh prove both rules by
mutation on every run. Adding a fifth state called covered is a one-line change that
nothing else in the codebase would object to; those two guards are what object.
Approved means a name and a date
python3 scripts/policy_register.py approve register.pol --id P-001 \
--by "The Board" --on 2026-01-15Both are required, and the refusal names every missing field at once, before the file is opened — so a rejected command leaves the register byte-identical.
CSF GV.PO-01 asks the organisation to "require approval from senior management on policy".
A record that says approved with nobody named records the opposite of that, and it is
worse than no record, because it will be produced in evidence.
The refusal is write-time only. A file that already carries approved with no approver
still loads, and analyze reports the state rather than hiding it. Refusing to read it
would strand the one person who needs to see it.
Supersession, never deletion
There is no delete command, and there is not going to be one. The audit question is never what is your policy on this — it is what was in force on the date of the incident, and a register that can only answer for today answers the wrong question with complete confidence.
python3 scripts/policy_register.py supersede register.pol --id P-005 \
--on 2026-09-01 --why "Replaced by the 3.0 issue after the KMS migration."The record stays in the file, stays in the CSV an auditor is handed, and stays on the page,
marked as superseded. --by-policy is optional, because withdrawing a document without a
replacement is a real act — and it is the one that goes quietly wrong, so the requirement
view surfaces it as superseded-only instead of letting the row fall silent.
evals/no-deletion.sh counts the records after every mutation of a full lifecycle and scans
for any code path that shortens the list.
Review is an act, not a timer
python3 scripts/policy_register.py review register.pol --id P-001 \
--on 2026-05-12 --next 2027-05-12 \
--why "Reviewed with the risk committee alongside the risk appetite statement; no change."--why is required. GV.PO-01 asks that policy be "periodically reviewed"; a clock that
resets itself is evidence that somebody ran a script.
An overdue review flags and never blocks. The document stays approved, stays in every view, and stays against its requirement — because it is still the policy in force, and hiding it would be the opposite of what the flag is for. The flag is derived on every read and stored nowhere, so it clears the moment the review is recorded.
The requirement spine, and why it is only twenty-two
NIST publishes nothing dedicated to security policy management. The legitimate anchors are
the Policy and Procedures control in each SP 800-53 Rev. 5 family — AC-1, AT-1,
AU-1, CA-1, CM-1, CP-1, IA-1, IR-1, MA-1, MP-1, PE-1, PL-1, PM-1,
PS-1, PT-1, RA-1, SA-1, SC-1, SI-1, SR-1 — and CSF 2.0 GV.PO-01 and
GV.PO-02.
The join is not this project's invention: the CSF Core's own informative references for GV.PO-01 and GV.PO-02 name all twenty of those controls.
Both anchors ship with the toolkit, so nothing is downloaded and no licence is involved. The
list is vendored into references/requirements.json so this skill runs from its own
directory with nothing else installed; evals/requirement-drift.sh regenerates it from the
nist-csf artifacts on every run and fails on any difference.
Twenty-two requirements are the NIST policy spine, not your obligations. That is exactly why this skill reports counts and refuses proportions: a percentage of this list is a completeness figure for a catalogue nobody claimed was complete.
An id outside the spine — PCI DSS 12.8.1, a contractual clause, your own control
framework — can be mapped and is shown in its own section, never dropped. Discarding it
because the spine is NIST-shaped would be an absence that looks exactly like a clean result.
Commands
python3 scripts/policy_register.py init register.pol --org "Northwind Logistics" \
--owner "Head of Information Security"
python3 scripts/policy_register.py add register.pol \
--title "Information Security Policy" --owner "Head of Information Security" \
--version 3.1 --map PM-1 --map GV.PO-01 --acknowledge "on-hire,annual,on-update"
python3 scripts/policy_register.py approve register.pol --id P-001 --by "The Board" --on 2025-11-04
python3 scripts/policy_register.py revise register.pol --id P-001 --version 4.0 --why "..."
python3 scripts/policy_register.py review register.pol --id P-001 --on .. --next .. --why "..."
python3 scripts/policy_register.py supersede register.pol --id P-005 --on .. --why "..."
python3 scripts/policy_register.py map register.pol --id P-001 --requirement AT-1
python3 scripts/policy_register.py unmap register.pol --id P-001 --requirement AT-1 --why "..."
python3 scripts/policy_register.py requirements register.pol # the auditor's view
python3 scripts/policy_register.py analyze register.pol --out analysis.json
python3 scripts/policy_register.py analyze register.pol --json # stdout, for a consumer
python3 scripts/policy_register.py export register.pol --format csv --out policies.csv
python3 scripts/policy_register.py self-test--json writes the read model to stdout and is how attention-surface reads this register.
It is a flag rather than the default because analyze with neither flag prints a summary a
person reads, and swapping that for a JSON dump would be a break for everyone already running
it at a terminal. vendor-register and ai-register draw the line in the same place.
The page:
cd renderers && python3 render_requirements.py --in ../analysis.json \
--out policy-requirements.html --offline--offline emits no external request, because these artifacts are opened in a room, on a
laptop, with no network. --brand takes a client palette and is refused rather than
approximated if any pairing falls below its contrast floor.
The colours are deliberately not RAG. approved-policy and not-declared take neutral
chips, because neither is a verdict; only draft-only and superseded-only take the
attention palette, because both describe a document problem this register can actually see.
Painting the first green would make the coverage claim in colour that the guards forbid in
words — and colour is what a board reads first.
What escalates, and what is only on the agenda
Two triggers reach attention-surface, and they are the two where a line has been crossed:
| Trigger | Subject | since | Cluster |
review-overdue | the policy | the review.nextOn that passed | clocks running out |
superseded-only | the requirement | the supersession that ended the cover | uncontrolled exposure |
Three more are on the review agenda — analyze()["attention"] — and escalate nothing:
reviewDue, noReviewDate, draftOnly. A policy inside its review window is on schedule.
exceptions-register states the rule and three other skills repeat it: due is the attention
list; overdue is an escalation, because escalating a deadline nobody has missed teaches a
reader to ignore the list by the second quarter. All three were escalations until v0.70.0.
draft-only is the one worth explaining, because demoting it will read as a mistake. It
shares its end state with superseded-only: neither requirement has an approved document in
force. The distinction is not how bad it is — it is whether the gap is visible. A draft
shows in the register as a draft, and anybody reading the requirement view sees it. A
requirement covered only by superseded documents looks populated. Deceptive escalates;
visible does not. Restoring draft-only to the escalations would flatten that distinction
and put the two on the same page, where the second one stops standing out.
Every escalation carries the six CAC-EL-1 §1.3 keys — trigger, subjectKind, subjectRef,
severity, since, evidence — and subjectKind is genuinely two values here, policy or
requirement, because this register holds concerns about both. since is always a recorded
date and never today: a derived date stamped on a historic fact is a fact this register did
not have.
CAC-AP-1 is not adopted, and that is not the same as declined. This skill takes no
--context, so attention-surface reads it with context: False. It reads the CSF Core
rather than a business-context profile, and whether it should become a consumer is an open
decision with its own scope — joining business-context/evals/consumers.sh, and proving
§2.2's guarantee that an absent profile leaves the output byte-identical. Recorded here so
the absence reads as undecided rather than as an oversight.
Entry anywhere, and a partial programme is normal
No other skill has to have been run. No store this skill wants to read has to exist. Every mutation leaves a schema-valid file, so stopping half way through leaves a legible partial state rather than wreckage. An empty register analyses cleanly, reports twenty-two requirements as not declared, and raises nothing — an absent register is not a fault, and this skill does not nag.
Bringing existing documents in
A CISO with a shelf of policies had nowhere to put them. ingest is that door — and the shape
of it is forced by a property worth stating plainly:
The agent extracts. The engine ingests structured JSON. The human declares.
⚠️ This engine cannot open a document, and it must not learn how. Every engine here is
stdlib-only and offline, and that is a property of the product rather than an accident. So
extraction happens outside — an agent, or the pdf/docx skills — and the result arrives as a
CAC-PI-1 payload. A parser in here would break the offline guarantee for every user to save
one step for the user who happened to have a PDF. Do not add one.
Ingesting a hundred documents changes nothing. No policy record, no requirement state, no
count, no rendered page. ingest writes proposals; assess --by NAME is the only act that
creates a record, and it creates a draft — approving and superseding stay human acts, in
that order, by somebody who has read both documents.
Every proposal carries a citation, and so does every proposed mapping. A proposal with no citation is an opinion: the person who confirms it has to be able to open the same document and read the same words. A filename is not a citation.
⚠️ A proposed mapping is not a coverage claim, and the source document will say otherwise.
Policy documents say "this policy addresses access control" in those words. Confirming a mapping
still says only that a document exists, a named person approved it on a date, and it is aimed at
these requirements — never that a requirement is met. Full contract:
references/intake-contract.md.
What it deliberately does not do
- Store or render policy text. This is not a document management system. Intake ingests assertions about a document with a citation into it, never the text.
- Read documents. See above — extraction is the agent's job, deliberately and permanently.
- Track individual acknowledgements. That is an HR or LMS system. The register records that acknowledgement is required and at what cadence — which is what GV.PO-01's implementation examples ask for.
- Generate policy text, or judge whether a policy is any good.
- Behave for
kind: planorkind: playbook. The field ships so a store written today needs no migration when they land; recording one now is refused, with that reason. - Produce a board section. Deliberately deferred. It reaches
attention-surfaceweekly; the quarterly pack is a different contract and a separate item. - Carry ISO 27001 or CIS identifiers in the requirement view.
Reading
references/policy.md— the record shape, read off the GV.PO implementation examplesreferences/schema.md— the.polfile, field by fieldreferences/requirements.json— the vendored spineexamples/example.pol— a worked register with a superseded document and two overdue reviews
This skill is not legal advice.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

