Skip to content

names: one plain name per concept, archive renames for the fresh start - #6602

Merged
Sinity merged 4 commits into
masterfrom
p-clean-names
Oct 25, 2026
Merged

Sinity merged 4 commits into
masterfrom
p-clean-names

Conversation

@Sinity

@Sinity Sinity commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Polylogue's naming pass after the 2026-10-25 review: one plain name per concept across code, SQL, CLI, MCP, JSON keys, tests and docs, with every name in docs/vocabulary.md.

This is the last fresh start for the live archive. It renames jargon in archive.sql and shortens the capture-log frame header, with no reader for the old forms. Once it merges, the live archive is rebuilt on the new schema and the test conversations are captured again. From then on every archive change carries data over through export and import.

Archive and capture-log format changes

archive.db stays at version 1, the only version, so a file built by an older build is not read correctly. Rebuild it fresh.

  • note.root is now note.first_note, and the index note_root is now note_first_note.
  • kept_result.view is now kept_result.read_at: the JSON of what the query's read transaction read.
  • observation_container(observation_id, container_input, member_index) is now observation_zip(observation_id, zip_input, member_index), and its index is now observation_zip_input.
  • excision.scope is now excision.target.
  • In observation.details_json, the import member's acquisition key is now import_id.
  • Capture-log frame header: 86 bytes (<20-digit length> <64-hex BLAKE3>\n) instead of 151. The old header held the same digest twice. There is no reader for the 151-byte header.
  • Comments only: the commit_seq comments no longer mention archive unions or row batches, and the setting comments were rewritten.

index.db is at INDEX_VERSION 42 and rebuilds. It renames parse_state count columns to records, used, skipped and unreadable, the unrecognized table to unused, import_member.acquisition to import_id, route_rank to arrival_rank, and preferred to shown in message_source and document_source.

Renames

  • Parser state, not carry. Record outcomes are Used, Skipped or Unreadable, with RecordCounts in place of accounting, dispositions and framing.
  • Import, not acquisition. Arrival (live, spool, import), not route. Shown version, not preferred. Extracted blob, not inline blob. NewBlob and stored_upto, not piece. RenderedBlock.
  • Parents, not lineage or logical. Lineage tests and comments were renamed to match. run_pass, not converge. tests/properties replaces tests/laws, and the law numbers and Bead IDs are gone.
  • Usage and quota reports, report_id. children(), waiting, BrowserHost and RowWriter replace kids, held and Ctx. Measure Selection and query RowContext replace two of the three Scope types. ExciseTarget replaces the third.
  • harness_resume, hook spool files (not carriers), incomplete (not degraded), record_first_session, tool_database, and the reads bench.
  • zip_members module and InZip, not containers. page_ends and PageEnd, not read checkpoints. Row dump, not logical export. The sources::frame module is now lines, and comments say "split into records" instead of framing.
  • Test archives and test daemons, not worlds. Parent rows in | matches, not owner. SearchSummary, not receipt.
  • Module headers say what each module does (findings 6 and 9). The leftover banned words in .agentctl/project.toml, flake.nix and test names are gone.
  • The examples/morrow facts no longer use slice and law wording, and the unused expected/slice-1/ is deleted.
  • docs/vocabulary.md defines the new terms: arrival, provider, harness, native ID, parser state, record outcomes, index generation, page end, parent row, read transaction, material, and the excision target. Its "Words not used" table lists every replaced word. AGENTS.md says to look up a name there before using one.

User-visible changes

  • CLI: read --logical is now --with-parents, and attachment --asset is now --input. The note add --revises and recall help text changed.
  • Query: the sessions field lineage is now connected. The notes field and column root is now first_note. The changes field and column scope is now target. In | matches rows, the owner column is now parent_id.
  • JSON: a read's lineage is now parents. In continue, native is now harness_command, and its text line is now harness command:. Query answers have incomplete in place of degraded and read_at in place of view. A recall's receipt is now search_summary. The error kind incomplete_lineage is now incomplete_parents. The measure grain physical is now own, and logical is now with_parents. Status has unused in place of unrecognized.
  • examples/scan output: unknown and refused are now skipped and unreadable, *_by_reason changed to match, and materialized_by_kind is now used_by_kind.

Not changed

  • The browser extension's vocabulary (descoped). The extension still sends the chat action field receipt.
  • crates/sinex and the primary-mode code, apart from the renames this pass makes everywhere: ExcisionRecord.target (was scope) and ObservationRecord.zip (was container) in the primary-mode records, and the shown column in one Sinex session query. The Sinex event payloads keep their field names (root, view, scope), because Sinex's event registry declares them.
  • The polylogue/hooks/carriers/*/*/*.ndjson location, which another writer's layout names.

Verification: focused --workspace (1100 passed) and check (fmt, boundaries, clippy in both modes, 1100 tests passed) on this rebased head. The export-then-import property test passes on the renamed archive schema.

🤖 Generated with Claude Code

Sinity and others added 4 commits October 25, 2026 23:47
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Sinity
Sinity enabled auto-merge (squash) October 25, 2026 23:00
@Sinity
Sinity merged commit ca2a016 into master Oct 25, 2026
1 check passed
@Sinity
Sinity deleted the p-clean-names branch October 25, 2026 23:02
Sinity added a commit to Sinity/sinnix that referenced this pull request Oct 25, 2026
ca2a01621 (Sinity/polylogue#6602) renames archive.db's tables and the
capture-log header with no old reader; the live archive starts fresh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sinity added a commit that referenced this pull request Oct 25, 2026
…d protocol (#6604)

Follows the naming pass (#6602) and Sinex's renames on the
Polylogue–Sinex boundary.

Primary mode called the small Sinex materials it writes "records", which
collided with a record as one entry in an input. They are now **register
materials**: the changes to the register that are not input bytes (a
look that found no new bytes, a request, an excision). In code the type
is `RegisterChange`, the trait method `send_change`, the held item
`Held::Change`, the `sinex.db` table `register_material` and the parser
name `polylogue-register`. The register rows one stored step writes were
`InputRecord`; they are now `InputRows`, with `ObservationRow` and
`ExcisionRows`. The module docs say "part" and "appended bytes" instead
of "piece".

The note family a request joins is `first_note`, matching the archive
column, and the Sinex events now use `first_note`, `read_at` and
`target` (Sinex #2907). This pins Sinex 8babf74b4, which also renamed
parts of the producer protocol: `have` is now the recorded-frames query,
an indirect frame is a large frame, manifests are typed, and frame bytes
moved from `spool` to `frame_bytes`. `sinex.toml`'s `subjects` key is
now `subject_root`, as `sinexd` names it.

Verified: `fast` and `check` on this head, and the Morrow rebuild test
against a real `sinexd` at 8babf74b4.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant