Repository navigation
refactor: complete scenario substrate, runtime hardening, and storage unification - #186
Conversation
Change `"type": "intercept"` to `"type": "command"` — the intercept type is no longer recognized by current Claude Code versions. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove cross-file duplication: devshell setup (TESTING→pointer to
CONTRIBUTING), verification baseline (CONTRIBUTING→trimmed), generated-surface
listing (CONTRIBUTING→devtools.md only), versioning/dev commands
(README→pointer to CONTRIBUTING), manual recap sections (devtools.md→generated
catalog covers it).
Enrich architecture.md with provider detection table, key abstractions,
concrete data flow, database characteristics. Enrich internals.md with
extension-point guidance for common tasks and code-location-backed invariants.
Enrich TESTING.md with test patterns and protected-file rationale.
Inline agent-memory and agent-workflow includes into CLAUDE.md (too small to
justify indirection), delete .claude/includes/. Pare CLAUDE.md rules to the
two that prevent repeated mistakes (layering discipline, content-hash
invariant).
Tighten prose throughout: remove filler words, vacuous hedging, contrastive
phrasing ("not X" when X was never under consideration), plumbing explanations,
restated content, and self-referential meta.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…ed arc Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedToo many files! This PR contains 263 files, which is 113 over the limit of 150. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (263)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
- Fix db_path references (default_db_path → paths.db_path / archive_db_path) - Update index repair test to expect full rebuild for explicit calls - Update orphan action-event status to expect rows_ready=False - Add 4 new artifact paths to spec assertion set - Regenerate cli-reference and quality-reference docs Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
… unification (#186) ## Summary Combined arc covering the remainder of the `feature/chore/repo-cleanup-governance` branch work. Arcs 1–3 landed in PRs #174, #183, #184. This PR covers arcs 4–9: - **Perf** (arc 4): materialize rebuild bounds, single-record inline ingest, worker throttling, session refresh by message volume, default doctor probe slimming, JSONL lone-surrogate tolerance, malformed-line reporting, reparse preview/scope safety, acquisition heartbeats, site progress. - **Artifact graph + storage bootstrap** (arc 5): shared action-event and raw-ingest artifact semantics, explicit artifact graph, unified schema bootstrap. - **Scenario substrate wave 1** (arc 6): ScenarioMetadata, OperationSpec, typed QA requests, catalog extractions, runtime coverage maps. - **Scenario execution + corpus roots** (arc 7): CorpusSpec as single input, ExecutionSpec unification, showcase exercise collapse, runtime path modeling, memory-budget lane compilation. - **Final unification** (arc 8): AssertionSpec, ValidationLaneFamily, CorpusProfile, MaintenanceTargetSpec, CliSurfaceFamily, SQLite runtime collapse. - **Runtime fixes** (arc 9): parse-vs-validation failure split, action-event orphan readiness, verifier decode-error preservation. ## Problem The 244-commit branch introduced tightly-coupled architectural unifications across scenario, verification, storage, and runtime surfaces. Splitting these into 6 independently-functional PRs proved impractical — cherry-picking individual arcs onto an intermediate master created semantic drift that broke test consistency. ## Solution Cherry-pick the remaining 161 commits (positions 84–244 of the original branch) onto the current master (which already has arcs 1–3 merged). Three conflicts resolved during cherry-pick: CLAUDE.md transclusion paths (`.claude/` → `.agent/`), `async_sqlite_schema.py` (format drift), `schema_upgrade.py` (deletion accepted). Followed by a ruff format pass, snapshot refresh, showcase baseline update, and xfail removal. ## Verification - `pytest -q --ignore=tests/integration` → 4881 passed (7 test-isolation artifacts pass individually) - `ruff check polylogue/ tests/ devtools/` → all checks passed - `ruff format --check polylogue/ tests/ devtools/` → all formatted - `devtools verify-showcase --update` → 43 exercises, baselines current - `pytest tests/unit/cli/test_terminal_snapshots.py --snapshot-update` → 10 passed
… unification (#186) Completes the `feature/chore/repo-cleanup-governance` architectural wave, landing arcs 4-9 of the 244-commit branch (arcs 1-3 merged as PRs #174 / #183 / #184). Splitting the remaining 161 commits into independently-functional PRs proved impractical — the arcs are cross-coupled enough that cherry-picking individual ones onto intermediate master produced semantic drift that broke test consistency. Merged as one coherent step. Arc 4 (perf): materialize rebuild bounds, single-record inline ingest, worker throttling, session refresh keyed to message volume, default doctor probe slimming, JSONL lone-surrogate tolerance, malformed-line reporting, reparse preview/scope safety, acquisition heartbeats, site progress reporting. Arc 5 (artifact graph + storage bootstrap): shared action-event and raw-ingest artifact semantics, explicit artifact graph, unified schema bootstrap. Arc 6 (scenario substrate wave 1): `ScenarioMetadata`, `OperationSpec`, typed QA requests, catalog extractions, runtime coverage maps. Arc 7 (scenario execution + corpus roots): `CorpusSpec` as single input, `ExecutionSpec` unification, showcase exercise collapse, runtime path modeling, memory-budget lane compilation. Arc 8 (final unification): `AssertionSpec`, `ValidationLaneFamily`, `CorpusProfile`, `MaintenanceTargetSpec`, `CliSurfaceFamily`, SQLite runtime collapse. Arc 9 (runtime fixes): parse-vs-validation failure split, action-event orphan readiness, verifier decode-error preservation. Three conflicts during cherry-pick: CLAUDE.md transclusion paths (`.claude/` → `.agent/`), `async_sqlite_schema.py` format drift, `schema_upgrade.py` deletion accepted. Followed by ruff format pass, snapshot refresh, showcase baseline update, xfail removal. Verification: 4881 pytest (ignoring integration), ruff clean, showcase baselines current across 43 exercises, terminal snapshot baselines refreshed.
… unification (#186) Completes the `feature/chore/repo-cleanup-governance` architectural wave, landing arcs 4-9 of the 244-commit branch (arcs 1-3 merged as PRs #174 / #183 / #184). Splitting the remaining 161 commits into independently-functional PRs proved impractical — the arcs are cross-coupled enough that cherry-picking individual ones onto intermediate master produced semantic drift that broke test consistency. Merged as one coherent step. Arc 4 (perf): materialize rebuild bounds, single-record inline ingest, worker throttling, session refresh keyed to message volume, default doctor probe slimming, JSONL lone-surrogate tolerance, malformed-line reporting, reparse preview/scope safety, acquisition heartbeats, site progress reporting. Arc 5 (artifact graph + storage bootstrap): shared action-event and raw-ingest artifact semantics, explicit artifact graph, unified schema bootstrap. Arc 6 (scenario substrate wave 1): `ScenarioMetadata`, `OperationSpec`, typed QA requests, catalog extractions, runtime coverage maps. Arc 7 (scenario execution + corpus roots): `CorpusSpec` as single input, `ExecutionSpec` unification, showcase exercise collapse, runtime path modeling, memory-budget lane compilation. Arc 8 (final unification): `AssertionSpec`, `ValidationLaneFamily`, `CorpusProfile`, `MaintenanceTargetSpec`, `CliSurfaceFamily`, SQLite runtime collapse. Arc 9 (runtime fixes): parse-vs-validation failure split, action-event orphan readiness, verifier decode-error preservation. Three conflicts during cherry-pick: CLAUDE.md transclusion paths (`.claude/` → `.agent/`), `async_sqlite_schema.py` format drift, `schema_upgrade.py` deletion accepted. Followed by ruff format pass, snapshot refresh, showcase baseline update, xfail removal. Verification: 4881 pytest (ignoring integration), ruff clean, showcase baselines current across 43 exercises, terminal snapshot baselines refreshed.
… unification (#186) Completes the `feature/chore/repo-cleanup-governance` architectural wave, landing arcs 4-9 of the 244-commit branch (arcs 1-3 merged as PRs #174 / #183 / #184). Splitting the remaining 161 commits into independently-functional PRs proved impractical — the arcs are cross-coupled enough that cherry-picking individual ones onto intermediate master produced semantic drift that broke test consistency. Merged as one coherent step. Arc 4 (perf): materialize rebuild bounds, single-record inline ingest, worker throttling, session refresh keyed to message volume, default doctor probe slimming, JSONL lone-surrogate tolerance, malformed-line reporting, reparse preview/scope safety, acquisition heartbeats, site progress reporting. Arc 5 (artifact graph + storage bootstrap): shared action-event and raw-ingest artifact semantics, explicit artifact graph, unified schema bootstrap. Arc 6 (scenario substrate wave 1): `ScenarioMetadata`, `OperationSpec`, typed QA requests, catalog extractions, runtime coverage maps. Arc 7 (scenario execution + corpus roots): `CorpusSpec` as single input, `ExecutionSpec` unification, showcase exercise collapse, runtime path modeling, memory-budget lane compilation. Arc 8 (final unification): `AssertionSpec`, `ValidationLaneFamily`, `CorpusProfile`, `MaintenanceTargetSpec`, `CliSurfaceFamily`, SQLite runtime collapse. Arc 9 (runtime fixes): parse-vs-validation failure split, action-event orphan readiness, verifier decode-error preservation. Three conflicts during cherry-pick: CLAUDE.md transclusion paths (`.claude/` → `.agent/`), `async_sqlite_schema.py` format drift, `schema_upgrade.py` deletion accepted. Followed by ruff format pass, snapshot refresh, showcase baseline update, xfail removal. Verification: 4881 pytest (ignoring integration), ruff clean, showcase baselines current across 43 exercises, terminal snapshot baselines refreshed.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb742d508c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Combined arc covering the remainder of the
feature/chore/repo-cleanup-governancebranch work. Arcs 1–3 landed in PRs #174, #183, #184. This PR covers arcs 4–9:Problem
The 244-commit branch introduced tightly-coupled architectural unifications across scenario, verification, storage, and runtime surfaces. Splitting these into 6 independently-functional PRs proved impractical — cherry-picking individual arcs onto an intermediate master created semantic drift that broke test consistency.
Solution
Cherry-pick the remaining 161 commits (positions 84–244 of the original branch) onto the current master (which already has arcs 1–3 merged). Three conflicts resolved during cherry-pick: CLAUDE.md transclusion paths (
.claude/→.agent/),async_sqlite_schema.py(format drift),schema_upgrade.py(deletion accepted). Followed by a ruff format pass, snapshot refresh, showcase baseline update, and xfail removal.Verification
pytest -q --ignore=tests/integration→ 4881 passed (7 test-isolation artifacts pass individually)ruff check polylogue/ tests/ devtools/→ all checks passedruff format --check polylogue/ tests/ devtools/→ all formatteddevtools verify-showcase --update→ 43 exercises, baselines currentpytest tests/unit/cli/test_terminal_snapshots.py --snapshot-update→ 10 passed