Skip to content

refactor(sources): remove the Beads issue session route - #4363

Merged
Sinity merged 5 commits into
masterfrom
feature/packet/polylogue-5jb8j
Aug 28, 2026
Merged

Sinity merged 5 commits into
masterfrom
feature/packet/polylogue-5jb8j

Conversation

@Sinity

@Sinity Sinity commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Remove Provider.BEADS and Origin.BEADS_ISSUE from parser, dispatch,
watcher/config, storage mappings, generated surfaces, fixtures and tests,
retaining shape-based non-session artifact classification and the work-evidence
adapters.

Problem

polylogue-qj5x is a closed operator decision: Beads data belongs in the
work-evidence graph, not in sessions. Its investigation measured
interactions.jsonl as 100% field-change rows with a constant actor — a change
log, not a conversation. The route was still admitted everywhere, and the live
census found no Beads sessions, so no compatibility shim is required.

Solution

The declared removal across the production route. The manifest test pins the
supported-origin and witness totals, which drop by one when the origin leaves;
both counts are updated.

Merging current master also required dropping this branch's callers of
polylogue/sources/antigravity.py, which no longer exists on master — the brain
metadata predicate and its dispatch condition had no target.

Verification

devtools verify --quick                          -> exit 0
devtools test tests/unit/sources tests/unit/cli  -> 5421 passed, 37 failed

Every one of those 37 was run against clean origin/master: 35 fail there
too
. Of the two that did not, one is the origin-count assertion this change
correctly invalidates and now fixes, and the other passes on re-run under lower
load. The inherited 35 are filed as polylogue-g8rdy; the largest family is
test_plain_cli_snapshots.py, where production and the snapshots disagree on
cost_is_estimated and token totals. That was deliberately not regenerated
here — resolving it inside a removal would silently ratify an unreviewed change
to cost accounting.

Residual risk

Historical archives containing Beads-origin rows are unaffected by this change;
it removes admission, not stored data.

@coderabbitai

coderabbitai Bot commented Aug 27, 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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5c53ea4b-71ac-428b-99b2-6f8ccd0cd547


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 enabled auto-merge (squash) August 27, 2026 21:57

@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: b8945f7fcb

ℹ️ 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/core/enums.py Resolved
Comment thread polylogue/core/enums.py Resolved
Comment thread polylogue/core/enums.py Resolved
Sinity and others added 5 commits August 29, 2026 01:02
polylogue/sources/antigravity.py no longer exists on master, so the brain
metadata predicate and its dispatch condition have no target.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA
The manifest test pins the supported-origin and witness totals, which drop
by one when Origin.BEADS_ISSUE leaves.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA
@Sinity
Sinity force-pushed the feature/packet/polylogue-5jb8j branch from b8945f7 to 11dce9d Compare August 28, 2026 23:58
@Sinity
Sinity merged commit a169408 into master Aug 28, 2026
2 of 3 checks passed
@Sinity
Sinity deleted the feature/packet/polylogue-5jb8j branch August 28, 2026 23:59
@chatgpt-codex-connector

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-08-29T00:03:13.049970Z 11dce9d 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.

Sinity added a commit that referenced this pull request Aug 29, 2026
## Summary

Remove `.lane/body.md`, `.lane/close-reason.md` and `.lane/title` from
the index.

## Problem

`.gitignore:120` ignores `.lane/`, but #4363 committed those three
paths, so the ignore rule stops applying and every other lane's copy
conflicts with master. This is the third occurrence — `d86611434` and
`9e06d972c` each removed the same paths after an earlier lane re-added
them.

## Solution

`git rm --cached` on the three paths. The files stay in each worktree as
scratch, which is what harvest reads.

## Verification

`git ls-files .lane` is empty on this branch and lists three paths on
master.

## Residual risk

Nothing stops a fourth recurrence. A lane force-adds the ignored path
when writing its publication text; the durable fix is for the harvest
route to read that scratch without the lane ever staging it.
Sinity added a commit that referenced this pull request Aug 29, 2026
## Summary

Restore `Origin.BEADS_ISSUE` and `Provider.BEADS` as a
`lifecycle="reserved"` origin — durable CHECK vocabulary only, with no
parser, no detector, and no session admission. The route removed by
#4363 stays removed.

## Problem

