Skip to content

[codex] Resolve open quality and logging issues - #12

Merged
morluto merged 5 commits into
mainfrom
codex/resolve-open-issues
Jul 12, 2026
Merged

morluto merged 5 commits into
mainfrom
codex/resolve-open-issues

Conversation

@morluto

@morluto morluto commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

REA had partial quality-gate scaffolding but did not consistently enforce coverage, dead-code findings, or all requested pre-commit checks. It also lacked structured operational diagnostics, which made MCP tool and Hopper bridge failures difficult to correlate without exposing raw protocol data.

This change completes the existing quality workflows and adds redaction-safe structured logging across the CLI, MCP server, and Hopper bridge boundaries. MCP diagnostics are written to stderr so stdio frames remain valid. CLI logging is opt-in through REA_LOG_LEVEL and uses stdout when enabled, preserving machine-readable command output by default.

Changes

  • add Pino JSON logging with validated log levels and sensitive-field redaction
  • log MCP tool and Hopper bridge completion status and duration without request arguments
  • log CLI command completion and process error boundaries
  • enforce coverage in the explicit CI test job and retain the thresholds used by npm test
  • make knip findings fail the dead-code job and expose npm run lint:dead
  • run lint-staged formatting/oxlint plus full TypeScript checking before commits
  • document coverage, dead-code, hook, and logging behavior

Verification

  • npm run check
    • 115 tests passed
    • statements 69.21%, branches 67.12%, functions 67.12%, lines 71.6%
  • npm run lint:dead
  • npm run verify:package
  • git diff --check
  • autoreview in local mode: clean
  • autoreview of the committed branch against origin/main: clean

Real Hopper verification was not performed because these changes do not alter Hopper API behavior, loader selection, or bridge protocol contracts. The isolated package verifier confirmed the 42-tool target-free MCP surface.

Closes #5
Closes #6
Closes #7
Closes #8

@morluto
morluto marked this pull request as ready for review July 12, 2026 03:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@morluto
morluto merged commit b72e908 into main Jul 12, 2026
8 checks passed
@morluto
morluto deleted the codex/resolve-open-issues branch July 28, 2026 17:39
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
[codex] Resolve open quality and logging issues
@morluto morluto added enhancement New feature or request area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
TOOAl referenced this pull request in TOOAl/rea Oct 20, 2026
- webfetch.ts — FIRECRAWL_API_KEY 있으면 api.firecrawl.dev/v1/scrape로 markdown 추출, 없으면 기존 fetch fallback (useFirecrawl/extract 옵션, 20s timeout)
- Tests: webfetch_firecrawl 3 tests (fallback/Firecrawl path/schema) — tsc0 vitest 120 (19 files)

Co-authored-by: arena-agent <[email protected]>
Jackzigen added a commit to Jackzigen/rea that referenced this pull request Oct 26, 2026
…rface

- stage config writes beside the file and rename into place so an
  interrupted write cannot leave partial JSON (greptile morluto#4, codex morluto#11)
- convert unreadable config files into configuration errors on the CLI
  seam instead of escaping raw filesystem errors (greptile morluto#5, codex morluto#15)
- keep injected runtimes without a config root isolated from the host
  account's rea.json (codex morluto#18)
- surface the config file error on stderr when doctor falls back to the
  raw environment (greptile morluto#3, codex morluto#16)
- route the config command through logCliCommand and return documents so
  --json stays parseable and failures exit non-zero (greptile morluto#2,
  codex morluto#10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
  combined with mutations (greptile #1/morluto#7, codex morluto#9/morluto#12/morluto#13/morluto#17)
- cover the new behavior in the boundary tests and stop leaking one
  temporary home per run (greptile morluto#8)
DrAbdulmalek pushed a commit to DrAbdulmalek/rea that referenced this pull request Oct 26, 2026
…ewer

docs(osint): replace inactive EXIF viewer reference
morluto added a commit that referenced this pull request Nov 21, 2026
* feat(config): persist provider settings in a user config file

Providers currently rediscover install paths from scratch in every
process, so a path set once (for example GHIDRA_INSTALL_DIR) silently
reverts on the next run. Introduce ~/.config/rea/rea.json as the
user-owned persistence layer and merge it into the environment
snapshot before configuration parsing, keeping env > config file >
auto-detect precedence on both the CLI and MCP entry points.

Add a rea config command (list/get/set/unset) as the write surface,
reporting the effective value and where it came from.

* fix(config): address review findings on persistence safety and CLI surface

- stage config writes beside the file and rename into place so an
  interrupted write cannot leave partial JSON (greptile #4, codex #11)
- convert unreadable config files into configuration errors on the CLI
  seam instead of escaping raw filesystem errors (greptile #5, codex #15)
- keep injected runtimes without a config root isolated from the host
  account's rea.json (codex #18)
- surface the config file error on stderr when doctor falls back to the
  raw environment (greptile #3, codex #16)
- route the config command through logCliCommand and return documents so
  --json stays parseable and failures exit non-zero (greptile #2,
  codex #10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
  combined with mutations (greptile #1/#7, codex #9/#12/#13/#17)
- cover the new behavior in the boundary tests and stop leaking one
  temporary home per run (greptile #8)

* fix(config): validate and back up persisted provider settings

* fix(config): keep saved provider defaults out of client registrations

* fix(config): preserve provider discovery and budgets for saved settings

* fix(config): check only settings needed by the IDA deadline lookup

* fix(config): share effective provider settings and verify config file reads

* fix(doctor): share selected settings with Hopper and ILSpy probes

* fix(config): resolve the destination of first-time saves

* fix(doctor): preserve unresolved provider location inputs

* fix(doctor): honor inherited IDA deadline overrides

* fix(config): show empty environment overrides

* fix(setup): preserve client-selected saved configuration roots

---------

Co-authored-by: Jackzigen <[email protected]>
Co-authored-by: morluto <[email protected]>
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 enhancement New feature or request

Projects

None yet

1 participant