Skip to content

fix(context): preserve bounded PR thread hydration through partial API failure #1407

Closed

Description

@EffortlessSteven

Bounded current-product defect under #840/#1339; source-only consumers #76/#806. Reserved writer: delegated thread 01a0f5ca-1f3e-7133-89f1-64b544b500c0, 2026-10-13.

Source: main 2fae0dc, src/pr_thread_context.rs. read_github_pr_thread_context uses ? across three independent first-page endpoints, so a later endpoint failure discards earlier successful issue/review context. Its pre-bounded API text discards the truncation flag, and wait_with_output has no response byte bound.

One-PR repair: retain successful endpoint records with original IDs/anchors/head bindings; record failed endpoint and actionable retry/coverage warning; propagate text truncation truth; bound API response capture and endpoint count/time without changing shared delivery/CI fetch semantics. Exercise actual run --dry-run --model-mode off on a real small Git codebase with local HTTP fixtures, including later-endpoint failure/recovery, malformed and oversized responses, short output budgets, and original identity controls. Measure one serial fixture's CPU/RSS/storage; no fifty-lane capacity claim.

Ownership: refreshed all 40 open PR changed-file inventories and targeted thread-context/truncation issue searches; no PR touches pr_thread_context.rs and no dedicated defect owner found. Preserve #1317 delivery, #1352 gate truth, #1374 graph replay, #1013/#1014 judgment, #1334/#1335/#1338 standalone contracts and #1349 pending architecture ruling. New tests will use their own integration-test file; no shared main.rs or tests/cli.rs writes.

No new credentials/providers, candidate compilation/execution, proof dispatch, gate authority, release/deployment, workflow/permission/pin/threshold/suppression changes. run --dry-run packet construction is not semantic review or CI acceptance. Source-level engineering qualification compiles ub-review itself separately and serially.

Acceptance: tests-first actual RED; exact partial/recovered output; unavailable never clean; bounded capture including absent Content-Length; declared first-page scope; independent exact-head review; baseline and required check qualification before eligible protected merge.

Activity

  1. EffortlessSteven commented on Oct 13, 2026

    @EffortlessSteven
    MemberAuthor

    Implemented and independently source-reviewed in Draft PR #1410, exact head 95755e9/tree 37fb49d402459d09a78b6e497d2778b1b3735a6f. Original RED, seven actual-CLI GREEN regressions, compiled denial-stop mutant, full serial baseline, staged exact-tree precommit and hosted independent baseline are retained. Current-head PR/issue/diff hydration runs with Git/curl-only PATH, zero model/proof work and verified artifacts; semantic review/CI sufficiency/capacity remain separate.

    Required gate 38333656197 is terminal failure on synthetic merge 6fba718, PR head 95755e9: RIPR 120/max0. Artifact contract passed; shadow projection has separate contradictions. Artifact 11784192958 returned a reusable reference, but workspace materialization was denied with Tunnel connection failed: 403 Forbidden. Transfer stopped; original 120 rows remain uninspected. No threshold, suppression, policy exception, blind CI rerun, Ready or merge.

    A distinct released-asset RIPR 0.10.0 observation on PR-head tree reports 129 gaps: the recovered human projection contains 53 rows in src/pr_thread_context.rs and 76 in tests/pr_context_hydration.rs (117 weakly_exposed, 2 reachable_unrevealed, 10 no_static_path). Some declaration rows have owner absent and no_changed_rust_line, but that does not disposition the original CI rows. Archive SHA256 3a75096539009bbfca879de4b66aaf036004287a32348b7e224f90741255a742; binary SHA256 9553dd1608a0c9486f38d6b156250b0c7847bb5f6df8d99633877e01d9d9fcc0; exact diff SHA256 c9288c763546682c766225879d6d164a869b8aa1b1421b18e59ff534cc715f3b. Full JSON hit the 64 MiB output guard and remains invalid partial evidence; human recovery took 2.62s, max wait4 RSS 360,924 KiB, output 1,578,883 bytes. No original-artifact equivalence is claimed. The 129 versus 120 difference is unexplained.

    Parent has been informed before any shared repair: #1411 also reports 95/max0 with uninspected archived rows. A shared cause is not established; preserve the existing analyzer-comparison/pin and source owners. Next: approved original-artifact access restored by its authorized owner, exact-row attribution/qualification under existing analyzer authority, then ordinary Ready and eligible protected merge. Current source, original receipts, failed/recovered packets and terminal commands are retained at /workspace/evidence-1407 and /workspace/review-evidence-1407; local paths are not hosted artifacts.

  2. EffortlessSteven commented on Oct 13, 2026

    @EffortlessSteven
    MemberAuthor

    The #1410 continuation is published at 325fba1, tree cdbc87c5d9adcb8e481ee4c24eeee02ea3c165d8, with the same three source/test/doc paths and unchanged policy.

    Local diagnosis produced two demonstrated hydration defects, both repaired: null/scalar admitted entries fabricated unknown-thread records, and curl buffering delayed cap+1 overflow closeout until EOF. Tests-first public-CLI failures are retained. Eleven CLI controls and the serial workspace baseline pass (1,267 top-level tests, one nested, one intentional ignore); staged exact-tree precommit passes its available checks. Fresh independent review passes all eleven controls and rejects four compiled regressions, then restores pristine source/binary. The initially uncompiled read-to-EOF experiment is excluded from discrimination evidence.

    Keep Draft. Current hosted independent baseline passes, while required gate fails RIPR 202/max0 on synthetic merge 021d1eab7bdf482bb5922cbd80681c345e90ae7e; artifact verification passes. Native job log is retained. No new archive download or blind retry was attempted. The original 120-row artifact transfer remains denied and its original rows uninspected.

    The distinct pinned release binary's complete local human projection at this head reports 211 gaps / 142 unknowns, split 54 production and 157 fixture rows. This is neither a reconstruction nor row mapping of the hosted 202. The historical 129-row observation retains its original 95755e9 identity.

    Two precise analyzer examples merit existing upstream-owner investigation:

    src/pr_thread_context.rs:129
    before: String::from_utf8_lossy(&output.stderr),
    after:  pub(crate) warnings: Vec<String>,
    family: call_deletion
    no_static_path; stop reason: no_changed_rust_line
    
    tests/pr_context_hydration.rs:167
    after: )?;
    owner: tests/pr_context_hydration.rs::hydrate
    reachable_unrevealed; named actual-CLI controls use none unknown oracle
    

    The first pairs an unrelated removed expression with a struct declaration; it does not establish the attributed deleted-call semantics. The second requires separating expression boundaries, test-source roles/reach and fallible ensure! oracle extraction. Actual RED/GREEN and compiled controls supply runtime discrimination, but do not establish that every static row is unsupported.

    Route these examples through existing RIPR #1453 (test roles/reach/fallible oracles), #1454 (bounded subprocess adapters), and #1715 (expression boundaries, preserving its dependencies). No shared cause with #1411 has been established; coordinate before a shared repair. No suppression, baseline refresh, threshold, workflow or policy adjustment.

    Local evidence identities:

    • RIPR binary SHA256: 9553dd1608a0c9486f38d6b156250b0c7847bb5f6df8d99633877e01d9d9fcc0
    • Exact local diff SHA256: ff4896e584ebfd6b35219e396584a5924d35baefd94ca4b1cd5e2c921d690033
    • Complete human output SHA256: 1b121c24c48abe4b0af810601786f24ab54d79364e83a280382944bf9843c83d
    • Source mapping example SHA256: 1c63a4cf637dbdf99c06860bb4dd76877a35189ef0430b0a13b5e3baed9ea477
    • Helper/oracle example SHA256: deabc1b8445a87f86560326e19b5d90e3f2777656d355fab4c95f38ae8ca504e

    Retained originals and receipts are under /workspace/evidence-1407/ and /workspace/review-evidence-1407/final-325fba1/. These local paths are not hosted downloads. Current compiler-free connected-snapshot replay takes 0.135s wall, 0.125s CPU, 16,836 KiB largest-process RSS and 975,369 packet bytes across 235 files. It establishes artifact construction with no project compilation/model proof, not semantic tower judgment, live-provider acceptance or fifty-lane capacity.

    Remaining integration obligations: required-gate finding disposition under original identities and existing owners, required-check resolution, then normal Ready/eligible protected merge.

  3. EffortlessSteven commented on Oct 13, 2026

    @EffortlessSteven
    MemberAuthor

    The independent composition hypothesis from saved main 38e7132ee779e5b65490a2dac7f85bfd24dca4d8 reproduces on our exact 325fba1 candidate. This is a new consumer reproduction, not attribution of an archived RIPR finding.

    A valid recorded packet has a degraded lane and explicit missing_or_failed_model_evidence issue with reason internal audit artifact write failed: fixture-failure. Before repair, the public summary --run-dir flow shows the reason in the lane table but falsely prints No planned model evidence is currently missing or failed. in the missing-evidence section. The regression checks that section's literal gap bullet, avoiding a table-only false positive.

    Published successor 7a58d69, tree 089385e50eb1f46178411923c1710927ab16072d, hydrates the persisted array and merges it with legacy-derived issues. Identical persisted/reconstructed lane and preflight copies render once; distinct reasons survive. Classifiers, provider execution, orchestration, reporter and policy are unchanged. Provider completion-field work remains with #1411.

    Tests-first RED and GREEN are retained. Controls cover standalone explicit issues, healthy contentful degradation, absent-array legacy failure, explicit/inferred coexistence, distinct same-lane reasons and lane/preflight deduplication. Local serial baseline passes 1,268 top-level tests plus one nested, one intentional ignore. Exact successor staged checks pass available sensors; optional installed tools remain missing. The baseline source identity and subsequent documentation-only precision change are recorded rather than relabeled.

    Fresh exact-head COMMENT review passes all twelve CLI tests and rejects four compiled regressions: omitted explicit hydration, OR composition, removed deduplication, and removed preflight-prefix matching. Each restoration passes its positive control and restores pristine source/private binary. Review receipt SHA256 c9b95b574badc7f7ad64fe9f9331e8c9a0bc33c3dc21c37d8b07a6ff7efa927b.

    Keep Draft. Required gate38345565758 fails RIPR 204/max0 on synthetic merge fdb7757322ef3dcf92e9f7b5ccd5e207fe635059; artifact verifier passes. Independent baseline38345563972 fails the unchanged doctor_require_core_tools_fails_stale_actionlint_version with Text file busy(os error26); six other checks pass. tests/cli.rs blob 227ef27236aa8aa82f5368f8ab029231aa2a6b84 is unchanged. Root cause is unproven; no doctor repair or blind retry is folded into this hydration scope. Current hosted rows were not materialized or declared unsupported.

    Original-environment continuity was actually checked at 04:21:33UTC: original workspace command succeeded, exact head/tree and owner-clean state confirmed. Existing reviewer session 95085 settled exit0 on the same executor; all owner/reviewer qualification commands are terminal and source is clean. No replacement build/environment was used for the callback. The original denied archive transfer and rejected policy proposal remain stopped and un-retried.

    Raw source-hypothesis receipts, CI logs, continuity evidence and original identities remain under /workspace/evidence-1407/summary-hydration/ and /workspace/review-evidence-1407/final-7a58d6/. These are retained local evidence, not hosted archive downloads. Remaining integration obligations: strict RIPR disposition, doctor ETXTBSY disposition and required-check resolution before Ready/eligible protected merge.

  4. EffortlessSteven commented on Nov 4, 2026

    @EffortlessSteven
    MemberAuthor

    Closing as completed on main (2026-11-04 open-issue board sweep; 29-issue verified batch).

    Ground truth: already fixed on main.

    • Verifier evidence: Landed via 3df8961 (fix(hydration): preserve bounded context and recorded evidence #1410). src/pr_thread_context.rs:241-245 warn+continue retains endpoints; :293 propagates truncation; :134,307-312 bound capture (PR_THREAD_RESPONSE_MAX_BYTES); tests/pr_context_hydration.rs on main.
    • Independent re-verification (upheld): Commit verified ancestor; warn+continue and truncation propagation confirmed; PR_THREAD_RESPONSE_MAX_BYTES bound capture at :307-313; tests/pr_context_hydration.rs exists with 22 test fns — closes the exact defect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions