Repository navigation
fix(tools)!: simplify direct invocation and harden boundary contracts - #555
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
morluto
force-pushed
the
fix/tool-boundary-contracts
branch
from
October 5, 2026 12:09
0b357de to
e7b3afb
Compare
Remove REA permission grants, scope ceilings, approval confirmations, and inert settings. Preserve selected local evidence, accept caller-chosen commands and paths, and report actual runtime failures. Harden provider results, schema serialization, snapshot evidence binding, archive paths, source maps, native screenshots, managed EH parsing, and cancellation cleanup. Regenerate tool metadata and document direct invocation. BREAKING CHANGE: Removed permission configuration and policy commands, approval fields, filesystem scope inputs, and fixed confirmation options. Process capture inherits the host environment and accepts command names; callers must refresh tool schemas and migrate removed fields.
morluto
force-pushed
the
fix/tool-boundary-contracts
branch
from
October 5, 2026 12:14
e7b3afb to
00424ed
Compare
This was referenced Oct 5, 2026
N0zoM1z0
added a commit
that referenced
this pull request
Oct 5, 2026
## Changes Related to #545 and the permission-system removal in #555. - Upgrade the shipped skill to v24 and remove obsolete filesystem grants, per-call approval flags, Electron file-root configuration, and DMG approval flags. Calls follow the user-requested investigation directly. Keep setup plan confirmation, actual OS requirements, and process/archive lifecycle boundaries. - Correct the passive browser guide: endpoint/scope come from requests; ordinary local URL queries are retained, while credentials remain redacted. - Audit canonical tool effects: declare possible DMG process/temp-directory effects, mark fresh extraction non-idempotent, and mark comparisons of supplied captures/PNGs as closed-world. Align artifact-provider capability effects with temporary mount-directory writes. - Retain non-read-only hints for calls that add Evidence to the session; document that annotations are hints and that clients control their confirmation UI. Do not mislabel session mutations as read-only to suppress prompts. - Regenerate package, skill, MCP, and product metadata from source. ## Verification - `npm run test:focused -- <11 affected test files>`: **40 tests passed**, including skill transaction/backup/idempotence, SDK tools/list annotations, actual local capture/PNG comparisons, artifact extraction/containment/cancellation, DMG launcher/cleanup seam, setup confirmation, browser MCP and scenario MCP, CLI catalog parity. - `npm run check`: typecheck, lint, format, knip, package metadata. - `npm run docs:check`: generated catalogs, skill metadata, documentation facts, completion ledger, error schema. No local real Hopper/Ghidra run: their adapters and analysis operations are unchanged. Native macOS DMG behavior is covered locally through the launcher seam; no local macOS/hdiutil claim is made. Real browser verification passed using existing Headless Chrome143.0.7499.4: actual CLI/stdio MCP,9,331,407-byte PNG, passive capture/source maps, and owned/external scenario cleanup. An initial full Chrome143 run failed the existing screenshot-height assertion (1397 versus1536); the dedicated headless-shell run passed the complete verifier without code changes. The verifier run-lineage field remained unavailable; no lineage-coverage claim is made. Browser download into `.codex` was blocked by CDN403, so the successful run used an existing browser without changing host configuration.
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…morluto#555) Remove REA permission grants, scope ceilings, approval confirmations, and inert settings. Preserve selected local evidence, accept caller-chosen commands and paths, and report actual runtime failures. Harden provider results, schema serialization, snapshot evidence binding, archive paths, source maps, native screenshots, managed EH parsing, and cancellation cleanup. Regenerate tool metadata and document direct invocation. BREAKING CHANGE: Removed permission configuration and policy commands, approval fields, filesystem scope inputs, and fixed confirmation options. Process capture inherits the host environment and accepts command names; callers must refresh tool schemas and migrate removed fields.
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
## Changes Related to morluto#545 and the permission-system removal in morluto#555. - Upgrade the shipped skill to v24 and remove obsolete filesystem grants, per-call approval flags, Electron file-root configuration, and DMG approval flags. Calls follow the user-requested investigation directly. Keep setup plan confirmation, actual OS requirements, and process/archive lifecycle boundaries. - Correct the passive browser guide: endpoint/scope come from requests; ordinary local URL queries are retained, while credentials remain redacted. - Audit canonical tool effects: declare possible DMG process/temp-directory effects, mark fresh extraction non-idempotent, and mark comparisons of supplied captures/PNGs as closed-world. Align artifact-provider capability effects with temporary mount-directory writes. - Retain non-read-only hints for calls that add Evidence to the session; document that annotations are hints and that clients control their confirmation UI. Do not mislabel session mutations as read-only to suppress prompts. - Regenerate package, skill, MCP, and product metadata from source. ## Verification - `npm run test:focused -- <11 affected test files>`: **40 tests passed**, including skill transaction/backup/idempotence, SDK tools/list annotations, actual local capture/PNG comparisons, artifact extraction/containment/cancellation, DMG launcher/cleanup seam, setup confirmation, browser MCP and scenario MCP, CLI catalog parity. - `npm run check`: typecheck, lint, format, knip, package metadata. - `npm run docs:check`: generated catalogs, skill metadata, documentation facts, completion ledger, error schema. No local real Hopper/Ghidra run: their adapters and analysis operations are unchanged. Native macOS DMG behavior is covered locally through the launcher seam; no local macOS/hdiutil claim is made. Real browser verification passed using existing Headless Chrome143.0.7499.4: actual CLI/stdio MCP,9,331,407-byte PNG, passive capture/source maps, and owned/external scenario cleanup. An initial full Chrome143 run failed the existing screenshot-height assertion (1397 versus1536); the dedicated headless-shell run passed the complete verifier without code changes. The verifier run-lineage field remained unavailable; no lineage-coverage claim is made. Browser download into `.codex` was blocked by CDN403, so the successful run used an existing browser without changing host configuration.
8 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agents can invoke REA's local tools directly, with caller-selected commands, paths, actions, and capture facets. Remove grant/ceiling configuration, permission elicitation, repeated approval fields, inert settings, and heuristic rewriting of local evidence. Harden the contracts exercised during the audit of all 122 tools.
Related: #545, #548. Existing fixes for #528 and #530 remain intact.
Problem and expected behavior
A process scenario using
nodeor a Windows path was rejected by POSIX-only validation. Browser capture could deny a request whose scope already fit its ceiling. Fixed literals and approval booleans forced callers to restate implementation behavior. Providers could also return results inconsistent with advertised schemas or replay cached values without matching Evidence.Tool selection expresses intent. Validate actual inputs and protocol requirements, preserve selected local diagnostics, and report real host/provider failures with their coverage limits.
Change and scope
., inherits the host environment with explicit overrides, and takes optionalfilesystem_observation_paths.Contract and boundary impact
Evidence and regression coverage
unresolved_callsfield; the bridge now returns it and records its unknown coverage. Packaged setup exposed the optional replay readiness defect. Real browser capture verifies query preservation and explicit-secret handling.capture_process_scenario(cwd and observation defaults apply):{"executable":"node","arguments":["--version"]}The same input can be saved as
scenario.jsonand run withrea capture-process scenario.json. Results include inline Evidence, lifecycle/cleanup facts, and residual unknowns; no REA grant round-trip is required.Remaining proof gaps: Windows execution, Linux replay, real Ghidra/Electron, and external managed-runtime/ILSpy lanes were unavailable on this macOS host. Windows process capture still reports its missing process-tree ownership support.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:pr— passed on the final rebased commit: 364 test files, 1,948 tests passed, three skipped; typecheck, lint, format, knip, build, metadata, and generated-doc checks passed.npm run docs:generate— regenerated metadata; no documentation errors.node scripts/verify-package.mjs— passed installed CLI/MCP, setup/idempotence, catalog, and lifecycle checks.npm run verify:hopper— passed real Hopper, two documents, function/reference analysis, and clean shutdown.node scripts/verify-real-browser.mjs— passed real Chrome, CLI/MCP, declared-secret handling, attach/launch cleanup, and large screenshots.node scripts/verify-real-javascript-runtime-observation.mjs— passed real Node Inspector fixtures through CLI/MCP.node scripts/verify-native-ui.mjs --allow-permission-denial— actual positive native UI capture/action and CLI parity passed; no permission-denial fallback used.npm run verify:managed— passed conformance fixtures; optional external runtime/decompiler coverage remains unsupported.Real-provider and packaged-artifact checks ran during the audit. The final rebase preserved the verified provider implementations and passed the full PR gate.
Compatibility, safety, and release
filesystem_rootswith optional observation paths,approved_plan_sha256withplan_sha256, and replaypassthrough-approved-originswithpassthrough-declared-origins.Review checklist