Repository navigation
V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) - #190
Conversation
#184-aware) + D-ARCH-1 event-dedupe certification + D-ARCH-2 adjacency-reserve backfill + D-ARCH-3 engine-owned date anchors + how-long-ago operand fix
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR updates finite evidence certification, temporal grounding, query-view persistence, bounded KNN accounting, trajectory-store behavior, and validation reporting. It adds regression coverage for duplicate evidence, sidecar dates, concurrent view changes, deadline handling, adjacency backfill, schema mismatches, and validation results. ChangesV2 behavior updates
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant lcm_compute
participant ground_evidence
participant resolve_occurrence_time_with_trust
participant EngineSidecar
lcm_compute->>ground_evidence: pass engine context
ground_evidence->>resolve_occurrence_time_with_trust: resolve occurrence time
resolve_occurrence_time_with_trust->>EngineSidecar: read session date
EngineSidecar-->>resolve_occurrence_time_with_trust: sidecar date and trust
resolve_occurrence_time_with_trust-->>ground_evidence: grounded temporal metadata
ground_evidence-->>lcm_compute: temporal trust and certification
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Comment |
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: 44ace567b3246f415ef9051b0ab063b7c94a3169 into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +111/-0 | Documentation | Low |
adaptive_retrieval.py |
modified | +11/-2 | Changed file | Low |
evidence_compiler.py |
modified | +1/-1 | Changed file | Moderate: validated P3 finding |
query_view_store.py |
modified | +33/-3 | Changed file | Low |
reasoning.py |
modified | +121/-12 | Changed file | Low |
requirements_compiler.py |
modified | +62/-29 | Changed file | Moderate: validated P2 finding |
tests/test_adaptive_retrieval.py |
modified | +76/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +63/-9 | Test coverage | Low |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +28/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +121/-0 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +147/-0 | Test coverage | Low |
tests/test_vector_store.py |
modified | +67/-2 | Test coverage | Low |
tools.py |
modified | +9/-0 | Changed file | Moderate: validated P3 finding |
trajectory_store.py |
modified | +28/-0 | Changed file | Low |
vector_store.py |
modified | +8/-10 | Changed file | Low |
Review Signal
Validated inline findings: 3 (P0: 0, P1: 0, P2: 1, P3: 2).
Dropped findings before posting: 0. High-severity findings: 0.
Risk Taxonomy
- Proof gap: 2
- Runtime correctness: 1
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44ace567b3
ℹ️ 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".
|
§6e.16 probe evidence (measured, as promised in the PR body — the F44-surface claim is no longer a prediction):
No #171-gate re-run required: the only vector_store change is post-deadline-expiry bookkeeping, now shown measured-equivalent on the gate surface. The CI-red fix round (deadline-guard narrowing + D-ARCH-2 contract test updates) is in flight and will re-validate this probe's tree state if vector_store changes again. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@BATCH-REPORT.md`:
- Around line 27-30: Update every validation command in BATCH-REPORT.md to use
the repository-relative PYTHONPATH invocation, such as PYTHONPATH=. python3 -m
pytest, instead of the author-specific /Volumes/... path. Apply this
consistently to all listed command blocks while preserving their pytest targets
and options.
In `@query_view_store.py`:
- Line 1023: The delta_required construction is duplicated between the pre-check
staleness path and the post-update hit-confirmation path. Extract a shared
helper near the relevant query-view logic, such as _delta_required, to fetch
delta_events, conditionally shape the view using row/version/dependencies and
expected_version, and return QueryViewLookup; replace both duplicated blocks
while preserving their distinct reasons and arguments.
In `@trajectory_store.py`:
- Around line 629-636: Update _validate_existing_schema_version to suppress
sqlite3.OperationalError only when the lcm_trajectory_corpora table is absent;
propagate errors such as a missing schema_version column or other
malformed-table failures. Keep the existing successful query and no-side-effects
preflight behavior unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: a10352fc-6d11-4e61-9047-389c7fa0c878
📒 Files selected for processing (18)
BATCH-REPORT.mdadaptive_retrieval.pyevidence_compiler.pyquery_view_store.pyreasoning.pyrequirements_compiler.pytests/test_adaptive_retrieval.pytests/test_evidence_compiler.pytests/test_evidence_contract.pytests/test_int8_two_stage_knn.pytests/test_prescreen_flip_blackout.pytests/test_query_view_store.pytests/test_reasoning.pytests/test_trajectory_store.pytests/test_vector_store.pytools.pytrajectory_store.pyvector_store.py
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
- GitHub Check: test (3.11)
- GitHub Check: test (3.12)
- GitHub Check: test (3.14)
- GitHub Check: test (3.13)
🧰 Additional context used
🪛 LanguageTool
BATCH-REPORT.md
[style] ~104-~104: ‘first priority’ might be wordy. Consider a shorter alternative.
Context: ...e=false`. - D-ARCH-2: adjacency remains first priority for its reserve; unused slots return to...
(EN_WORDINESS_PREMIUM_FIRST_PRIORITY)
🔇 Additional comments (32)
BATCH-REPORT.md (1)
1-26: LGTM!Also applies to: 31-36, 41-46, 51-56, 61-66, 71-76, 81-84, 89-92, 97-111
trajectory_store.py (2)
595-595: LGTM!
3820-3832: LGTM!tests/test_trajectory_store.py (1)
15-15: LGTM!Also applies to: 110-177, 263-288, 468-519
vector_store.py (2)
2974-2977: LGTM!Also applies to: 3012-3016, 3082-3085, 3123-3127, 3180-3181
3725-3728: LGTM!Also applies to: 3767-3770, 3826-3829, 3864-3869, 3909-3910
tests/test_int8_two_stage_knn.py (1)
259-265: LGTM!Also applies to: 280-280
tests/test_prescreen_flip_blackout.py (1)
205-211: LGTM!tests/test_vector_store.py (1)
700-745: LGTM!Also applies to: 1448-1464, 1475-1475, 1568-1577, 1589-1589, 1615-1631, 1643-1643
tests/test_evidence_compiler.py (1)
448-469: LGTM!evidence_compiler.py (1)
1232-1240: LGTM!requirements_compiler.py (2)
1646-1681: LGTM!Also applies to: 1757-1810, 2182-2185
1825-1857: 🗄️ Data Integrity & IntegrationNo change needed here.
ground_evidencepreserves input order and returns one grounded operand per input item, so thezip(...)key reassignment is stable; the mixed dated/undated branch intentionally usesas_of=Noneand already downgrades the result tofinite_count_uncertified_undated_events.> Likely an incorrect or invalid review comment.tests/test_evidence_contract.py (1)
137-137: LGTM!Also applies to: 162-179, 519-543, 560-565, 567-587, 887-915
adaptive_retrieval.py (2)
1212-1212: LGTM!Also applies to: 1223-1226
1245-1253: LGTM!tests/test_adaptive_retrieval.py (1)
275-349: LGTM!tests/test_query_view_store.py (1)
267-293: LGTM!reasoning.py (10)
16-16: LGTM!
209-224: LGTM! Clean, backward-compatible dataclass extension (new fields carry defaults at the tail of bothGroundedEvidenceandGroundingDecision).
426-433: LGTM! The specific\bhow long ago\bcheck correctly precedes the broaderhow long|time between|...regex at Line 433, so "how long ago" questions route to the new single-operanddate_intervalplan instead of the two-operand one — matches the new planner test and the PR's stated how-long-ago fix.
685-685: LGTM!
808-843: Sidecar-override handling traced and correct.Walked through the sidecar-agrees, sidecar-disagrees, and no-sidecar cases against the new tests:
occurrence_day/evidence_daycorrectly derive from the sidecar-anchoredresolved["event_date"], and theevent_date-mismatch rejection at Lines 836-840 is correctly bypassed only whensession_date_overriddenis true. No issues found.
850-861: LGTM! Theoccurrence_overriddenshort-circuit correctly defers to the sidecar-derivedevidence_day(set upstream fromoccurrence_day) instead of overwriting it with an unverified caller-supplieddate, while still enforcing the original quote/assertion-day check when no override is in effect.
881-884: LGTM! Deriving the source-observed day fromresolved_occurrence.get("session_date")(the actual anchor used, sidecar-preferred) rather than the raw caller-supplied session date is consistent with the sidecar-trust-root design.
932-933: LGTM!
943-988: LGTM! The aggregation is straightforward: anylow_trustoperand pulls the whole decision tolow_trust, otherwise anyengine_sidecaroperand certifies it, and notes are order-preserving deduped.
85-128: 🗄️ Data Integrity & IntegrationNeed a real producer for
_session_occurrence_datesonLCMEngine.
This path drops toanchor_trust="low_trust"whenever the sidecar is missing, so the trust escalation only works if the engine sets that mapping on the live session bootstrap path.tools.py (2)
694-700: LGTM!engineis correctly threaded intoground_evidence, and the newtemporal_certified/temporal_trustfields in the selector stage and final response match the shape asserted in the newtest_reasoning.pycompute tests.Also applies to: 751-760, 834-841
5548-5560: LGTM!engine=engine, session_id=hit.get("session_id")correctly mirrors the same pattern used inreasoning.py's_ground_one(session id sourced from the hit's own row rather than the current active session).tests/test_reasoning.py (2)
86-93: LGTM! Correctly pins down the new single-operanddate_intervalplan for "how long ago" phrasing.
192-303: LGTM! Solid coverage of all three sidecar-trust states (agree, override, absent). The override note text (Lines 265-266) and low-trust note substring (Line 302) both match the exact f-string outputs inreasoning.py'sresolve_occurrence_time.
…nded-but-not-expired scans keep total); composition tests updated to the D-ARCH-2 backfill contract with policy-specific promotions pinned
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
|
§6e.16 probe RE-RUN on the fix-round head (cdc95c1, vector_store changed again): identical result — 0 resident hit-path SQL / 0 COUNT(*) on both trees, top-25 rank-identical vs the recorded control on all probe queries, measured-query p50 360ms (control 430ms). Store shas verified pre/post. Full tables: session-notes/2026-07-30/hermes-pr190-probe/artifacts/PROBE-190-EVIDENCE-R2.md. The F44-surface claim stays measured on the current head. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cdc95c13e6
ℹ️ 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".
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: cdc95c13e688cfa1b7af714c4d3a9661a65cf0a4 into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +152/-0 | Documentation | Low |
adaptive_retrieval.py |
modified | +11/-2 | Changed file | Low |
evidence_compiler.py |
modified | +1/-1 | Changed file | Low |
query_view_store.py |
modified | +33/-3 | Changed file | Low |
reasoning.py |
modified | +121/-12 | Changed file | Low |
requirements_compiler.py |
modified | +62/-29 | Changed file | Low |
tests/test_adaptive_retrieval.py |
modified | +76/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +63/-9 | Test coverage | Low |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +28/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +121/-0 | Test coverage | Low |
tests/test_trajectory_composition_policies.py |
modified | +29/-20 | Test coverage | Low |
tests/test_trajectory_state_semantic_expansion.py |
modified | +19/-8 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +147/-0 | Test coverage | Low |
tests/test_vector_store.py |
modified | +67/-2 | Test coverage | Low |
tools.py |
modified | +9/-0 | Changed file | Low |
trajectory_store.py |
modified | +28/-0 | Changed file | Low |
vector_store.py |
modified | +26/-17 | Changed file | Moderate: validated P2 finding |
Review Signal
Validated inline findings: 1 (P0: 0, P1: 0, P2: 1, P3: 0).
Dropped findings before posting: 0. High-severity findings: 0.
Risk Taxonomy
- Runtime correctness: 1
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
…1 future-evidence leak); table-absent-only preflight suppression; zip strict; date-suffix survives key bounding; certification requires a parsed sidecar; dual dedupe-notion docs
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
requirements_compiler.py (1)
1830-1840: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winPass the engine into finite grounding.
ground_evidence()is called withoutengine=engine, so finite-enumeration operands cannot consume_session_occurrence_dates. Relative events can lose the engine-owned anchor and temporal certification on this path.Proposed fix
grounding = ground_evidence( raw_operands, messages=engine._store, assertions=getattr(engine, "_assertions", None), as_of=question_date_as_of_epoch(contract.question_as_of), + engine=engine, )🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@requirements_compiler.py` around lines 1830 - 1840, Update the ground_evidence call in the finite-grounding flow to pass the current engine via its engine parameter, preserving the existing store, assertions, and as_of arguments so finite-enumeration operands can use _session_occurrence_dates and retain the engine-owned temporal anchor.trajectory_store.py (1)
3823-3835: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winPreserve the ranked per-trajectory cap during reserve backfill.
Lines 3826-3835 append directly from
rowswithout thediversity_cap or 5limit enforced by_select_diverse. If adjacency yields no candidates,include_adjacent=Truecan exceed five hits from one trajectory and diverge from the ranked-only result. Track selected counts and skip ranked rows once their trajectory reaches the applicable cap.Add a regression with more than five lexical candidates from one trajectory and no expandable neighbors.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@trajectory_store.py` around lines 3823 - 3835, Update the adjacency reserve backfill after _select_diverse to enforce the same per-trajectory cap (diversity_cap or 5) as the ranked selection: track counts for selected rows by trajectory and skip rows whose trajectory has reached its cap while filling from rows. Add a regression covering more than five lexical candidates from one trajectory with no expandable neighbors, ensuring include_adjacent=True matches the ranked-only cap.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@BATCH-REPORT.md`:
- Around line 166-169: Reconcile the acceptance-suite totals in BATCH-REPORT.md:
align the line reporting 85 passed with the 81-passed totals at lines 84-87 and
135 by either correcting the count or documenting the four additional targets
that produce the difference, keeping the acceptance gate auditable.
---
Outside diff comments:
In `@requirements_compiler.py`:
- Around line 1830-1840: Update the ground_evidence call in the finite-grounding
flow to pass the current engine via its engine parameter, preserving the
existing store, assertions, and as_of arguments so finite-enumeration operands
can use _session_occurrence_dates and retain the engine-owned temporal anchor.
In `@trajectory_store.py`:
- Around line 3823-3835: Update the adjacency reserve backfill after
_select_diverse to enforce the same per-trajectory cap (diversity_cap or 5) as
the ranked selection: track counts for selected rows by trajectory and skip rows
whose trajectory has reached its cap while filling from rows. Add a regression
covering more than five lexical candidates from one trajectory with no
expandable neighbors, ensuring include_adjacent=True matches the ranked-only
cap.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: b26f94a2-0244-46a5-a2d2-92a8d99f0d52
📒 Files selected for processing (8)
BATCH-REPORT.mdevidence_compiler.pyreasoning.pyrequirements_compiler.pytests/test_evidence_contract.pytests/test_reasoning.pytests/test_trajectory_store.pytrajectory_store.py
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
- GitHub Check: test (3.13)
- GitHub Check: test (3.12)
- GitHub Check: test (3.14)
- GitHub Check: test (3.11)
🧰 Additional context used
🪛 LanguageTool
BATCH-REPORT.md
[style] ~158-~158: Consider using the typographical ellipsis character here instead.
Context: ... the grounding/operand pairing now uses zip(..., strict=True), so cardinality drift fa...
(ELLIPSIS)
🔇 Additional comments (7)
requirements_compiler.py (1)
959-976: LGTM!Also applies to: 1648-1684, 1760-1815
evidence_compiler.py (1)
1233-1242: LGTM!tests/test_evidence_contract.py (1)
163-184: LGTM!Also applies to: 548-649, 960-982
reasoning.py (1)
85-134: LGTM!tests/test_reasoning.py (1)
306-320: LGTM!BATCH-REPORT.md (2)
25-27: MakeAGENT_STUB_PATHreproducible.The commands now avoid a hard-coded machine path, but
${AGENT_STUB_PATH}is not defined in the report. In a standalone checkout, an unset variable expands to an emptyPYTHONPATH, so these commands are still not directly replayable. Define the variable in the documented setup or use a repository-relative/importable invocation.Also applies to: 34-34, 44-44, 54-54, 64-64, 74-74, 84-85, 92-92, 130-130, 162-162
146-161: LGTM!Also applies to: 170-171, 173-175
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: 0c8bea9a19e032b3b1261a8ff3d4931458228d92 into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +187/-0 | Documentation | Low |
adaptive_retrieval.py |
modified | +11/-2 | Changed file | Low |
evidence_compiler.py |
modified | +3/-1 | Changed file | Low |
query_view_store.py |
modified | +33/-3 | Changed file | Low |
reasoning.py |
modified | +127/-12 | Changed file | Low |
requirements_compiler.py |
modified | +70/-36 | Changed file | Moderate: validated P2 finding |
tests/test_adaptive_retrieval.py |
modified | +76/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +133/-12 | Test coverage | Low |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +28/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +139/-0 | Test coverage | Low |
tests/test_trajectory_composition_policies.py |
modified | +29/-20 | Test coverage | Low |
tests/test_trajectory_state_semantic_expansion.py |
modified | +19/-8 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +168/-0 | Test coverage | Low |
tests/test_vector_store.py |
modified | +67/-2 | Test coverage | Low |
tools.py |
modified | +9/-0 | Changed file | Low |
trajectory_store.py |
modified | +31/-0 | Changed file | Low |
vector_store.py |
modified | +26/-17 | Changed file | Moderate: validated P2 finding |
Review Signal
Validated inline findings: 2 (P0: 0, P1: 0, P2: 2, P3: 0).
Dropped findings before posting: 0. High-severity findings: 0.
Risk Taxonomy
- Runtime correctness: 2
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
…CH-1 honesty clause); reserve backfill respects the diversity cap; explicit units honored; caller-deadline deconflated from relative budget (budget-bounded scans keep total); temporal_certified tri-state documented+consumer-verified
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
§6e.16 probe r3 (head 76ba0f6, after the caller-deadline deconflation): unchanged — 0 hit-path SQL / 0 COUNT(*), top-25 rank-identical vs the recorded control on all probe queries, measured p50 350ms (control 430ms). Evidence: session-notes/2026-07-30/hermes-pr190-probe/artifacts/PROBE-190-EVIDENCE-R3.md. The F44-surface property has now been re-measured on every head that touched vector_store (r1/r2/r3). |
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: 76ba0f695f37e55ee73047a957d6814da33ff29c into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +224/-0 | Documentation | Elevated: large change |
adaptive_retrieval.py |
modified | +11/-2 | Changed file | Low |
evidence_compiler.py |
modified | +3/-1 | Changed file | Low |
query_view_store.py |
modified | +33/-3 | Changed file | Low |
reasoning.py |
modified | +172/-28 | Changed file | Elevated: large change |
requirements_compiler.py |
modified | +100/-44 | Changed file | Low |
tests/test_adaptive_retrieval.py |
modified | +76/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +135/-12 | Test coverage | Low |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +28/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +203/-0 | Test coverage | Elevated: large change |
tests/test_trajectory_composition_policies.py |
modified | +29/-20 | Test coverage | Low |
tests/test_trajectory_state_semantic_expansion.py |
modified | +19/-8 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +232/-0 | Test coverage | Elevated: large change |
tests/test_vector_store.py |
modified | +65/-1 | Test coverage | Low |
tools.py |
modified | +12/-0 | Changed file | Low |
trajectory_store.py |
modified | +47/-6 | Changed file | Low |
vector_store.py |
modified | +90/-25 | Changed file | Low |
Review Signal
No validated inline findings.
Dropped findings before posting: 2. High-severity findings: 0.
Risk Taxonomy
No finding categories.
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76ba0f695f
ℹ️ 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".
…=full+total; unavailable-as-of clauses excluded individually (never abort valid enumeration); report count chronology reconciled
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
requirements_compiler.py (1)
1838-1840: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winPass the engine into finite-scan grounding.
The
ground_evidence(...)call immediately above this changed pairing omitsengine=engine, so_ground_onecannot consumeengine._session_occurrence_dates. The laterreplace(..., key=...)only rewrites the dedupe key and cannot repair a sidecar/caller-date mismatch, causing finite counts and grounded temporal metadata to diverge.Proposed fix
grounding = ground_evidence( raw_operands, messages=engine._store, assertions=getattr(engine, "_assertions", None), as_of=question_date_as_of_epoch(contract.question_as_of), + engine=engine, )🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@requirements_compiler.py` around lines 1838 - 1840, Update the nearby ground_evidence(...) call to pass the current engine via engine=engine, ensuring _ground_one can access engine._session_occurrence_dates during finite-scan grounding. Leave the subsequent computed_operands replace(..., key=...) pairing unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@BATCH-REPORT.md`:
- Around line 197-198: Update the focused pytest command in the validation
documentation to use the repository-relative PYTHONPATH invocation, replacing
the operator-specific AGENT_STUB_PATH dependency while preserving the existing
test selections.
- Around line 200-205: Reconcile the Round-3 validation section by making the
reported totals match the commands and test targets shown around the “Round-3
acceptance proof” entries. Add the missing command and target details needed to
substantiate the 60-pass CI total, or correct that total to match the existing
11-pass command; separately document the 91-pass acceptance total and explain
its difference from the 81-test baseline.
In `@vector_store.py`:
- Around line 3124-3138: Consolidate the repeated deadline-aware scanned/total
calculation into one shared helper near the existing KNN result logic. Update
the exact-scan and candidate-enumeration branches in knn(), plus the mirrored
branches in knn_chunks(), to use that helper so scanned remains populated while
total is skipped whenever the caller deadline has expired, preserving the
existing bounded coverage and counting behavior.
---
Outside diff comments:
In `@requirements_compiler.py`:
- Around line 1838-1840: Update the nearby ground_evidence(...) call to pass the
current engine via engine=engine, ensuring _ground_one can access
engine._session_occurrence_dates during finite-scan grounding. Leave the
subsequent computed_operands replace(..., key=...) pairing unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 7ba38b79-722a-4008-84f3-e34a5b4c810f
📒 Files selected for processing (10)
BATCH-REPORT.mdreasoning.pyrequirements_compiler.pytests/test_evidence_contract.pytests/test_reasoning.pytests/test_trajectory_store.pytests/test_vector_store.pytools.pytrajectory_store.pyvector_store.py
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
- GitHub Check: test (3.11)
🔇 Additional comments (11)
BATCH-REPORT.md (1)
177-196: LGTM!Also applies to: 206-213
requirements_compiler.py (2)
10-10: LGTM!Also applies to: 959-976, 1648-1684, 1760-1792, 1801-1815
1842-1858: LGTM!Also applies to: 1884-1911, 2199-2202, 2232-2238
tests/test_evidence_contract.py (1)
11-11: LGTM!Also applies to: 138-138, 163-184, 524-574, 588-651, 951-984
reasoning.py (1)
16-16: LGTM!Also applies to: 85-134, 159-159, 215-230, 431-448, 700-700, 823-827, 840-855, 865-876, 896-899, 947-948, 958-958, 973-1003, 1269-1310
tools.py (1)
696-699: LGTM!Also applies to: 751-763, 840-844, 5558-5563
tests/test_reasoning.py (1)
22-22: LGTM!Also applies to: 87-94, 193-230, 232-267, 268-289, 291-327, 329-363, 365-380, 697-701
vector_store.py (1)
60-71: LGTM!Also applies to: 2260-2447
tests/test_vector_store.py (1)
1426-1484: LGTM!Also applies to: 1553-1592
trajectory_store.py (1)
3765-3770: LGTM!Also applies to: 3823-3846
tests/test_trajectory_store.py (1)
524-586: LGTM!
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7547bf799
ℹ️ 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".
…action stems — negated statements never count as events; certificate initializes every_counted_event_dated on early returns
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
requirements_compiler.py (1)
1824-1828: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winKeep zero-event certificate flags false.
all(...)returnsTruefor an empty operand list, so an all-unavailable scan reportsevery_counted_event_dated=Truedespite having no counted events; this conflicts with the initialized early-return state.
requirements_compiler.py#L1824-L1828: return for an emptyoperandslist before computingevery_counted_event_dated.tests/test_evidence_contract.py#L749-L770: assertevery_counted_event_dated is Falsefor the all-unavailable path.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@requirements_compiler.py` around lines 1824 - 1828, In requirements_compiler.py lines 1824-1828, return the empty-operands result before computing every_counted_event_dated so zero-event certificates retain a false flag; update tests/test_evidence_contract.py lines 749-770 to assert every_counted_event_dated is False for the all-unavailable path.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@requirements_compiler.py`:
- Around line 1701-1705: The negation detector in the event-assertion logic
overmatches unrelated clause tokens and abbreviated contractions. In
requirements_compiler.py lines 1701-1705, update the matching to recognize full
contractions and scope no, none, zero, and without to the event action or
requested unit; in tests/test_evidence_contract.py lines 679-710, add positive
regressions for unrelated “Don” and “no luggage” wording and coverage for
full-contraction cases.
---
Outside diff comments:
In `@requirements_compiler.py`:
- Around line 1824-1828: In requirements_compiler.py lines 1824-1828, return the
empty-operands result before computing every_counted_event_dated so zero-event
certificates retain a false flag; update tests/test_evidence_contract.py lines
749-770 to assert every_counted_event_dated is False for the all-unavailable
path.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 0ef9ad3b-5ee8-4fa5-ba53-1173f10e17ce
📒 Files selected for processing (2)
requirements_compiler.pytests/test_evidence_contract.py
📜 Review details
🔇 Additional comments (2)
requirements_compiler.py (1)
10-10: LGTM!Also applies to: 959-976, 1648-1691, 1744-1745, 1773-1805, 1814-1823, 1846-1876, 1902-1929, 2217-2221, 2251-2257
tests/test_evidence_contract.py (1)
11-11: LGTM!Also applies to: 138-138, 163-184, 524-577, 580-677, 713-748, 1070-1103
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: cbdd4cc2b158c099407e5737c9011e7e11ecb574 into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +365/-0 | Documentation | Elevated: large change |
adaptive_retrieval.py |
modified | +20/-2 | Changed file | Low |
evidence_compiler.py |
modified | +3/-1 | Changed file | Low |
query_view_store.py |
modified | +54/-6 | Changed file | Low |
reasoning.py |
modified | +271/-26 | Changed file | Elevated: large change |
requirements_compiler.py |
modified | +122/-47 | Changed file | Moderate: validated P2 finding |
schemas.py |
modified | +4/-1 | Changed file | Low |
tests/test_adaptive_retrieval.py |
modified | +160/-6 | Test coverage | Low |
tests/test_chunk_vector_store.py |
modified | +74/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +254/-12 | Test coverage | Moderate: validated P3 finding |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_lcm_recall.py |
modified | +75/-0 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +49/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +269/-0 | Test coverage | Elevated: large change |
tests/test_trajectory_composition_policies.py |
modified | +29/-20 | Test coverage | Low |
tests/test_trajectory_state_semantic_expansion.py |
modified | +19/-8 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +232/-0 | Test coverage | Elevated: large change |
tests/test_vector_store.py |
modified | +196/-1 | Test coverage | Low |
tools.py |
modified | +21/-2 | Changed file | Low |
trajectory_store.py |
modified | +47/-6 | Changed file | Low |
vector_store.py |
modified | +139/-55 | Changed file | Low |
Review Signal
Validated inline findings: 4 (P0: 0, P1: 0, P2: 1, P3: 3).
Dropped findings before posting: 0. High-severity findings: 0.
Risk Taxonomy
- API compatibility: 1
- Runtime correctness: 3
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbdd4cc2b1
ℹ️ 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".
…ons only; incidental negatives and proper nouns pass); availability falls through without observed_at; postdated guard precedes epoch return; open-cardinality disclosure asserted; Feb-28 completes leap-day anniversaries
evaOS review status: completedPR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run) evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #190 Review URL: #190 (review) |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Walkthrough
PR: #190 - V2 re-baseline batch: upstream delivery ports + D-ARCH-1/2/3 + how-long-ago fix (merge gated on the paired V2 run)
Head: a3a31dd14f4f13e5542821c10042e2524b2562e7 into main. Review event: COMMENT.
Provider: Unregistered provider id (builtin:zai-coding-plan, zcode (registry miss), model unknown).
Estimated review effort: 5/5 (~70 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|---|---|---|---|
BATCH-REPORT.md |
added | +414/-0 | Documentation | Elevated: large change |
adaptive_retrieval.py |
modified | +20/-2 | Changed file | Low |
evidence_compiler.py |
modified | +3/-1 | Changed file | Low |
query_view_store.py |
modified | +54/-6 | Changed file | Low |
reasoning.py |
modified | +275/-26 | Changed file | Elevated: large change |
requirements_compiler.py |
modified | +154/-53 | Changed file | Moderate: validated P2 finding |
schemas.py |
modified | +4/-1 | Changed file | Low |
tests/test_adaptive_retrieval.py |
modified | +160/-6 | Test coverage | Low |
tests/test_chunk_vector_store.py |
modified | +74/-0 | Test coverage | Low |
tests/test_evidence_compiler.py |
modified | +23/-0 | Test coverage | Low |
tests/test_evidence_contract.py |
modified | +372/-12 | Test coverage | Elevated: large change |
tests/test_int8_two_stage_knn.py |
modified | +8/-1 | Test coverage | Low |
tests/test_lcm_recall.py |
modified | +75/-0 | Test coverage | Low |
tests/test_prescreen_flip_blackout.py |
modified | +7/-0 | Test coverage | Low |
tests/test_query_view_store.py |
modified | +49/-0 | Test coverage | Low |
tests/test_reasoning.py |
modified | +297/-0 | Test coverage | Elevated: large change |
tests/test_trajectory_composition_policies.py |
modified | +29/-20 | Test coverage | Low |
tests/test_trajectory_state_semantic_expansion.py |
modified | +19/-8 | Test coverage | Low |
tests/test_trajectory_store.py |
modified | +232/-0 | Test coverage | Elevated: large change |
tests/test_vector_store.py |
modified | +196/-1 | Test coverage | Low |
tools.py |
modified | +21/-2 | Changed file | Low |
trajectory_store.py |
modified | +47/-6 | Changed file | Low |
vector_store.py |
modified | +139/-55 | Changed file | Low |
Review Signal
Validated inline findings: 1 (P0: 0, P1: 0, P2: 1, P3: 0).
Dropped findings before posting: 0. High-severity findings: 0.
Risk Taxonomy
- Runtime correctness: 1
Validation and Proof
No required validation recommendation selected; rely on existing GitHub checks and human review.
Proof status: not_applicable - No required behavior proof selected for this changed surface.
Profile validation hints: Prefer correctness, security, data-loss, release, and regression findings over style-only feedback.
Profile proof expectations: Look for focused validation, rollback notes, and evidence appropriate to the changed surface.
Related Context
Related issues/PRs: #184, #180, #166.
Suggested labels: docs, tests.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: none
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a3a31dd14f
ℹ️ 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".
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
reasoning.py (1)
123-159: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winCentralize the occurrence-time labels.
reasoning.pystill branches on raw strings (explicit,relative_to_session,relative_expression_without_session_date) that are duplicated inoccurrence_time.py; if either side changes, trust metadata can quietly stay atnot_applicable/None.- Use shared constants/Enum values for the source/reason labels, or raise on unknown
event_time_source, so certification handling cannot drift.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@reasoning.py` around lines 123 - 159, Update the trust-classification logic around the result handling in reasoning.py to reuse the shared occurrence-time source and reason constants or Enum values defined by occurrence_time.py instead of duplicating raw labels. Ensure unknown event_time_source values are rejected rather than silently returning not_applicable/None, while preserving the existing certification behavior for recognized explicit and relative-to-session cases.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@BATCH-REPORT.md`:
- Around line 389-395: Update the Round-7 validation report to distinguish
results requiring the operator-local ci-stub from repository-replayable
local-gate evidence. Either add repository-contained provisioning instructions
or harness artifacts for the missing agent package, or explicitly label the
affected suite results as operator-local and non-replayable; preserve the
reported test outcomes.
In `@requirements_compiler.py`:
- Around line 1701-1733: Cache the regex set built from _unit_forms(unit),
actions, and contraction instead of rebuilding it inside _source_event_clause on
every call. Add an lru_cache-backed helper keyed by unit that returns the
compiled patterns, then make _source_event_clause reuse those patterns while
preserving the existing matching and return behavior.
- Around line 950-955: In the candidate date validation flow, reuse the
successfully parsed result from question_date_as_of_epoch or the corresponding
normalized day instead of calling date.fromisoformat on contract.question_as_of.
Preserve the None boundary behavior and compare event_day against the reused
parsed date without introducing a second strict parse.
---
Outside diff comments:
In `@reasoning.py`:
- Around line 123-159: Update the trust-classification logic around the result
handling in reasoning.py to reuse the shared occurrence-time source and reason
constants or Enum values defined by occurrence_time.py instead of duplicating
raw labels. Ensure unknown event_time_source values are rejected rather than
silently returning not_applicable/None, while preserving the existing
certification behavior for recognized explicit and relative-to-session cases.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 70e165d9-5c39-4667-b580-df3fa4def8ed
📒 Files selected for processing (5)
BATCH-REPORT.mdreasoning.pyrequirements_compiler.pytests/test_evidence_contract.pytests/test_reasoning.py
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
- GitHub Check: test (3.11)
- GitHub Check: test (3.14)
- GitHub Check: test (3.13)
- GitHub Check: test (3.12)
🔇 Additional comments (5)
requirements_compiler.py (1)
1694-1741: Negation scoping and contraction handling verified against test coverage — LGTM.Adjacency-bound negation (requiring
no/none/zero/withoutto sit directly against the action/unit) correctly avoids the previously-flagged false positives ("Don", "Haven", "no luggage") while still rejecting the full contraction/negation set exercised intest_source_event_negation_binds_to_event_action_or_counted_unit.tests/test_evidence_contract.py (2)
166-190: Open-cardinality uncertified-disclosure assertions now present — addresses prior feedback.
finite_coverage is Falseand"UNCERTIFIED" in result["context"]are now asserted, closing the gap flagged in the prior review round.
753-789: New negation and postdated-exclusion regression coverage looks correct.Both the rejected/admitted negation phrase sets and the future-event exclusion scenario line up with the corresponding
requirements_compiler.pylogic.Also applies to: 827-865
reasoning.py (1)
1383-1388: Leap-day anniversary clamping looks correct.
anniversary_day = min(earlier.day, calendar.monthrange(later.year, earlier.month)[1])correctly clamps a Feb-29 anchor to Feb 28 in non-leap years, matching both parametrized cases intest_how_long_ago_years_clamps_leap_day_anniversary.tests/test_reasoning.py (1)
304-330: New leap-day and malformed-sidecar regressions are well-targeted and match implementation.Traced both against
execute_plan's leap-day clamp andresolve_occurrence_time_with_trust's low-trust branch; results align with expectations.Also applies to: 453-473
…51 banked; EINTR continuation + blind-adjudication record + instrument lessons
The single delivery-affecting batch (per D-ARCH-2's sequencing clause)
Five units, built to bench/DECISIONS-R3-UPSTREAM-ARCH.md with zero decision deviations (BATCH-REPORT.md in the tree has the full port table and per-unit test commands):
Measurement contract (declared up front)
Validation so far: 81 spec-acceptance tests + 166 upstream-affected-file tests + focused suites green (agent-stub recipe); Ruff clean.
Summary by CodeRabbit
New Features
Bug Fixes
exact_refand treats undated/unknown-time as uncertified.Documentation
Tests