Skip to content

Codex harness capture#7

Merged
dbtlr merged 9 commits into
mainfrom
sga-24-codex-harness-capture
Jun 19, 2026
Merged

Codex harness capture#7
dbtlr merged 9 commits into
mainfrom
sga-24-codex-harness-capture

Conversation

@dbtlr

@dbtlr dbtlr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the first Codex capture slice for Saga:

  • installs, reports, and uninstalls project-local Codex hooks via saga harness install/status/uninstall codex
  • writes a runnable project-local hook shim that calls saga ingest codex-hook
  • records Codex hook payloads as append-only raw events with workspace-scoped idempotency
  • adds saga ingest codex-hook [file|-] and saga ingest recent debug surfaces
  • adds the raw_events table, raw event DB helpers, collector normalization, and raw event contracts
  • hardens install behavior around source binding, migration readiness, malformed hook config, and activation rollback

Validation

  • pnpm --filter @saga/cli test && pnpm --filter @saga/cli check
  • pnpm --filter @saga/collectors test && pnpm --filter @saga/collectors check
  • pnpm --filter @saga/db test && pnpm --filter @saga/db check
  • pnpm exec vp check --fix
  • pnpm run verify
  • pnpm run build
  • local Postgres hook E2E smoke executed the exact installed Codex hook command and verified a persisted codex.Stop raw event
  • adversarial phase reviews were run until no blocking/actionable issues remained

@dbtlr dbtlr marked this pull request as ready for review June 19, 2026 21:23
@dbtlr dbtlr merged commit a7da6c5 into main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant