Repository navigation
Closed
Labels
area:cliCLIarea:coreCore runtime and shared infrastructurearea:storageStoragetype:featNew featuretype:trackingUmbrella issue coordinating multiple items
Description
Context
Issues #405, #406, #407, and #408 all came from the same real workflow: extract the user's own authored prose across filtered conversation sets without ad hoc shell loops, substring filters, or post-processing scripts.
Right now those issues are individually valid, but they float outside the post-renewal consolidation roadmap. This issue makes the workflow explicit so the pieces fit together.
Problem
Polylogue can query and export conversations, but it is not yet a clean analysis tool for "what did the user actually write?" across a bounded corpus.
Current gaps:
- feat(messages): detect pasted content in user messages #405: user messages can be dominated by pasted logs, transcripts, code, or tool output.
- fix(export): apply message-role filters to exports #406:
--message-roleexists but does not propagate toexportoutput. - feat(filters): add repository filter #407: repository filtering relies on
--pathsubstring matching instead of a first-class repo dimension. - feat(export): add bulk export for filtered conversations #408: extracting many matching conversations requires a slow subprocess loop instead of one bulk export operation.
Target model
Provide a coherent authored-content extraction workflow:
polylogue --provider claude-code --repo __thoughtspace \
export-bulk --message-role user --typed-only --format jsonlThis should be a normal archive/query/export capability, not a one-off analysis script.
Scope
- Add a reusable content projection contract for authored-vs-pasted user content.
- Make role filtering apply consistently to list/query/export/bulk export surfaces.
- Add first-class repository filtering backed by stored repo/tag/product facts, not path substring luck.
- Add a bulk export/dump command that shares query filters and emits stable machine-readable output.
- Keep CLI, facade, and future MCP behavior aligned over the same filter/projection/export substrate where practical.
Acceptance criteria
--message-role useraffects exported message payloads, not only result selection.- A
--repo NAMEfilter works for conversations tagged/materialized under that repository. - Bulk export can emit matched conversations or matched projected messages in one process.
- Authored/pasted-content detection is represented as typed metadata or projection spans, not output-string scraping.
- Tests cover the combined workflow over a seeded archive with pasted transcript content, repository metadata, role filtering, and bulk export.
- Docs include one concise analysis example once the commands exist.
Child issues
- feat(messages): detect pasted content in user messages #405 - detect pasted content in user messages.
- fix(export): apply message-role filters to exports #406 - apply message-role filters to exports.
- feat(filters): add repository filter #407 - add repository filter.
- feat(export): add bulk export for filtered conversations #408 - add bulk export for filtered conversations.
Metadata
Metadata
Assignees
Labels
area:cliCLIarea:coreCore runtime and shared infrastructurearea:storageStoragetype:featNew featuretype:trackingUmbrella issue coordinating multiple items
Activity
Sinity commentedon May 1, 2026
Superseded by #576, which consolidates this scope with the verified architecture/proof/interface closure residuals into one acceptance scoreboard.
Sinity commentedon May 1, 2026
Closing as superseded by #576.
Sinity commentedon May 7, 2026
Closed-scope audit found this is mostly present but still under-verified as an end-to-end workflow; leaving the issue closed and tracking reconciliation in #944.
Evidence: provider/repo/message-role/typed-only filters and export paths exist in the CLI/docs/tests, but I did not find a durable seeded test/projection that proves the combined authored-content workflow from query through bulk export, nor a projection that distinguishes authored typed content from pasted spans end-to-end.
#944 should either add that workflow evidence or classify the remaining criterion as intentionally narrowed.
Sinity commentedon May 7, 2026
Additional audit note for #944: authored-vs-pasted filtering is weaker than the CLI surface implies.
Claude Code session JSONL is watched from
~/.claude/projects, but top-level~/.claude/history.jsonlis not a default source. HookUserPromptSubmitrecords preserve pre-expansion paste markers, but they are classified as hook artifacts rather than converted into stored messagehas_pastefacts. The materializer currently setshas_paste = 0for every message, so--has-paste/--typed-onlyare not reliable authored-content boundaries yet.Tracked in #944 with the other #415 residuals.