Skip to content

Preserve review allocations and archived Hosted attribution - #2947

Merged
benhook1013 merged 14 commits into
developfrom
codex/review-allocation-archive-foundation
Oct 3, 2026
Merged

benhook1013 merged 14 commits into
developfrom
codex/review-allocation-archive-foundation

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Reconcile the controller-only review allocation and archived Hosted attribution foundation with current develop, preserving merged policy-only allocation recording, allocation status, and current model guidance.

Implemented boundary

  • Attribute archived addressed-thread updates only against immutable prior provider evidence; support the first sync of a started exact attempt and idempotent replay, while conflicting or ambiguous identities remain fail-closed.
  • Retain a verified already-posted Hosted request awaiting its first acknowledgment within an allocation, using its captured admission anchor. It consumes a result only after attributable completion; unsafe evidence stays uncounted and execution stays held.
  • Reject conflicting allocation arguments before repository reads, preserve custom record paths, and contain optional archive lookup failures.
  • Preserve per-PR/channel counts, durable taper, existing human stops, accepted-fix obligations, and merged allocation status. Recording an allowance remains independent of request admission.

Current head: f86bab77dbd8364ccbb0d1961ee341249c48782a; develop integration: 4394883b43cd3510b12d0803c1ea171dfc8174ae. Unique delta: 10 controller, test and workflow files, 766 added / 39 deleted textual lines. No service, protocol, credential, database migration or shared-controller promotion change belongs to this PR.

Validation

All 1,039 existing test_pr_review*.py tests pass. Affected Python Ruff, git diff --check, and canonical ./gradlew linkCheck lintMarkdown pass. Proof covers first-sync attribution/replay, archived identity mismatches, custom record paths and filesystem failures, posted awaiting-response allocations, non-counting failures/rate limits, and unsupported evidence retained held. Java/service/Docker checks were not run for this controller-only delta. Required exact-head CI remains independently evaluated.

The original unfinished merge worktree is preserved untouched. Its sole unstaged allocation wording clarification is incorporated here; incoming develop changes are retained by normal merge. No shared controller version pin or promotion was changed.

Review evidence and remaining work

Hosted: 0/0/0 on extraction ec1937d109 (10m 25s), checkpoint 5961271732. CLI: 4/4/0 at ec1937d109, 1/1/0 at c4e5ee640, 1/1/0 at 1b7e69464, and 1/1/0 at 5037a4179 (latest checkpoint 5962595061). All accepted corrections are retained. Both CodeRabbit channels remain explicitly human-stopped; their public counts and taper evidence are unchanged. No new provider review was requested.

Two prior fresh whole-boundary Luna preparation passes found one Major first-sync attribution defect and one Minor pending-request allocation defect; both remain corrected with regression proof. Fresh gpt-6.1-sol medium whole-PR pass 1 found 0/0/0 on the previous reconciled head. Pass 2 found one accepted Minor test/accounting gap: unsafe reservation tests omitted required scope timeline evidence and masked reader allocation credit. The fix shares posted-request verification across allocation recording and reading, and the repaired negative tests assert specific held errors and zero credit with complete timelines. All 1,039 tests and three focused pending-request cases pass after the fix. Pass 3 found one accepted Minor recovery defect: exact completed archives were rejected before their source run was linked. The one-line guard correction allows an absent link while rejecting conflicting non-null links. A combined partial-completion/addressed-thread regression proves recovery without live GitHub, exact source linking and replay, plus conflict rejection. Five selected recovery cases and all 1,039 controller tests pass. A fresh whole-PR pass is registered against this corrected head; completion and adjudication remain pending. Model review is supplemental evidence and grants no CodeRabbit taper credit.

PR 2947 is absent from the configured review queue. Required exact-head CI, final whole-PR review findings and merge-gate adjudication remain separate obligations.

FireMUD LOC impact

Compared 4394883b43cd → f86bab77dbd8 (PR merge-base → head).
PR scope: 10 changed files · 766 added textual lines / 39 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 657,496 658,183 +687 +0.1%
 Source 571,388 572,075 +687 +0.1%
  ↳ Code 251,000 251,164 +164 +0.1%
  ↳ Tests 320,388 320,911 +523 +0.2%
 Markdown 57,725 57,725 0 0.0%
 Design 60,489 60,489 0 0.0%
  ↳ Architecture 44,827 44,827 0 0.0%
  ↳ Project management 5,212 5,212 0 0.0%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 6,259 6,259 0 0.0%
  ↳ Product requirements and user journeys 926 926 0 0.0%
  ↳ Developer workflows 460 460 0 0.0%
  ↳ Other design 79 79 0 0.0%

Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 109fd493-d1cd-484d-a983-3f363ea11908

📥 Commits

Reviewing files that changed from the base of the PR and between d80c32a and ec1937d.

📒 Files selected for processing (11)
  • design/developer-workflows/pr-lifecycle.md
  • dev-tools/pr_review/README.md
  • dev-tools/pr_review/cli.py
  • dev-tools/pr_review/controller.py
  • dev-tools/pr_review/hosted.py
  • dev-tools/pr_review/runtime.py
  • dev-tools/pr_review/sqlite_provider_imports.py
  • dev-tools/validation/test_pr_review_cli_runner.py
  • dev-tools/validation/test_pr_review_controller.py
  • dev-tools/validation/test_pr_review_evidence_hosted.py
  • dev-tools/validation/test_pr_review_sqlite_provider_imports.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

⚠️ A high-level summary could not be generated for this review. CodeRabbit will regenerate it on the next update, or you can request a refresh with @coderabbitai summary.

Walkthrough

The pull request adds exact-count allocation grants and renewals. It also adds verification of archived Hosted thread comments so qualifying addressed updates can be attributed without treating them as new review output.

Changes

Allocation renewals and Hosted evidence

Layer / File(s) Summary
Verify archived addressed-thread updates
dev-tools/pr_review/hosted.py, dev-tools/pr_review/runtime.py, dev-tools/pr_review/sqlite_provider_imports.py, dev-tools/validation/test_pr_review_evidence_hosted.py, dev-tools/validation/test_pr_review_sqlite_provider_imports.py
Hosted reply checks compare in-window thread updates against archived comments from verified prior attempts. Runtime and import callers pass repository and PR identity. Tests cover accepted addressed updates and cases that remain ambiguous.
Set and renew exact-count allocations
dev-tools/pr_review/cli.py, dev-tools/pr_review/controller.py, dev-tools/validation/test_pr_review_cli_runner.py, dev-tools/validation/test_pr_review_controller.py, dev-tools/pr_review/README.md, design/developer-workflows/pr-lifecycle.md
The CLI accepts a positive exact additional-completion count. The controller uses it for equal minimum and maximum bounds, preserves taper, and handles verified in-flight requests. Tests and documentation cover renewal and completion-count behavior.

Priority: ⬇️ Low

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to ec193

The changes add exact-count allocation renewals. They also add fail-closed archived Hosted reply attribution. No concrete defect remains from the review, so the change appears mergeable after normal CI.

Security Architecture Review

Security architecture risk: 🔵 Low · up to ec193

The changes remain bounded to individual pull requests and review channels, with substantial identity and evidence checks. No introduced security bypass was established, but finding-clearance and concurrent active-review edge cases remain incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The direct authority exercised by renewal is mutation of one configured PR/channel allocation. Its policy outcome can affect channel queue advancement, while archive attribution is repository/PR scoped. The inspected paths do not establish expanded service, credential, or infrastructure authority.

Security Findings and Attack Paths

  • observed — Ordinary PR-authored comments cannot substitute for the provider-authored terminal reply or archived finding body in this path. Tests keep missing baselines, changed bodies, wrong ending heads, new inline findings, positive finding counts, and incomplete coverage ambiguous.

Trust Boundaries and Controls

  • observed — Archive lookup validates the current attempt's PR, channel, head and trigger identity, then requires prior terminal attributable metadata with matching repository, PR, reviewed head and provider response. Current checkpoint proof separately binds zero counts and the exact response ID to the captured trigger window.

Resilience and Maintainability Implications

  • observed — Although permitted active work can skip the pre-renewal stop audit, both taper termination and cap termination re-run the stop-evidence check. That check examines accepted findings across both channels' histories, including source-resolution evidence, rather than only new allocation results. This counters permanent obligation loss, but does not resolve every intervening admission path.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 35 functions across 9 files. (2 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The description references related pull requests #2939 and #2847 and identifies the relevant design and implementation boundary.
Out of Scope Changes check ✅ Passed The changes remain within the stated controller, Hosted evidence, CLI allocation, documentation, and test scope. The description explicitly excludes service, protocol, credential, activation, runtime …
Title check ✅ Passed The title clearly summarizes the two central changes: preserving review allocations and archived Hosted attribution.
Description check ✅ Passed The description gives a detailed purpose, implementation summary, validation results, and remaining review and CI work. It uses equivalent headings instead of the template headings, but it omits the c…
Full details: Docstring Coverage

Explanation

Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 35 functions across 9 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

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

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@benhook1013

Copy link
Copy Markdown
Owner Author

CLI: 4 found / 4 accepted / 0 routed · ec1937d109a4eaa29ba32f0e843b873273508025 · 11 files · 2m 14s

@benhook1013

Copy link
Copy Markdown
Owner Author

Hosted: 0 found / 0 accepted / 0 routed · ec1937d109a4eaa29ba32f0e843b873273508025 · 11 files · 10m 25s

@benhook1013

Copy link
Copy Markdown
Owner Author

CLI: 1 found / 1 accepted / 0 routed · c4e5ee640808e211eec12dd64909621664b2f7e8 · 12 files · 2m 20s

@benhook1013

Copy link
Copy Markdown
Owner Author

CLI: 1 found / 1 accepted / 0 routed · 1b7e694647a1d9baae7d0134299a0a4545e0580f · 12 files · 1m 50s

@benhook1013

Copy link
Copy Markdown
Owner Author

CLI: 1 found / 1 accepted / 0 routed · 5037a4179efce29405b5ff937ac89a24c48271a7 · 13 files · 2m 15s

@benhook1013
benhook1013 changed the base branch from codex/world-initial-admission-bootstrap to develop October 3, 2026 02:34
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

⏭️ Runtime smoke is not required

  • ✅ Changes detection: success
  • ✅ Smoke Gate: success
  • ⏭️ PR Full-Stack Smoke: skipped (run_smoke_full=false)

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@benhook1013
benhook1013 enabled auto-merge October 3, 2026 03:21
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Validation Summary

✅ All validation checks passed

  • ✅ Validation gate: success
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ✅ Python script validation: success
  • ✅ Dev tool contract checks: success
  • ⏭️ Dev Tools README contract: skipped
  • ✅ YAML lint: success
  • ✅ Metrics cardinality policy check: success
  • ✅ Flyway migration sanity checks: success
  • ✅ gRPC transport configuration sanity checks: success
  • ✅ GitHub workflow lint: success
  • ✅ Helm chart lint: success
  • ✅ Helm render validation: success
  • ✅ Helm transaction proof: success
  • ✅ Validate Documentation: success
  • ⏭️ Frontend checks: skipped
  • ⏭️ Service build/test matrix: skipped

Coverage reports and failure logs are available in the workflow artifacts.

@benhook1013
benhook1013 merged commit 77f5d3f into develop Oct 3, 2026
122 checks passed
@benhook1013
benhook1013 had a problem deploying to trusted-hosted-cluster October 3, 2026 03:29 — with GitHub Actions Failure
@benhook1013
benhook1013 deleted the codex/review-allocation-archive-foundation branch October 3, 2026 03:37

This branch had an error being deployed

1 failed deployment
trusted-hosted-cluster — f86bab77 Deployed Oct 3, 2026 by benhook1013 via Delete Preview Runtime #4479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant