Skip to content

fix(sources): refuse session classification for self-generated analysis artifacts - #3426

Merged
Sinity merged 3 commits into
masterfrom
feature/sources/self-generated-analysis-artifact-refusal
Jul 31, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/sources/self-generated-analysis-artifact-refusal

Conversation

@Sinity

@Sinity Sinity commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

Investigated the reported contradiction that Claude Code Workflow artifacts
appear both correctly normalized (closed beads polylogue-z9gh.4/z9gh.6/2qx.2)
and independently ingested as zero-message sessions. Fixes the one part of
that contradiction that is a live code defect (a self-generated analysis
artifact misclassified as a session), and files/corrects Beads for the parts
that are not: a stale-data reparse gap and one inaccurately-closed bead.

Problem

polylogue-omsw (open) documents zero-message Claude Code sessions whose
source is a non-conversational artifact. Investigating it against the three
closed beads that claim Workflow normalization/admission is done surfaced
three distinct findings, verified directly against the live archive
(read-only index.db/source.db queries) rather than assumed from bead
text:

  1. Live code defect (fixed here): a self-generated analysis index an
    agent had written into its own Claude Code project directory
    (analysis/problem_solutions/problems_index.jsonl, JSONL records shaped
    like {"conversation": <id>, "type": "unknown", "preview": ...}) was
    ingested as a claude-code-session with zero messages. The recursive
    source walk already skips any directory literally named analysis
    (source_walk._SKIP_DIRS), but that skip only guards the treewalk
    discovery route — classify_artifact_path had no equivalent path-only
    exclusion, so the file fell through to payload-shape heuristics.
    looks_like_record_entry misread each record as session content purely
    because type is a generic recordish key — the exact "unrecognised
    record defaults to a session" failure mode polylogue-9ykn (P0)
    describes generally.

  2. Not a live defect — stale data: the 172 zero-message sessions under
    the workflows//subagents/workflows/ artifact family (164
    agent_sidecar_meta + 7 workflow_run_snapshot + 1 other) are not
    caused by a current classification bug. Directly testing
    classify_artifact_path against the live paths today confirms current
    code already returns parse_as_session=False for all four Workflow
    artifact kinds, via the OriginSpec rules PR feat(sources): admit Claude Workflow artifacts through OriginSpec #3088 (1e0246d77,
    2026-07-18) added. The 172 rows were all acquired 2026-07-14..26, before
    the deployed daemon build advanced past that fix (sinnix's polylogue
    flake input only reached a revision containing it on 2026-07-29). The
    real remaining gap: 1e0246d77 changed session/fact classification
    semantics without declaring an INDEX_SCHEMA_VERSION
    SEMANTIC_REPARSE bump, so the daemon's convergence loop has no signal
    to reparse already-materialized wrong rows. Filed polylogue-lzh8 to
    declare that bump (not executed here — a reparse is a consequential live
    action needing explicit operator scheduling, out of this PR's scope per
    the task boundary).

  3. Inaccurate bead closure: polylogue-z9gh.6 ("Audit ingestion
    coverage for Claude Code Workflow sidecars") claims "readiness and
    repair commands no longer report healthy solely because
    subagents/workflows is classified as a known sidecar." False as
    written: assembly_claude_code.py's orchestration_coverage/
    orchestration_parse_gaps struct is computed every ingest pass and
    consumed by nothing except its own unit test — dead code. A second,
    separate coverage computation (claude_workflow_materializer.py's
    gaps) does run live and is logged during daemon convergence, but only
    as a log line, not a queryable readiness/repair surface. Added a
    corrective note to z9gh.6 and filed polylogue-uh9l for the
    remaining scope.

polylogue-2qx.2 and polylogue-z9gh.4 are accurately closed —
verified directly: work_evidence_nodes/work_evidence_edges contain 7
Workflow runs, 122 calls, 164 attempts, 128 structured results, and the
wf_54d4fb2e-841 fixture reproduces its exact declared counts (91 attempts,
50 calls, 65 results). Not stale beads.

Solution

polylogue/archive/artifact_taxonomy/runtime.py: classify_artifact_path
now refuses any path containing an analysis/ directory segment as a
non-session METADATA_DOCUMENT, mirroring source_walk._SKIP_DIRS's intent
at the taxonomy layer so the exclusion holds for every acquisition route
(not only the recursive walk that already skips it). Added a regression
test using the observed payload/path shape
(test_self_generated_analysis_index_is_not_a_session).

Beads: filed polylogue-lzh8 (declare the missing SEMANTIC_REPARSE
index bump, quantifying live impact) and polylogue-uh9l (wire Workflow
coverage into an actual readiness surface, remove the dead struct);
corrected polylogue-z9gh.6's notes; updated polylogue-omsw with the
narrowed evidence distinguishing its still-live tool-results/toolu_*.json
gap from the now-explained/reparse-only workflow-journal slice.

No repair executed against the live archive; no rows deleted or modified.

Verification

devtools test tests/unit/sources/test_artifact_taxonomy.py tests/unit/sources/test_assembly_claude_code_history.py
# 19 passed

devtools verify --quick
# exit 0 (format, lint, mypy --strict, render all --check, topology, layering,
#         schema-versioning policy, degrade-loudly, hash-boundary-census, etc.)

devtools verify (testmon-affected) was not run — this worktree's testmon
cache was unseeded (fresh checkout); --quick plus the two focused test
files above cover the actual diff.

Ref polylogue-omsw, polylogue-9ykn, polylogue-lzh8, polylogue-uh9l.

Sinity added 2 commits July 31, 2026 07:56
…is artifacts

Problem: a self-generated analysis index (an agent-written JSONL pointing at
prior conversations by id, e.g. .../analysis/problem_solutions/problems_
index.jsonl) was ingested as a claude-code-session with zero messages. The
recursive source walk already skips directories literally named "analysis"
(source_walk._SKIP_DIRS), but that skip only guards the treewalk-discovery
route; classify_artifact_path had no equivalent path-only exclusion, so a
file admitted through any other acquisition route (or predating the walk
skip at that mtime) falls through to payload-shape heuristics. The generic
looks_like_record_entry heuristic then misreads each {"conversation": <id>,
"type": ...} pointer record as session content, purely because "type" is a
generic recordish key -- exactly the "unrecognised record defaults to a
session" defect described in polylogue-9ykn.

Solution: classify_artifact_path now refuses any path with an "analysis/"
directory segment as a non-session METADATA_DOCUMENT, mirroring
source_walk._SKIP_DIRS's intent at the taxonomy layer so the exclusion holds
regardless of which acquisition route admits the file. Added a regression
test using the observed payload/path shape.

Ref polylogue-omsw, polylogue-9ykn.

Verification: devtools test tests/unit/sources/test_artifact_taxonomy.py
tests/unit/sources/test_assembly_claude_code_history.py -- 18 passed.
…closure

Investigation of the reported Claude Code Workflow normalize/session
contradiction (2qx.2, z9gh.4, z9gh.6, omsw). Findings:

- polylogue-2qx.2 and polylogue-z9gh.4 are accurately closed: direct
  index.db queries confirm the OriginSpec artifact rules and Workflow
  materializer are live and correct (7 runs, 122 calls, 164 attempts, 128
  results in work_evidence_nodes; the wf_54d4fb2e-841 fixture reproduces
  its exact declared counts of 91 attempts/50 calls/65 results).
- polylogue-z9gh.6 is only partially accurate: its SidecarData-level
  coverage struct (orchestration_coverage/orchestration_parse_gaps) is
  computed and discarded every ingest pass, never consumed by any
  readiness/repair surface, so AC1 and AC5 are not met as claimed. Added a
  corrective note and filed polylogue-uh9l for the remaining scope.
- The live archive's 172 zero-message sessions under the workflow artifact
  family are stale pre-fix ingestion (acquired 2026-07-14..26, before the
  deployed daemon build picked up PR #3088 on 2026-07-29), not a currently
  active classification defect. Filed polylogue-lzh8 to declare the
  missing SEMANTIC_REPARSE index-version bump PR #3088 never got, which is
  what actually blocks self-healing.
- Updated polylogue-omsw with the narrowed evidence: its journal.jsonl
  slice is covered by lzh8/the reparse gap, its tool-results/toolu_*.json
  slice remains the live, still-active gap.

No repair executed against the live archive; both filed beads describe and
scope the remediation for explicit operator scheduling.
@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 49 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c7814c19-d6d0-46d6-92cb-3a3b4afdbd59

📥 Commits

Reviewing files that changed from the base of the PR and between eb5796f and f600976.

📒 Files selected for processing (3)
  • .beads/issues.jsonl
  • polylogue/archive/artifact_taxonomy/runtime.py
  • tests/unit/sources/test_artifact_taxonomy.py

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

if _has_self_generated_artifact_dir_segment(normalized):

P1 Badge Limit the analysis exclusion to generated subtrees

When a configured source root or any ancestor is named analysis (for example, /analysis/.claude/projects), _walk_source_paths does not prune that root or ancestor, but this full-path check classifies every discovered transcript as metadata before payload or OriginSpec classification. Because the rule is also provider-agnostic, legitimate Codex and ChatGPT exports under an ordinary analysis/ workspace are silently skipped as well; match only the intended Claude project-relative generated subtree rather than any absolute-path segment.


https://github.com/Sinity/polylogue/blob/6fc19b01a1313bd9a976fb3ad7f46423cebf0a2f/.beads/issues.jsonl#L37
P2 Badge Preserve prior issue notes when recording the audit

This row replaces polylogue-z9gh's existing 17,309-character notes history with a new 1,921-character audit note instead of appending it, deleting earlier implementation checkpoints, remaining-gap analysis, and live-corpus measurements from the repository's durable task state; polylogue-x7d is similarly reduced from 3,856 to 2,743 characters. Restore the previous notes and append the new audit entries so project history remains available to bd consumers.

AGENTS.md reference: AGENTS.md:L267-L270

ℹ️ 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".

# Conflicts:
#	.beads/issues.jsonl
#	tests/unit/sources/test_artifact_taxonomy.py
@Sinity
Sinity merged commit 8795a52 into master Jul 31, 2026
1 of 2 checks passed
@Sinity
Sinity deleted the feature/sources/self-generated-analysis-artifact-refusal branch July 31, 2026 07:47
Sinity added a commit that referenced this pull request Aug 2, 2026
Problem: polylogue-21qj found 6 non-transcript files under watched
~/.claude/projects trees (a sinex analysis-index, a tool-result spill file
x3, a workflow journal, a derived duplicate-messages index) had been
ingested as claude-code-session rows. Investigation found 5 of the 6 shapes
are already refused at detection time by prior work (#3426, #3428,
c6190d7, and the pre-existing workflow_journal OriginArtifactRule) --
verified live by rerunning each real file's exact byte content (read from
source.db + the blob store, since 2 of 3 sinex files no longer exist on
disk) through classify_artifact/detect_provider_evidence.

For cleanup, polylogue-ne6k had already built the classifier+dry-run-gated
maintenance-repair pattern this bead asked for (repair.py's `empty_sessions`
target, wired through `polylogue maintenance repair --target
empty_sessions`) -- but scoped to literally message-less sessions
(`NOT EXISTS messages`). claude-code-session:conversation_relationships has
96,748 MESSAGE ROWS, every one carrying zero blocks/words, so it fell
outside that predicate entirely and was never even a repair candidate.

Solution: widen `_empty_session_candidate_ids` (renamed from
`_empty_session_message_less_candidates`) to also propose sessions where
`sessions.word_count = 0` regardless of message_count. The existing
positive-classification gate (`_raw_artifact_positively_fails_classification`)
remains the sole deletion authority, so a legitimate all-tool-use session
with no text turns is still retained (its raw artifact still carries real
Claude Code envelope markers and passes classification).

Also added the one missing regression pin: analysis/signal/high_value_
messages.jsonl (the 6th named shape) was already refused via the
analysis/ directory heuristic but had no dedicated test using its real
field shape (file/timestamp/type/content). That session is deliberately
excluded from the empty_sessions purge (word_count=827,894, real content)
-- investigation found its real source session is stuck
revision_authority='quarantined' and never parsed, so it is currently the
archive's only queryable copy of that conversation; deferred to
polylogue-6bebe rather than deciding blanket deletion here.

Verification:
- devtools test tests/unit/storage/test_empty_session_repair_provenance.py
  tests/unit/sources/test_artifact_taxonomy.py -- 15 passed. New tests pin
  both the widened-predicate debris case and its "legit all-tool-use"
  sibling that must NOT be swept in, plus the high_value_messages shape.
- devtools verify --quick -- exit 0, all 19 steps green.
- Read-only measurement against the live archive (/realm/db/polylogue):
  before this change, conversation_relationships was absent from
  `_empty_session_debris_session_ids`'s output; after, it is flagged
  alongside problems_index/journal/3x toolu_*. Total flagged debris across
  the archive went from 5023 to 5076 rows (+53, this generalization also
  catches other same-shaped phantoms, not only the 5 named here).
- Pre-existing, unrelated failure noted and NOT fixed here: tests/unit/
  maintenance/test_planner_contract.py and test_planner_filter_narrowing.py
  fail with a TypeError (row_factory not set on a test fixture's index
  connection) on master (120cf6f) before this change too (confirmed via
  git stash) -- filed as polylogue-9rdky.

Ref polylogue-21qj, polylogue-gvgi (closed as duplicate), polylogue-6bebe,
polylogue-9rdky

Co-Authored-By: Claude <[email protected]>
Sinity added a commit that referenced this pull request Aug 2, 2026
Problem: polylogue-21qj found 6 non-transcript files under watched
~/.claude/projects trees (a sinex analysis-index, a tool-result spill file
x3, a workflow journal, a derived duplicate-messages index) had been
ingested as claude-code-session rows. Investigation found 5 of the 6 shapes
are already refused at detection time by prior work (#3426, #3428,
c6190d7, and the pre-existing workflow_journal OriginArtifactRule) --
verified live by rerunning each real file's exact byte content (read from
source.db + the blob store, since 2 of 3 sinex files no longer exist on
disk) through classify_artifact/detect_provider_evidence.

For cleanup, polylogue-ne6k had already built the classifier+dry-run-gated
maintenance-repair pattern this bead asked for (repair.py's `empty_sessions`
target, wired through `polylogue maintenance repair --target
empty_sessions`) -- but scoped to literally message-less sessions
(`NOT EXISTS messages`). claude-code-session:conversation_relationships has
96,748 MESSAGE ROWS, every one carrying zero blocks/words, so it fell
outside that predicate entirely and was never even a repair candidate.

Solution: widen `_empty_session_candidate_ids` (renamed from
`_empty_session_message_less_candidates`) to also propose sessions where
`sessions.word_count = 0` regardless of message_count. The existing
positive-classification gate (`_raw_artifact_positively_fails_classification`)
remains the sole deletion authority, so a legitimate all-tool-use session
with no text turns is still retained (its raw artifact still carries real
Claude Code envelope markers and passes classification).

Also added the one missing regression pin: analysis/signal/high_value_
messages.jsonl (the 6th named shape) was already refused via the
analysis/ directory heuristic but had no dedicated test using its real
field shape (file/timestamp/type/content). That session is deliberately
excluded from the empty_sessions purge (word_count=827,894, real content)
-- investigation found its real source session is stuck
revision_authority='quarantined' and never parsed, so it is currently the
archive's only queryable copy of that conversation; deferred to
polylogue-6bebe rather than deciding blanket deletion here.

Verification:
- devtools test tests/unit/storage/test_empty_session_repair_provenance.py
  tests/unit/sources/test_artifact_taxonomy.py -- 15 passed. New tests pin
  both the widened-predicate debris case and its "legit all-tool-use"
  sibling that must NOT be swept in, plus the high_value_messages shape.
- devtools verify --quick -- exit 0, all 19 steps green.
- Read-only measurement against the live archive (/realm/db/polylogue):
  before this change, conversation_relationships was absent from
  `_empty_session_debris_session_ids`'s output; after, it is flagged
  alongside problems_index/journal/3x toolu_*. Total flagged debris across
  the archive went from 5023 to 5076 rows (+53, this generalization also
  catches other same-shaped phantoms, not only the 5 named here).
- Pre-existing, unrelated failure noted and NOT fixed here: tests/unit/
  maintenance/test_planner_contract.py and test_planner_filter_narrowing.py
  fail with a TypeError (row_factory not set on a test fixture's index
  connection) on master (120cf6f) before this change too (confirmed via
  git stash) -- filed as polylogue-9rdky.

Ref polylogue-21qj, polylogue-gvgi (closed as duplicate), polylogue-6bebe,
polylogue-9rdky

Co-Authored-By: Claude <[email protected]>
Sinity added a commit that referenced this pull request Aug 2, 2026
Problem: polylogue-21qj found 6 non-transcript files under watched
~/.claude/projects trees (a sinex analysis-index, a tool-result spill file
x3, a workflow journal, a derived duplicate-messages index) had been
ingested as claude-code-session rows. Investigation found 5 of the 6 shapes
are already refused at detection time by prior work (#3426, #3428,
c6190d7, and the pre-existing workflow_journal OriginArtifactRule) --
verified live by rerunning each real file's exact byte content (read from
source.db + the blob store, since 2 of 3 sinex files no longer exist on
disk) through classify_artifact/detect_provider_evidence.

For cleanup, polylogue-ne6k had already built the classifier+dry-run-gated
maintenance-repair pattern this bead asked for (repair.py's `empty_sessions`
target, wired through `polylogue maintenance repair --target
empty_sessions`) -- but scoped to literally message-less sessions
(`NOT EXISTS messages`). claude-code-session:conversation_relationships has
96,748 MESSAGE ROWS, every one carrying zero blocks/words, so it fell
outside that predicate entirely and was never even a repair candidate.

Solution: widen `_empty_session_candidate_ids` (renamed from
`_empty_session_message_less_candidates`) to also propose sessions where
`sessions.word_count = 0` regardless of message_count. The existing
positive-classification gate (`_raw_artifact_positively_fails_classification`)
remains the sole deletion authority, so a legitimate all-tool-use session
with no text turns is still retained (its raw artifact still carries real
Claude Code envelope markers and passes classification).

Also added the one missing regression pin: analysis/signal/high_value_
messages.jsonl (the 6th named shape) was already refused via the
analysis/ directory heuristic but had no dedicated test using its real
field shape (file/timestamp/type/content). That session is deliberately
excluded from the empty_sessions purge (word_count=827,894, real content)
-- investigation found its real source session is stuck
revision_authority='quarantined' and never parsed, so it is currently the
archive's only queryable copy of that conversation; deferred to
polylogue-6bebe rather than deciding blanket deletion here.

