Skip to content

atlas(#14128 gap): conversation-export session adapters have no staging counterpart — atlas-ingest.py not yet retired #14162

Done

Description

@dezren39

Follow-up to #14128 (atlas-ingest.py coverage verification, slice of #5670 §8).

Gap

atlas-ingest.py (hatch-personal @ 9102b05) contains 9 conversation-export session adapters (ingest_conversation_export* family) with no counterpart in pkgs/atlas-search (checked crates/atlas-core/src/aggregate.rs, crates/atlas-embed/src/lib.rs, book/design/automatic-ingest.md:107, book/concepts/ingest.md:93). The unbuilt session-close hook is recorded in the same books.

Why this blocks retirement

Per #14128 acceptance, a script with any unmapped function stays live. embed_pass3.py and embed_onnx.py are fully covered and retired in dezren39/hatch-personal#89; atlas-ingest.py is NOT retired until these 9 adapters land in the Rust aggregator or are explicitly scoped out.

Next step

Port the 9 adapters to the aggregator staging path, or record a design decision scoping them out, then retire atlas-ingest.py.

Refs #14128
Related program: #5670 §8
Lane: oc-code-04 residual (filed from task 21684 verification 2026-11-24)

Acceptance criteria

  • Conversation-export session adapters in atlas have a staging counterpart, or the gap is closed by an explicit recorded decision that staging is not required for these adapters.
  • The staging path (or the decision record) is linked from the issue before it closes.
  • No production export behaviour changes as part of closing the staging gap.

(Acceptance criteria appended by the fleet monitor at intake, 2026-11-27; original body preserved verbatim above.)

Activity

  1. added
    task/small-fix
    epic/atlas-program
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict (oc-code-04, queue task 22532, 2026-11-24): still open and unresolved. The gap is that conversation-export session adapters have no staging counterpart, so atlas-ingest.py is not yet retired. No code packet routed from this pass; tracked under #14158. Not closed.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Sizing spike (lane code-h, task 22568, 2026-11-24): full 9-adapter Rust port does not fit this claim; parking with a sliced resume plan. Inventory of atlas-ingest.py (hatch-personal workspace/turso-atlas/scripts, 504 lines):

    Implemented (5): muse (agent JSONL, both message shapes), chatgpt (export zip/folder + mapping-chain walk), claude (conversations.json), opencode (SQLite v2 + legacy fallback + old JSON layout; covers OpenChamber, same store), antigravity (brain transcript JSONL + protobuf title decode).
    Template/stub (4): claude-code, codex, copilot (formats guessed, unvalidated); gemini (yields nothing — Takeout parser TODO).
    Shared core every port needs: store_session sid scheme (client:sess_id), message/chunk id hashing, chunk_text splitter, KEEP_ROLES filter.

    No counterpart exists in pkgs/atlas-search (grep for conversation_export/session_adapter/ingest_conversation: zero hits); staging tier (atlas_stage v1, stage_artifact, registry) exists and is the sink. Constraint: #9097 (thinking-trace ingest undecided) bounds what may be staged.

    Proposed slices: (1) shared session-staging core in atlas-core with tests; (2-6) one port slice per implemented adapter with golden fixtures; (7) validate-then-port the 4 templates against real exports; (8) cutover: retire atlas-ingest.py + update #5670 §8 row. Task 22568 parked with this resume condition.

  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Progress note — lane xaltha, hourly work-loop 2026-11-24 ~17:55 CST (slice 1 attempt: shared session-staging core).

    Status: blocked on source access, no PR. Branch pushed for resume: xaltha/14162-session-staging-core (empty, at origin/main 0a13639); worktree code-14162 on this seat.

    Blocker: slice 1 must faithfully reproduce atlas-ingest.py's shared core semantics — store_session sid scheme (client:sess_id), message/chunk id hashing, chunk_text splitter, and the KEEP_ROLES filter (per lane code-h's sizing spike, task 22568). The script lives in dezren39/hatch-personal (workspace/turso-atlas/scripts, 504 lines @ 9102b05), which is not cloned on this seat, and the pooled fleet gh contents API for that path/ref returns 404. Porting invented hash/chunk semantics would bake a wrong contract into atlas-core that adapter slices 2–6 would then have to break, so this lane did not guess.

    Resume condition (any one):

    1. Vendor atlas-ingest.py (or its core functions) into this repo, e.g. under pkgs/atlas-search/book/ or as a fixture source, or
    2. Post the core excerpts on this issue: store_session, the id-hash function, chunk_text, and KEEP_ROLES.

    With the source in hand, slice 1 is: a session_stage module in atlas-core implementing that core against the existing atlas_stage v1 sink (stage.rs), with unit tests mirroring the Python behaviour.

  6. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Re-check — lane xaltha, hourly work-loop 2026-11-24 ~22:05 CST: handed again via fleet agent next; status unchanged from my 17:55 CST note above — still blocked on source access to atlas-ingest.py's shared core (resume conditions 1–2 in that note still stand). No PR; branch xaltha/14162-session-staging-core remains pushed for resume.

  7. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Resumed slice 1 for task 22568 on lane agent-next-25-local. I recovered the source atlas-ingest.py from the connected GitHub repository and verified the shared contract (client:sess_id, SHA-256 message/chunk hashes, 3,500-character chunking, and user/assistant/human role filter). I am implementing the shared Rust staging core against the existing atlas_stage v1 sink; adapter ports remain later slices.

  8. added
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 25, 2026
  9. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · <state: picked up>

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 08:14 CST
    • Found via: monitor reconciliation
    • Task: Label/state reconciliation: task 22568 is claimed with a live lease in repo-health-code-pilot, but the issue labels did not mirror the claim. Labels synced to the truth: queue/claimed + work/assigned + status/in-progress (as applicable).
  10. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Verification follow-up (xaltha lane, 2026-11-25 ~08:41 CST hourly loop):

    • The verification run named in this PR's body — run 45615967593 on developing-today-forks/fleet (cargo test -p atlas-core --lib session_stage::tests, branch xaltha/14162-session-staging-core, head bcaa7a252) — completed with conclusion failure (2026-11-25T12:40:09Z–12:43:43Z). Conclusion/metadata only were read; no CI logs were read.
    • A fresh verification has been dispatched via the fleet-command.yml fallback on developing-today/fleet against the same branch/head, using the corrected fleet-build runner form (CARGO_HOME=/tmp/vscode-cargo override): run 45638021492, status in_progress at dispatch — https://github.com/developing-today/fleet/actions/runs/45638021492
    • Command: cargo test -p atlas-core --lib session_stage (in pkgs/atlas-search nix dev shell). PR feat(atlas): add shared conversation session staging core #15093 is not verified-green yet; the next lane should read run 45638021492's conclusion when it completes.
  11. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Verification follow-up (xaltha lane, 2026-11-25 ~09:44 CST hourly loop):

    • The re-dispatched verification run announced in the previous note — run 45638021492 on developing-today/fleet (fleet-command.yml fallback, cargo test -p atlas-core --lib session_stage in pkgs/atlas-search nix dev shell, branch xaltha/14162-session-staging-core) — has completed with conclusion failure (created 2026-11-25T14:48:06Z, completed/updated 2026-11-25T14:52:49Z): https://github.com/developing-today/fleet/actions/runs/45638021492
    • Conclusion/metadata only were read; no CI logs were read.
    • PR feat(atlas): add shared conversation session staging core #15093 is not verified-green. Identifying the failing step requires reading that run's CI logs, which is a distinct execution-risk class outside the blanket routine fetch/checkout approval — that step needs a specific log-read go-ahead before any lane diagnoses or fixes from the log content.
  12. 23 remaining items

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Correction to the note above: the Claude-export slice PR is #16688 (#16688), not #16684 — the number in the previous comment was written before the create returned. Everything else in that note stands.

  14. added a commit that references this issue on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · third slice landed — Felix lane (worker felix), 2026-11-29

    PR #16701 (#16701, branch felix/14162-antigravity-adapter, head 9bc60af, unmerged for review): Antigravity (agy CLI) adapter ported to atlas-core (crates/atlas-core/src/antigravity.rs), including the schema-less protobuf title walk. Verification: fleet-command run 46248662402 at exact head — cargo test -p atlas-core --lib antigravity: 4 passed / 0 failed.

    Adapters status: muse ✅ (#15659), chatgpt ✅ (#16682 pending), claude ✅ (#16688 pending), antigravity ✅ (this PR, pending). Remaining: opencode (implemented in Python — JSON + SQLite layouts); claude-code, codex, copilot, gemini (Python templates).

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · fourth slice claimed — Felix lane (worker felix), 2026-11-29

    Taking the opencode adapter — the last Python-implemented adapter without a staging counterpart. Scope per adapt_opencode in atlas-ingest.py: all three layouts (SQLite v2 session_v2/session_message with legacy fallback for unmigrated session ids; SQLite legacy session/message/part; JSON storage/session + storage/message tree), epoch-ms → ISO-8601 UTC timestamps, text-parts-only staging. No new dependencies (rusqlite is already an atlas-core dependency; the ISO conversion is hand-rolled to match Python datetime.isoformat() exactly).

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · fourth slice open for review — Felix lane (worker felix), 2026-11-29

    PR #16758 — #16758 — ports adapt_opencode, the last Python-implemented adapter: all three layouts (SQLite v2 authoritative + legacy fallback for unmigrated ids, SQLite legacy, JSON storage tree), epoch-ms → ISO-8601 UTC matching Python isoformat() exactly, no new dependencies (rusqlite was already present).

    Verification (remote, fleet-command run 46258543676): cargo test -p atlas-core --lib opencode — 5 passed / 0 failed, 320 filtered out. Two earlier runs on the branch caught compile errors in the new code, both fixed in-branch (46251956033, 46253773584).

    Implemented adapters now covered: muse, chatgpt (PR #16682), claude export (PR #16688), antigravity (PR #16701), opencode (PR #16758). Remaining: the template adapters (claude-code, codex, copilot — defined shapes in the Python; gemini is a stub that yields nothing) and the atlas-ingest.py retirement under #14128.

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · fifth slice claimed — Felix lane (worker felix), 2026-11-29

    Taking the four template adapters in one slice: claude-code, codex, copilot (all fully written in the Python despite the TEMPLATE label — glob + record shapes defined) and gemini (a stub that yields nothing; its counterpart records that behaviour explicitly). After this slice every adapter named on this issue has a staging counterpart.

  19. added a commit that references this issue on Nov 29, 2026
  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · fifth slice open for review — Felix lane (worker felix), 2026-11-29

    PR #16767 — #16767 — ports the four template adapters: claude-code, codex, copilot (all fully written in the Python despite the TEMPLATE label), and gemini (a stub yielding nothing; its counterpart records that as an explicit empty input). Every adapter named on this issue now has a staging counterpart across PRs #16682, #16688, #16701, #16758, #16767.

    Verification (remote, fleet-command run 46261305223, completed success): four filtered cargo test -p atlas-core --lib invocations, all green — claude_code 2 passed, codex 2 passed, copilot 2 passed, gemini suite ok; 0 failed in each.

    Remaining on #14162: nothing adapter-side. The atlas-ingest.py retirement itself is tracked by #14128.

  21. added a commit that references this issue on Nov 29, 2026
  22. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict — Xaltha lane 0647-L17 (queue task 25493), 2026-11-29

    Validated live: every conversation-export session adapter named on this issue now has a merged staging counterpart in atlas-core —

    Acceptance check: (1) staging counterparts exist for all 9 adapters ✅; (2) the staging PRs are linked from this issue (Felix lane notes above) ✅; (3) the ports are staging-path additions only — no production export behaviour change ✅.

    Closing as complete. The atlas-ingest.py retirement itself remains tracked by #14128, per the Felix note above — nothing adapter-side remains here.

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

    effort/mepic/atlas-programmeta/enrichedpriority/normalstatus/in-progresstask/small-fixwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions