Complete assignment thoroughly: Target Inventory what preloop (this repo,…
- User
Complete assignment thoroughly:
Target
Inventory what
preloop(this repo, /Users/bnjoroge/preloop) ALREADY has, so we can map RWX features onto it without duplicating. Readdocs/architecture.md,docs/fidelity-gap.md,docs/debug-sessions.md, all other files indocs/,justfile,Cargo.tomlworkspace members, and skim the crate roots listed in AGENTS.md.Change
Read-only. Produce a capability inventory covering:
- Crate/module map: what each crate owns; where the workflow parser, DAG/matrix expansion, expression evaluator, scheduler/queue, store, and VM/runner launch live (file paths + key types/functions).
- Existing native REST surface (
/api/v1/...) — enumerate routes from the server crate. - Caching: what
preloop-cachedoes today (GHA cache protocol? keys? storage layout?). - Artifacts:
preloop-artifactsbehavior. - VM/microVM layer: how smolvm/libkrun VMs are created, whether there is a warm pool, snapshotting, image/rootfs handling, per-job vs per-step isolation,
--preserve-on-failure,preloop shell. - Debug sessions + DAP bridge: what exists per
docs/debug-sessions.md, the session state machine, retry-from-step,:sync,:export. - Scheduling/concurrency: how jobs are queued/dispatched, runner pool sizing (
PRELOOP_RUNNER_POOL_SIZE), any dependency-aware scheduling beyond GHAneeds. - Test/CI intelligence: any existing test-result parsing, flake detection, partitioning, timing history (likely none — confirm).
- Store schema: tables in
store.rsMIGRATIONS (list them) — what history we already persist (runs, jobs, steps, timings?). - Extension points: where a new native API/feature would plug in (router, state.rs::emit, event broadcast, store trait).
Acceptance
Return markdown with the above sections, each claim backed by
path:linereferences. Explicitly list what does NOT exist yet. No edits, no builds, no test runs. Assistant
Assistant