Repository navigation
fix: simplify durable transcript imports - #1838
NicholaiVogel merged 40 commits into
Conversation
|
Repair outcome:
The PR remains open for the requested independent escape review and has not been merged. |
8b28422 to
75d93bb
Compare
|
Repair round complete for PR #1838. Published and verified:
Final exact-head focused verification, run in separate serial Bun processes:
Core and daemon typecheck/builds, dashboard production build, native optimized release build, frozen-lockfile install, changed-file Biome check, and Mutation verification proved the new migration-preservation, purge/append serialization, upload-retry, pending-finalize, byte-boundary, workspace-root, and dashboard duplicate-mode regressions fail when their corresponding fixes are removed and pass after restoration. Requesting a fresh independent escape review at this exact head. Do not merge yet. |
75d93bb to
ff786aa
Compare
|
Repair verification update
Focused verification is green:
Build/static gates are green: core typecheck/build, daemon typecheck/build, native build, changed-file Biome check, and Fresh mutation verification was also completed and restored cleanly:
The full evidence ledger is at |
|
Repair round 4 published at exact head 6921f5b, rebased onto origin/main b325bfc. This round replaces sequential symlink checks with descriptor-held POSIX no-follow traversal for managed transcript filesystem operations, makes omitted-agent purge all-agent through transcript ledgers and files, and makes cancellation cleanup idempotent when a staged parent is already absent. Focused regressions cover final symlinks, replacement between descriptor-held check/use, two-agent omitted-scope purge, ownerless locks, and cancellation cleanup. Verification:
The remote branch and PR head were verified, PR #1838 remains OPEN with mergedAt null, and this PR has not been merged. GitHub checks were still pending at publish time. Please run a fresh independent escape review against this exact head; do not merge until it passes. |
|
Post-publication verification: all 22 GitHub checks for PR #1838 passed, including CodeQL, Biome, daemon production typecheck, migration notes, regression-test, smoke, source-run liveness, native health, compiled macOS/Ubuntu checks, and build-and-deploy. Exact remote head remains 6921f5b; PR state remains OPEN with mergedAt null. Fresh independent escape review is still required; do not merge. |
|
Round 6 repair complete.
Exact published head: 162e77d Verification: focused daemon suites, event-loop audit, changed-file Biome, core typecheck/build, daemon typecheck/build, native release build, and git diff checks pass. Both new mutations failed their intended regression tests and restored runs are green. All 22 GitHub checks pass. PR remains open and unmerged; ready for fresh independent escape review. |
|
Repair handoff evidence for the fresh review
Final worktree verification:
Mutation evidence:
No merge was performed. This is ready for an independent escape review at the exact head above. |
Reconcile current main, consolidate import creation and controls, and remove unused owner protocol executors. Preserve pending cancellation and enforce streamed HTTP body limits at the owning boundary. Assisted-by: Codex:GPT-6
34a4772 to
831a78e
Compare
Summary
Adds durable, agent-scoped JSONL transcript imports through the daemon, CLI, and dashboard. Imports retain their source evidence and provenance, resume after interruption, reconcile duplicates and rejections, and remain purgeable through the source lifecycle. Linux and macOS use descriptor-relative filesystem guards; unsupported platforms fail before mutation.
Job creation and start/pause/resume/retry/cancel now share the import store's database-owner transaction path. Duplicate route SQL, unused protocol executors, and unused helpers are removed. A pending cancellation survives a later pause request. Hono bounds ordinary request bodies, including chunked bodies; transcript uploads retain their own streaming limit without being cut off by the ordinary 10 MB ceiling.
Verification
Rebased onto main at
dc958ad71c955fd9c2366a858d22011b077bd1f2; current head is831a78e852acc72816ace45241ba96d3d9495faf. After rebasing, 41 focused route, HTTP body-limit, memory-candidate, and audit tests passed, along with daemon typecheck, event-loop audit, andgit diff --check. The simplification is preserved; other changed files match main, with the generated audit baseline refreshed.The broader verification below was completed on pre-rebase head
34a477294fe77306171d971a29a0dab16f47ac96:git diff --checkpassed.Migration notes
Migrations 146–149 add import ledgers, replay-slot indexing, attempt provenance, and control/retry fields. Migration 147 remains additive and does not rebuild the replay-file table or delete existing records. Repeated migration and preservation checks pass. Roll back application code without dropping the additive tables/columns; retain import evidence and ledgers for a forward repair. This change does not renumber existing migrations.
PR Readiness (MANDATORY)
INDEX.md+dependencies.yaml)AI-assisted implementation and verification with Codex. This PR has not been merged.