Skip to content

refactor: complete scenario substrate, runtime hardening, and storage unification - #186

Merged
Sinity merged 164 commits into
masterfrom
feature/refactor/stack-remaining
Apr 16, 2026
Merged

Sinity merged 164 commits into
masterfrom
feature/refactor/stack-remaining

Conversation

@Sinity

@Sinity Sinity commented Apr 16, 2026

Copy link
Copy Markdown
Owner

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

Sinity and others added 30 commits April 16, 2026 05:51
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]>
@Sinity Sinity added type:fix Bug fix type:refactor Code restructuring type:perf Performance area:pipeline Pipeline area:storage Storage area:qa QA tool:claude Claude labels Apr 16, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Apr 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 263 files, which is 113 over the limit of 150.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 43cfc0ed-6dc8-41be-bb15-dc7e62dfb082

📥 Commits

Reviewing files that changed from the base of the PR and between 9249c67 and e579ed4.

📒 Files selected for processing (263)
  • .claude/settings.json
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • TESTING.md
  • devtools/artifact_graph.py
  • devtools/authored_scenario_catalog.py
  • devtools/benchmark_campaign.py
  • devtools/benchmark_campaigns.py
  • devtools/benchmark_catalog.py
  • devtools/benchmark_models.py
  • devtools/benchmark_scenario_catalog.py
  • devtools/campaign_report.py
  • devtools/command_catalog.py
  • devtools/docs_surface.py
  • devtools/lane_models.py
  • devtools/large_archive_generator.py
  • devtools/mutation_catalog.py
  • devtools/mutation_scenario_catalog.py
  • devtools/mutmut_campaign.py
  • devtools/pipeline_probe.py
  • devtools/quality_registry.py
  • devtools/render_quality_reference.py
  • devtools/run_campaign.py
  • devtools/run_scale_lanes.py
  • devtools/run_validation_lanes.py
  • devtools/scenario_coverage.py
  • devtools/scenario_projection_catalog.py
  • devtools/scenario_projections.py
  • devtools/synthetic_benchmark_catalog.py
  • devtools/synthetic_benchmark_runtime.py
  • devtools/validation_catalog.py
  • devtools/validation_family_models.py
  • devtools/validation_lane_base.py
  • devtools/validation_lane_catalog_composites.py
  • devtools/validation_lane_catalog_contracts.py
  • devtools/validation_lane_catalog_live.py
  • devtools/validation_lane_runtime.py
  • docs/README.md
  • docs/architecture.md
  • docs/cli-reference.md
  • docs/devtools.md
  • docs/internals.md
  • docs/test-quality-workflows.md
  • polylogue/archive_products.py
  • polylogue/artifact_graph.py
  • polylogue/artifacts.py
  • polylogue/cli/check_maintenance.py
  • polylogue/cli/check_options.py
  • polylogue/cli/check_rendering_plain.py
  • polylogue/cli/check_support.py
  • polylogue/cli/check_validation.py
  • polylogue/cli/check_workflow.py
  • polylogue/cli/click_option_groups.py
  • polylogue/cli/commands/generate.py
  • polylogue/cli/commands/products.py
  • polylogue/cli/commands/qa.py
  • polylogue/cli/commands/run.py
  • polylogue/cli/commands/tags.py
  • polylogue/cli/qa_finalization.py
  • polylogue/cli/qa_requests.py
  • polylogue/cli/qa_snapshot.py
  • polylogue/cli/query_verbs.py
  • polylogue/cli/run_execution_workflow.py
  • polylogue/cli/schema_rendering_results.py
  • polylogue/cli/shell_completion_values.py
  • polylogue/health.py
  • polylogue/lib/action_event_fields.py
  • polylogue/lib/attribution.py
  • polylogue/lib/query_retrieval_candidates.py
  • polylogue/lib/raw_payload_decode.py
  • polylogue/lib/repo_identity.py
  • polylogue/lib/viewport_models.py
  • polylogue/lib/viewport_tools.py
  • polylogue/maintenance_targets.py
  • polylogue/operations/__init__.py
  • polylogue/operations/archive.py
  • polylogue/operations/specs.py
  • polylogue/pipeline/run_execution.py
  • polylogue/pipeline/run_planning.py
  • polylogue/pipeline/run_stages.py
  • polylogue/pipeline/services/acquisition.py
  • polylogue/pipeline/services/acquisition_streams.py
  • polylogue/pipeline/services/ingest_batch.py
  • polylogue/pipeline/services/ingest_worker.py
  • polylogue/pipeline/services/planning.py
  • polylogue/pipeline/services/planning_backlog.py
  • polylogue/pipeline/services/planning_runtime.py
  • polylogue/pipeline/services/rendering.py
  • polylogue/pipeline/services/validation_flow.py
  • polylogue/pipeline/services/validation_runtime.py
  • polylogue/pipeline/stage_models.py
  • polylogue/scenarios/__init__.py
  • polylogue/scenarios/assertions.py
  • polylogue/scenarios/cli_surfaces.py
  • polylogue/scenarios/corpus.py
  • polylogue/scenarios/executable.py
  • polylogue/scenarios/execution.py
  • polylogue/scenarios/metadata.py
  • polylogue/scenarios/operational_surfaces.py
  • polylogue/scenarios/product_surfaces.py
  • polylogue/scenarios/projections.py
  • polylogue/scenarios/runtime.py
  • polylogue/scenarios/sources.py
  • polylogue/scenarios/specs.py
  • polylogue/schemas/generation_provider_bundle.py
  • polylogue/schemas/generation_workflow.py
  • polylogue/schemas/operator_inference.py
  • polylogue/schemas/operator_models.py
  • polylogue/schemas/sampling.py
  • polylogue/schemas/sampling_db.py
  • polylogue/schemas/synthetic/core.py
  • polylogue/schemas/synthetic/models.py
  • polylogue/schemas/verification_corpus.py
  • polylogue/showcase/catalog_loader.py
  • polylogue/showcase/cli_boundary.py
  • polylogue/showcase/context.py
  • polylogue/showcase/corpus_requests.py
  • polylogue/showcase/exercise_catalog.json
  • polylogue/showcase/exercise_models.py
  • polylogue/showcase/exercises.py
  • polylogue/showcase/generators.py
  • polylogue/showcase/invariants.py
  • polylogue/showcase/qa_runner.py
  • polylogue/showcase/qa_runner_request.py
  • polylogue/showcase/qa_runner_stages.py
  • polylogue/showcase/qa_runner_workflow.py
  • polylogue/showcase/runner.py
  • polylogue/showcase/showcase_report_payloads.py
  • polylogue/showcase/showcase_report_text.py
  • polylogue/showcase/showcase_runner_support.py
  • polylogue/showcase/vhs.py
  • polylogue/showcase/workspace.py
  • polylogue/site/builder.py
  • polylogue/site/scan.py
  • polylogue/site/site_builder_archive.py
  • polylogue/sources/source_acquisition.py
  • polylogue/storage/action_event_artifacts.py
  • polylogue/storage/action_event_status.py
  • polylogue/storage/backends/async_sqlite.py
  • polylogue/storage/backends/async_sqlite_raw.py
  • polylogue/storage/backends/async_sqlite_schema.py
  • polylogue/storage/backends/connection.py
  • polylogue/storage/backends/queries/conversations_search.py
  • polylogue/storage/backends/queries/raw_state.py
  • polylogue/storage/backends/schema.py
  • polylogue/storage/backends/schema_bootstrap.py
  • polylogue/storage/backends/schema_ddl_archive.py
  • polylogue/storage/backends/schema_ddl_product_aggregates.py
  • polylogue/storage/backends/schema_ddl_product_profiles.py
  • polylogue/storage/backends/schema_ddl_product_timelines.py
  • polylogue/storage/backends/schema_upgrade.py
  • polylogue/storage/blob_store.py
  • polylogue/storage/derived_status.py
  • polylogue/storage/derived_status_products.py
  • polylogue/storage/embedding_stats_support.py
  • polylogue/storage/fts_lifecycle.py
  • polylogue/storage/fts_lifecycle_sql.py
  • polylogue/storage/index.py
  • polylogue/storage/raw_ingest_artifacts.py
  • polylogue/storage/repair.py
  • polylogue/storage/repository_raw.py
  • polylogue/storage/search_providers/sqlite_vec.py
  • polylogue/storage/search_runtime.py
  • polylogue/storage/session_product_rebuild.py
  • polylogue/storage/session_product_status.py
  • polylogue/storage/store_constants.py
  • tests/baselines/showcase/help-audit-generate.txt
  • tests/baselines/showcase/help-open.txt
  • tests/baselines/showcase/help-stats.txt
  • tests/baselines/showcase/help-tags.txt
  • tests/benchmarks/test_pipeline.py
  • tests/conftest.py
  • tests/infra/corpus_fixtures.py
  • tests/infra/strategies/pipeline.py
  • tests/infra/strategies/providers.py
  • tests/integration/test_cli_query_mode.py
  • tests/integration/test_cli_tags_surface.py
  • tests/integration/test_health.py
  • tests/integration/test_schema_operator_workflow.py
  • tests/unit/cli/test_check.py
  • tests/unit/cli/test_check_runtime.py
  • tests/unit/cli/test_click_app.py
  • tests/unit/cli/test_deterministic_output.py
  • tests/unit/cli/test_products.py
  • tests/unit/cli/test_qa.py
  • tests/unit/cli/test_qa_finalization.py
  • tests/unit/cli/test_qa_requests.py
  • tests/unit/cli/test_run.py
  • tests/unit/core/test_artifact_graph.py
  • tests/unit/core/test_artifact_specs.py
  • tests/unit/core/test_health_core.py
  • tests/unit/core/test_maintenance_targets.py
  • tests/unit/core/test_models.py
  • tests/unit/core/test_operator_inference.py
  • tests/unit/core/test_operator_models.py
  • tests/unit/core/test_query_retrieval_candidates.py
  • tests/unit/core/test_raw_payload_decode.py
  • tests/unit/core/test_repo_identity.py
  • tests/unit/core/test_sampling.py
  • tests/unit/core/test_schema_validation.py
  • tests/unit/core/test_semantic_facts.py
  • tests/unit/core/test_synthetic_semantics.py
  • tests/unit/devtools/test_artifact_graph.py
  • tests/unit/devtools/test_authored_scenario_catalog.py
  • tests/unit/devtools/test_benchmark_campaign.py
  • tests/unit/devtools/test_benchmark_campaigns.py
  • tests/unit/devtools/test_campaign_report.py
  • tests/unit/devtools/test_devtools_main.py
  • tests/unit/devtools/test_executable_scenarios.py
  • tests/unit/devtools/test_execution_specs.py
  • tests/unit/devtools/test_large_archive_generator.py
  • tests/unit/devtools/test_mutation_catalog.py
  • tests/unit/devtools/test_pipeline_probe.py
  • tests/unit/devtools/test_quality_registry.py
  • tests/unit/devtools/test_render_devtools_reference.py
  • tests/unit/devtools/test_render_quality_reference.py
  • tests/unit/devtools/test_scale_lanes.py
  • tests/unit/devtools/test_scenario_coverage.py
  • tests/unit/devtools/test_scenario_projections.py
  • tests/unit/devtools/test_validation_family_models.py
  • tests/unit/devtools/test_validation_lanes.py
  • tests/unit/operations/test_specs.py
  • tests/unit/pipeline/test_acquisition_streams.py
  • tests/unit/pipeline/test_ingest_batch.py
  • tests/unit/pipeline/test_parsing_service.py
  • tests/unit/pipeline/test_render_service.py
  • tests/unit/pipeline/test_run_sources.py
  • tests/unit/pipeline/test_stage_independence.py
  • tests/unit/scenarios/test_assertions.py
  • tests/unit/scenarios/test_corpus.py
  • tests/unit/scenarios/test_metadata.py
  • tests/unit/scenarios/test_operational_surfaces.py
  • tests/unit/scenarios/test_product_surfaces.py
  • tests/unit/scenarios/test_runtime.py
  • tests/unit/scenarios/test_scenario_specs.py
  • tests/unit/scenarios/test_sources.py
  • tests/unit/showcase/test_cli_boundary.py
  • tests/unit/showcase/test_exercise_catalog.py
  • tests/unit/showcase/test_generators.py
  • tests/unit/showcase/test_qa_runner.py
  • tests/unit/showcase/test_qa_runner_models.py
  • tests/unit/showcase/test_qa_runner_request.py
  • tests/unit/showcase/test_report.py
  • tests/unit/showcase/test_runner.py
  • tests/unit/showcase/test_scenario_models.py
  • tests/unit/showcase/test_vhs_generation.py
  • tests/unit/showcase/test_workspace.py
  • tests/unit/site/test_builder.py
  • tests/unit/sources/test_parsers_chatgpt.py
  • tests/unit/sources/test_parsers_drive.py
  • tests/unit/sources/test_source_laws.py
  • tests/unit/storage/test_action_event_artifacts.py
  • tests/unit/storage/test_backend.py
  • tests/unit/storage/test_blob_store.py
  • tests/unit/storage/test_derived_status.py
  • tests/unit/storage/test_fts5.py
  • tests/unit/storage/test_index.py
  • tests/unit/storage/test_parse_tracking.py
  • tests/unit/storage/test_raw_ingest_artifacts.py
  • tests/unit/storage/test_repair.py
  • tests/unit/storage/test_store_ops.py
  • tests/unit/test_mutmut_campaign.py

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/stack-remaining

Comment @coderabbitai help to get the list of available commands and usage tips.

Sinity and others added 2 commits April 16, 2026 06:19
- 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]>
@Sinity
Sinity merged commit fb742d5 into master Apr 16, 2026
12 checks passed
@Sinity
Sinity deleted the feature/refactor/stack-remaining branch April 16, 2026 04:46
Sinity added a commit that referenced this pull request Apr 22, 2026
… 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
Sinity added a commit that referenced this pull request Apr 22, 2026
… 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.
Sinity added a commit that referenced this pull request Apr 22, 2026
… 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.
Sinity added a commit that referenced this pull request Apr 22, 2026
… 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.
@Sinity

Sinity commented May 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@Sinity
Sinity requested a review from Copilot May 1, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread polylogue/storage/search_runtime.py Resolved
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:pipeline Pipeline area:qa QA area:storage Storage tool:claude Claude type:fix Bug fix type:perf Performance type:refactor Code restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants