Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
8.4 KB
Raw Blame

Handoff: GFS Upload v2 — 200 MiB implementation to review and T2

Next Session Focus

Resume from PR #311. Before any review or runtime work, resolve and record the exact current PR/branch head with git rev-parse HEAD and the GitHub PR view; the implementation commit is recorded below and the handoff commits are part of the PR history. First run the read-only review-pr audit against that exact PR/head and close any implementation gaps with complete SOL-reviewed designs, not cyclic patch reviews. If the PR audit passes, continue with the plan's T2 runtime gate on a clearly owned Minikube profile and private Cloudflare-backed development host. Keep production disabled and do not promote or merge without explicit user authorization and exact-head evidence.

Current State

  • Repository: evenfire
  • Branch: codex/gfs-upload-v2-200mib
  • Base: dev at 38be8570239691b9481e6e35ea9648943ce5dcf1
  • Implementation commit: 87140304d3a865bfcc83d287301ee835d709cfcd (feat(gfs): add resumable uploads up to 200 MiB)
  • Local/remote head: verify with git rev-parse HEAD and the PR before work.
  • Pull request: https://github.com/evenfire-ai/evenfire/pull/311; verify its current head before work.
  • PR state: open, base dev, private repository; no merge or deployment claimed.
  • Plan: .ralph/plans/2026-08-10-gfs-upload-v2-200mib-plan.md
  • Implementation notes: .ralph/plans/2026-08-10-gfs-upload-v2-200mib-plan-implementation-notes.html
  • Local implementation index: .ralph/plans/implementation-index.md and .ralph/plans/implementation-index.json

Verified This Turn

  • Final GPT-5.6 Sol max read-only audit: PASS for T0/T1 commit, push, and PR.
  • GFSC: 39 files, 502 passed, 4 skipped; build passed.
  • Control API: 310 files, 3,889 passed, 66 skipped; build passed.
  • External REST API: 24 files, 110 passed; build passed.
  • Control UI: 129 files, 1,284 passed; production build passed.
  • Desktop: 154 files, 1,551 passed; main and renderer builds passed.
  • Real PostgreSQL T1: 10 files, 50 passed using a temporary local PostgreSQL 16 container; the container was stopped after validation. No production or remote runtime was touched by the database test.
  • E2E Guardian static audit passed for the new Control UI and Desktop specs.
  • Dedicated Playwright projects list four Control UI and four Desktop boundary journeys for 209715199 and 209715200 bytes.
  • Fixtures are sparse disk files; the runner and IPC never receive a 200 MiB buffer.
  • git diff --check passed.
  • Desktop resume now validates committed-part geometry, duplicate/range constraints, and local SHA-256 before adoption. A remotely completed session is reconciled without replaying parts or issuing a second completion request after response loss.

From Conversation Only

  • User chose a hard product limit of 200 MiB binary (209,715,200 bytes), with Cloudflare-safe chunks rather than a single large request.
  • User requested private/local work. Port 3000 was occupied; any runtime work must use a profile-owned random port and must remain local/private.
  • User explicitly requested commit, push, PR, and this handoff after T0/T1. They did not authorize production enablement or merge.
  • User requires GPT-5.6 Sol max for architecture/design decisions and complete solutions; Luna-equivalent work must stay within an approved contract. Any plan/state-machine/ownership/limit change requires explicit user approval after Sol review.
  • User does not want new goals generated; continue from the existing approved goal and this handoff.

Needs Re-check

  • Confirm the active worktree, branch, exact HEAD, origin/dev, and PR head before every review/runtime claim.
  • Re-read repository instructions and the approved plan before edits.
  • Query current PR checks/review state and issue ownership/status for #282, #285, #286, and #300; the PR references them without auto-closing because the pre-PR issue query was unavailable from the local environment.
  • For T2, resolve an owned Minikube profile from the repository helper, compare profile/context ownership and pre-gate markers, and use its generated random ports. Do not use fixed shared ports.
  • Resolve the private Cloudflare-backed development endpoint and verify its configured request ceiling before claiming the runtime gate.

