Skip to content

fix: resolve validation and artifact edge cases - #206

Merged
N0zoM1z0 merged 1 commit into
mainfrom
agent/fix-domain-edge-cases
Jul 14, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
agent/fix-domain-edge-cases

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Summary

  • report grant_required when same-capability revoked grants do not cover the requested scope
  • share one pure bounded-JSON traversal across evidence and investigation workspace readers
  • infer source-map parent edges case-insensitively for mixed-case .map suffixes
  • add regression coverage for permission reasons, nested JSON limits, both read paths, and mixed-case source maps

Root cause and impact

Permission denial classification used the existence of any same-capability grant, even when its scope did not cover the request. Evidence and workspace readers maintained duplicate JSON limit walkers that could drift. Artifact edge construction classified source maps case-insensitively but used a case-sensitive suffix check when resolving their mapped source.

These changes keep remediation actionable, make JSON policy enforcement consistent, and preserve correct source-map parentage across extension casing.

Verification

  • npm run check — 87 files, 589 tests
  • npm run knip
  • npm run jscpd — 0.92% duplicated lines
  • npm run scan:todos
  • targeted permission, JSON-limit, evidence, workspace, and artifact tests

Real Hopper verification was not performed; the changes are pure policy/validation and artifact graph behavior covered by unit and adapter tests.

Closes #188
Closes #193
Closes #195

Copy link
Copy Markdown
Collaborator Author

LGTM!

@N0zoM1z0
N0zoM1z0 merged commit 2468682 into main Jul 14, 2026
11 checks passed
@N0zoM1z0
N0zoM1z0 deleted the agent/fix-domain-edge-cases branch July 14, 2026 08:18
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
fix: resolve validation and artifact edge cases
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the area: evidence Evidence, artifacts, and reconstruction label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

2 participants