Skip to content

fix(sources): reconstruct durable append frontiers - #4520

Closed
Sinity wants to merge 0 commit into
masterfrom
feature/fix-durable-append-frontiers
Closed

Sinity wants to merge 0 commit into
masterfrom
feature/fix-durable-append-frontiers

Conversation

@Sinity

@Sinity Sinity commented Sep 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Reconstructs legacy append frontiers from retained source bytes after ops.db loss and uses transactionally consistent logical SQLite revisions.

Problem

Pre-offset append rows retained durable payloads without usable byte windows, so deleting disposable cursor state forced full capture. SQLite filesystem and page fingerprints changed for logically unchanged databases, and the logical digest could observe mixed WAL commits.

Solution

The planner admits legacy append windows only when the current source bytes and retained blobs prove a contiguous chain from a unique full predecessor. It recomputes offsets and revisions, including multi-append chains, and rejects replacement, truncation, and ambiguity. SQLite logical revisions run in one read transaction, and the watcher uses that identity.

Verification

  • nix develop --accept-flake-config --command devtools test tests/unit/sources/test_live_append_cursor_resynthesis.py tests/unit/sources/test_source_snapshot.py tests/unit/sources/parsers/test_codex_state.py tests/unit/sources/test_live_watcher.py tests/unit/storage/test_revision_replay.py: 220 passed.
  • nix develop --accept-flake-config --command devtools verify --quick: passed through the registered exact-head job c588d447-7200-43ed-92bd-f7b43bed286e.

Residual risk

Affected verification did not select Python tests. The full corpus and live archive were not run.


Receipt: harvest-3d19b4e7f5f37b4308591c268a823fa4
Bead: polylogue-aex0

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-02T16:28:49.662271Z 966b7e0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f43500cbf1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/sqlite_snapshot.py Resolved
Comment thread polylogue/sources/live/watcher.py Outdated
Comment on lines +1187 to +1188
if self._is_hermes_database(path):
return cursor.tail_hash != sqlite_source_revision(path)
return cursor.tail_hash != sqlite_logical_revision(path)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep full SQLite scans out of the watcher hot path

For every changed-file decision on a previously ingested Hermes database, this now reads and serializes every logical row before deciding whether work is needed. A frequently committed or large state.db therefore turns the watcher from an O(1) main/WAL metadata check into repeated O(database size) synchronous scans, while each scan also holds a read transaction that can delay WAL checkpointing; retain a cheap change detector in the watcher and reserve the logical digest for acquisition/deduplication.

AGENTS.md reference: AGENTS.md:L103-L109

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 3ab2882 - the watcher uses a metadata/WAL fingerprint and reserves logical hashing for acquisition. [review-fix lane]

Comment thread polylogue/sources/sqlite_snapshot.py Resolved
@Sinity
Sinity force-pushed the feature/fix-durable-append-frontiers branch from f43500c to 3ab2882 Compare September 2, 2026 02:42
@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 55716200-1305-417d-bdbd-af223cb62cd5


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity

Sinity commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ab2882d05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/sqlite_snapshot.py Resolved
Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/sqlite_snapshot.py Resolved
@Sinity
Sinity force-pushed the feature/fix-durable-append-frontiers branch from 3ab2882 to 46b43f4 Compare September 2, 2026 03:27
@Sinity

Sinity commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46b43f4018

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/sqlite_snapshot.py Outdated
order_terms: list[str] = []
for name in ordered_column_names:
quoted_column = '"' + name.replace('"', '""') + '"'
order_terms.extend((f"typeof({quoted_column}) COLLATE BINARY", f"{quoted_column} COLLATE BINARY"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Canonicalize signed zero before hashing rows

Fresh evidence beyond the storage-class-ordering fix is SQLite's signed-zero equality: REAL -0.0 and 0.0 have the same typeof and tie under this value ordering, while the later JSON encoding distinguishes them. Two tables containing those values in opposite insertion orders therefore receive different logical revisions despite having the same typed row multiset, so canonicalize zero during encoding or add a deterministic representation-aware sort key.

Useful? React with 👍 / 👎.

Comment thread polylogue/sources/sqlite_snapshot.py Outdated
Comment on lines +202 to +204
if kind == "blob":
assert isinstance(value, bytes)
encoded.append(["blob", value.hex()])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Hash large SQLite cells without materializing hex copies

When a valid provider database contains a very large BLOB (or byte-preserved TEXT) cell, the query already materializes the whole cell as bytes, and value.hex() allocates roughly twice its size before json.dumps creates another large buffer. Moving logical hashing out of the watcher hot path does not bound this acquisition-time peak, so a multi-gigabyte auxiliary cell can OOM the daemon and prevent the otherwise streaming snapshot from being retained; hash or encode these values incrementally instead.

Useful? React with 👍 / 👎.

Comment thread polylogue/sources/sqlite_snapshot.py Resolved
@Sinity
Sinity force-pushed the feature/fix-durable-append-frontiers branch from 46b43f4 to b25ecee Compare September 2, 2026 03:54
@Sinity

Sinity commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b25ecee6a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/sqlite_snapshot.py Outdated
for name in column_names
for quoted_name in ('"' + name.replace('"', '""') + '"',)
)
rows = conn.execute(f"SELECT {selected_columns} FROM {quoted}" + (f" ORDER BY {order}" if order else ""))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include implicit rowids in SQLite logical revisions

For an ordinary rowid table without an explicit INTEGER PRIMARY KEY, this query hashes only declared columns and omits the durable implicit rowid. Deleting and reinserting an otherwise identical row can therefore change identities observed by provider queries while producing the same logical revision; if that commit occurs around an online backup/source cut, the before/after checks can accept a snapshot from the wrong rowid state and suppress carry-forward of the change. Include rowid in both encoding and deterministic ordering for rowid tables, while excluding WITHOUT ROWID tables.

AGENTS.md reference: AGENTS.md:L69-L77

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e87c489 - SQLite logical revisions include implicit rowids for ordinary rowid tables and exclude WITHOUT ROWID tables. [review-fix lane]

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e87c489 - logical revisions include implicit rowids, with a reinsertion regression test. [review-fix lane]

@Sinity
Sinity force-pushed the feature/fix-durable-append-frontiers branch from b25ecee to e87c489 Compare September 2, 2026 05:09
@Sinity

Sinity commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e87c4891a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/live/batch.py Resolved
Comment thread polylogue/sources/sqlite_snapshot.py Resolved
@Sinity

Sinity commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e87c4891a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/sources/sqlite_snapshot.py Outdated
Comment on lines +177 to +179
selected_column_names = (
["rowid"] if not is_without_rowid and not has_integer_primary_key else []
) + column_names

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve a non-shadowed alias for the hidden rowid

Fresh evidence beyond the earlier implicit-rowid fix is alias shadowing: when an ordinary rowid table declares a column named rowid, adding "rowid" here selects that declared column a second time rather than the hidden identifier. Two databases with the same declared rows inserted in different orders therefore receive the same logical revision even though queries through _rowid_ observe different identities, so source-cut continuity can suppress a real provider-visible change; select an unshadowed rowid/_rowid_/oid alias, or account for the case where all aliases are shadowed.

AGENTS.md reference: AGENTS.md:L69-L79

Useful? React with 👍 / 👎.

Sinity added a commit that referenced this pull request Sep 2, 2026
## Summary
`.lane/body.md` and `.lane/title` leave the index; `.gitignore` already
lists `.lane/`.

## Problem
Every merged lane PR rewrote the two tracked files, so every other open
lane branch conflicted with master on them (#4509 rebased four times
tonight, #4513/#4515/#4516/#4520/#4522 all cycled through the rebase
reaction for this alone). The harvest reads the publication text from
the worktree, not from the commit.

## Solution
Untrack the two files. Lane branches that still carry them conflict once
more (delete versus modify) and then never again.

## Verification
```
devtools verify --quick   # exit 0
```

## Residual risk
A lane that force-adds `.lane/` reintroduces the churn for itself only.

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

https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz

Receipt: session-01YGi8wLWGR2HYBh8p8fXFXz

Co-authored-by: Claude Fable 5.1 <[email protected]>
@Sinity Sinity closed this Sep 2, 2026
@Sinity
Sinity force-pushed the feature/fix-durable-append-frontiers branch from e87c489 to 966b7e0 Compare September 2, 2026 16:27
Sinity added a commit that referenced this pull request Sep 2, 2026
Re-land of #4520 (bead polylogue-aex0), flattened onto current master
after the original branch was auto-closed by a force-push to master's
tree. Content unchanged apart from a docstring naming the current codex
header helper.

Bead: polylogue-aex0

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

https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz

Co-authored-by: Claude Fable 5.1 <[email protected]>
@Sinity
Sinity deleted the feature/fix-durable-append-frontiers branch September 2, 2026 17:01
Sinity added a commit that referenced this pull request Sep 22, 2026
…on path (#5403)

## Summary

Triage of **85 likely-live P1 review findings** anchored in
`polylogue/sources/`, from the 2,599-item backlog where **zero review
threads have ever been resolved**.

**33 STALE (39%) · 1 WONTFIX · 51 LIVE** — 14 fixed here, 37 reported
unfixed with reasons.

## How much to trust the filter — the answer for the other 322

**39% stale.** Treat it as a shortlist, not a verdict. Two failure modes
dominate and are predictable:

1. **Wholesale refactor.** All seven `watcher.py` findings are stale for
*one* reason: the `_flush_pending` / `_pending_paths` /
`_debounced_batch` / `_plan_catch_up` machinery no longer exists. **If a
cluster names one mechanism, check the mechanism exists before triaging
individually.**
2. **Silent follow-up fix.** The `#4520`/`#4662`/`#4663` append-proof
cluster was fixed by later PRs that rewrote neighbouring lines and left
the anchor byte-identical — several carry comments restating the
reviewer's own words, so **grepping HEAD for the finding's key phrase is
a fast stale test**.

The filter was reliable where the anchor is a self-contained expression:
`antigravity.py`, `codex.py`, `origin_specs.py` findings were nearly all
still exactly as reviewed.

**And LIVE does not mean the reviewer's consequence is right.**
`batch.py:2488` reproduces, but the claimed batch abort does *not*
happen — a group-level handler catches it. Measured: `failed=2
succeeded=0` → `failed=1 succeeded=1`. **Verify the consequence, not
just the code shape.**

## A pre-existing test refuted as vacuous

The lane first claimed
`test_sqlite_acquisition_failure_is_a_failed_file_not_a_batch_abort`
covered the Hermes fix. Removing the fix and running it: **`PASSED
exit=0`**. The test offers a *single* file, so chunk and file coincide —
it cannot distinguish the defect. Replaced with
`test_sqlite_acquisition_failure_does_not_fail_its_healthy_siblings`,
which measures the real difference.

## The fourteen, in one line each

`batch_support.py:443` an unterminated final line was reported
malformed, recording TERMINAL_CORRUPT_INPUT for an ordinary mid-write
snapshot · `watcher.py:867` EACCES/EIO escaped with no cursor or debt
row · `watcher.py:1222` `excluded=True` alongside the new stat made a
path report no-work **forever** · `batch.py:722` a symlink-spelled
violation admitted the identical blocked file after restart ·
`batch.py:4180` two independent opens now bound to one
`_file_observation` · `antigravity.py:586` ID-less steps keyed by
message count **renamed `step:1` → `step:0`** when an earlier step
became malformed · `antigravity.py:985` conflicting `parent_references`
asserted an arbitrary durable topology edge · `antigravity.py:830` a
null-key trajectory returned zero steps *and* a denominator of 0 ·
`dispatch.py:1463` GEMINI_CLI resolved sidecars path-independently ·
`source_acquisition.py:86` a foreign archive root was admitted instead
of refused — plus four more.

## Anti-vacuity — all fourteen, one executed reversion

`git checkout <base> -- polylogue/`, re-run the reproduction script,
restore. Verbatim base → fixed:

```
1  malformed_record: True -> False        1b terminated: True -> True   (opposite pinned)
2  RAISED PermissionError -> recorded, no exception
3  excluded: True -> False; needs_work: False -> True
5  admitted under symlinked block: ['session.jsonl','healthy.jsonl'] -> ['healthy.jsonl']
9  ['trajectory:step:0'] -> ['trajectory:step:1']
11 null-key messages: [] -> ['hello']     11b foreign-key: [] -> []     (opposite pinned)
12 conflicting parents: parent-1 -> None  12b single parent: -> parent-1 (opposite pinned)
```

Three opposite-direction pins are unchanged across the mutation, so a
blanket refusal cannot pass.

## Verification

```
devtools test <6 modules>   exit 0, 253 passed, git_dirty false
devtools test <final sha>   exit 0, 43 passed
devtools verify --quick     exit 0, 25/25
devtools render all --check exit 0, 'out of sync' 0
git merge-tree vs master    0 conflict markers
```

Closure: six `sources/` files **IN**, two `pipeline/services/` **out**.
INDEX `ce86c236… → 0936e4a9…`. **Self-corrected**: the commit message
quotes an intermediate identity measured before the Drive guard was
relocated — the landed value is `0936e4a9…`, and it must be re-measured
after rebase.

The lane also *moved* its Drive guard rather than grow the closure:
placing it in `sources/drive/__init__.py` (IN) added a baseline member
for no semantic gain, so it went to `acquisition_streams.py` (OUT) —
which is also the reviewer's own preferred site and covers both
branches.

## Highest-severity unfixed, filed separately

`revision_backfill.py:3668` — a pre-logical-export Codex
`state_5.sqlite` **page image** is not in `frozen_codex_state_raw_ids`,
reaches the JSON parser, and its exception is promoted to
`FrozenSourceRemediationRequiredError`, **aborting the entire index
rebuild**. Needs a terminal non-session receipt; naive rejection doesn't
provide one.

Also reported unfixed with reasons: the parser fingerprint was **never
bumped** for two admission-law changes (`#4704`, `#4925`), so unchanged
files are skipped forever; sidecar/assembly inputs never re-enrich their
owner; the write-hold budget is unenforced outside the full-ingest
route.

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

https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 70.F059 / P1: stale at the checked revision: The codex_legacy_header_size import and header-stripping reconstruction no longer exist. polylogue/sources/live/batch.py:6268 treats retained append blobs as literal deltas, while the acquisition helper is imported from polylogue.sources.acquisition_boundary at line 98, not from the operations layer.
  • 70.F060 / P1: fixed-already at the checked revision: polylogue/sources/sqlite_snapshot.py:416 captures the filesystem/WAL fingerprint before opening the logical export transaction. The Hermes route carries snapshot.source_fingerprint at polylogue/sources/live/batch.py:3629 into cursor publication, so a later WAL commit remains a different unacknowledged observation.
  • 70.F061 / P1: fixed-already at the checked revision: Cursor reconstruction reads parse-completion and parse-error evidence and refuses an unknown pre-offset append whose parse never completed. The guard at polylogue/sources/live/batch.py:6174 returns to full capture instead of promoting unmaterialized bytes past the cursor.
  • 70.F062 / P1: stale at the checked revision: Reconstruction no longer removes a synthetic Codex header while retaining the original blob as a literal append. polylogue/sources/live/batch.py:6268 sets delta_start to zero and compares the entire retained blob to the live delta; an incompatible header-bearing payload fails that comparison and clears reconstruction at line 6279.
  • 70.F063 / P1: fixed-already at the checked revision: Reconstruction prepares a durable promotion through promote_reconstructed_legacy_append_revisions at polylogue/sources/live/batch.py:6494. The append planner invokes that pending promotion at line 6865 and refuses to return a plan when it fails, establishing the durable predecessor before append binding runs.
  • 70.F064 / P1: fixed-already at the checked revision: The reconstructed prefix hash is now computed while comparing every accepted component against one open source handle. polylogue/sources/live/batch.py:6434 rejects changed component bytes and lines 6441-6454 reject a changed file observation before adopting the digest.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 71.F059 / P2: fixed-already at the checked revision: The reconstruction path compares source and retained ranges incrementally at polylogue/sources/live/batch.py:6213-6214, using chunks of at most one MiB. Its final common-observation proof also streams components at line 6431, so it no longer reads the whole growing source into one bytes object.
  • 71.F060 / P2: fixed-already at the checked revision: A reconstructed append head retains its full-chain end offset at polylogue/sources/live/batch.py:6513. The Claude branch builds its semantic frontier over the live prefix through that offset at line 6553, rather than treating the final delta blob as the session header and entire accepted body.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 72.F026 / P1: fixed-already at the checked revision: polylogue/sources/sqlite_export.py:206 reads TEXT as bytes, and :113-114 encodes non-UTF-8 TEXT with an explicit tx tag. The replacement logical-export path no longer lets CAST(X'80' AS TEXT) fail Python's default UTF-8 text decoding during acquisition.
  • 72.F027 / P1: fixed-already at the checked revision: polylogue/sources/sqlite_export.py:228 excludes CREATE VIRTUAL TABLE objects from exported_tables before :233 constructs table plans. An unrelated unavailable virtual-table module is not instantiated by PRAGMA table_info during the replacement export scan.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 73.F017 / P2: stale at the checked revision: The physical online-backup/digest comparison has been replaced by the declared logical-table export specified in AGENTS.md:71-73. polylogue/sources/sqlite_export.py:207 opens one read transaction before reading schema and table rows, so the former before/after backup race between differently stamped physical database headers is no longer the acquisition mechanism.
  • 73.F018 / P2: fixed-already at the checked revision: polylogue/sources/sqlite_export.py:168 orders ordinary unshadowed tables by their exported rowid, a unique retained identity. The non-rowid ordering at :175 explicitly applies COLLATE BINARY, so the old NOCASE value-order tie no longer controls export order.
  • 73.F019 / P2: fixed-already at the checked revision: polylogue/sources/sqlite_export.py:175 places typeof(column) before the binary value in the fallback row ordering; ordinary rowid tables instead use their unique exported rowid at :168. INTEGER 1 and REAL 1.0 no longer tie solely on SQLite numeric value in the canonical ordering.
  • 73.F020 / P2: fixed-already at the checked revision: polylogue/sources/sqlite_export.py:158-159 includes a synthetic rowid for rowid tables independently of primary-key column types or arity. The prior test that mistook the first INTEGER member of a composite primary key for a rowid alias is absent.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 74.F078 / P1: fixed-already at the checked revision: Legacy append promotion now stamps revision_authority_evidence='live_source_verification_v1' at polylogue/storage/sqlite/archive_tiers/revision_governance.py:1186 and inserts an immutable raw_legacy_append_resynthesis_receipts row at :1215. Both operations execute within the same source connection transaction opened at :1173.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 75.F095 / P2: fixed-already at the checked revision: Promotion explicitly deletes the raw's parser census at polylogue/storage/sqlite/archive_tiers/revision_governance.py:1202, in the transaction that changes its revision kind and authority. A receipt for the old unknown-kind identity cannot remain current after append promotion; it must be re-established from the new authority state.

Only the rows listed above are dispositioned. Held findings remain open.

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