Skip to content

fix(binary): carry the runtime refusal's repair instruction in remediation - #14123

Merged
vincentkoc merged 4 commits into
morluto:mainfrom
DeryFerd:fix/runtime-unavailable-remediation
Nov 30, 2026
Merged

vincentkoc merged 4 commits into
morluto:mainfrom
DeryFerd:fix/runtime-unavailable-remediation

Conversation

@DeryFerd

@DeryFerd DeryFerd commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Runtime-refused capabilities in binary_session status now carry the refusing owner's repair instruction in remediation, separately from the failure reason. Previously the overlay folded recovery text into the reason and discarded the structured remediation field.

Behavior and scope

  • Preserve durable remediation published through ownPresentation() or remediationAction, for direct failures and provider-wide sibling observations.
  • Select each active failure as a complete record. A failure with no remediation cannot inherit an unrelated sibling's instruction.
  • Preserve absence when the owner supplies no durable repair. Do not substitute static capability text or continuing-session guidance.
  • Use the existing optional capability field; no new tool, provider, target interaction, or authority is introduced. No separate issue tracks this focused fix.

Validation

  • Validated head: bae26d790c8d33472a0dd50195e1518af1b50c12. All current checks passed, including the Linux package baseline. All 53 selected tests passed in both source and built-runtime runs.
  • Coverage includes the session-status projection, all four optional-remediation combinations for sibling failures, and provider-owned presentation with and without durable remediation.
  • Canonical review found that provider-owned presentation was being missed. The fix and regression tests now use that owning contract directly.
  • No live provider was forced to fail; validation covers the recording and projection boundaries. Native provider behavior is unverified.

Author readiness

See CONTRIBUTING.md#pull-request-ownership-and-readiness.

Human owner: @DeryFerd

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T17:10:05.776393Z
We couldn’t complete this review. Comment @codex review to try again.
8a13ed7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge; no new blocking issue was established.RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The reviewed changes appear safe to merge; no new blocking issue was established.

Summary

Adds owner-published remediation to runtime availability and session status.

  • Runtime refusals show the owner's repair instruction separately from the reason.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["Provider refusal"] --> B["SessionRuntimeAvailability.observe"]
  B --> C["Operation and provider failures"]
  C --> D["entries: reason + optional remediation"]
  D --> E["BinarySessionStatus"]
  E --> F["CapabilityInventory prefers remediation"]
Loading

Reviews (2) · Last reviewed commit: "fix(runtime): retain provider-owned refu..." · Reviewed by Greptile

@DeryFerd
DeryFerd force-pushed the fix/runtime-unavailable-remediation branch 2 times, most recently from 10cdd6e to eaa8946 Compare November 23, 2026 18:14
@DeryFerd

Copy link
Copy Markdown
Contributor Author

Thanks. The four inline findings are answered inline. The sibling update now keeps the active failure's own repair, a refusal whose userMessage embeds the repair no longer duplicates it into reason, the provider-wide path reads the repair through publishedRemediation so it is not limited to capability refusals, and the missing recording regression now exists as SessionRuntimeAvailability.test.ts with three observe-level cases (head eaa8946).

@DeryFerd
DeryFerd force-pushed the fix/runtime-unavailable-remediation branch 2 times, most recently from c27d7b7 to fd52340 Compare November 23, 2026 18:40
…ation

CapabilityAvailability documents reason as the refusal and remediation as the
recovery instruction from the owner that made the operation unavailable. The
runtime overlay folded the recovery sentence into reason and stripped any
declared remediation, so a capability refused at runtime reported no repair path
while a statically refused one did.

Keep the observed reason and the owner's remediation as separate facts through
the runtime availability projection and the status overlay.
@DeryFerd
DeryFerd force-pushed the fix/runtime-unavailable-remediation branch from fd52340 to b263c23 Compare November 23, 2026 19:12
@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@DeryFerd thanks for the PR — there are 4 open review threads here:

Could you address or reply to these? Once they're resolved and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

@DeryFerd

Copy link
Copy Markdown
Contributor Author

@morluto all four threads on this PR are resolved. The sibling update now keeps the active failure's own repair instead of replacing it with the incoming report's; a refusal whose userMessage embeds the repair no longer duplicates it into reason; the provider-wide path reads the repair through publishedRemediation, so it is no longer limited to capability refusals; and the missing recording coverage now exists as SessionRuntimeAvailability.test.ts, which drives observe directly with three cases, including a refusal whose userMessage already contains the repair. CI is green at b263c23 with 9 checks passing.

@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working labels Nov 26, 2026
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  fix(nro): exclude ASET header bytes from asset ranges (morluto#15185)
  fix(bflt): reject relocation tables overlapping image segments (morluto#15188)
  docs(artifacts): document Kubernetes audit log inventory (morluto#15187)
  fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182)
  perf(n64): stream ROM byte-order normalization (morluto#15179)
  fix(oci)!: keep unobserved directory identity unknown (morluto#15164)
  fix(nds): bind file names to disjoint FNT subtables (morluto#15178)
  fix(glb): preserve JSON chunk read failures (morluto#15181)
  fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169)
  fix(artifacts): retain stored files in Godot PCK patches (morluto#15180)
  fix(setup): do not persist versioned launcher paths (morluto#15123)
  fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136)
  fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949)
  fix(macos-pkg): retain cpio hard-link contents (morluto#15157)
  fix(artifacts): report macOS package bundle release versions (morluto#14860)
  test(asar): verify cleanup on the original file handle (morluto#15155)
  ...
@vincentkoc
vincentkoc merged commit a4f584f into morluto:main Nov 30, 2026
40 of 41 checks passed
@vincentkoc

Copy link
Copy Markdown
Collaborator

thanks! merged with the owner-remediation and sibling-failure fixes. all 53 selected tests and current-head CI passed.

vincentkoc added a commit to WoWHellgarve-HolyDeeW/rea that referenced this pull request Nov 30, 2026
* commit '7f7d34ad7c30a5fe015b642118dd40e8e9ac093d': (167 commits)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  fix(nro): exclude ASET header bytes from asset ranges (morluto#15185)
  ...
vincentkoc added a commit to XiaoBinGan/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (173 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (34 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants