Skip to content

feat(analysis): make authored-content extraction first-class #415

Closed

Description

@Sinity

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:

Target model

Provide a coherent authored-content extraction workflow:

polylogue --provider claude-code --repo __thoughtspace \
  export-bulk --message-role user --typed-only --format jsonl

This 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 user affects exported message payloads, not only result selection.
  • A --repo NAME filter 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

Activity

  1. added
    type:feat
    area:core
    type:tracking
    on Apr 26, 2026
  2. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Superseded by #576, which consolidates this scope with the verified architecture/proof/interface closure residuals into one acceptance scoreboard.

  3. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Closing as superseded by #576.

  4. Sinity commented on May 7, 2026

    @Sinity
    OwnerAuthor

    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.

  5. Sinity commented on May 7, 2026

    @Sinity
    OwnerAuthor

    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.jsonl is not a default source. Hook UserPromptSubmit records preserve pre-expansion paste markers, but they are classified as hook artifacts rather than converted into stored message has_paste facts. The materializer currently sets has_paste = 0 for every message, so --has-paste/--typed-only are not reliable authored-content boundaries yet.

    Tracked in #944 with the other #415 residuals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:corearea:storagetype:feattype:tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions