gate1: kernel + sdk skeletons (bootstrap relayflow output)
Merged
KH
3mo ago+10120+10120+01234567890123456789012345678901234567890123456789-2-2-0123456789
First output of the dogfooded build: the gate-1 bootstrap relayflow (workflows/bootstrap-gate1.yaml) produced this diff end to end.
What's here
- kernel/ — relayflowd cargo workspace: pure core (simulated clock, no I/O), append-only fsync'd SQLite journal (INSERT-only, fail-closed), memoized resume, cross-process crash_resume test. cargo test 30/30.
- sdk/ — TS spec types (ladder: deterministic|llm|agent; zero-agent flows legal), YAML→spec compiler (20 malformed-spec rejections), fail-closed JournalClient over unix socket with loopback round-trip test. vitest 41/41.
- kernel/DESIGN.md — journal entry types incl. Appendix A pins, schema, protocol v0.
- docs/bootstrap-report.md — honest run report + next three work packages.
Provenance & review integrity
- Design: claude · kernel: codex · sdk: opencode(glm) · review: claude (after grok — unsupported CLI — and gemini — broken auth — failed; see report).
- Adversarial review attempt 1 found 6 violations; they were repaired; attempt 2 verified fixes → REVIEW_PASSED. Verdict was then independently spot-checked outside the runner (file sizes, INSERT-only journal, core purity, kill test) — all claims held.
- Tests re-run independently by the report step: Rust 30/30, TS 41/41.
Engine findings this run surfaced (for the rulebook)
- Validator passes unknown CLIs at --dry-run; fails 27 min into the run.
- --resume lost the run DB while step outputs existed (best-effort write defect, charter §5) — recovered via --start-from.
- Wave-barrier scheduling idled sdk-tests behind the kernel lane.
- Runner's repair loop re-prompts a reviewer toward its pass token — verdicts after repair need independent verification (done here).
A human merges.
🤖 Generated with Claude Code