Repository navigation
chore: Move raw materialization and aggregate refresh into canonical de… - #4970
Conversation
….3' into batch/polylogue-20260912-172536-194d428c/integration
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f2e75f9b49
ℹ️ 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".
#5751) ## Summary The daemon's raw-observation and hook-carrier intake callbacks now map a derivation pass to a fair-intake verdict through one helper, `_derivation_admission` (polylogue-1tyq5.130). A discovery failure the kernel records under the domain-wide key `"*"` is retryable, where it was previously acknowledged as a duplicate. An admitted item keeps the byte estimate discovery charged, where it was previously reported as costing one unit. ## Problem Findings from #4970 and #5242, rechecked at master 841bbb3: | Finding | Disposition | | --- | --- | | #4970 `daemon/cli.py:3408`: a domain-level failure is filtered out and reported as DUPLICATE | Fixed here. `admit_raw_intake` kept only outcomes whose key was the raw id, so a `KeyOutcome(key="*", FAILED)` from `run_domain` left `report.done == 0` and returned DUPLICATE. | | #4970 `daemon/cli.py:3428`: `actual_cost=1` refunds the byte deficit | Fixed here. Both callbacks returned `actual_cost=1` for items whose `estimated_cost` is their payload size, so `FairIntakeDispatcher` gave the difference back to the class deficit. | | #4970 `daemon/cli.py:3412`: terminal parse failures are retried forever | Still open, and reproduced at master. An invalid retained payload records a failed membership census, `RawObservationDerivation._inspect` reports `stale`, and the kernel returns FAILED, so intake retries it after every restart. An inspect-level terminal classification was tried here and withdrawn after review. A correct fix must keep transient read errors retryable, retire any output the raw already materialized, and bind the refusal to the origin's parser fingerprint. It stays with polylogue-1tyq5.130. | | #5242 `daemon/cli.py:3018`: an interrupted cold-build begin leaves an orphaned generation | Fixed later in 675a411 (#5619). `ColdBuildGeneration.begin` calls `_reclaim_abandoned_cold_generations`, which discards any inactive cold-build generation before allocating a new one. Evidence: `test_next_build_reclaims_abandoned_inactive_candidate_before_capacity`. | ## Solution - `_derivation_admission(report, key, subject=...)` considers outcomes for the key and for `"*"`, and uses the authoritative failure and pending counts when the retained sample is truncated. It returns ADMITTED or DUPLICATE without `actual_cost`. The raw callback still runs profile convergence after an ADMITTED verdict. `daemon/cli.py` is not in the derived-identity closure (`devtools schema closure`: `out`). ## Verification `agentctl job start polylogue pytest_focused -- tests/unit/daemon/test_derivation_admission.py tests/unit/daemon/test_raw_observation_owner.py tests/unit/daemon/test_raw_materialization_fair_intake.py tests/unit/storage/test_raw_observation_derivation.py` on the pushed head (job 1214): `Success`. Anti-vacuity: - Filtering outcomes to the raw's own key turns the `"*"` case into DUPLICATE. - `actual_cost=1` makes `reconciled_cost` equal `-4095`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
|
Closing out open Codex review threads on this PR (evidence checked against master at ef10e59):
Resolving the fixed, stale and refuted threads; tracked threads stay open. |
|
Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
|
Closing out open Codex review threads on this PR (evidence checked against master at 0914f89):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Batch
polylogue-20260912-172536-194d428con base6e4bab29294e.polylogue-6kur.3 Move raw materialization and aggregate refresh into canonical derivations