Skip to content

armgit / rea

Public Imported from GitHub
0

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

fix(test): honor boundary ownership and public aliases

morluto92a1c33625ff
diff --git a/docs/test-migration-ledger.md b/docs/test-migration-ledger.md
index b54675e0e..7cc435841 100644
--- a/docs/test-migration-ledger.md
+++ b/docs/test-migration-ledger.md
@@ -21,6 +21,7 @@ per-suite table below.
| `tests/javascriptSemanticAnalysis.test.ts` | `tests/composition/javascript-applications/javascriptSemanticAnalysis.*.test.ts` | JavaScript-application composition |
| `tests/config.test.ts` | `tests/composition/setup-lifecycle/config.test.ts` | Setup-lifecycle composition |
| `tests/composition/analysis-sessions/runtime.test.ts` | `tests/acceptance/applications/runtime.test.ts` | Compiled MCP acceptance workflow |
+| `tests/composition/runtime-observation/webCaptureDiff.test.ts` | `tests/boundary/browser/webCaptureDiff.test.ts` | Browser boundary |
| `tests/conformanceFixtures.test.ts` | `tests/conformance/providers/conformanceFixtures.test.ts` | Provider conformance |
| `tests/codexAgentEval.test.ts` | `tests/evaluation/model-evals/codexAgentEval.test.ts` | Deterministic model-evaluator logic |
| `tests/composition/analysis-sessions/{boundedCartesianProjection,symbolAnalysis,jsonShape}.test.ts` | `src/domain/{boundedCartesianProjection,symbolAnalysis,jsonShape}.test.ts` | Colocated pure-domain behavior |
diff --git a/docs/testing.md b/docs/testing.md
index 5b61cd876..dde6832e0 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -42,16 +42,16 @@ manual; Vitest covers only deterministic evaluator logic.
`npm test` runs every deterministic project once. The narrower feedback loops
are:
-| Command | Scope |
-| ------------------------- | -------------------------------------------------------------- |
-| `npm run test:fast` | Domain, service, and composition projects |
-| `npm run test:boundary` | Boundary and process-global projects |
-| `npm run test:acceptance` | Complete CLI and MCP acceptance workflows |
-| `npm run test:changed` | Tests related through Vitest's import graph |
-| `npm run test:watch` | Changed domain and service tests in watch mode |
-| `npm run test:watch:all` | Changed tests from every deterministic project in watch mode |
-| `npm run check:changed` | Cached static checks followed by changed tests |
-| `npm run check:pr` | Static, generated-document, and complete deterministic PR gate |
+| Command | Scope |
+| ------------------------- | -------------------------------------------------------------------------------------------------------- |
+| `npm run test:fast` | Domain, service, adapter, and composition projects |
+| `npm run test:boundary` | Boundary and process-global projects |
+| `npm run test:acceptance` | Complete CLI and MCP acceptance workflows |
+| `npm run test:changed` | Changed tests in non-serial projects via Vitest's import graph |
+| `npm run test:watch` | Changed domain, service, adapter, composition, boundary, conformance, and evaluation tests in watch mode |
+| `npm run test:watch:all` | Changed tests from every deterministic project in watch mode |
+| `npm run check:changed` | Cached static checks followed by changed tests |
+| `npm run check:pr` | Static, generated-document, and complete deterministic PR gate |
Changed-test selection is a fast feedback aid, not release evidence. It can
miss behavior connected through runtime registration, generated data, shell
diff --git a/package.json b/package.json
index 85c3651f6..51f16408a 100644
--- a/package.json
+++ b/package.json
@@ -91,7 +91,7 @@
"pretest:acceptance": "npm run build:cached",
"test:acceptance": "vitest run --project acceptance",
"pretest:changed": "npm run build:cached",
- "test:changed": "vitest run --changed",
+ "test:changed": "vitest run --project domain --project services --project adapters --project composition --project boundary --project conformance --project evaluation --changed",
"pretest:integration": "npm run build:cached",
"test:integration": "vitest run --project boundary --project process-global --project acceptance",
"pretest:coverage": "npm run build:cached",
diff --git a/src/domain/mobileApplicationInvestigation.ts b/src/domain/mobileApplicationInvestigation.ts
index 95a4b531f..2455bb399 100644
--- a/src/domain/mobileApplicationInvestigation.ts
+++ b/src/domain/mobileApplicationInvestigation.ts
@@ -43,6 +43,7 @@ export const iosManifestSchema = z.strictObject({
ui_required_device_capabilities: z.array(z.string()).default([]),
app_permissions: z.array(z.string()).default([]),
});
+export type IosManifest = z.infer<typeof iosManifestSchema>;
/** Signing information. */
export const signingInfoSchema = z.strictObject({
is_signed: z.boolean().default(false),
diff --git a/src/domain/objcSwiftMetadata.ts b/src/domain/objcSwiftMetadata.ts
index d2bb80bd7..c52695833 100644
--- a/src/domain/objcSwiftMetadata.ts
+++ b/src/domain/objcSwiftMetadata.ts
@@ -85,6 +85,7 @@ export const swiftAccessLevelSchema = z.enum([
"public",
"open",
]);
+export type SwiftAccessLevel = z.infer<typeof swiftAccessLevelSchema>;
/** Swift declaration metadata. */
export const swiftDeclSchema = z.strictObject({
kind: swiftDeclKindSchema,
diff --git a/tests/composition/runtime-observation/webCaptureDiff.test.ts b/tests/boundary/browser/webCaptureDiff.test.ts
similarity index 100%
rename from tests/composition/runtime-observation/webCaptureDiff.test.ts
rename to tests/boundary/browser/webCaptureDiff.test.ts