#4363 deleted both enum members.
`polylogue/storage/sqlite/archive_tiers/source.py` generates durable
CHECK constraints from those enums — `check("origin", Origin)` at :42,
163, 416, 789, 839, 901, `nullable_check` at :881, and
`check`/`nullable_check("capture_mode", Provider)` at :164, 254 — so the
deletion silently narrowed seven `source.db` tables.

    devtools test tests/unit/storage/test_durable_migrations.py
    on master:  15 failed, 33 passed
    MigrationError: source migration canonical DDL parity failed:
changed=('table:history_sidecars', 'table:otlp_spans',
'table:raw_artifacts',
'table:raw_capture_observations',
'table:raw_failure_disposition_receipts',
    'table:raw_hook_events', 'table:raw_sessions', 'table:source_items')

Every existing archive, including the live v30, failed canonical DDL
parity and could not migrate toward v38. No data was ever at risk —
every origin column in `source.db`, `user.db` and the rehearsal clone
holds zero beads rows — but the gate refuses, which blocks the reindex
campaign.

## Solution

`origin_specs.py:6-16` already documented a `reserved` lifecycle for "an
origin admitted with no parser/detector binding", noting no real Origin
used it. This is its first real use: `_beads_spec()` declares
`lifecycle="reserved"`, `parser_paths=()`, `public_filter=False`.

Enum position is load-bearing — the generated CHECK lists values in
declaration order — so both tokens are restored at their original
positions, `BEADS_ISSUE` after `ANTIGRAVITY_SESSION` and `BEADS` after
`ANTIGRAVITY`. Restoring them elsewhere still fails parity; that was
verified.

Restoring the enum members alone is also insufficient:
`_PROVIDER_TO_ORIGIN`, `_PROVIDER_TO_SOURCE`, `_ORIGIN_TO_LAB`,
`_ORIGIN_TO_PROVIDER` and `_SOURCE_BEADS` in `polylogue/core/sources.py`
went with them, and the fiber build raises `KeyError: <Provider.BEADS:
'beads'>`. Those map entries are restored too, along with the generated
agent-integration surfaces that must enumerate every `Origin`.

## Verification

`devtools test tests/unit/storage/test_durable_migrations.py` → **48
passed** (was 15 failed / 33 passed).

`devtools verify --quick` → exit 0, all 18 checks.

The retired route is confirmed gone on this branch:
`polylogue/sources/parsers/beads.py` does not exist, and `grep -c beads
polylogue/sources/dispatch.py` is 0.

## Residual risk

The underlying defect stands: retiring a public `Origin` or `Provider`
token edits durable DDL at all, because the CHECK vocabulary is
generated from the public enums. Filed as polylogue-r3c10, together with
the fact that `devtools verify schema-versioning` passed on the change
that caused this — it diffs only `archive_tiers/**` while the edit was
authored in `core/enums.py`.

Retiring `beads-issue` from the durable vocabulary for real still
requires a numbered source migration rebuilding those seven tables'
CHECK constraints, with a lifecycle class and a verified backup. The
requirements are recorded on polylogue-5jb8j.
Sinity added a commit that referenced this pull request Aug 29, 2026
## Summary

Restore `Origin.BEADS_ISSUE` and `Provider.BEADS` as a
`lifecycle="reserved"` origin — durable CHECK vocabulary only, with no
parser, no detector, and no session admission. The route removed by
#4363 stays removed.

## Problem

#4363 deleted both enum members.
`polylogue/storage/sqlite/archive_tiers/source.py` generates durable
CHECK constraints from those enums — `check("origin", Origin)` at :42,
163, 416, 789, 839, 901, `nullable_check` at :881, and
`check`/`nullable_check("capture_mode", Provider)` at :164, 254 — so the
deletion silently narrowed seven `source.db` tables.

    devtools test tests/unit/storage/test_durable_migrations.py
    on master:  15 failed, 33 passed
    MigrationError: source migration canonical DDL parity failed:
changed=('table:history_sidecars', 'table:otlp_spans',
'table:raw_artifacts',
'table:raw_capture_observations',
'table:raw_failure_disposition_receipts',
    'table:raw_hook_events', 'table:raw_sessions', 'table:source_items')

Every existing archive, including the live v30, failed canonical DDL
parity and could not migrate toward v38. No data was ever at risk —
every origin column in `source.db`, `user.db` and the rehearsal clone
holds zero beads rows — but the gate refuses, which blocks the reindex
campaign.

## Solution

`origin_specs.py:6-16` already documented a `reserved` lifecycle for "an
origin admitted with no parser/detector binding", noting no real Origin
used it. This is its first real use: `_beads_spec()` declares
`lifecycle="reserved"`, `parser_paths=()`, `public_filter=False`.

Enum position is load-bearing — the generated CHECK lists values in
declaration order — so both tokens are restored at their original
positions, `BEADS_ISSUE` after `ANTIGRAVITY_SESSION` and `BEADS` after
`ANTIGRAVITY`. Restoring them elsewhere still fails parity; that was
verified.

Restoring the enum members alone is also insufficient:
`_PROVIDER_TO_ORIGIN`, `_PROVIDER_TO_SOURCE`, `_ORIGIN_TO_LAB`,
`_ORIGIN_TO_PROVIDER` and `_SOURCE_BEADS` in `polylogue/core/sources.py`
went with them, and the fiber build raises `KeyError: <Provider.BEADS:
'beads'>`. Those map entries are restored too, along with the generated
agent-integration surfaces that must enumerate every `Origin`.

## Verification

`devtools test tests/unit/storage/test_durable_migrations.py` → **48
passed** (was 15 failed / 33 passed).

`devtools verify --quick` → exit 0, all 18 checks.

The retired route is confirmed gone on this branch:
`polylogue/sources/parsers/beads.py` does not exist, and `grep -c beads
polylogue/sources/dispatch.py` is 0.

## Residual risk

The underlying defect stands: retiring a public `Origin` or `Provider`
token edits durable DDL at all, because the CHECK vocabulary is
generated from the public enums. Filed as polylogue-r3c10, together with
the fact that `devtools verify schema-versioning` passed on the change
that caused this — it diffs only `archive_tiers/**` while the edit was
authored in `core/enums.py`.

Retiring `beads-issue` from the durable vocabulary for real still
requires a numbered source migration rebuilding those seven tables'
CHECK constraints, with a lifecycle class and a verified backup. The
requirements are recorded on polylogue-5jb8j.
Sinity added a commit that referenced this pull request Sep 1, 2026
## Summary

Remove `Provider.BEADS` and `Origin.BEADS_ISSUE` from parser, dispatch,
watcher/config, storage mappings, generated surfaces, fixtures and
tests,
retaining shape-based non-session artifact classification and the
work-evidence
adapters.

## Problem

`polylogue-qj5x` is a closed operator decision: Beads data belongs in
the
work-evidence graph, not in sessions. Its investigation measured
`interactions.jsonl` as 100% field-change rows with a constant actor — a
change
log, not a conversation. The route was still admitted everywhere, and
the live
census found no Beads sessions, so no compatibility shim is required.

## Solution

The declared removal across the production route. The manifest test pins
the
supported-origin and witness totals, which drop by one when the origin
leaves;
both counts are updated.

Merging current master also required dropping this branch's callers of
`polylogue/sources/antigravity.py`, which no longer exists on master —
the brain
metadata predicate and its dispatch condition had no target.

## Verification

    devtools verify --quick                          -> exit 0
devtools test tests/unit/sources tests/unit/cli -> 5421 passed, 37
failed

Every one of those 37 was run against clean `origin/master`: **35 fail
there
too**. Of the two that did not, one is the origin-count assertion this
change
correctly invalidates and now fixes, and the other passes on re-run
under lower
load. The inherited 35 are filed as `polylogue-g8rdy`; the largest
family is
`test_plain_cli_snapshots.py`, where production and the snapshots
disagree on
`cost_is_estimated` and token totals. That was deliberately **not**
regenerated
here — resolving it inside a removal would silently ratify an unreviewed
change
to cost accounting.

## Residual risk

Historical archives containing Beads-origin rows are unaffected by this
change;
it removes admission, not stored data.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sinity added a commit that referenced this pull request Sep 1, 2026
## Summary

Remove `.lane/body.md`, `.lane/close-reason.md` and `.lane/title` from
the index.

## Problem

`.gitignore:120` ignores `.lane/`, but #4363 committed those three
paths, so the ignore rule stops applying and every other lane's copy
conflicts with master. This is the third occurrence — `d86611434` and
`9e06d972c` each removed the same paths after an earlier lane re-added
them.

## Solution

`git rm --cached` on the three paths. The files stay in each worktree as
scratch, which is what harvest reads.

## Verification

`git ls-files .lane` is empty on this branch and lists three paths on
master.

## Residual risk

Nothing stops a fourth recurrence. A lane force-adds the ignored path
when writing its publication text; the durable fix is for the harvest
route to read that scratch without the lane ever staging it.
Sinity added a commit that referenced this pull request Sep 1, 2026
## Summary

Restore `Origin.BEADS_ISSUE` and `Provider.BEADS` as a
`lifecycle="reserved"` origin — durable CHECK vocabulary only, with no
parser, no detector, and no session admission. The route removed by
#4363 stays removed.

## Problem

#4363 deleted both enum members.
`polylogue/storage/sqlite/archive_tiers/source.py` generates durable
CHECK constraints from those enums — `check("origin", Origin)` at :42,
163, 416, 789, 839, 901, `nullable_check` at :881, and
`check`/`nullable_check("capture_mode", Provider)` at :164, 254 — so the
deletion silently narrowed seven `source.db` tables.

    devtools test tests/unit/storage/test_durable_migrations.py
    on master:  15 failed, 33 passed
    MigrationError: source migration canonical DDL parity failed:
changed=('table:history_sidecars', 'table:otlp_spans',
'table:raw_artifacts',
'table:raw_capture_observations',
'table:raw_failure_disposition_receipts',
    'table:raw_hook_events', 'table:raw_sessions', 'table:source_items')

Every existing archive, including the live v30, failed canonical DDL
parity and could not migrate toward v38. No data was ever at risk —
every origin column in `source.db`, `user.db` and the rehearsal clone
holds zero beads rows — but the gate refuses, which blocks the reindex
campaign.

## Solution

`origin_specs.py:6-16` already documented a `reserved` lifecycle for "an
origin admitted with no parser/detector binding", noting no real Origin
used it. This is its first real use: `_beads_spec()` declares
`lifecycle="reserved"`, `parser_paths=()`, `public_filter=False`.

Enum position is load-bearing — the generated CHECK lists values in
declaration order — so both tokens are restored at their original
positions, `BEADS_ISSUE` after `ANTIGRAVITY_SESSION` and `BEADS` after
`ANTIGRAVITY`. Restoring them elsewhere still fails parity; that was
verified.

Restoring the enum members alone is also insufficient:
`_PROVIDER_TO_ORIGIN`, `_PROVIDER_TO_SOURCE`, `_ORIGIN_TO_LAB`,
`_ORIGIN_TO_PROVIDER` and `_SOURCE_BEADS` in `polylogue/core/sources.py`
went with them, and the fiber build raises `KeyError: <Provider.BEADS:
'beads'>`. Those map entries are restored too, along with the generated
agent-integration surfaces that must enumerate every `Origin`.

## Verification

`devtools test tests/unit/storage/test_durable_migrations.py` → **48
passed** (was 15 failed / 33 passed).

`devtools verify --quick` → exit 0, all 18 checks.

The retired route is confirmed gone on this branch:
`polylogue/sources/parsers/beads.py` does not exist, and `grep -c beads
polylogue/sources/dispatch.py` is 0.

## Residual risk

The underlying defect stands: retiring a public `Origin` or `Provider`
token edits durable DDL at all, because the CHECK vocabulary is
generated from the public enums. Filed as polylogue-r3c10, together with
the fact that `devtools verify schema-versioning` passed on the change
that caused this — it diffs only `archive_tiers/**` while the edit was
authored in `core/enums.py`.

Retiring `beads-issue` from the durable vocabulary for real still
requires a numbered source migration rebuilding those seven tables'
CHECK constraints, with a lifecycle class and a verified backup. The
requirements are recorded on polylogue-5jb8j.
Sinity added a commit that referenced this pull request Sep 3, 2026
#4363 retired the Beads issue route, but the Origin token stays: deleting
it would narrow the durable source.db CHECKs that still admit stored rows.
Three surfaces each encoded a different guess about that.

Origin has twelve tokens, ten of them public badges. The generated-contract
test derives that split from PUBLIC_ORIGIN_TOKENS instead of naming
unknown-export as the only exception. The teaching table follows the enum,
so its length does too, and it names beads-issue as reserved rather than
asserting it absent. The namespace policy is exhaustive over executable
origins, which the retired one is not.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
Sinity added a commit that referenced this pull request Sep 3, 2026
…ired tokens (#4598)

## Summary

Eight more red classes from the 2026-09-03 corpus run, stacked on #4591.
Four are product defects; four are fixtures pinned to shapes the runtime
has moved past.

## Problem and solution, per class

### Status readers raised instead of reporting tier skew

`#4485`'s open-time tier check reached the readers whose *subject* is a
tier's version. The workload probe's payload carries `user_version` and
`version_status` fields; metrics is supposed to emit
`schema_mismatch:index` as a blocker series; the convergence-debt
summary
has an `error` field for saying why the view is unavailable. All of them
raised instead:

```
SchemaSkewError: index schema skew: expected 85, found 1
```

Metrics, the workload probe (three sites), the embedding status payload,
the schema-inference gate's tier identity read and the debt summary now
open without the version assertion and report what they find. The
context
preamble's scheduler receipt is best-effort by its own contract and
already swallowed sqlite errors; a tier this runtime cannot use joins
them.

### The relink route never derived attachment provenance

`attachment_refs.direction` is `NOT NULL` and only the main write route
derived it, so blob-reference closure failed the constraint on any
record
parsed before attachments carried direction. The relink path uses the
same
shared derivation, reading the owning turn from the index when the
append
payload's own message map does not carry it.

### One session cost total on two model rows

`sessions.reported_cost_usd` is one exact dollar total, written onto a
single `session_model_usage` row. A merge-append that switched models
left
the superseded row holding the previous total, double-counting it in
every
sum over the session.

### A read that skipped the controlled reader

The delegation work-evidence materializer opened a read-only
`ArchiveStore`
directly — the one thing the read-surface boundary forbids, because such
a
read carries no admission, no execution budget and no cancellation.

### Fixtures that open a tier before building it

A connection profile checks a tier's declared version at open time, so a
test cannot open a tier-named path and initialize it afterwards. The
assertion tests build the tier first through the production bootstrap;
the
mmap-budget test builds every attached tier the same way, since the tier
filenames are its subject; the descriptor-binding test names its
database
for what it is. The embedding-drain stubs declare the version they
claim,
without which the daemon's probe passes them over and the drain silently
reports no work.

### The resilience suite launched another checkout's daemon

`which("polylogued")` resolves from PATH, which in a worktree is the
main
checkout. The tests launched a different tree's daemon against this
tree's
archive, then waited out their budget with nothing ingested and reported
a
timeout. The running interpreter's own script directory comes first now.
The installed-wheel smoke had the same shape: `uv venv` picked whatever
interpreter uv found, and the package refuses to start off free-threaded
CPython.

### Rendered ages re-baselined instead of redacted

`"relative_time": "70w ago"` became `"71w ago"` on its own, because the
value is computed against the host clock over fixture timestamps that
never
move. This file's own contract routes such a field to `_redact`, "not to
update the baseline".

### Surfaces that read a retired token as removed

`#4363` retired the Beads issue route, but the `Origin` token stays:
deleting it would narrow the durable `source.db` CHECKs that still admit
stored rows. Three surfaces each encoded a different guess. Origin has
twelve tokens, ten of them public badges — the generated-contract test
derives that split from `PUBLIC_ORIGIN_TOKENS`, the teaching table
follows
the enum, and the namespace policy stays exhaustive over *executable*
origins, which the retired one is not. Separately, `exclusive_keys` and
`scratch` are retired descriptor keys, as `test_dev_loop_service`
already
declares.

## Verification

`devtools test <file> -n 2`, worktree venv resynced to the current
lockfile:

| file | before | after |
| --- | --- | --- |
| `tests/unit/storage/test_durable_change_train.py` | 3 failed | **98
passed** |
| `tests/unit/daemon/test_metrics_endpoint.py` | 2 failed | pass |
| `tests/unit/maintenance/test_schema_inference_gate.py` | 1 failed |
pass |
| `tests/unit/storage/test_connection_profile.py` | 1 failed | pass |
| `tests/unit/storage/test_archive_tiers_assertions.py` | 3 failed |
pass |
| `tests/unit/daemon/test_embedding_readiness.py` | 1 failed | pass |
| `tests/unit/context/test_preamble.py::…non_git…` | 1 failed | pass |

`devtools verify --quick` green at this head.

## Residual risk

`validate_schema=False` is now used at seven read sites. Each is a
status
or identity projection whose caller models skew as data; none of them
writes.

A first attempt at this branch also relaxed the identity guard so an
`ops.db` predating the ledger would converge. That fixed three tests and
broke thirty in `test_durable_change_train.py` — bootstrap proceeded
where
it used to refuse. The relaxation is dropped and those three
ops-convergence
tests remain red; the reader change that types the absent ledger as
`None`
is kept and was measured separately as harmless (98 passed with it
alone).

🤖 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 added a commit that referenced this pull request Sep 27, 2026
## Summary

Deletes repair-shaped tooling whose producing code is gone, routes the
demo-augment HTTP route through its declared operation, and removes
unreachable modules and functions. Four themed commits.

## Problem

- The blob-reference repair family
(`blob-reference-replace-from-source`, `-prune-orphans`,
`-recovery-plan`, their daemon operations, actuators and the
campaign-actuator retirement framework) existed to repair missing blob
references from a pre-fresh-start incident. No current write path
produces that state: raw-deleting routes remove `blob_refs` with their
raw row, publication reserves bytes before the referencing row commits,
and GC reclaims only unreferenced hashes.
- The Beads-origin census inventoried an origin whose session route was
removed in #4363.
- `POST /api/demo/augment` applied demo writes through the write bridge
while `maintenance.demo.augment` held a second executor for the same
effect.
- About 20 modules and ~130 functions had no importer, string dispatch
or entry point (vulture candidates, each checked by name across
`polylogue/`, `devtools/`, `tests/`, `docs/`).

## Solution

- **Repair retirement:** delete the commands, operations, actuators,
retirement declarations and their tests; keep the read-only
`blob-reference-debt` classifier and the daemon health alert, whose docs
now say a non-zero count is a producer defect.
- **Demo augment:** the route validates the body and submits
`maintenance.demo.augment`; the route declaration names that operation
instead of a migration reason. New tests prove both `with_overlays`
values reach the operation and that a refused operation is not reported
as success.
- **Ref resolution (polylogue-j5u2b):** a daemon-backed import test
records that the handler resolves evidence refs through
`plan_ref_resolution`, and the facade gives the same answers for an
existing and a missing message.
- **Seed ontology (polylogue-kqlb4):** the retired `phase` kind is
checked by ref admission, not a hand-written tuple.
- **Unreachable code:** includes `plan_execution`, the retrieval
candidate/search layer, `streaming_markdown`, `attachment_relink`, the
user-overlay orphan check, the `code_detection.detection` re-export
shim, the whole-archive convergence pledge (its only writer left in
#5233), and the legacy sqlite-vec provider subclass.

## Verification

- Focused `devtools test` over 141 affected files before the rebase:
2886 passed, 55 failed; 11 passed when rerun alone. The remaining
failures were run on clean `origin/master` (one run of those IDs) and
all failed there too, except my own new test (fixed) and two
workload-artifact tests that time out under host load.
- After the rebase onto current master: `devtools test` over the
annotation-import, maintenance registration/declarations,
archive-maintenance CLI, discovery-progress, write-coordinator,
demo-augment route, route-family and blob-integrity files: 157 passed, 2
failed. Both failures are `test_workload_artifacts` seeding tests that
hit the 120 s pytest timeout; on clean master the same tests take
115-130 s under the current host load.
- Static: `devtools gate` layering, rebuild-routes,
declaration-bindings, controlled-read, api-parity, doc-commands, mypy,
schema-closure all pass; `devtools render all --check` clean.

## Residuals

- Schema identity moves: 54 changed production files are in the derived
closure, so this must land before the rebuild. The closure baseline
shrinks by four files.
- The inherited failures listed above predate this branch and are not
addressed here.

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

https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4

---------

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

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):

Resolving these threads.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at f88b4a6):

  • P1 polylogue/core/enums.py:93: Stale: The enum removal did not persist: Origin.BEADS_ISSUE and Provider.BEADS are still declared (polylogue/core/enums.py:85, polylogue/core/enums.py:121), so the contract tests' expectations still hold. (checked at f88b4a6)
  • P1 polylogue/core/enums.py:93: Stale: The Beads members remain in the enums (polylogue/core/enums.py:85), and durable DDL no longer interpolates enum vocabularies into CHECK constraints (AGENTS.md:93), so the premise of divergent CHECKs at identical versions no longer applies. (checked at f88b4a6)

Resolving every thread listed; confirmed defects are fixed under the named bead.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at c950478):

  • P2 polylogue/core/enums.py:127: Fixed on master (checked at c950478): Provider.BEADS is present again (polylogue/core/enums.py:121), and CORE_RUNTIME_PROVIDERS lists beads. The enum and the canonical provider helpers therefore agree on the token.

Resolving every thread listed; confirmed defects are fixed under the named bead.

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