Relevant Artifacts

  • .ralph/plans/2026-08-10-gfs-upload-v2-200mib-plan.md
  • .ralph/plans/2026-08-10-gfs-upload-v2-200mib-plan-implementation-notes.html
  • docs/architecture/gfs-upload-v2.md
  • docs/testing/gfs-upload-v2.md
  • scripts/e2e/gfs-upload-v2-gate.sh
  • tools/e2e_static_audit.py
  • control-ui/e2e/gfs-upload-v2.spec.ts
  • desktop-app/test/e2e-playwright/gfs-upload-v2.test.ts
  • desktop-app/src/gfs/upload.ts
  • desktop-app/src/gfs/upload.test.ts
  • .agents/skills/review-pr/SKILL.md (if present in the checkout; otherwise use the global skill path)
  • e2e-test-guardian skill (resolve through the active skills catalog)

Decisions And Constraints

  • Product maximum is exactly 200 MiB binary; protocol maximum is 1 GiB arithmetic safety ceiling; preferred part is 8 MiB and hard part/request maximum is 16 MiB.
  • v2 is additive and capability-gated. Legacy JSON/base64 remains available only within its existing 16 MiB boundary.
  • Every request must be Cloudflare-safe; the 200 MiB value is a file/session limit, not a per-request body limit.
  • Desktop owns file I/O and hashing in the main process; renderer/IPC carries bounded metadata and progress only.
  • Server session state, leases, checksums, idempotency, finalization, cleanup, and writer routing must remain coherent with the approved plan.
  • Do not weaken checks, bypass E2E Guardian rules, add broad mocks, use fixed sleeps, or claim runtime evidence from list/static results.
  • Do not introduce architecture changes, schema/state-machine changes, or limit/rollout deviations without explicit user approval after a complete Sol max design review.

Suggested Skills

  • review-pr for the exact-head PR audit.
  • e2e-test-guardian for any E2E review or runtime test change.
  • Repository Minikube/profile instructions and the approved GFS plan for T2.
  • handoff only if this work pauses again after a material state change.

Next Agent Prompt

Continue the existing GFS Upload v2 200 MiB implementation from this handoff. Locate the canonical evenfire checkout, read AGENTS.md, the approved plan, implementation notes, and PR #311. Verify branch, worktree, HEAD, origin/dev, PR head, and current CI/review state. Do not create a new goal. Run the exact-head review-pr audit read-only first. If it reports a gap, stop and design one complete Sol-reviewed solution within the approved architecture; do not enter a cyclic patch/review loop. After review PASS, execute only the plan-authorized T2 runtime gate using an owned Minikube profile, explicit Kubernetes context, generated random ports, and the private Cloudflare-backed development endpoint. Prove create/replace at 200 MiB, oversize rejection, pause/resume/cancel, restart/response loss, checksum/source mutation, revocation, 4-to-2 fallback, backpressure/RSS, quotas/cleanup, and legacy compatibility as applicable. Keep production and merge out of scope unless the user explicitly authorizes them. Report any blocker immediately with evidence.

Validation Expected

  1. Exact-head PR review with no unresolved Critical/High findings.
  2. T2 profile ownership/pre-gate packet and runtime health evidence.
  3. Real private development journey evidence for Control UI and packaged Desktop.
  4. Failure-injection, restart, backpressure/RSS, concurrency/quota, cleanup, and Cloudflare request-size evidence from the exact pushed head.
  5. Separate T3 packaged-runtime/promotion decision; no production claim from local tests or GitHub CI alone.

Open Questions And Risks

  • PR checks and review outcome were not available at handoff creation; re-query them at the exact PR head.
  • Live issue status/ownership for #282/#285/#286/#300 was not retrievable in the pre-PR sandbox; references remain non-closing until verified.
  • Runtime Cloudflare zone/request-limit configuration is still unverified.
  • Packaged Electron picker/drag-drop, restart/resume persistence, mutation, download-to-disk, and legacy fallback remain runtime/T3 evidence gaps.
  • The Control UI typecheck still has a pre-existing unrelated fixture error in components/__tests__/LlmDiscoveryPanel.test.tsx; production build and the relevant test suites are green, so do not silently relabel that typecheck as green.