Verification:
- devtools test tests/unit/storage/test_empty_session_repair_provenance.py
  tests/unit/sources/test_artifact_taxonomy.py -- 15 passed. New tests pin
  both the widened-predicate debris case and its "legit all-tool-use"
  sibling that must NOT be swept in, plus the high_value_messages shape.
- devtools verify --quick -- exit 0, all 19 steps green.
- Read-only measurement against the live archive (/realm/db/polylogue):
  before this change, conversation_relationships was absent from
  `_empty_session_debris_session_ids`'s output; after, it is flagged
  alongside problems_index/journal/3x toolu_*. Total flagged debris across
  the archive went from 5023 to 5076 rows (+53, this generalization also
  catches other same-shaped phantoms, not only the 5 named here).
- Pre-existing, unrelated failure noted and NOT fixed here: tests/unit/
  maintenance/test_planner_contract.py and test_planner_filter_narrowing.py
  fail with a TypeError (row_factory not set on a test fixture's index
  connection) on master (120cf6f) before this change too (confirmed via
  git stash) -- filed as polylogue-9rdky.

Ref polylogue-21qj, polylogue-gvgi (closed as duplicate), polylogue-6bebe,
polylogue-9rdky

Co-Authored-By: Claude <[email protected]>
Sinity added a commit that referenced this pull request Aug 2, 2026
…oms (#3583)

## Summary

Widens `polylogue/storage/repair.py`'s `empty_sessions` maintenance-repair target so it also catches sessions that have message rows but zero real content (all-zero-word messages), not only literally message-less sessions. Adds the one missing regression test among 6 named phantom-artifact shapes.

## Problem

polylogue-21qj found 6 non-transcript files under watched `~/.claude/projects` trees had been ingested as `claude-code-session` rows in the live archive: a sinex analysis-index (`conversation_relationships.jsonl`, 96,748 empty messages), a derived duplicate-messages index (`high_value_messages.jsonl`, 8,763 real duplicate messages), an empty problem-index (`problems_index.jsonl`), 3x oversized-tool-output spill files (`tool-results/toolu_*.json`), and a workflow journal (`journal.jsonl`).

Investigating against the live archive (read-only, `/realm/db/polylogue`) and the current checkout found **5 of the 6 shapes are already refused at detection time** by prior merged work (#3426 self-generated `analysis/` dir guard, #3428 `looks_like_code` envelope-marker requirement, c6190d7 letting record content override the `analysis/` guard, and the pre-existing `workflow_journal` `OriginArtifactRule`). Verified live: reran each real file's exact byte content (read from `source.db` + the blob store, since 2 of 3 sinex files no longer exist on disk) through `classify_artifact`/`detect_provider_evidence` — all return `parse_as_session=False`.

For cleanup, `polylogue-ne6k` had already built exactly the classifier + dry-run-gated actuator pattern this bead asked for (`repair.py`'s `empty_sessions` target, wired through `polylogue maintenance repair --target empty_sessions`, dry-run by default) — but scoped to literally message-less sessions (`NOT EXISTS messages`). `conversation_relationships` has 96,748 message rows (every one carrying zero blocks/words), so it fell outside that predicate and was never even a repair candidate.

## Solution

- Widened `_empty_session_candidate_ids` (renamed from `_empty_session_message_less_candidates`) to also propose sessions where `sessions.word_count = 0` regardless of `message_count`. The existing positive-classification gate (`_raw_artifact_positively_fails_classification`) remains the sole deletion authority — a legitimate all-tool-use session with no text turns still passes classification and is retained (pinned by `test_all_empty_content_session_with_legit_raw_is_retained`).
- Added `test_all_empty_content_session_with_phantom_raw_counts_as_debris`, pinning that a `conversation_relationships`-shaped session (many zero-word message rows, relationship-index-shaped raw artifact under `analysis/`) is now flagged.
- Added `test_analysis_signal_duplicate_messages_are_not_a_session` to `test_artifact_taxonomy.py`, the missing regression pin for the 6th named shape (`high_value_messages.jsonl`'s real field shape: `file`/`timestamp`/`type`/`content`).
- Updated the `empty_sessions` maintenance-target description to reflect the broader predicate.

`high_value_messages.jsonl` (8,763 non-empty messages, 827,894 words) is deliberately excluded from the purge — its content is real duplicated conversation text, and investigation found the real source session (`bad69218-...`) is stuck `revision_authority='quarantined'` and never parsed, so this phantom is currently the archive's only queryable copy of that content. Blanket deletion would be real data loss, not garbage collection. Deferred to polylogue-6bebe.

## Verification

- `devtools test tests/unit/storage/test_empty_session_repair_provenance.py tests/unit/sources/test_artifact_taxonomy.py` — 15 passed.
- `devtools verify --quick` — exit 0, all 19 steps green (also ran again automatically via the pre-push hook).
- Read-only measurement against the live archive: before this change, `conversation_relationships` was absent from `_empty_session_debris_session_ids`'s output; after, it is flagged alongside the already-flagged `problems_index`/`journal`/3x `toolu_*`. Total flagged debris across the archive went from 5023 to 5076 rows (+53 — this generalization also catches other same-shaped phantoms archive-wide, not only the 5 named in this bead).
- Pre-existing, unrelated failure found and **not** fixed here: `tests/unit/maintenance/test_planner_contract.py` and `test_planner_filter_narrowing.py` fail with a `TypeError` (row_factory not set on a test fixture's index connection) on master (120cf6f) too, confirmed via `git stash` before this change. Filed as polylogue-9rdky.

Ref polylogue-21qj, polylogue-gvgi (closed as duplicate), polylogue-6bebe, polylogue-9rdky
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