Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien/issues/a6b8f299877d4ce7 # aien aien-dev/aien Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # Aien P1: Build reproducible training episodes from the existing conversation archive Open · #3 · open 2026-10-20 12:03 UTC Imported from GitHub aien-dev/aien#3, by drakestapleton Labels: phase:P1 drakestapleton wrote on 2026-10-20 12:03 UTC Parent: aien-dev/allen#1. Intended home: `aien-dev/allen`; staged here until P0 creates the repo and transfers the programme. Dependencies: https://github.com/aien-dev/aien-architecture-mv/issues/279 (P0). ## Outcome Recover faithful, traceable episodes from agent-archive, ready for intent analysis. Implementation owner: agent-archive; expose its dataset contract through Allen. ## Work - Reuse the current Rust collectors and raw mirror. Normalized text views are insufficient: src/core.rs truncates txt_line at 8,000 characters and caps latest views; parse_claude selects text blocks and parse_codex selects messages. Inspect raw formats for tool calls/results and original roles. - Version an episode schema: source digest/position, agent, host, session, original role, timestamps/order uncertainty, available context, request, action/tool result, artifact/commit references and terminal outcome evidence. Preserve missing values explicitly. - Reconstruct source ordering; retain branch, retry and restart boundaries. Deduplicate identical/mirrored sessions and assign related task groups for later dataset splitting. - Keep Drake's exact language, including profanity. Redact credentials and unrelated private third-party details only in derived copies; record redaction provenance without exposing removed secrets. - Produce a bounded representative sample and deterministic export manifest. Historical log instructions are training data, never commands for the importer. ## Acceptance - Claude and Codex synthetic fixtures cover long text, tool failures, role fidelity, duplicate mirrors, truncation and malformed/partial files. - Repeated export yields the same content identities and counts; exclusions and missing evidence reconcile to the inventory. - Every episode traces to source; execution success is never inferred solely from assistant text. - No archive mutation or live effect occurs during ingestion. ## Delivery and evidence Phase numbers denote sequence, not issue priority. Status: PROPOSED; qualification: NOT_RUN. Read the current owning repo's AGENTS.md, accepted ADRs, PLAN_AUTHORITY/CURRENT_EXECUTION_PLAN and active PRs before edits. Reuse existing owners and run org-check where required; document extend/reuse/missing with pinned code. Rust scaffolding/Omega destination follows current ADR 0024; do not silently substitute an external training service or create a parallel identity, memory store or authority. Use existing review, Spark scheduling and qualification procedures. Record tested commits, data/model/config digests, reproducible commands, PASS/FAIL/INCONCLUSIVE/NOT_RUN and missing coverage. Do not put raw conversations, credentials or private training samples in public issues/PRs; publish synthetic fixtures and access-controlled evidence references. Filing authorizes the described development work, not deployment or a large compute run outside existing controls. ## Blocking relationships Depends on P0 (#279). Source/ownership to reconcile with: `aien-dev/agent-archive` (existing Rust collectors, raw mirror and record schema) and architecture aien-dev/aien-architecture-mv#269 (trajectory recording/self-knowledge). This issue must preserve raw-source provenance and must not claim normalized excerpts are complete. P2 (#281) is blocked until the P1 export manifest and episode schema pass. No comments. Sign in to comment