Skip to main content

日本語 | 中文 | Español | Français | हिन्दी | Italiano | Português (BR)

record-index — query the record instead of reading it

record-index

CI MIT License Landing page

A governed SQLite+FTS5 map over a markdown decision record, so a session can query the record instead of reading it — and then read the forty lines the query pointed at rather than the six hundred it would have skimmed.

Landing page & handbook →

The markdown stays canonical. The index is derived, regenerated on every fold, gated by a four-leg verify, and wrong by definition the day it is hand-edited.

Status — extracted, tested, not yet on PyPI

(This section read "SCAFFOLD ONLY — no tool code is in this repo yet" until 2026-08-11, which the extraction landing falsified. Corrected in place.)

The extraction landed. The package is on main, gated on the way in by byte-identity with facet's in-tree build (19/19) and zero row-level differences on the same corpus. Two consumers run on it: facet, whose ~2,462 in-tree lines became a declaration plus an adapter with ~140 of its tests exercising the package through it, and armature, whose own index seeded 15/15 with 47 rulings.

The package carries its own suite: 455 checks across all ten modules, run in CI on Python 3.11 and 3.13, built on two fixture record-repos that disagree on every declarable axis — markers, corpus roots, arc rules, verdict vocabulary, header forms — so a wrong implementation has somewhere to become visible. Dependencies: none. Stdlib only (sqlite3 + re + json), and that is a declared property, not an accident.

Four defects are known, reproduced, and pinned in-tree as xfail(strict=True) tests rather than hidden: verify() doubles its diagnostic counts (gating legs unaffected); the claim-arc pattern assumes E-numbered arcs; the sub-ruling locator is not derived from the declared header form; and four declaration fields cannot be declared honestly empty. None affects the two current consumers; all four are queued for the next version.

Not yet on PyPI. release.yml publishes via OIDC Trusted Publishing when a GitHub release is created; nothing publishes on push.

Where this comes from

This is an extraction of the record index built and hardened in mcp-tool-shop-org/facet, which is where every convention below was paid for. It extracts rather than forks because facet's own law book records five hand-copies of one function living under four names, invisible to a name-based grep for months; forking thousands of lines into a second repo is that error with three more zeros.

The extraction condition was stated in advance and gated on measurement: the index extracts when a second repo adopts the conventions. mcp-tool-shop-org/armature is that repo.

The design, in one paragraph

A record repo declares what its documents mean — which files carry rulings, which header forms open one, what its verdict vocabulary is, which corpora it has. The tool supplies how the search works — parsing, ranking, determinism, the verify legs — with tuning values that carry the corpus and date they were calibrated on. Conventions are a full declaration (a repo states its own meaning; it never inherits another repo's history by omission). Mechanism is defaults with overrides.

Every vocabulary reports what it did not recognise. An empty table and a table that silently discarded six artifacts are indistinguishable at the call site, and only one of them is correct.

The halt that used to be here, and how it ended

(Until 2026-08-11 this section halted the build on a measured collision. The halt was real, the ruling came, and the build proceeded — kept here as the trail rather than deleted.)

The classification step had measured that deriving a document's arc from its leading E\d\d prefix collides on 7 primary keys against facet (E10-ruling.md and E10-offsurface-ruling.md both become arc E10). The executor caught it against a test whose name records the same failure, the joint ruling was withdrawn and re-derived, and the extraction proceeded through its gates. The trail — evidence, the overturned answers, and the ruling that replaced them — is in armature/docs/dispatches/ (the S02 arc).

Licence

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

record_index-0.1.0.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

record_index-0.1.0-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

Details for the file record_index-0.1.0.tar.gz.

File metadata

  • Download URL: record_index-0.1.0.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for record_index-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c42b9656fef04e71191ee31d08d3acead296a05b5a44e57e1875e06ea198bbe7
MD5 ebe2caa3a10b3de4142c40b10abbdd3b
BLAKE2b-256 c6dece64f5473199376eb0c5f961b820e19480365138dc0628d0a5e0715bcaab

See more details on using hashes here.

Provenance

The following attestation bundles were made for record_index-0.1.0.tar.gz:

Publisher: release.yml on mcp-tool-shop-org/record-index

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file record_index-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: record_index-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 51.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for record_index-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c64727563479bcd0031098974c5bccd6cb1aeca5cd950d868c95b771c184bbd
MD5 75cf9971b8c3b6353d5ee4ffa2d992c1
BLAKE2b-256 c391b68f6b38c01b7bb5f2fbf271bd2195e968a02c9dd1680026cd11b13b44dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for record_index-0.1.0-py3-none-any.whl:

Publisher: release.yml on mcp-tool-shop-org/record-index

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page