Local pipeline for customizing main.tex to a target job posting with OpenCode.
main.tex: canonical resume sourcecontext/gemini-share-bed999fa3153.summary.md: compact supplemental resume contextcontext/gemini-share-bed999fa3153.md: full transcript for fallback reference only
- Load job text and local resume context.
- Ask OpenCode to propose resume edits.
- Compile with
latexmkoutside OpenCode. - Retry only when compile diagnostics require another edit.
- Run a separate PDF review turn after a successful compile.
- Stop for manual approval before any git commit.
The controller owns deterministic steps such as input loading, compile results, retry limits, artifact paths, and the approval gate. OpenCode owns TeX edit turns and PDF review turns.
The current context policy is summary-first: use the compact Gemini summary in early runs, keep the full transcript path available for escalation, and only promote more transcript content if the first few runs show it is necessary.
See docs/pipeline-architecture.md for the runtime boundary and repo layout.
The minimal TypeScript scaffold, task-3 input loading, task-4 OpenCode preparation, task-5 edit/compile loop, and task-6 PDF review re-entry are in place. The controller now starts or reuses an OpenCode server for live runs, requests a resume edit, compiles with latexmk, sends the compiled PDF back for review, and writes artifacts under artifacts/.
The next pending stage is the manual approval and git commit gate.
