Skip to content

Analects — design

What is true now. Every section links the decisions behind it; the reasoning and the history (including decisions later reversed) live in adr/. When a slice changes the design, this file is corrected in the same commit and the change gets an ADR.

Analects is an open research record: what a person and their agents find about the world is kept per entity, in the source's own words, with every change on file. It was called kg until D69; the old command, $KG_… settings, ~/.kg/kg.yaml and kg-serve.yaml still work, and the signed formats keep their kg- names (D69). analects is local-first, and every stored value cites a source. It is built for an agent (Claude Code, or Claude Desktop, over MCP on stdio) doing entity research, and for the human reviewing what it writes.

Shared through a dataset, today. Each graph is one SQLite file; every changeset has an owner — a person, or an agent acting for them. A graph is written out as a dataset of signed bundles, contributions are checked in CI and pulled into each person's graph, and only maintainers decide what the dataset asserts (§16, §17), and a scope shared into a dataset travels as a file of its own (§18). A hosted peer serves the same tools over HTTP to people who sign in with GitHub, holds leases for everyone and sends their work back by pull request (§22). How several people and their agents share one dataset — a git log of signed bundles, with SQLite rebuilt from it — is D47, built in slices 21–24 and 28. Slice 29 made what an agent resumes from honest: dates by their span, endings, and identity decisions that are kept. Slice 30 lets any research agent, without Analects, run from a prompt the graph writes, and records its report so the next run starts where it stopped; slice 31 checks the report first and accounts for every page it cites (§23). Slice 32 reads Scottish planning from the councils' own pages, and publishes a scope as a public read-only site (§24).


1. The engine's rules

The engine knows nothing about data centers or politicians. It enforces six hard rules; everything a pack declares is an optional hint that warns and never refuses (D13b).

  1. Every claim cites an event; every event has a source, a locator and a quote.
  2. Append-only: a correction is a new claim, a withdrawal is a retraction claim.
  3. Every write is staged into a changeset before it is merged.
  4. A fuzzy match, an entity merge and a split always wait for a human.
  5. Creating an entity runs the resolver; a match or a proposal must be used, or named as rejected (D13g).
  6. A quote not present in the supplied source text is refused — and so is one too generic to point at a passage (D42).

2. Storage

SQLite, one file in the repo (graph.db, git-ignored), behind a store module so the backend can move later (D2, D27). The log is the truth; any graph view is a projection of it.

Table Holds
sources one document per normalised URL, with a compressed text snapshot (D15)
captures every distinct text ever supplied for a source, append-only (D41); a reading a dataset did not share is a withheld stub: its sha, no text (D47d)
kept_local rows this graph never exports, with why (D47f)
bundles which bundles a rebuilt graph was built from (D47c)
events source + locator + quote, and the capture the quote was checked against; reused when repeated
entities id, type, pack version
claims every value and every relation, with kind, time and evidence
changesets one owner's session of staged work: handle, agent, mode, intent, scope, instance (D4, D47b)
truths compiled truth: an analyst's view, labelled inference, never evidence
deferred what could not be placed, with a reason
questions open questions on an entity
closures a deferred item resolved or dropped, a question answered or dropped (D14g)
watchlists saved sets and scopes (anchor, criteria, exclusions) — not graph data, not staged (D45)
decisions entity merges (same_as, unmerge) and different_from (D20b)
reviews every merge and rejection: who (handle/agent) and in what role (declared), surface, how the row was chosen, and why — append-only (D44, D47b)
coverage "the scope is N", cited and staged (D45b)
channels, sweeps, candidates, dispositions where a scope's members show up, when each was last looked at, what it pointed at and what became of it — working state, not graph data (D45c); a channel keeps the lessons runs learnt about it, and a sweep the report it came from (schema 14, D55)
reads every request made of someone else's server (by host and by the address it resolved to), whether it was answered, and what the reader kept of it (only the rows it reads): how a run knows not to ask again, or ask a council that refused. Never exported (schema 15, D58)

Rows are never updated except status (staged → merged | rejected), and every such change writes a reviews row saying who made it and why. meta holds the database's instance_id, set once when it is first opened. Ids are ULIDs assigned at staging, so staged rows can cite each other. Timestamps are stored to the microsecond (D12c).

A source can be read more than once. Each distinct text is kept as a capture, and an event records the sha of the capture its quote was checked against (D41). Where no text is supplied, the quote is checked against the captures already held, newest reading first, and binds to whichever contains it — so a page that changed does not invalidate a quote taken before it changed. A second, differing capture warns; it is not an error, because a changed page and a register queried twice are both legitimate.

This was found by probing, not by a test. Two of 335 imported events quoted words that were nowhere in the archive: NESO's register is one endpoint, two queries normalise to one URL, and the old code stored text only when a source had none — verifying the second response and then discarding it.

A quote must also locate something. One shorter than 25 characters that appears more than twice in the text is refused, and the message gives the count (D42). Longer quotes may repeat — a full sentence is the source's own words and the locator says which occurrence. The thresholds are measured, not chosen: across the 428 quotes this repo holds, the shortest is 18 characters, every imported one is at least 101, and none is both short and repeated. On the builder's page slice 12 reads, "Abilene" appears 11 times and "the" 39. What the rule cannot do is check that the quote supports the value; that stays a judgement for the agent and the reviewer.

analects audit [--source URL] re-runs both checks over everything written and reports what the archive can no longer produce, and what no longer locates anything, separately from sources read more than once and from events that never had text to check (D41b). It exits non-zero only on the first.

3. Claims

A claim is one value for one property of one entity, citing one event.

Kinds (D7): stated (default) · projection (about the future; never contests a fact) · derived (--method, --inputs; worth its weakest input, or its own source if it names none — D7b, D7c) · rumoured (anonymous sourcing; never becomes current on its own). There is no estimate: guesses are deferred.

Values (D19, D19b): units normalise on write (1.2 GW → 1200 MW); ~200, up to 5 GW, at least 96 and 96-100 become approximations and ranges; money keeps its currency and never converts. Equality is exact after normalisation (96 ≠ 100 MW), except that approximations tolerate ±5% and a range agrees with a point it contains.

Retraction (D8): an evidenced claim that a value was withdrawn. The value leaves the current view; both claims stay in history.

4. Time

Every property and edge declares one of four temporal kinds.

Kind Means Example In an as-of view
static timeless a name, a member id always (D18c)
valid_range holds over an interval a party, an operator if the interval covers the date
period about one period a majority at an election per period, never "current"
event happened on a date a vote cast, a statement made on or after its date; never current or expired

Two clocks (D18): valid time (when the fact is true) and record time (when a source told us). --as-of D asks what was true on D; --known-at D asks what we believed on D. An undated valid_range claim counts from its record date, so it is never evidence about the past (D18b). Dates may be partial (2026, 2026-H2, 2026-Q3, 2026-06), and compare as the span they name: valid_to: 2026 holds through December (D52).

A value can end, which is not the same as being withdrawn: --ended-on D, or --ended-by D when a source gives only an upper bound ("left months before June"). The ending closes the value from then on and is history, never current; read at a date before an --ended-by bound, the value still holds, marked "may have ended by D". --retract keeps its meaning, that the source withdrew the value (D52).

5. What is current

Confidence (D6) is computed on read, never stored:

weight = domain trust, else source-type weight
         × 0.7 if the quote was never checked
         × 0.5 if rumoured
         × weakest input if derived
score  = 1 − ∏(1 − weight)   over independent sources

Sources are independent only if their domains differ and their quotes are not near-duplicates, so an AI rewrite of one story counts once. Age does not lower confidence: a value past its max_age is flagged stale for re-checking (D6e), counted from the source's date, not from when the fact began (D18d).

Choosing the current value (D6a):

  1. Group claims that agree and overlap in time; the same value in two periods is two facts (D6g).
  2. Drop values whose validity has ended, or has not yet begun, as at the date read (D32) — a building operational from 2027 does not make a site operational today.
  3. Rank by record time — what we learned most recently about now — with valid time as the tie-break (D6d), counting only the dates sources gave (D52). An undated stage a source recounts on its way to a dated later one ("announced last July, now under construction") is history, where the pack's status machine says the one leads to the other: it stays in the timeline and is left out of what is current.
  4. A value becomes current only if its non-rumoured evidence scores ≥ 0.6 or comes from two independent sources (D6f). A newer value that does not qualify is an unverified update; if nothing qualifies, the least-bad value is shown flagged and nothing is hidden (D6c).
  5. Other values overlapping the current one are contested — an unverified update is a contested value that happens to be newer (D6b) — except an earlier open-ended value closed by the current one's start date, which is a transition, not a dispute (D13d).

Sets (multi: true) hold every member above the floor whose validity has begun and not ended, and are never contested (D8b, D32). Events are never current; two conflicting accounts of one event are contested.

6. Relations

An edge is a claim whose value is an entity, so relations get everything above for free (D9b). Each relationship is stored once, in its canonical direction; an inverse_of alias writes the same row with subject and object swapped. Both ends read it: incoming relations are always a set, grouped by the other entity (D9c, D9d). Edge attributes (decision=aye) are part of the value. Entities are named by their pack's first name field, looked up when read (D12b).

analects path A B walks those edges: the shortest routes between two entities, every route of that length, up to --limit. It expands each node through relation_state — the same function analects get renders relations from — so it inherits merged identity, retraction, expiry and both clocks rather than reimplementing any of them.

A path's confidence is the minimum over its hops, and that hop is named (D40). Hop scores are never multiplied: the product is a number nobody can check, and it would rank five documented filings below one aggregator row seen twice.

The walk crosses an edge only if the graph currently believes it (D40b). Retracted, expired, not-yet-begun, rumoured and projected edges are skipped; --as-of walks the graph as it stood on a date and --include-rumoured opts rumours back in, marked. A dated edge — a vote cast, an interest declared — is walked like any other, because those live under events rather than values (D18e).

"No path" reports how many entities it visited, within how many hops, and what it deliberately did not walk (D40c); a walk stopped by --max-visits says it gave up rather than that nothing is there.

Where an intermediate node reaches more than twelve entities, the route says so — N others reach it the same way — and tells the reader it is shared participation rather than a link (D40d). Eighty- three MPs voting in one division connects any two of them in two hops; every hop is true and the route means nothing. --max-degree refuses to route through such a node at all.

7. Reading: the brief and wide mode

analects brief <entity> is how every session starts (D14f): a header, the current status, the compiled truth, then only what needs attention — verify (D14h), contested, stale (D13f), rumours, a one-line relation summary, deferred, questions, pending — capped near 400 tokens. --full adds every current value, the status timeline and the entity timeline; --since limits the timeline to a period. Timelines take a step only from evidence that could stand alone; weaker claims appear labelled unverified (D13e).

An entity's name is cut to 90 characters wherever it labels somebody else's line — a relation, a query listing, an MCP query result — because a statement is named by the words that were said and a minister's answer runs to fifteen hundred characters (D38b). Reading the entity itself still returns every word.

A current value whose every supporting claim is derived is marked [derived] on the page, not only in analects history (D35d). A division's result is arithmetic on counts the API published and must not read like a count the API published; one stated source among the evidence and the mark is dropped.

Verify reports disagreements one by one, but says thin sourcing once: where three or more properties rest on one weak source — the normal state after a bulk import — that is one fact about the entity, not one per property (D32c). Several forecasts of the same value print once (D32e).

Notes — compiled truth, deferred items, questions — are staged like claims and closed by new rows, never edited (D14g).

Wide mode (D23b): analects query matches current values, relation labels included; a watchlist saves a query (re-run each time), fixed ids, and the props a sweep is about; analects brief --set prints a line per entity and a worklist ranked by attention (3 × verify + 2 × contested + 2 × stale + questions + deferred). A finding that 70% or more of the set shares is hoisted into true of the whole set and dropped from the ranking: what is true of everything is no reason to look at anything, and when nothing distinguishes the entities the worklist says so instead of inventing an order (D32d).

Scopes and sweeps answer the question a brief cannot: have we found all of them? A scope is a watchlist with written rules (D45): members hold a current edge of named kinds to an anchor, in either direction (a developer's sites, a party's MPs), plus clauses and fixed ids; criteria say in words who belongs; exclusions are named — a clause (country!=US) holds members and candidates out by machine and says which rule, any other text is a rule a judgement must cite. Coverage is a cited, staged "the set is N" (D45b); the plan shows it against members and those held out by a rule. Channels say where members show up — a pack declares templates per type under discovery: and a scope fills in its anchor and its members' counties — and each sweep records which were looked at and when, which makes them due again by cadence. A candidate is a name a channel pointed at; its disposition (matched, added, excluded under a named rule, unsourced) is appended, never overwritten, and a name seen again is the same candidate (D45c). analects sweep plan is all of it as data for whatever runs the research, and analects sweep record takes back what it found; new members still arrive through check and write, under the policy (D45d).

A channel template also carries the playbook for working it — how to query it, what goes wrong, what counts as evidence there — and an applies_when clause, so a jurisdictional register is only offered while a member or candidate is in that jurisdiction, and a skipped channel says why (D46). analects sweep brief turns all of it into the researcher's prompt, one per channel, so a sweep is planned, briefed, run and recorded without anyone writing a prompt (D46b); without --channel it is one prompt for a research run over the whole scope (§23). A result may carry documents — the text read and the mentions it supports — which sweep record puts through check and stages, one batch per document, so updates to members arrive under the same rules as everything else (D46c).

8. Identity: the resolver, merges and duplicates

analects find (D11b) tries three layers — a shared external id, an alias (names equal once folded, filler dropped and the pack's strip_fields values removed), then fuzzy name similarity within a block — after discriminator vetoes, which compare every value each side has ever held. A near-miss name is proposed when two independent context fields agree. For a type whose pack names qualifiers, a name whose words all sit inside the other's, with any word left over that is neither a qualifier nor the place, is a near miss at most (D67e). Results are match, ambiguous, propose or near_miss; a find also surfaces deferred items that mention the name.

Creating an entity runs the same resolver (hard rule 5, D13g). analects dupes looks for duplicates among existing entities, and analects merge checks each newly merged entity (D21b). An entity merge is held back from bulk merges until a human merges it by id; afterwards the kept entity reads as the union of its members, and the merged-away name becomes an alias (D20b, D20c). analects not-same records a pair that must never be proposed or merged; naming a candidate in --rejected-candidates at creation records the same decision, so it is not asked again, and review still shows the pair to a person until that decision is merged (D53). Every pack fixture is executed (D12d).

A company's previous names are aliases, because a renamed company is the same company and the register dates every change (D37). Its registered office is not — never a discriminator, never grounds a merge, never context agreement: one serviced-office postcode carries over nine hundred companies, so grouping on it would invent a corporate structure and make it look like a finding (D37b).

Two names that both carry a bare number, and whose numbers differ, are two things (D36b). Only bare numbers count: 200MW is a measurement, and a project whose capacity is revised must not split in two. Found twice on real data — Colossus 1 proposed as Colossus 2, and four Apatura Project NN Ltd companies proposed as each other — and it only ever keeps things apart, so being wrong costs a duplicate rather than a silent merge.

A pack that knows how its names are ordered says so with normalisation.name_order, and the resolver then splits a two-word name into a given name and a surname on the record it is comparing — never as a stored claim, and never across a comma, which is the source saying it used another order (D35). A derived part can only ever produce a veto, so "Charlie Elphicke" is ruled out of being Natalie rather than proposed as her.

Context only counts when it is surprising: a (field, value) held by more than resolver.common_value_share of a type's entities is ignored, since country=US in a graph of US sites is the background, not evidence (D32f). Below ten entities of a type there is nothing to measure, so every agreement counts.

A pack's separators (identity.separators; datacenter: locality, county) count against a match without ruling it out: when both sides hold one and the values never overlapped, the pair is never promoted or proposed — a near miss, saying why — and ranks after candidates that do not differ. A place the query's own name contains counts as the query's. It is not a veto, because one source's suburb and another's city can be one site. A sweep candidate close to an earlier one is returned with looks_like, for the researcher to fold in with same_as (D53).

9. Packs

A pack is YAML: entity types, properties, edges, identity rules, and optional hints (create_requires, discriminators, blocking, status_machine, stale_rules, required, inverse_of, normalisation). The format is documented at the top of src/analects/packs/builtin/_shared@0.1/pack.yaml; a project may keep its own in a packs/ folder (D65). External ids are stored as ordinary claims (D10b). Two packs ship: datacenter@0.1 (global) and politician-uk@0.1, and both run through every slice (D25b).

An entity type may also carry discovery: channel templates — where members of that type show up (a newsroom, a register, local press, an importer) — each with a cadence, a playbook, traps, what counts as evidence there, and an optional applies_when clause. Scopes instantiate them and sweep briefs quote them (§7, D46).

What a real source forced — a register with no category for data centers, a chair's "Order." in Hansard — is recorded as a finding ADR and summarised in each pack's FINDINGS.md.

10. Batches and imports

A batch is a list of write operations applied as one unit: all of it lands or none of it does (D31), since append-only rows leave nothing to tidy up a half-applied batch with. An op names what it creates with "as": "$site", and later ops use $site where an entity id would go. A $name is read as a reference only in an argument that takes one, so $3.4bn in a value and $M in a quote are left alone (D31b, D4b). core/ops.py is the one write dispatcher behind the CLI, the MCP write tool and every importer.

An importer turns a dataset into one batch per record and knows nothing about storage (D22); it can write nothing a person could not have written by hand. Three rules hold for all of them:

  • One event per record, not per value (D25a). A record is what the source treats as one row of truth: a CSV row, an API object. Its quote is its own text, checked against the source like any other quote; machine-readable sources are snapshotted canonically — CSV verbatim, JSON pretty-printed — so a record can quote itself (D31c).
  • Re-running one changes nothing. The same claim, relation or open question from the same event is stored once (D31d).
  • It never decides a close call. An exact match is used, so an import of what we hold updates it. Anything weaker is deferred for a person, with a supporting entity left out rather than blocking the record, and analects import --new recording the answer once it is given (D31g).

Dated series arrive as ranges: each observation ends where the next begins (D31f), and a row dated after its source was published is a projection (D31e). Import changesets may merge themselves; entity merges and proposed duplicates still wait.

--fetch reads a source over the network and uses what comes back as the text a quote is checked against. It is off by default, every surface reaches the one gate in core/fetch.py, and the refusal names the setting and the alternative (D39). What it returns is a page, not an article — navigation, banners and footers come with it — so it is something to check a quote against, never a source of claims on its own (D39b). Hard rule 6 is unchanged by the text having arrived over a wire.

An aggregator's own citations are parked rather than dropped: each Epoch site carries a note listing the primary documents Epoch names and nobody has read, attached to the site so it sits beside the Verify line (D39c). Following one of them took a site's locality from (0.40, 1 source) [unverified] to (0.79, 2 sources).

An importer may also decline a row it can read perfectly well. Record.skip carries the reason and the count is reported like any other outcome, because a source that holds rows we will not store must say so — created 0 is indistinguishable from an empty search (D38). Hansard attributes every utterance to a member, including the ones made from the Chair, and "Order." is not a view about farming.

Records are not sealed off from each other. A record may use an entity an earlier record in the same import created, by id rather than by name — two Commons divisions a year are both called "Closure motion", so matching on a title would attach a vote to the wrong division (D35c). A record may also be allowed to look an entity up without being allowed to create it: where a document names a member by id and never says who they are, the record waits and says which import would fix it, rather than filing a person nobody named (D35b).

An importer that reads the web is a WebImporter and reads through one polite reader, polite.Visit.read: a reading kept within the window is reused (only when kept for the same question), a server that refused is left alone, each page is logged once with only its rows kept, and a missing page can read as empty. It reads what the graph already holds through the engine (read.held_values, which counts merged entities, retractions and staged work), and its finishing report is worded by report_line, the same for the CLI and the goldens (D63).

Thirteen importers ship:

Importer Source What it makes
epoch-data-centers Epoch AI's AI Data Centers dataset (CC-BY) sites, plus a dated buildout timeline
parliament-member Members API, one MP or peer the person, with every party, seat, House, office and committee spell dated
parliament-interests Interests API, one member's register one entity per register entry, company donors resolved by Companies House id, individual donors left as text
parliament-votes Commons Votes API a division and the votes cast in it — per member, or per division with everyone who voted
neso-tec NESO's Transmission Entry Capacity register one GB grid connection per row, with the company holding it
companies-house Companies House free bulk product one UK company per row: number, registered office, status, and every previous name as an alias
hansard Hansard API, by topic or by member one contribution per statement, attributed to the member who made it
planning (also scottish-planning) councils' portals in Scotland, England and Wales (Idox, Atrium, Agile, Ocella) and the DPEA, the Planning Inspectorate, the national infrastructure register and PEDW, by URL; PlanIt's search, into candidates a permit per application or case — stage, deadlines dated by reading, counts, decision, who decides, the follows chain — attached to a site research already holds; never who wrote in (D57, D64)
companies-house-api Companies House API (a free key, from the environment) each company behind a scope's sites, its chain of controlling companies and its family's siblings confirmed by control; individuals counted, never named (D61)
holyrood The Scottish Parliament's open data (no key) every MSP with their party and seat dated, every member's vote on the motions listed, and the questions and motions that mention data centres, with their answers (D62)
areas MapIt, from a site's point the ward, Holyrood constituency and region a site lies in, each with its GSS code, derived from the point
councillors Democracy Club the councillors elected for a scope's councils, by ward, since the 2022 elections
committee-votes A council committee's minute, transcribed and checked the committee's vote on an application — motion, amendment, who voted for each — and who decided it (D62)

11. Writing, review and the policy

Every write is staged (hard rule 3). What differs between an import of three thousand rows and one claim that contradicts a filing is not whether they are staged, but whether anyone has to look first. Each staged row gets a verdict, auto or confirm, from three things in order (D5, D33):

  1. Rules nothing relaxes — an entity merge or unmerge always waits.
  2. The policy for its operation. analects.yaml may name one per operation; otherwise write_policy decides. auto is auto for everything. confirm lets evidence land (an event asserts nothing by itself) and holds judgements (a new entity, a compiled truth).
  3. Escalations — a row whose operation is auto still waits when it would contradict a value we hold, rest on an unchecked quote, create an entity the pack calls incomplete, or add an entity that looks like one we have. Escalations refine confirm and never override auto.

A claim cannot land before the entity it describes, and confirming an entity brings its claims with it (D33d). analects merge <id> is a person acting. analects merge --all applies the policy. analects merge --confirm entity accepts a whole kind at once. analects import merges itself and reports what a stricter policy would have asked instead (D33e).

Every changeset has an owner (D47b): a handle (analects --as, $ANALECTS_AS, analects.yaml me:, else $USER), optionally an agent acting for it (ada/tdlr, or ANALECTS_AS=/tdlr), and a mode (human, assisted, autonomous). Each owner stages into its own open changeset, which closes once nothing in it is left staged; an import and a sweep's documents get changesets of their own, and a sweep's belongs to the researcher its results name. analects review --from, analects merge --from and analects reject --from act on one contributor's work: the merge under the same verdicts as any bulk merge, bringing along events its rows cite from another changeset; the rejection cascading as any does, and counting what it took from other contributors. Names are declared, not verified, until signing (D47).

Every merge and rejection is logged (D44): the actor is declared by the caller (--by user|agent, $ANALECTS_ACTOR, MCP defaults to agent) and never verified, since a person and an agent run the same CLI; the surface (cli, mcp, api) is recorded by the code; via says how the row was chosen — named by id, let through by the policy, released with its confirmed entity, or merged by an import; and why keeps the reason for a rejection or the instruction a merge acted on, and who names the handle and agent that decided. An agent merging on the user's say-so writes --by agent --why "user: <their words>". Decisions made before schema 5 were not recorded, and the trace says so rather than attributing them.

analects review is organised around entities, not rows: each claim against the value we hold, a new entity's fields on its own line, evidence counted rather than listed, one question per change however many sources propose it, and a flag on a new entity that resembles one we already have. --diff reads merged rows instead, answering "what did this session change" (D33c).

A pack's completeness hints (create_requires, required) are read here, over the whole changeset, not at write time: at the moment of creation an entity is always incomplete (D33b).

12. Checking a document

analects check <document> --source URL --type T --mentions <file> takes a document and a list of what an agent says it read, and returns a verdict per mention plus an ops batch. It writes nothing (D16, D34). A mention is {entity_text, type, property|edge, value, quote, locator} plus the optional shape a claim already has. With --report, it checks a research run's report instead: the pages it cites, and its quotations against them (§23).

Checks run in order, and the first failure settles it: the quote (hard rule 6, before anything else, so an invented sentence is refused for being invented), the shape (known type, known property, a value that parses), the entity (the resolver decides — an exact match is used, a close call waits for a person, an unmatched name becomes an entity op carrying only that name, D34b), then the difference against what we hold.

Verdict Means Op?
refused the document does not support this no
unmatchable which entity this is needs a person no
new would create an entity; read it first yes
stale disagrees with a value we hold yes
missing we hold nothing for this yes
alongside a forecast or rumour; it does not displace what we hold yes
corroborates a publisher we had not heard it from yes
unchanged already on record from this publisher no

A dated mention is compared against the graph as of its own date, not today (D34d), and a value already held from the same domain is unchanged rather than corroboration, because independence is by domain (D34c).

The ops go to analects write --ops, where every quote is checked again at staging and the write policy sorts them one more time.

13. Surfaces

One core, two thin surfaces (D17, D17b): the analects CLI, and an MCP server (analects mcp, SDK v2) with four tools — read, check, write, review — all four now built. analects help --agent prints the live command surface.

MCP tool Ops CLI
read brief, get, history, query, find, path, schema, deferred, questions, watchlists, dupes, importers, audit, trace, scope/sweep_plan, sweep_brief, candidates, whoami, changesets, dataset, bundles, verify, contributors, gaps, coverage, gap_rules, log, refresh_brief, support_brief, sql, sql_schema, queries, query_run, related analects brief, get, history, query, find, path, schema show, dupes, import --list, audit, trace, scope show, sweep plan, sweep brief, candidate list, whoami, changeset list, dataset show, bundle list/show/verify, gaps, gaps coverage, gaps rules, log, refresh brief, refresh support-brief, sql, query list/run, related, views export
check a document plus structured mentions analects check
write event, claim, relation, entity, truth, defer, ask, answer, … , ops (a batch), import, scope_add, channel_add, channels_from_pack, sweep_record, candidate_resolve, coverage, changeset_start, bundle_export, rebuild, keep_local, pull, gap_dismiss, refresh_record, support_record, revert, query_save, query_rm, refresh_claim, task_claim, publish (hosted) analects add …, truth, defer, ask, answer, write --ops, import, scope …, sweep record, candidate resolve, coverage add, changeset start, dataset init, bundle export, rebuild, keep-local, pull, keys init, contributor add/agent, gaps dismiss, refresh record, refresh support-record, revert, query save/rm
review list, diff, merge, reject, confirm_match — each may take staged_by — and queue, decide analects review, merge, reject (each with --from), merge-entities, unmerge, not-same; analects review --queue (-i, --accept/--reject, --html, --advice, --apply)

Every tool takes who to act as a handle or handle/agent; the CLI takes --as and --mode before the command. On a hosted peer the handle is whoever signed in, and who may only name their agent (§22). analects serve runs a peer; analects peer login | status | logout signs in to one.

A channel added with --local-only (a source the user may not share) keeps its candidates in this graph only; every member still needs a public primary document (D45c).

analects trace <entity> (MCP read op=trace) is the audit view (D44b): every claim, rejected ones included, with its source, exact words, capture and each decision about it. It flags a name or reference its own quote does not contain — a quote that locates a passage without stating the value — as a hint, never a refusal (D44c). skills/analects/SKILL.md documents only commands that exist, guarded by a drift test against analects help --agent (D28, D26b). help --agent reads each command's options from the CLI itself, so it lists every one (D71).

14. Verification

A slice is done when (D26, D26c):

  • unit tests and pack fixtures pass, stable over repeated runs;
  • a golden session per pack covers it — replayed into an empty database with a pinned date and a pinned clock, output diffed against a snapshot and read, not just re-approved (D26d, D26f, D26g);
  • an end-to-end sweep on both packs through the real CLI and the live MCP server passes;
  • the two examples in examples/ — one investigation per pack, driving the real CLI on captured data — still run, and every beat their narration promises still happens (D43).

Real people appear in test data only through captured real sources, quoted verbatim (tests/golden/sources/); invented scenarios use fictional people (D29b).

15. Default analects.yaml

With a dataset (dataset: <dir>, $ANALECTS_DATASET or --dataset), source_weights, domains, scoring, resolver and captures come from its dataset.yaml and the copies below are ignored — and reported — so everyone reading one dataset computes the same values (D47e).

me: ada                      # D47b: your handle (default: $USER)
write_policy: confirm          # D5, D33: ask about judgements, let evidence land
policy: {}                     # per-operation overrides: {entity: auto, ...}
escalate:                      # conditions that hold an `auto` row back
  contradicts_current: true    #   it disagrees with a value we hold
  unverified_quote: true       #   nobody checked the quote
  incomplete_entity: true      #   the pack calls the entity thin
  possible_duplicate: true     #   it looks like an entity we have
fetch: off                     # D39; `record`: only while a research run is recorded (D55)
signing_key: ~/.analects/signing_key # D47g: made by `analects keys init`; signs your bundles
private_terms: []              # D47f: words that must never leave in an export

source_weights:                # D6
  primary_filing: 0.90
  official_record: 0.85
  press_release: 0.70
  satellite_or_sensor: 0.70
  management_statement: 0.65
  reporting: 0.45
  aggregator: 0.40
  llm_inference: 0.30

domains: {}                    # per-publisher trust, overrides the above

scoring:
  supersede_threshold: 0.60    # or two independent sources
  contested_floor: 0.30
  unverified_quote_factor: 0.70
  rumoured_factor: 0.50
  echo_similarity: 0.90
  approx_tolerance: 0.05

resolver:                      # D11b
  propose_threshold: 0.85
  near_miss_threshold: 0.60
  common_value_share: 0.50     # D32f: a value most of a type shares is not evidence

captures:                      # D47d: which page texts a bundle carries
  share_source_types: [official_record, primary_filing]
  share_domains: [parliament.uk, gov.uk, "*.gov", companieshouse.gov.uk, neso.energy, epoch.ai]

16. The log: datasets, bundles, rebuild

A dataset is a directory: dataset.yaml (the packs it is written in, and the computed settings), bundles/ and captures/ (D47c). analects bundle export writes each changeset the dataset does not yet hold as a bundle — its rows verbatim, the sources and capture rows they cite, the reviews so far, and a manifest of whose it is — and decisions made since on rows it already holds as a decisions bundle. It reads the dataset to know what is there, so a second export writes nothing. Exporting seals a changeset: it takes no more writes, and its staged rows wait for decisions; the writer's next change opens a new one.

analects rebuild <dataset> --into <file> builds a new graph — never over an existing one without --force — restoring each table in (created_at, id) order, matching sources on their URL, and replaying reviews for status; it refuses a bundle whose rows no longer match its manifest, a dangling reference, or packs not loaded. Every golden session, exported and rebuilt, reads identically.

Page texts travel for official records and open sources only; the rest go as the quote and the sha of the reading, and a rebuilt graph's audit lists them as not held here, which supplying the page fills back in (D47d). Scopes travel as files and the sweep log in bundles (§18).

Some rows must never travel: a note that repeats what a proprietary source said. analects keep-local <id> --why keeps a row — and whatever cannot stand without it — out of every export, and private_terms: in the personal analects.yaml makes an export that would carry a listed word refuse, naming the row, before anything is written (D47f).

17. Contributing: keys, verify, pull, review

A dataset's contributors.yaml lists who may contribute: each person's role (maintainer or researcher), their ssh public keys, and their agents with the scopes each may work in (D47g). analects keys init makes a signing key and export signs every bundle's manifest with it. Only maintainers decide: a researcher's or agent's rows arrive staged upstream whatever they did in their own graph, and only a maintainer's signed decisions change status in the log (D47h).

analects bundle verify — run in CI on every pull request (analects dataset init --ci) — fails a bundle that is not intact, not signed by a listed contributor, owned by someone other than its signer, from an agent not listed, paused or out of scope, a decisions bundle not signed by a maintainer, or one whose quotes are missing from the dataset's shared captures; work built on an older state is warned about, not failed (D47i). analects rebuild refuses a dataset holding a bundle that fails those checks.

analects pull fetches, checks each new bundle, and loads what passes into the working graph — kept-local rows, scopes and unexported work stay (D47j). Review then scales with who sent the work: an unlisted contributor's rows wait; a researcher's judgements wait for a maintainer even under write_policy: auto; an agent's rows wait while it is on probation in the scope (until a maintainer has accepted probation_rows of them there) and always while it is paused (D47k). analects review --bundle shows one pulled contribution.

18. Coordination: shared scopes, the sweep log, claims, analects log

A scope is shared when someone runs analects scope share: it becomes scopes/<scope>.yaml in the dataset (the definition, and every channel that is not local-only), and from then on the file is its definition. Changes made locally are written through to the file for a pull request; analects pull and analects rebuild read the files back, leaving local-only channels alone. Sharing refuses a private term or a kept-local anchor (D47l).

Every recorded sweep opens its researcher's changeset, and its sweeps, candidates and dispositions (schema 9 gives them a changeset_id) travel in that bundle, signed, and load as they are. They record where someone looked, not what is true. Local-only sweeps and candidates, and everything about an unshared scope, stay home; a sweep over both kinds of channel is two records. Verify fails a sweep of a scope the dataset does not share, and an agent's outside its scopes (D47m).

analects sweep claim (or analects sweep brief --claim) takes a lease on a channel for a few hours, held by the researcher its brief names. A live lease refuses every other claim, the same person's included; recording the sweep gives it back. The plan shows who holds what, and --due skips it. Leases are local to a graph (D47n), unless the dataset names a hosted peer, which then holds them for everyone (§22).

A compiled truth says which merged claims its writer had not seen: those that reached the graph after it was written, or, for a truth that arrived by pull, those past its bundle's base. A bundle's base is set per changeset, from when its last row was written. analects review marks a contribution that others' work on the same entities overtook before it was sent (D47o).

analects log reports, per contributor and agent: changesets and what became of their rows, decisions on others' rows, sweeps by channel, candidates by disposition, and who is sweeping what now (D47p). Every golden session, exported with its scopes shared and rebuilt, reads the same, including each scope's sweep plan and the log.

19. Gaps: what a set lacks, by rule

A pack lists expectations per type, next to its staleness rules: a field required in given statuses (a US site's county once it is permitted), at least one of some edges (an operator, developer or owner), a number's plausible range, and freshness by status, which replaces max_age on the status property. required: true is checked as one too. None of them refuses a write; each is a finding with a rule id and a severity (D48).

Every finding the engine makes now carries a rule id (stale.*, verify.*, contested, expect.*). analects gaps runs them over a scope, a watchlist, a type or a list, and reports counts per rule, most serious first, then a worklist ranked by severity. It adds completeness, what at least 60% of a set's peers hold and one lacks, and analects gaps coverage --by F lays the set out as a grid of groups against properties. --save keeps a worklist as a watchlist. The brief shows expectation findings under "gaps" and ranks by their severity, and a sweep plan opens with its scope's counts (D48b).

analects gaps dismiss records that a finding does not apply, with a reason. It is hidden until the entity changes, then returns, marked. Dismissals (schema 10) ride their writer's changeset and travel in its bundle (D48c).

20. Refresh and the review queue

analects refresh brief turns a set's gaps into research tasks, one per entity and property: what we hold and from where, the findings behind it, and an ask written for the property (a status asks for the date it happened). --split K deals the tasks into K briefs by entity, one per agent. Each brief carries the rules and the exact JSON to return. analects refresh record stages what comes back as one changeset, each document through check, and logs an outcome per task: updated, confirmed, nothing newer, or unreachable. A finding searched with nothing newer, confirmed as held, or unreadable, and nothing merged since (D56), is marked in the report and brief, stops adding to its entity's rank, and is held back from the next refresh for 30 days. Runs and attempts (schema 11) ride the researcher's changeset like the sweep log (D49).

Every staged claim is sorted by whether its own quote supports it: supported, unclear or not_supported. Rules decide what is mechanical: figures in the property's unit, money with its currency, dates at the claim's precision, and a pack's value_phrases for enum values. A status with no date is unclear. A value an authority's own page shows as it stands, such as a count or a deadline, is dated by the day it was read, and that date is not looked for in the quote (D49g). What the rules leave unclear goes to a checker agent (analects refresh support-brief, support-record), whose judgement is kept beside the rule's, as its own. Support sorts and filters; it never merges or refuses (D49b).

analects review --queue shows each staged claim as one item: old against new, the change, the quote and source, and its support. It is grouped by source and filtered by changeset, contributor, set, property, support, source or change. A person accepts, rejects, edits (the proposal is rejected and their own reading of the same quote is merged instead) or skips. They do it one key at a time (-i, applied only at the end, so undo is free), in bulk over a filter (--accept/--reject --yes), or through a local HTML page whose decisions file --apply reads (D49c).

The page is for deciding without opening each source. It groups items under their entity. Each entity's header shows what we hold for status (dated), every MW property, developer, operator and planning authority. Each item shows the capture around its quote, about 600 characters either side, with the quote highlighted. A capture a dataset withheld is never shown. The item also shows the rule's reason and the checker's, and the source as a link. The page filters by support, property and change, and takes a reject's reason or an edit in fields on the item. It counts decisions by action. It is one self-contained file: no network, and data only ever set as text. --advice FILE (and advice on the MCP queue op) puts an agent's suggestions on their items. The file is shaped like a decisions file, with why and confidence. An id not in the queue, or an action that isn't one of the four, is refused. On the page, t or Take all advice turns advice into ordinary decisions the person can still change, and the saved file applies unchanged (D49f).

A status is a dated milestone. The brief shows the stages reached, dated by when they happened, and those expected, and status_dated finds a status known only from when a source mentioned it (D49d). analects revert <changeset> undoes merged work: a decision that waits for a person, then rejects every row the changeset merged, each logged via the revert. It is refused while other work rests on them (D49e).

21. Asking questions of the whole graph

What we believe is kept as a derived table, current_values: one row per value, relation and incoming relation, with its standing (current, or an update waiting, a dispute, a forecast or a rumour), score, sources and the claim ids behind it. It is computed by the same code as analects get, rebuilt whenever a decision, the day or a pack has changed, and never staged or exported. A view per type, v_<type>, turns it into one row per entity with a column per property and edge. analects sql (MCP read op=sql) runs one read-only SELECT over these and every table, on a read-only connection whose authorizer allows nothing but reading, with a row and a time limit. analects query gains columns with their claims, sort, limit, CSV and --as-of. analects views export writes the table and views to a file Datasette can open (D50).

A pack ships named questions (queries:), checked by analects schema test; a graph may save its own, which stay in it. analects query run <name> answers either (D50b). analects related <entity> ranks what sits closest over current relations — a personalised PageRank with hubs discounted — and gives each result the route that relates it. It is computed, labelled as not evidence, and never stored (D50c).

22. A hosted peer

analects serve serves the four tools over streamable HTTP, to people who sign in with GitHub; claude.ai reaches it as a custom connector. It is a peer, not the database of record: it keeps its own graph, pulls the dataset, and sends work back by pull request (D51). A hosted call may not name a file on the host, rebuild a graph, or — unless the caller is a maintainer — touch the host's copy of the dataset. See docs/guides/host-a-peer.md.

The peer is its own OAuth server and asks GitHub who is signing in; the login must be listed under github: in contributors.yaml. The token's subject is the Analects handle and is who writes: who may only name an agent under it, and with none it is <handle>/claude. Removing someone from the dataset signs them out (D51b).

A lease is taken under one write lock and records the signed-in client. Refresh tasks are leased like sweep channels. When dataset.yaml names a peer:, every command line claims through it, so two people never take the same channel or task (D51c).

The peer exports one person at a time and signs for them with its own key, naming itself and the person in the manifest; contributors.yaml lists it under peers:. Verify checks the peer's signature, then holds the person to their own role and agents: a peer is never a maintainer. publish sends a branch and pull request per person, decisions on others' work after that work (D51d).

With the serve extra, the peer shows what it holds in Datasette at /data, read-only, behind the same GitHub sign-in (a session cookie for the browser). The v_<type> views are kept in the graph file for it, and in current_values an incoming relation is named by its edge (owner), with its ← data_center.owner reading in label (D51e).

The pages say what they show (D54): a front page with what the graph is about (title:/about: in analects.yaml or dataset.yaml, else the packs' own words), what it holds by type — counts, status and place, totals, the most connected — how well it is sourced, the scopes tracked, and how to read standing; empty types hidden; each type's view, current_values and the evidence tables listed, the internals hidden; column descriptions; ids as links to an entity page that lists every value with the quote and source behind it. analects views browse serves the same pages over a local graph on 127.0.0.1.

23. A research run: one prompt out, one report in

A research run over a scope is done by whatever researches best, without Analects; the graph writes the prompt that starts it and records the report that comes back (D55).

analects sweep brief <scope> with no --channel is that prompt, as one page: - the topic; - what we hold, and what is settled; - what to find, ranked: the refresh tasks with the findings behind them and a plain question; what an earlier run found that waits for review (its gap held back); then open candidates, leads and open questions; - where to look: each channel's playbook, the lessons runs added, and what the last run said of it; - what was already tried and came up empty; - how to answer: a normal cited report ending in WHERE I LOOKED.

Each list is capped. MCP read op=sweep_brief without a channel gives the same prompt.

Nothing kept local is in any brief: rows kept local and their dependents, local-only channels and their candidates. The finished prompt is refused if it mentions a private term. A local-only channel's own brief keeps its rows and is headed LOCAL ONLY, and its lease never goes to a peer.

The recorder reads the report and records it with analects sweep record: - documents: the pages it cites, each fetched under fetch: record when given without text, and checked against the page, never the report; - outcomes: searches that found nothing newer or could not read a page, as a refresh logs them. A cited page that cannot be fetched becomes one; - leads: what the run did not follow, deferred as unread_source; - lessons: what the run learnt about a channel, kept on the channel and carried by a shared scope's file; - new channels; - the report itself, kept with the sweep as discovery, never evidence.

The entity brief shows what was tried, and the next prompt is built from all of it.

Before recording, analects check --report <file> --scope S --out DIR reads every page the report cites once and saves it. It checks each quotation in the report against the pages cited beside it (found, not on the page, or no page to check), lists the members each page names, and writes a results skeleton with one document per page read. When the report is recorded, every URL it cites must land somewhere: a document, a candidate, a lead, a note, or skipped with why. One that lands nowhere is kept as a lead, so it is followed next time instead of lost (D56).

24. Scottish planning, and a public site

The datacenter pack models planning as it runs in Scotland: - Stages: a PAN, EIA screening and scoping, PPP or full permission, then an appeal, a Ministerial recall or an EIA direction at the DPEA. Each is a permit, chained by follows. - Deadlines: comments_until, the neighbour and advert expiries, and the determination deadline. Each is dated by the day it was read, so one that moves shows as moved. - Counts: representations, objections and support. - The council: a GB site is expected to name its planning_authority.

analects import scottish-planning <file> reads each application's summary, dates, comments and details tabs on the council's Idox portal, and each DPEA case, politely and only under fetch: record. Each page is its own cited record. - The site must already be held, from research. - The council is claimed only where the page names it. - Never who wrote in. The capture is only the rows read, and the comments tab is only its counts (D57).

The Scottish channels (the APRS tracker, the council portals, the DPEA, the Energy Consents Unit, statutory notices and PlanIt) apply to a scope defined on region=Scotland before it has a member. The pack's open_for_comment, decisions_due and recent_decisions queries use today(), the graph's own clock. An application with no known status counts as open for comment while its deadline lasts (D57b). The research prompt opens with what is open for representations.

analects views export <dir> --site --scope S writes a static, read-only site for one scope: - what is open for comment, and what awaits a decision; - a page per site and per application, each value with the one line of its source that says it, and every dated reading of the deadlines; - a sources page.

It carries only what a dataset may (nothing local, press quoted but never copied, no private term), under the licence in licence: (CC-BY-4.0 by default). A value kept local is left out of every page, download and map even where the rest of its entity is shown, and a scope worked only through local-only channels is not published (D66).

25. Where each site is, and what the developer says

A run reads other people's servers as a guest (D58). The reads table remembers every request: - a page read within refresh_hours (20) is not read again, and what was kept of it is used, dated by when it was read; - one server is asked for at most daily_pages (60) a day; - a server that refused is not asked again within the window; one that said when to come back (Retry-After) is asked again then, waited out in the run when that is five minutes or less, and one that only did not answer in time is asked again after an hour (D66).

A server is the address a host resolves to, because several councils' portals sit behind one Idox front door.

--refresh reads again anyway. The importers, analects check --report and the fetch in analects sweep record all behave the same way.

scottish-planning also reads, for each application: - PlanIt's record (an aggregator). Its point becomes the permit's coordinates. Only the identifier, the place and the link are kept. - The documents tab. The planning statement, the design and access statement, the EIA summary and description, technical reviews, and the statutory consultees' responses become unread_source leads on the site. Each lead names the tab that lists it. Nothing a member of the public sent in becomes a lead.

A site is placed by a derived claim (geo.locate), either from its own grid reference (osgb36_to_wgs84) or from its earliest application's point (from_application). A placed site is never moved, and a site nobody has placed is never geocoded.

fetch reads a PDF's text layer, and refuses a scanned PDF. The recorder quotes a developer's statement (management_statement) into: - the megawatt properties, floorspace_m2, height_m and acreage; - backup_generators, backup_fuel and water_use; - heat_reuse and grid_connection; - jobs_operational and construction_job_years, as projections; - capex.

The site's pages lead with those figures. A figure the documents leave out reads "not stated in the documents read". The site also has: - a map (map.html: Leaflet from a CDN, pinned by hash, and OpenStreetMap tiles); - sites.geojson and applications.csv.

Every page reads without JavaScript.

26. How much of an outside list we hold

An outside list (a newsroom's map, a campaign's tracker) is a discovery channel of its own (D59). Each name becomes a candidate through analects sweep record. It is only a pointer: the list's own coordinates and phases are never stored.

Each candidate ends in a disposition. list_recall counts, per channel: - held: matched or added; - in scope: every name except those excluded by a rule or found to be duplicates.

analects sweep plan shows it, and the research prompt gives one line per shared list, with the open names under WHAT TO FIND.

The Scottish channels now also cover the operators' own site lists, the Scottish press and SPICe briefings. The pack's place lists derive a site's region from its quoted council or, failing that, from its quoted address's postcode. Confirming an entity by id releases the claims waiting on that entity only.

27. What it cost to make this

Whoever ran a research run discloses what it used (D60). Analects never runs a model, so it cannot measure one.

  • The disclosure: one entry per model: its provider, how the numbers are known (measured, reported, estimated or unknown), and counts.
  • The counts are requests, tokens (fresh input, read from a cache, written to one, output, of which reasoning), searches, pages and active time.
  • Every count may be null, and nothing but counts is accepted.
  • A chat app that shows no counts is disclosed as its model and unknown.
  • Where it goes:
  • into run.usage in a sweep's results, or through analects usage add (MCP usage_add) afterwards;
  • analects usage read claude-code | gemini-cli | api turns a tool's own log into the same shape, for the person to check.
  • It is stored in the usage table, a log table beside its sweep, and travels in bundles. disclose_usage (a dataset key: off, asked or required) makes analects bundle verify warn or fail on a sweep that says nothing.
  • analects footprint <scope> estimates energy, CO2e and water on every read, as low, central and high. It shows two methods apart:
  • EcoLogits on output, the floor;
  • analects' own input term, from the cited figures in footprint.yaml.

It also shows coverage (runs not known are counted, never given numbers), work later rejected, and what is not counted. analects sweep plan gives it one line, and the public site gives it a page, methods.html.

28. Who is behind a company

A planning application names a company, often an SPV. analects import companies-house-api reads the Companies House API for every organisation behind a scope's sites: applicants on their permits, and their developers, operators and owners (D61).

  • The chain. A company that controls another becomes a controlled_by edge, dated and saying what control (shares, votes, appoints_directors, significant_influence). It is followed up through controllers on the register, and ends at one registered elsewhere, saying where.
  • A family is confirmed by control. Its name is searched for, and a company joins only when its own control record names a company already in the chain. A sibling with no site is kept as a lead.
  • People are counted, never named. Individuals with significant control and directors become counts, and each individual's control in the register's words. Names are dropped as each response is read, so no claim, capture or log holds one. The site links to the register, which names them.
  • Only exact matches. A name is matched to a company number exactly, or it is kept as a lead.
  • Reading politely. The key comes from COMPANIES_HOUSE_API_KEY, in the environment or in ~/.analects/.env, and is sent to that host alone. The API has its own pause and daily cap (HOST_LIMITS).
  • Where it shows. analects path walks a site to the top of its chain. The site gains "Who is behind them" (companies.html) and a line on each site page. controlled_by replaced the unused subsidiary_of, the one canonical edge between organisations (D9).

29. How their representatives voted

An elected representative is named for what they did in office, from the official record; nobody else is (D62).

  • Who is named. An office holder is a person held with an elected house (scottish_parliament, council, commons, lords) and an official record's or a listed register's id. What is published about them is an act of office, quoted: a vote, a question, a motion, an answer. Residents, officers, agents and people with significant control stay unnamed.
  • MSPs. analects import holyrood reads the Scottish Parliament's open data: each MSP's party and seat as dated spells, each division on the motions listed (its words, counts and stated result, one cast per member who voted), and the questions and motions that mention data centres. A question's answer is a statement of its own that answers it.
  • Houses and seats. house is a set, each member dated to its seat spell, so a councillor who is also an MSP holds both. A surname is expected of an MP, a peer or an MSP, not of a councillor (D66). Each seat held carries its GSS code (seat_code, one per seat, and the code's prefix says which office each is). analects import areas places each site's point in its ward, Scottish Parliament constituency and region, and UK Parliament constituency (MapIt), as derived claims; where no source names its council, the council its point lies in is derived too. The representatives query joins the two by code, because names differ between sources.
  • Councillors. analects import councillors reads Democracy Club's record of the 2022 elections and each by-election since. It says who was elected, not who sits now, and a by-election does not say whose seat it filled. For a council on ModernGov (lists:), the council's own list ends the seat of a councillor it no longer shows, in a ward a by-election has filled since their election, by that date and citing the list; nothing else is ended. A councillor named like someone already held from another register is set aside as a question, never joined by the name.
  • Committee votes. analects import committee-votes takes a transcription of a minute and checks it against the minute: the quote must be in it, every field in the quote, and every name exactly one councillor of that council. The minute is never kept. The permit gets decided_in and its decision_level, which the planning importer also reads from the portal. A DPEA recall sets ministers.
  • Where it shows. The site's "How their representatives voted" (representatives.html) has each division in the order taken, what it was on, and each member's vote, plus the questions and each committee vote. A site page says who represents it, and an application page who decides it. The titled-person check steps over the names of the office holders held, and nothing else; a statement whose words name someone else by title is linked, and its words withheld.

30. England and Wales

analects import planning (scottish-planning is the same importer under its old name) reads every nation's planning (D64): - Council portals, a reader per product: Idox, Atrium registers (three skins, and a disclaimer the reader agrees to once per council, and says so), Agile Applications (its JSON record, asked with the council in headers) and Ocella. Each keeps a whitelist of rows and quotes its own labels. An application on any other product (Arcus, NEC, Tascomi, Acolnet) is said to have no reader. - Casework: the DPEA; the Planning Inspectorate's appeals on the Appeals Casework Portal and on the new service (inspector, or the secretary_of_state for a recovered appeal or a call-in); the national infrastructure register (a data centre directed in by section 35 is a dco with its nsip_stage); and PEDW (dns, decided by welsh_ministers). An interested party's deadline, and the window to register to have your say, are comments_until; an inquiry's day is hearing_at. - Where: an application's own easting and northing, where it publishes one, else PlanIt's point; the site is placed at its earliest application's point (geo.locate). - Finding: a search: planit entry reads PlanIt's search and records each hit as a candidate of its nation's scope — matched when its application is held, excluded by the scope's declared rule when it is plainly not a proposal, open otherwise. candidate_add and sweep_record take excluded: {rule, why} for what a finder can tell and a scope's fields cannot.

The pack's places: and postcodes: cover England and Wales, and its channel templates for them apply to a scope on region=England or region=Wales. A site built for one speaks of its own government — the Planning Inspectorate or PEDW, the Secretary of State or Welsh Ministers — and its representatives page says MPs, English councillors and the Senedd are not read yet. What each source turned out to be is D64b.

31. A public release

Analects installs as a tool: the packs ship inside the package (analects/packs/builtin), and are found in order from --packs, $ANALECTS_PACKS, a project's own packs/ folder, then the ones Analects ships with; with none found it says where it looked. The repository holds code (src/analects/), the examples, the docs site (docs/, built with MkDocs, with llms.txt), the skill and the tests. Data lives in dataset repositories. The code is Apache-2.0 and datasets are CC-BY-4.0. CI runs the tests, analects schema test, the generated CLI reference (scripts/cli_reference.py --check), a strict docs build and scripts/release_check.py, which fails on a home path, a key, a non-placeholder email, a tracked graph, or any of the local private_terms. Proprietary or personal material is removed from the published tree, and redacted in place in an accepted decision record, marked "[redacted — D65]" (D65).

The public repository is KindTechUK/analects; the private one keeps the history (D71). The package is analects on PyPI. A GitHub release tagged v<version> runs .github/workflows/release.yml, which checks that the tag matches pyproject.toml, runs the tests and the release check, and publishes by trusted publishing, with no stored token (D70).

32. The data products

Three scopes are the launched products: UK data centres (a scope per nation), UK politicians, and US data centres (D66). The nations' scopes are worked one by one. A scope over all of them is published as one site in sections, each section and page in its own nation's words. The pack says what the sections are and what each is called; Analects names no place (D66f). A site shows a forecast size where no current one is held, marked as one; it says who accepted its values, in counts from the review log; and it says where to send a correction (D66g).

  • A site for a scope with no planning. The US scope's members hold no applications, so its site tells each from its own sources: who is behind it (developer, operator, owner, tenant, power supplier), then every reading of its status, power, compute, investment and buildings, dated and quoted. Pins are coloured by status. Pages the scope holds nothing for (applications, representatives, companies) are neither written nor linked, and the sources page credits Epoch AI. Every site writes sites.csv beside sites.geojson.
  • Nothing kept local. Each table is read through views.visible, which recomputes or blanks a cell whose every claim is kept local.
  • A dataset per product. Each is a dataset folder (analects dataset init) of its scope's shared work, which analects rebuild reproduces.

What the sources turned out to be is D66b.