LLM-annotation workflow

Toolkit · Quantitative

A reusable LLM-annotation workflow prototype with executable tools for versioned requests, quotation checks and source-linked features.

What has been built

Tools prepare requests, check quotations and export features. Saved responses for five passages yield four candidate relations and one no-assignment record. Synthetic actor substitution and omission both pass the source checks.

What comes next

Add model calls and an agent skill. Obtain independent reference coding and test accuracy and repeatability before scaling.

What it is for

Turn organizational text into candidate records of who is directed to do what, with each actor, action and qualification tied to an exact source passage.

The working tools prepare requests, check returned quotations and export a feature table. Missing responses and abstentions stay visible. Researchers supply the codebook and assess the interpretation.

The worked example

Five hand-selected passages from Executive Order 13960 yield four candidate relations and one no-assignment record. Follow a passage from source to request, candidate, checks and exported row.

Start with section 4(b): the Director of OMB is directed to post a roadmap; the consulted stakeholders have a separate role. This is an illustrative saved-output demonstration.

Worked exampleExecutive Order 13960 · Federal Register document 2020-27065
Passage
Step

Section 4(b), first sentence: Candidate

Section 4(b), first sentence; p. 78941 · characters 8179–8475

(b) Within 180 days of the date of this order, the Director of OMB (Director), in coordination with key stakeholders identified by the Director, shall publicly post a roadmap for the policy guidance that OMB intends to create or revise to better support the use of AI, consistent with this order.

Marks: Actor Action Qualification Other party

Candidate

The saved candidate for this passage, showing the actor, action, modality and qualifications. These interpretations have not been independently validated.

Disposition
Relations present
Evidence
“the Director of OMB (Director), in coordination with key stakeholders identified by the Director, shall publicly post a roadmap”
Actor
“the Director of OMB (Director)”
Action
“publicly post a roadmap for the policy guidance that OMB intends to create or revise to better support the use of AI”
Modality
Mandatory
Qualifications
  • “Within 180 days of the date of this order”
  • “in coordination with key stakeholders identified by the Director”
  • “consistent with this order”
Other parties
  • “key stakeholders identified by the Director”
Reason given
The source directs the OMB Director to post a roadmap. Stakeholders are coordination participants; the embedded description of guidance OMB intends to create or revise is not a second assigned action in this sentence.
Read the AI prompt

What quotation checks cannot tell you

Both synthetic errors below pass the source checks: one assigns the action to the wrong party, and one leaves out an assignment. Matching words is necessary but does not establish correct interpretation.

Accepted, although wrong (2)

The wrong actor, in real words

Changed
Section 4(b), first sentence: the actor quotation changes from “the Director of OMB (Director)” to “key stakeholders identified by the Director”.
Result
Accepted: the actor is exported as written, at characters 8279–8322.
What it shows
The words are in the passage, so every mechanical check passes. Only a reader can see that the stakeholders are coordination partners and the Director is the one directed to post the roadmap.

As returned

(b) Within 180 days of the date of this order, the Director of OMB (Director), in coordination with key stakeholders identified by the Director, shall publicly post a roadmap for the policy guidance that OMB intends to create or revise to better support the use of AI, consistent with this order.

As changed

(b) Within 180 days of the date of this order, the Director of OMB (Director), in coordination with key stakeholders identified by the Director, shall publicly post a roadmap for the policy guidance that OMB intends to create or revise to better support the use of AI, consistent with this order.

Material limits

  • The candidates were produced interactively by the assistant that built the prototype. The full conversation context and exact model/settings are unavailable.
  • No independent reference coding, accuracy estimate or repeatability evaluation exists. Model calls and an agent skill remain proposed.
  • Five hand-selected passages illustrate textual assignments; they establish no population estimate, observed behavior or current legal effect.

Files

Inspect the output and the inputs behind it. The repository contains the runnable prototype and complete example.

Run it locally

Open appendix/10-annotation for the tools and replay command. Python 3.9 or newer and its standard library are sufficient; replay uses saved responses and makes no model call.

Run python3 checks/verify.py from that folder for the existing quotation, integrity and replay checks. Passing these checks is not an annotation-accuracy result.

Project code uses Apache-2.0; project-authored documents and data use CC BY 4.0. The official order remains public domain.

Credits

Source: Executive Order 13960, Promoting the Use of Trustworthy Artificial Intelligence in the Federal Government, 3 December 2020; Federal Register 85(236): 78939–78943, document 2020-27065. Office of the Federal Register, National Archives and Records Administration, and U.S. Government Publishing Office, through GovInfo; official U.S. government text.

Method: Carlson and Burbano (2026), Egami et al. (2024) and Gilardi et al. (2023), gathered in the literature reviews and database. These studies are cited, not reproduced. Further credit is in the component NOTICE.md.