Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

refactor(evidence): remove superseded ordering wrapper and document exclusions

morluto1b14870ace1b
diff --git a/docs/cli.md b/docs/cli.md
index c801bf006..de180122b 100644
--- a/docs/cli.md
+++ b/docs/cli.md
@@ -263,7 +263,12 @@ tree matches that commit remains unknown. It honors the source tree's `.gitignor
and applies default exclusions for common generated and dependency paths such
as `node_modules/`, `dist/`, and `*.log`. Pattern-based exclusions record the
matched pattern and whether it came from project, default, caller, or sensitive
-path policy. Set `REA_REFERENCE_SECRET_PATTERNS_JSON` to a JSON array of ignore
+path policy. Links into excluded paths retain their internal target metadata;
+the exclusion explains why the target has no inventory entry, and the inventory
+remains partial. Exclusions record `entry_kind` when the importer observed it;
+older saved exclusions without that field have unknown kind. An excluded
+ancestor proves an internal descendant only when its kind is `directory`.
+Set `REA_REFERENCE_SECRET_PATTERNS_JSON` to a JSON array of ignore
patterns when you want to mark selected paths as sensitive; those patterns are
reported separately as configured-secret exclusions.
diff --git a/src/domain/browserScenarioDiffEvidence.ts b/src/domain/browserScenarioDiffEvidence.ts
index a6b5a0b5d..380f90303 100644
--- a/src/domain/browserScenarioDiffEvidence.ts
+++ b/src/domain/browserScenarioDiffEvidence.ts
@@ -5,7 +5,6 @@ import type {
BrowserStepArtifacts,
} from "./browserScenarioCaptureValues.js";
import type { BrowserScenarioCapture } from "./browserScenarioCapture.js";
-import { z } from "zod";
import {
fingerprintScenarioNetworkTransactions,
scenarioNetworkTransactions,
@@ -145,20 +144,6 @@ export const prepareScenarioEvents = (
};
};
-const scenarioStepEventsSchema = z.strictObject({
- events: z.array(z.unknown()),
- network_transactions: z.array(z.string()),
-});
-
-/** Network ancestry is already fingerprinted per capture; keep the collection unordered. */
-export const orderNetworkTransactions = (value: unknown): unknown => {
- const events = scenarioStepEventsSchema.parse(value);
- return {
- events: events.events,
- network_transactions: events.network_transactions,
- };
-};
-
/** Different content selection is missing comparability, not an observed website change. */
export const networkContentCoverageReason = (
before: BrowserScenarioCapture,