The useful decision in an AI documentation workflow is not how much prose the model can generate, but which claims it is allowed to draft at all. A drafting permit records that decision before generation, so reviewers settle scope once instead of renegotiating authority paragraph by paragraph. A typical case is a team that drafts runbooks, API references, or configuration guides from a repository, where fluent text can appear faster than a small team can verify it.
A permit is not a truth check and it does not replace review. It is a scope contract that maps each section to an authority level, a required evidence set, and a named human owner. The model may still fail inside its permitted scope, but it should not be able to cross silently into recommendations, guarantees, or lived experience.
The four authority levels
Use four levels, because a binary choice between model-drafted and human-written collapses on mixed sentences. Each level names what the model may do and what evidence must accompany the draft.
- Extract is the narrowest level: the model may restate an exact value, path, flag, or version and must attach the source.
- Explain allows a description of mechanism or data flow, but only when the draft points to code, tests, or design records that support the interpretation.
- Propose allows labeled options and tradeoffs, but not a recommendation; a human chooses and rewrites the decision.
- Own means no model text at all, which is the correct default for security guarantees, legal terms, incident narratives, and claims that require personal accountability.
The table is a default, not a policy. A team should change it when the cost of retracting a wrong claim is higher than the cost of a slower draft.
| Section type | Default level | Evidence required | Human accountable |
|---|---|---|---|
| CLI flags, defaults, versions | Extract | config file, release tag, lockfile | docs maintainer |
| Request flow, retry behavior | Explain | source files, test names | module owner |
| Migration options | Propose | ADR, compatibility notes | service owner |
| Security guarantees, SLAs | Own | audit record, policy record | security or legal owner |
| Incident narrative, first-person testing | Own | primary records held by a human | author with those records |
A section-level permit is necessary but not sufficient. Descriptive prose often contains a normative clause, such as a mechanism statement followed by a recommendation, so the workflow needs sentence-level annotations as well.
Prerequisites and constraints
Before a team can issue a permit, it needs a stable outline with section IDs, read access to the repository and decision records, and named reviewers with authority to reject a claim. The reviewers must be able to say no to a sentence, not only edit its grammar. A parser is optional at first; a manual checklist can enforce the same structure on one page.
Constraints matter more than tooling. A permit is only as good as its evidence allowlist, and the allowlist ages when code moves. The workflow also needs a refresh trigger, because a reviewed permit can become stale between releases.
Steps
Freeze the outline before prompting. Convert headings into stable IDs such as
defaultsandrollout-options, then assign one accountable reviewer to each ID. Keep a section without a named owner out of generation and publication until someone takes responsibility.Inventory claim candidates, not desired sentences. For each section, list the assertions the page must make and pull candidates from code, tests, configuration, ADRs, and issue threads. If the list cannot be reviewed in one sitting, split the page rather than broadening the permit.
Assign an authority level per candidate and split mixed sentences. A sentence that states a mechanism and then recommends a policy contains at least two claims, so move the recommendation into a
proposeorownsection. Record the level beside the candidate, not only beside the heading, because section-level permits leak at sentence boundaries.Write the permit as a reviewed file. Include the page path, a pinned revision, section IDs, allowed levels, an evidence allowlist, reviewer roles, and a review trigger. Use a full commit identifier; if the input is a release tag, record the commit to which it resolved at review time.
# Illustrative schema only. Not a runnable validator or a real page.
page: docs/example-retry-policy.md
revision: 0123abc
sections:
- id: defaults
permit: extract
evidence:
- config/example-defaults.yaml
reviewer: docs-maintainer
- id: behavior
permit: explain
evidence:
- src/example-retry.ts
- tests/example-retry.spec.ts
reviewer: runtime-owner
- id: rollout-options
permit: propose
evidence:
- adr/example-0007-rollout.md
reviewer: service-owner
- id: guarantees
permit: own
evidence: []
reviewer: security-lead
An own section should produce an empty draft block with a question for the owner, not model prose.
Build the evidence bundle before generation. Resolve every allowlisted path to the pinned revision and keep excerpts short enough to compare during review. If a source cannot be pinned, downgrade the section to
proposeorown; an unpinned source turns the permit into a suggestion.Require inline claim annotations. Every non-trivial sentence needs a machine-readable comment with a claim class and a source from the allowlist; unannotated generated text is held for review. An absent annotation cannot establish human authorship. The following excerpt is illustrative, and its values and paths are placeholders rather than claims about any real system.
<!-- claim: extract source=config/example-defaults.yaml -->
The example default for `max_attempts` is 3.
<!-- claim: explain source=src/example-retry.ts -->
The client retries only requests that the transport marks as retryable.
<!-- claim: propose source=adr/example-0007-rollout.md -->
One option is to cap total retry time instead of limiting attempts.
Annotations are not decoration; the validator uses them to decide whether a sentence may reach a human reviewer.
- Gate structure, then route review by authority. A parser checks annotation presence, allowed claim classes, and allowlisted sources, but it does not check whether the source supports the sentence. Route extract and explain claims to the module owner, propose claims to the decision owner, and own sections to the named accountable human.
# Pseudocode for a structural gate. It has not been executed and does not verify truth.
for block in all_generated_blocks(draft_and_generation_record):
section = section_for(block)
if section is unknown or block.annotation is missing:
reject_and_continue(block, "missing section or annotation")
if permit[section].permit == "own" or block.claim_class != permit[section].permit:
reject(block, "claim class not permitted")
if block.source not in permit[section].evidence:
reject(block, "source outside evidence allowlist")
if any_changed_human_owned_section_without_recorded_owner_review():
hold_for_owner_review()
Track model-output boundaries when generation happens. Prose inspection alone cannot prove who wrote a passage. Reviewers compare accepted annotations with the cited source, because structural acceptance is not factual support.
- Reissue the permit when the evidence changes. Tie the permit to a release branch or code owner, and mark the page stale when the pinned revision no longer matches. A stale permit is worse than no permit, because it lends procedural confidence to text that no longer has a current source.
Test
Verify the workflow on a hypothetical page before applying it to a published document. Use four sections: defaults at extract, behavior at explain, rollout-options at propose, and guarantees at own. The prerequisites are a reviewed permit, a pinned evidence bundle, a draft with annotations, and either a structural parser or a manual checklist.
Run three negative cases and one positive case in a copy of the draft. No part of this plan has been executed for this article, so the expected observations are criteria rather than reported results.
-
Unannotated recommendation in
defaults. Add a sentence such as 'You should always set retries to five' without an annotation; expect the gate to reject it or route it to human review, never to accept it as extract. - Explain claim with an unlisted source. Annotate a behavior sentence with a file that is absent from the evidence allowlist; expect rejection before reviewer assignment.
-
Model text in
guarantees. Insert a paragraph into anownsection; expect rejection even if the paragraph carries an annotation, because the section has no model-draft authority. - Correct extract claim. Keep a value with an allowlisted source and matching class; expect acceptance and routing to the docs maintainer.
Expected observations: the first three cases fail closed, the fourth passes, and every accepted factual sentence has a traceable source. A false negative remains possible: an annotation can exist while the source does not support the sentence, and the structural gate will still pass it. A stale pinned revision can also pass if the file hash is unchanged but surrounding behavior changed.
Pass criteria for the test are simple: a reviewer can trace each accepted claim to an allowlisted source, and no model text appears in an own section. The test does not apply to exploratory notes with no stable evidence or to pages without named owners; those need a lighter review checklist rather than a permit.
Failure modes and limits
- Annotation theater. A model can attach plausible-looking sources to unsupported sentences, so the permit must be paired with source comparison by a human. The gate checks structure, not truth.
- Section-level leakage. A paragraph permitted as explain can end with a recommendation; split mixed sentences and annotate at the sentence level. Otherwise the permit becomes a loophole.
-
Permit inflation. Teams may mark everything
ownto avoid risk, which turns the model into a spellchecker and creates a review bottleneck. Calibrate levels by the cost of retraction, not by discomfort with AI. - Evidence rot. A pinned path can remain valid while the code around it changes; add release triggers and ownership, not just commit hashes. A permit without a refresh rule decays into ceremony.
- Coverage gaps. Tables, diagrams, code comments, alt text, and frontmatter often escape annotation, so either extend the convention or exclude those artifacts from model drafting. Silent gaps are worse than explicit exclusions.
- False assurance. A green structural check does not mean the documentation is correct, compliant, or safe; it means the draft stayed inside the declared scope. Do not present the gate as verification to auditors or users.
When this does not apply
A drafting permit adds overhead, so it fits pages where claims are expensive to retract and sources can be pinned. It does not fit one-off internal notes, early brainstorming, incident postmortems where the value is human narrative, or repositories without an owner who can approve claims. In those cases, use a short review checklist and keep the model at extract level, if you use it at all.
Regulated documentation may require formal approval and traceability that a permit cannot provide. The permit can organize evidence, but it is not a compliance record and should not be described as one.
The test of the workflow is not whether the model writes well. It is whether a reviewer can point to the authority and evidence behind every sentence that survives. When that trace is missing, the draft is not ready for human review; it needs a narrower permit.
This article was created with AI assistance.
Top comments (0)