mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 14:59:05 +00:00
* feat(native): describe the UniFFI library report and its read budgets Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): recover UniFFI interfaces from a library's exports Group a library's UniFFI scaffolding exports by namespace: objects named by their free and clone functions with their constructors and methods, functions, callback interfaces and runtime helpers. The contract version and each item's checksum are read from function bodies that return only that constant (x86, x86-64 with or without endbr, arm64), and NAMESPACE and UDL_FILE metadata buffers are decoded. Nothing is called; a method that two object names could own is listed under the longer and counted. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): read UniFFI libraries through an identity-checked provider The provider reads one bounded PE or ELF file, maps its export addresses through the image's own declarations and decodes the UniFFI interface. A refusal at max_entries, max_text_bytes or max_file_bytes names the budget to raise. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(analysis): summarize retained UniFFI library reports Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(analysis): bound the UniFFI summary's namespaces with boundedList Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): add the inspect_uniffi_library tool CLI inspect-uniffi-library and MCP inspect_uniffi_library recover a UniFFI library's namespaces, objects, methods, functions, callback interfaces, contract version and checksums from its exports without loading it. Large reports return the retained per-namespace summary within the agent budget. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): describe UniFFI interface recovery Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): route UniFFI libraries to inspect_uniffi_library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * ci: scope the UniFFI reader with the native formats Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * chore(schemas): record the advertised inspect_uniffi_library catalog summary Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): keep UniFFI grouping linear and its omissions visible - Namespaces, metadata owners and object owners are found by looking up each underscore-delimited prefix of a name, instead of scanning every namespace or object for every export. - A body or metadata buffer reads the longest mapped prefix, so a constant that ends at its mapping's end is still decoded. - A metadata buffer that cannot be read or decoded is counted apart from kinds this reader does not decode, and makes coverage partial. - A partial export table carries its reasons into the report. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): expose max_structure_bytes for UniFFI library inspection The export reader's table-size limit is now a caller control, and its refusal names it, as inspect_native_exports does. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(cli): honour delivery options for inspect-uniffi-library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): list the UniFFI structure budget and record its schema Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): match UniFFI namespaces and owners with a prefix trie Namespaces, metadata owners and object owners are now found by walking the name once through a trie of the known words, from the positions where UniFFI spells them. The cost per name grows with its length, not with its underscore count squared or with the number of known words. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): index UniFFI prefixes by hash instead of a character trie A character trie allocated a node and a map for every distinct prefix, so long crafted export names could exhaust the heap before the report's text checks. The prefix index now keeps one entry per known word, keyed by two polynomial hashes, and walks each name once computing the hashes of its underscore-ended prefixes; only the longest matches are compared. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): map UniFFI reads through one index and check namespace shapes - Constant and metadata reads use one file-mapping index built with the image's zero-filled ranges, so each read is a lookup and an ambiguous address reads as unknown instead of as definite bytes. - The ELF container read honours max_structure_bytes, as the export read already did. - 32-bit x86 images, which the shared readers name 386, decode their constants. - A scaffolding symbol belongs to the longest namespace whose remainder has a scaffolding shape, so a namespace ending in _fn cannot take another namespace's functions. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): carry the export reader's issues into a partial UniFFI report A partial export table now reports its first issues by code and message, counting the rest, before falling back to its limitations. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): consider every shaped namespace match for UniFFI symbols The scaffolding shape after a namespace is now checked while the name is walked, so every span followed by _fn_ or _checksum_ is a candidate, not only the longest four matches; only the chosen word is compared. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
922 lines
38 KiB
JavaScript
922 lines
38 KiB
JavaScript
// These boundaries require native Windows launch verification even where
|
|
// broad process ownership would otherwise suppress host fanout on the fast tier.
|
|
export const WINDOWS_EXECUTABLE_SELECTION_INPUTS = [
|
|
"src/process/WindowsExecutable*.ts",
|
|
"src/adb/AdbConfiguration.ts",
|
|
"src/apktool/ApktoolConfiguration.ts",
|
|
"src/application/UpdateCommandRunner.ts",
|
|
"tests/boundary/process/windowsExecutableSelection.test.ts",
|
|
];
|
|
|
|
// Shared process, contract, CLI, and CI-script edits are not a specific provider.
|
|
// Fast qualification keeps the portable suite and the Linux x64 runtime
|
|
// baseline, and pull requests run the complete portable suite rather than a
|
|
// selected subset. Full qualification still selects every lane.
|
|
export const SHARED_BOUNDARY =
|
|
/^(src\/process\/|src\/filesystem\/|src\/contracts\/tool|src\/server\/createServer|src\/cli\.ts|scripts\/ci\/)/;
|
|
|
|
// Inputs whose changes must select both real capture lanes, even at shared boundaries.
|
|
const CAPTURE_SHARED_INPUTS = [
|
|
"src/process/LinuxResourceLimits*",
|
|
"scripts/ci/require-provider-tests.mjs",
|
|
];
|
|
const GHIDRA_PROJECT_COVERAGE_INPUTS = [
|
|
"scripts/verify-real-ghidra-project-coverage.mjs",
|
|
"tests/conformance/ghidra/selected-project-coverage.c",
|
|
"tests/conformance/ghidra/ReaSelectedProjectSeeds.java",
|
|
];
|
|
const UBUNTU_ARCHIVE_ACTION =
|
|
".github/actions/ubuntu-archive/action.{yml,yaml}";
|
|
|
|
const CLI_LAUNCHER_INPUTS = [
|
|
"scripts/rea.mjs",
|
|
"scripts/lib/cli-compiled-runtime.mjs",
|
|
"scripts/lib/cli-process-environment.mjs",
|
|
"scripts/lib/runtime-admission.mjs",
|
|
"scripts/lib/runtime-admission.d.mts",
|
|
];
|
|
|
|
// Ownership of the native-host, real-provider and website verification lanes.
|
|
// Shared build inputs are classified once in plan.mjs rather than repeated in
|
|
// every workflow.
|
|
const PATH_SCOPES = {
|
|
python: [
|
|
"bridge/**/*.py",
|
|
"tests/support/analysis-efficiency/**",
|
|
"scripts/run-python-tests.py",
|
|
],
|
|
packet_capture: [
|
|
UBUNTU_ARCHIVE_ACTION,
|
|
".github/actions/host-apt-packages/action.{yml,yaml}",
|
|
"tests/boundary/captures/**",
|
|
"tests/boundary/cli/captureCleanup.test.ts",
|
|
"tests/boundary/mcp/packetCaptureMcp.test.ts",
|
|
"tests/boundary/pcap/**",
|
|
"tests/acceptance/pcapVerifier.test.ts",
|
|
"tests/fixtures/pcap/offlineHttpCapture.ts",
|
|
"src/captures/**",
|
|
"src/pcap/**",
|
|
"src/domain/pcap/**",
|
|
"src/domain/analysisView/pcapCaptureView.ts",
|
|
"src/application/pcap/**",
|
|
"src/contracts/pcap/**",
|
|
"src/domain/captures/**",
|
|
"src/application/captures/**",
|
|
"src/ports/captures/**",
|
|
"src/contracts/captures/**",
|
|
"src/composition/captures.ts",
|
|
"src/cli/captureCommands.ts",
|
|
...CAPTURE_SHARED_INPUTS,
|
|
"scripts/verify-packet-capture.mjs",
|
|
"scripts/verify-pcap.mjs",
|
|
".github/workflows/real-packet-capture.yml",
|
|
],
|
|
signal_recording: [
|
|
"tests/boundary/signals/**",
|
|
"tests/boundary/cli/signalCleanup.test.ts",
|
|
"tests/boundary/mcp/signalRecordingMcp.test.ts",
|
|
"src/signals/**",
|
|
"src/domain/signals/**",
|
|
"src/application/signals/**",
|
|
"src/ports/signals/**",
|
|
"src/contracts/signals/**",
|
|
"src/composition/signals.ts",
|
|
"src/cli/signalCommands.ts",
|
|
...CAPTURE_SHARED_INPUTS,
|
|
"scripts/verify-signal-recording.mjs",
|
|
".github/workflows/real-signal-recording.yml",
|
|
UBUNTU_ARCHIVE_ACTION,
|
|
".github/actions/host-apt-packages/action.{yml,yaml}",
|
|
],
|
|
readiness: [
|
|
"tests/conformance/readiness/**",
|
|
"scripts/verify-reconstruction-readiness.mjs",
|
|
],
|
|
reverse_tools: [
|
|
".github/workflows/mutation.yml",
|
|
"src/application/reverse/**",
|
|
"src/application/binary/BinarySession.ts",
|
|
"src/cutter/**",
|
|
"src/domain/analysisResourceLimits.ts",
|
|
"src/gdb/**",
|
|
"src/frida/frida-bindings.d.ts",
|
|
"src/objdump/**",
|
|
"src/cli/reverseEngineeringCommands.ts",
|
|
"src/process/ownedDebuggerCleanupError.ts",
|
|
"src/process/ownedDebuggerSession.ts",
|
|
"src/rizin/**",
|
|
"src/contracts/*ToolContracts.ts",
|
|
"src/server/externalMutationAdmission.ts",
|
|
"src/server/createServer.ts",
|
|
"src/process/ExecFileOutput.ts",
|
|
"src/process/ExecFileOutput.test.ts",
|
|
"tests/composition/analysis-sessions/binarySession.test.ts",
|
|
"tests/boundary/filesystem/directAnalysisSnapshotReplay.test.ts",
|
|
"tests/boundary/filesystem/reverseToolsMutationConfig.test.ts",
|
|
"tests/boundary/filesystem/mutationWorkflow.test.ts",
|
|
"src/server/externalMutationToolHandler.ts",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/debuggerToolBindings.ts",
|
|
"tests/boundary/mcp/rizin*.test.ts",
|
|
"tests/boundary/mcp/debuggerExternalMutationLifecycleMcp.test.ts",
|
|
"tests/fixtures/debuggerMcp.ts",
|
|
"tests/boundary/providers/CutterBridge*.test.ts",
|
|
"tests/boundary/providers/cutterBridgeProducer.test.ts",
|
|
"tests/boundary/providers/GdbSession*.test.ts",
|
|
"tests/boundary/providers/GdbCommandQueue.test.ts",
|
|
"tests/boundary/providers/gdbTestHelpers.ts",
|
|
"tests/boundary/providers/RizinDebugSession*.test.ts",
|
|
"tests/boundary/providers/RizinInferiorTty.test.ts",
|
|
"tests/boundary/providers/RizinDecoderInputs.test.ts",
|
|
"tests/boundary/providers/RizinTestInferiorTty.ts",
|
|
"tests/boundary/process/ownedDebuggerSession.test.ts",
|
|
"tests/boundary/cli/debuggerOneShotExit.test.ts",
|
|
"tests/boundary/cli/gdbStartupCleanupCli.test.ts",
|
|
"tests/boundary/cli/reverseEngineeringCommands.test.ts",
|
|
"tests/boundary/mcp/cutter*.test.ts",
|
|
"tests/boundary/mcp/gdb*.test.ts",
|
|
"tests/boundary/mcp/rizinDebuggerCancellationMcp.test.ts",
|
|
"tests/boundary/mcp/rizinPendingOutput.test.ts",
|
|
"tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts",
|
|
"tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts",
|
|
"tests/boundary/mcp/reverseEngineeringEnvironmentMcp.test.ts",
|
|
"tests/support/reverseEngineering*.ts",
|
|
"tests/support/ownedRizinCommandEvidenceTests.ts",
|
|
"tests/support/reverseDebuggerMcpTestHelpers.ts",
|
|
"tests/processOwnershipRunner.ts",
|
|
"tests/composition/reverseEngineering*.test.ts",
|
|
"vitest.reverse-tools.config.ts",
|
|
"vitest.reverse-tools-semantics.config.ts",
|
|
"stryker.config.mjs",
|
|
"stryker.semantics.config.mjs",
|
|
"tsconfig.reverse-tools-mutation.json",
|
|
"scripts/prepare-reverse-tools-mutation.mjs",
|
|
"scripts/verify/mutation-target-tsconfig.mjs",
|
|
"scripts/lib/reverse-tools-mutation-targets.mjs",
|
|
],
|
|
// Apple artifact CLI/MCP lane on macOS, including its focused regressions.
|
|
apple: [
|
|
"src/artifacts/InesArtifactReader.ts",
|
|
"src/domain/inesContainer.ts",
|
|
"tests/fixtures/ines.ts",
|
|
"tests/acceptance/inesContainer.test.ts",
|
|
"tests/boundary/filesystem/inesArtifact.test.ts",
|
|
"tests/boundary/filesystem/inesCancellation.test.ts",
|
|
"src/artifacts/HandheldRomArtifactReader*.ts",
|
|
"src/domain/gameBoyRomHeader*.ts",
|
|
"src/domain/gbaRomHeader*.ts",
|
|
"src/artifacts/NdsRomArtifactReader*.ts",
|
|
"src/domain/ndsRom*.ts",
|
|
"src/artifacts/Image4ArtifactReader*.ts",
|
|
"src/domain/apple/image4*.ts",
|
|
"docs/guides/apple/image4-containers.md",
|
|
"src/artifacts/MqlProgramArtifactReader*.ts",
|
|
"src/domain/mqlProgram*.ts",
|
|
"docs/guides/artifacts/mql-programs.md",
|
|
"src/artifacts/DotnetResourcesArtifactReader*.ts",
|
|
"src/artifacts/DotnetAssemblyArtifactReader*.ts",
|
|
"src/domain/managed/baml*.ts",
|
|
"src/domain/native/uniffiLibrary*.ts",
|
|
"src/native/uniffi/**",
|
|
"src/application/binaryDiagnostics/UniffiLibraryService*.ts",
|
|
"src/domain/analysisView/uniffiLibraryView.ts",
|
|
"docs/guides/native/uniffi-libraries.md",
|
|
"src/domain/managed/wpfBamlKnownTypes.ts",
|
|
"src/dotnet/baml/**",
|
|
"src/application/managed/BamlService*.ts",
|
|
"src/domain/analysisView/bamlDocumentView.ts",
|
|
"docs/guides/managed/baml.md",
|
|
"src/artifacts/dotnet/ManagedImageLocation*.ts",
|
|
"src/domain/formatMetadata/dotnetAssemblyMetadata.ts",
|
|
"tests/boundary/providers/native/artifactProvider.dotnetAssembly.test.ts",
|
|
"src/domain/managed/dotnetResources*.ts",
|
|
"src/domain/formatMetadata/dotnetResourcesMetadata.ts",
|
|
"docs/guides/managed/dotnet-resources.md",
|
|
"src/artifacts/MegaDriveRomArtifactReader*.ts",
|
|
"src/domain/megaDriveRom*.ts",
|
|
"src/artifacts/N64RomArtifactReader*.ts",
|
|
"src/domain/n64Rom*.ts",
|
|
"src/artifacts/PsxExeArtifactReader*.ts",
|
|
"src/domain/psxExe*.ts",
|
|
"src/hopper/BridgeLauncher.ts",
|
|
"src/hopper/HopperErrors.ts",
|
|
"tests/boundary/providers/hopper/hopperMacLaunchArguments.test.ts",
|
|
"tests/acceptance/providers/hopperStartupRecovery.test.ts",
|
|
"tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts",
|
|
"tests/boundary/providers/hopper/bridgeBootstrapCleanup.test.ts",
|
|
"tests/boundary/providers/hopper/bridgeTargetLease.integration.test.ts",
|
|
"tests/boundary/cli/hopperLaunchFailureCli.test.ts",
|
|
"src/artifacts/NativeDmg*.ts",
|
|
"src/native/Apple*",
|
|
"src/native/NativeMacOS*",
|
|
"src/native/NativeUi*",
|
|
"src/native/Lldb*",
|
|
"bridge/native/**",
|
|
"bridge/process/**",
|
|
"scripts/verify/apple/**",
|
|
"scripts/ci/darwin-gated-tests.mjs",
|
|
"scripts/ci/darwin-gate-candidates.mjs",
|
|
"tests/boundary/filesystem/ciDarwinGatedTests.test.ts",
|
|
"tests/acceptance/artifactDmgAttachmentRecoveryCli.test.ts",
|
|
"tests/boundary/providers/native/nativeDmgArtifactReader.test.ts",
|
|
"tests/process-global/dmgCancellationReason.test.ts",
|
|
"tests/boundary/filesystem/installScript.test.ts",
|
|
"tests/boundary/filesystem/nibNativeHierarchy.test.ts",
|
|
"tests/boundary/filesystem/interfaceBuilderBundle.test.ts",
|
|
"tests/boundary/cli/nativePlistCli.test.ts",
|
|
"tests/boundary/cli/nativePlistPrototypeKeyCli.test.ts",
|
|
"tests/boundary/cli/nativePlistSelectionFailureCli.test.ts",
|
|
"tests/boundary/cli/nativeDemangleCli.test.ts",
|
|
"tests/boundary/cli/nativeDispatchPropertyAttributes.test.ts",
|
|
"tests/boundary/mcp/nativeDemangleMcp.test.ts",
|
|
"tests/boundary/mcp/nativeMachoSummaryMcp.test.ts",
|
|
"tests/boundary/providers/native/nativeSignatureTargetBinding.test.ts",
|
|
"tests/boundary/providers/native/nativeUiOffscreenWindow.test.ts",
|
|
"tests/boundary/process/nativeUiVerifierLane.test.ts",
|
|
"tests/conformance/native/ui-offscreen.swift",
|
|
"tests/boundary/cli/nativeSignatureCli.test.ts",
|
|
"tests/boundary/cli/nativeMachoImportNamesCli.test.ts",
|
|
"tests/boundary/cli/nativeMachoArm64_32Cli.test.ts",
|
|
"tests/boundary/cli/nativeMachoEncryptionCli.test.ts",
|
|
"tests/boundary/mcp/nativeSignatureTargetBindingMcp.test.ts",
|
|
"tests/boundary/cli/nativeBundleExecutableProvenanceCliMcp.test.ts",
|
|
"src/process/capture/FilesystemSnapshot.test.ts",
|
|
"tests/process-global/filesystemSnapshotFallbackCancellation.test.ts",
|
|
"tests/boundary/process/darwinProcessRunTokenReader.test.ts",
|
|
"tests/boundary/process/directAnalysisSignals.test.ts",
|
|
"tests/boundary/process/processCaptureLifecycle.test.ts",
|
|
"tests/boundary/process/processCli.test.ts",
|
|
"tests/boundary/mcp/sessionMcp.test.ts",
|
|
],
|
|
// Four-host installed-package matrix and the Windows curated lane.
|
|
package: [
|
|
...WINDOWS_EXECUTABLE_SELECTION_INPUTS,
|
|
// Selected-file spelling requires the real Windows identity workflow.
|
|
"src/application/binaryDiagnostics/ByteEntropyService.ts",
|
|
"tests/acceptance/byteEntropyWindowsIdentity.test.ts",
|
|
// Both host compilers must be exercised when their installation, options,
|
|
// or entrypoints change; Linux's accelerated checker cannot stand in for Go.
|
|
"scripts/run-typescript.*",
|
|
"scripts/run-turbo.*",
|
|
"turbo.json",
|
|
"tsconfig.json",
|
|
"tsconfig.build.json",
|
|
"tsconfig.frida-verification.json",
|
|
"package-lock.json",
|
|
".nvmrc",
|
|
".npmrc",
|
|
".github/actions/publish-mcp/**",
|
|
".github/actions/prepare-release-package/**",
|
|
".github/workflows/release-recovery.yml",
|
|
".github/workflows/release-abandon.yml",
|
|
"scripts/ci/release-recovery.mjs",
|
|
"scripts/ci/release-attempt.*",
|
|
"scripts/ci/verified-package.mjs",
|
|
"scripts/ci/qualified-package-envelope.mjs",
|
|
"scripts/ci/prepare-npm-publication.mjs",
|
|
"scripts/ci/npm-release.*",
|
|
"scripts/ci/npm-release-state.*",
|
|
"scripts/verify-release-artifact.mjs",
|
|
"scripts/lib/release-package-canary.mjs",
|
|
"scripts/lib/verify-package-core.*",
|
|
"tests/boundary/mcp/packageCatalogVerification.test.ts",
|
|
"scripts/verify-published-package.mjs",
|
|
"tests/boundary/filesystem/releaseRecovery.test.ts",
|
|
"tests/boundary/filesystem/releaseAttempt.test.ts",
|
|
"tests/boundary/filesystem/mcpRegistryPublication.test.ts",
|
|
"tests/boundary/filesystem/npmRelease.test.ts",
|
|
"tests/boundary/process/releaseArtifactCanary.test.ts",
|
|
"src/windows/**",
|
|
"src/domain/windowsNativeArtifact*.ts",
|
|
"src/domain/dosMz*.ts",
|
|
"src/domain/peCoffHeader*.ts",
|
|
"src/domain/result.ts",
|
|
"scripts/lib/verifier-source-loader.mjs",
|
|
"tests/boundary/process/windowsNativeArtifactVerifier.test.ts",
|
|
"scripts/lib/windows-native-inspection-workspace.*",
|
|
"tests/boundary/process/windowsNativeInspectionWorkspace.test.ts",
|
|
"scripts/lib/windows-owned-command.mjs",
|
|
"scripts/run-exclusive-command.mjs",
|
|
"tests/process-global/runnerCancellation.test.ts",
|
|
"tests/process-global/windowsOwnedCommand.test.ts",
|
|
"tests/process-global/curatedWindowsLane.test.ts",
|
|
"src/desktop/AgentEnvBridgeSources.ts",
|
|
"src/ghidra/GhidraBridgeSources.ts",
|
|
"native/windows/**",
|
|
"src/process/capture/FilesystemSnapshot.ts",
|
|
"src/process/capture/FilesystemSnapshot.test.ts",
|
|
"tests/process-global/filesystemSnapshotFallbackCancellation.test.ts",
|
|
"src/inspector/**",
|
|
"scripts/verify/inspector/**",
|
|
"scripts/verify-package.mjs",
|
|
"scripts/verify-package-*",
|
|
"scripts/verify-packed-bridge.*",
|
|
"scripts/verify-windows-*.mjs",
|
|
".github/actions/windows-cross-compiler/action.{yml,yaml}",
|
|
UBUNTU_ARCHIVE_ACTION,
|
|
".github/actions/host-apt-packages/action.{yml,yaml}",
|
|
"scripts/build-windows-native.mjs",
|
|
"scripts/windows-capabilities.mjs",
|
|
"scripts/prepack.mjs",
|
|
"scripts/prepare.mjs",
|
|
"scripts/lib/release-proposal.*",
|
|
"scripts/lib/release-pull-request.mjs",
|
|
"patches/release-please+17.11.2.patch",
|
|
"tests/boundary/filesystem/releaseProposal.test.ts",
|
|
...CLI_LAUNCHER_INPUTS,
|
|
"install.sh",
|
|
"src/config/**",
|
|
"src/hopperPaths/**",
|
|
// The darwin package baseline runs packaged Hopper commands against the
|
|
// fake bridge, through the reply contracts and the domain schemas they
|
|
// are built from. Check a change to either side before merge, not after.
|
|
"tests/fixtures/fakeLauncher.mjs",
|
|
"tests/fixtures/fakeHopper*.mjs",
|
|
"bridge/hopper_bridge.py",
|
|
"src/hopper/HopperReplyContracts.ts",
|
|
"src/hopper/HopperProvider.ts",
|
|
// The contracts import native domain schemas transitively; cover them
|
|
// all rather than a hand list that drifts.
|
|
"src/domain/native/!(*.test).ts",
|
|
"src/application/Setup*.ts",
|
|
"src/application/Uninstall*.ts",
|
|
"src/application/ClientConfiguration*.ts",
|
|
"src/application/ClientRegistration*.ts",
|
|
"src/application/DshCordis*.ts",
|
|
"src/cli/interactiveSetup.ts",
|
|
"src/cli/setupCommands.ts",
|
|
"tests/boundary/filesystem/typescriptCompiler.test.ts",
|
|
"tests/boundary/filesystem/binaryTarget.test.ts",
|
|
"src/contracts/sessionPathInputs.test.ts",
|
|
"tests/boundary/filesystem/directAnalysisSnapshotReplay.test.ts",
|
|
"tests/boundary/mcp/rawBinaryMcp.test.ts",
|
|
"tests/boundary/filesystem/windowsTargetSeparators.test.ts",
|
|
"tests/boundary/mcp/serverIdentity.test.ts",
|
|
"src/contracts/advertisedDialect*.ts",
|
|
"tests/boundary/mcp/advertisedDialect.test.ts",
|
|
// The advertised absolute-path pattern is host-specific (#7151).
|
|
"src/domain/localPath*.ts",
|
|
"tests/boundary/mcp/absoluteLocalPathSchema.test.ts",
|
|
// Live advertisement, independent of the POSIX-generated catalog.
|
|
"tests/boundary/mcp/toolSchemaValidity.test.ts",
|
|
"tests/boundary/filesystem/safeOutputTree.test.ts",
|
|
"tests/boundary/filesystem/safeOutputTreePublication.test.ts",
|
|
"tests/boundary/providers/native/artifactProvider.archiveSafety.test.ts",
|
|
"tests/boundary/providers/native/artifactExtractionWindowsNames.test.ts",
|
|
"tests/boundary/providers/native/artifactProvider.extractionCompleteness.test.ts",
|
|
"tests/boundary/filesystem/setupUnavailableProvider.test.ts",
|
|
"tests/boundary/filesystem/windowsNpxRegistration.test.ts",
|
|
"tests/boundary/filesystem/clientCmdShimOwnership.test.ts",
|
|
"tests/boundary/filesystem/claudeDesktopSkillUninstallWindows.test.ts",
|
|
"tests/boundary/filesystem/clientConfigurationEnvironment.test.ts",
|
|
"tests/boundary/filesystem/clientConfigurationLayeredEnvironment.test.ts",
|
|
"tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts",
|
|
"tests/boundary/android/workspaceGuardianRetry.test.ts",
|
|
"src/android/JadxWorkspaceRoot.ts",
|
|
"scripts/rea-android-workspace-guardian.mjs",
|
|
"tests/acceptance/setup/homeDirectoryFallback.test.ts",
|
|
"tests/boundary/filesystem/javascriptApplicationWorkflows.test.ts",
|
|
"src/domain/javascript/javascriptRuntimeStaticCandidates.ts",
|
|
"tests/boundary/filesystem/webScriptManifestPaths.test.ts",
|
|
"tests/boundary/process/ProcessEvidence.host.test.ts",
|
|
"tests/boundary/process/packageNpmInvocation.test.ts",
|
|
"tests/boundary/process/packedBridgeVerification.test.ts",
|
|
"tests/boundary/process/windowsOutputCapture.test.ts",
|
|
"tests/acceptance/webModuleCli.test.ts",
|
|
"tests/acceptance/webSourceLocationCli.test.ts",
|
|
"tests/boundary/cli/referenceSourceImportStatus.test.ts",
|
|
"tests/boundary/filesystem/asarInventoryFreshness.test.ts",
|
|
"tests/boundary/filesystem/javascript-applications/javascriptArtifactReconstruction.test.ts",
|
|
"tests/conformance/providers/ghidra/windowsCapabilities.test.ts",
|
|
"src/ghidra/GhidraInstallation.test.ts",
|
|
"tests/boundary/filesystem/ghidraJavaProbe.test.ts",
|
|
"tests/boundary/providers/ghidra/ghidraTransport.test.ts",
|
|
"tests/boundary/providers/ghidra/ghidraClientTransport.test.ts",
|
|
"tests/boundary/mcp/ghidraInventoryMcp.test.ts",
|
|
"tests/boundary/providers/ghidra/ghidraTargetSnapshot.test.ts",
|
|
"tests/boundary/providers/ghidra/ghidraLauncher.test.ts",
|
|
"tests/boundary/providers/hopper/hopperClient.cleanupRetry.test.ts",
|
|
"src/windows/WindowsNativeLoader.test.ts",
|
|
"src/windows/WindowsOwnedProcess.test.ts",
|
|
"src/ghidra/GhidraLauncherEnvironment.test.ts",
|
|
"src/process/ProcessOwnership.test.ts",
|
|
"src/process/ProcessOwnership.part2.test.ts",
|
|
"src/process/ProcessOwnership.part3.test.ts",
|
|
"src/process/ProcessOwnership.validation.test.ts",
|
|
"src/process/WindowsBatchCommand.test.ts",
|
|
"src/application/Update.test.ts",
|
|
"tests/process-global/updateMaintenance.test.ts",
|
|
"tests/conformance/providers/ghidra/realGhidraWindowsWorkflow.test.ts",
|
|
"tests/boundary/filesystem/directoryArtifactReaderOpen.test.ts",
|
|
"tests/boundary/filesystem/javascriptPackagePrecedence.test.ts",
|
|
"tests/boundary/filesystem/javascriptArtifactContentIdentity.test.ts",
|
|
"tests/boundary/process/sourceMapUncHosts.test.ts",
|
|
],
|
|
// Native SQLite runtime compatibility for the producer, public adapters,
|
|
// fixtures, shared lifecycle, and the package script that defines its suite.
|
|
sqlite: [
|
|
"src/sqlite/**",
|
|
"src/domain/sqlite/**",
|
|
"src/contracts/sqlite/**",
|
|
"src/application/sqlite/**",
|
|
"src/ports/sqlite/**",
|
|
"src/composition/sqlite.ts",
|
|
"src/cli/sqliteCommands.ts",
|
|
"src/application/DirectAnalysisStatus*.ts",
|
|
"src/application/CapabilityInventory*.ts",
|
|
"src/ports/AnalysisProvider*.ts",
|
|
"src/contracts/toolContracts.ts",
|
|
"src/contracts/toolContractTypes.ts",
|
|
"src/contracts/toolEffects*.ts",
|
|
"src/contracts/toolOutputSchemaPrimitives.ts",
|
|
"src/domain/analysisError*.ts",
|
|
"src/domain/evidence*.ts",
|
|
"src/domain/inputIssueProjection*.ts",
|
|
"src/domain/jsonSerialization*.ts",
|
|
"src/domain/jsonValue*.ts",
|
|
"src/domain/localPath*.ts",
|
|
"src/domain/providerAdapterError*.ts",
|
|
"src/domain/providerCleanupError*.ts",
|
|
"src/domain/result*.ts",
|
|
"src/process/OwnedCommand*.ts",
|
|
"src/process/ProviderProcess*.ts",
|
|
"src/process/PrivateRuntimeRoot*.ts",
|
|
"src/artifacts/ArtifactReader*.ts",
|
|
"src/resources/ArtifactReader*.ts",
|
|
"src/resources/ArtifactResourceScope*.ts",
|
|
"src/resources/ArtifactPaths*.ts",
|
|
"src/resources/readStableArtifact*.ts",
|
|
"src/filesystem/OwnedFileHandle*.ts",
|
|
"src/server/EvidenceMcpServer*.ts",
|
|
"src/server/analysisAdmission*.ts",
|
|
"src/server/contractToolHandler*.ts",
|
|
"src/server/toolRegistrationOptions*.ts",
|
|
"src/server/createServer*.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/cliLogging.ts",
|
|
"src/cli/commandCancellation.ts",
|
|
"tests/boundary/sqlite/**",
|
|
"tests/fixtures/sqlite/**",
|
|
"tests/acceptance/sqliteDatabaseCli.test.ts",
|
|
"tests/boundary/mcp/serverLifecycleMcp.test.ts",
|
|
".github/workflows/sqlite-runtime.yml",
|
|
],
|
|
browser: [
|
|
".github/workflows/real-browser.yml",
|
|
"scripts/verify-real-browser.mjs",
|
|
"scripts/verify-browser-network.mjs",
|
|
"scripts/verify-browser-request.mjs",
|
|
"scripts/verify-browser-scripts.mjs",
|
|
"scripts/verify-browser-modules.mjs",
|
|
"scripts/verify-browser-dom-destinations.mjs",
|
|
"scripts/lib/browser-*.mjs",
|
|
"scripts/fixtures/browser-network-site.mjs",
|
|
"scripts/fixtures/browser-request-site.mjs",
|
|
"scripts/fixtures/browser-script-site.mjs",
|
|
"scripts/fixtures/browser-module-site.mjs",
|
|
"scripts/fixtures/browser-verifier-site.mjs",
|
|
"scripts/fixtures/page-cdp-proxy.mjs",
|
|
"src/browser/**",
|
|
"src/domain/browser*.ts",
|
|
"src/domain/webCaptureDiffSchemas.ts",
|
|
"src/domain/webScreenshot.ts",
|
|
"src/domain/webScript*.ts",
|
|
"src/domain/webModule*.ts",
|
|
"src/domain/analysisView/environment*.ts",
|
|
"src/domain/analysisView/{EnvironmentManifest*,EnvironmentState*}.ts",
|
|
"src/domain/analysisView/{scenarioCaptureRecords,recordedResponseBody,recordedExchangeBody,recordedMediaType,webNetworkRouteTemplates,WebNetworkProjectionAccumulator}.ts",
|
|
"src/application/BrowserScenario*.ts",
|
|
"src/ports/BrowserScenario*.ts",
|
|
"src/application/environment/**",
|
|
"src/application/WebModule*.ts",
|
|
"src/ports/WebModule*.ts",
|
|
"src/composition/browserScenario.ts",
|
|
"src/composition/webModules.ts",
|
|
"src/resources/readStableArtifact.ts",
|
|
"src/resources/ArtifactPaths.ts",
|
|
"src/application/WebScriptExportService.ts",
|
|
"src/contracts/webScriptToolContracts.ts",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/browserToolBindings.ts",
|
|
"src/server/createServer.ts",
|
|
"src/cli/webModuleCommands.ts",
|
|
"src/cli/browserScenarioCommands.ts",
|
|
"src/cli/environmentCommands.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/cli/webScriptCommands.ts",
|
|
],
|
|
binary_layout: [
|
|
".github/workflows/real-binary-layout.yml",
|
|
UBUNTU_ARCHIVE_ACTION,
|
|
".github/actions/host-apt-packages/action.{yml,yaml}",
|
|
"bridge/pwntools/**",
|
|
"src/native/pwntools/**",
|
|
"src/config/pwntoolsInputLimit*.ts",
|
|
"src/domain/native/binaryLayout*",
|
|
"src/application/binaryDiagnostics/**",
|
|
"src/ports/binaryDiagnostics/**",
|
|
"src/contracts/native/binaryDiagnosticsToolContracts.ts",
|
|
"src/composition/binaryDiagnostics/**",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/createServer.ts",
|
|
"src/cli/binaryDiagnosticsCommands.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/contracts/toolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/process/OwnedCommand.ts",
|
|
"src/process/ProviderProcess.ts",
|
|
"src/process/ProviderDeadline.ts",
|
|
"src/process/ProcessOwnership*.ts",
|
|
"src/process/PrivateRuntimeRoot.ts",
|
|
"src/resources/readStableArtifact*.ts",
|
|
"src/resources/ArtifactReader.ts",
|
|
"src/domain/analysisError*.ts",
|
|
"scripts/verify-binary-layout.mjs",
|
|
"scripts/lib/elf-section-name-fixtures.mjs",
|
|
"scripts/lib/large-result-mcp.mjs",
|
|
"scripts/fixtures/binary-layout*",
|
|
],
|
|
evm: [
|
|
".github/workflows/real-evm-interface.yml",
|
|
"src/evm/**",
|
|
"src/domain/evm/**",
|
|
"src/application/evm/**",
|
|
"src/ports/evm/**",
|
|
"src/contracts/evm/**",
|
|
"src/composition/evm.ts",
|
|
"src/cli/evmCommands.ts",
|
|
"src/server/createServer.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/contracts/toolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/process/OwnedCommand.ts",
|
|
"src/process/ProviderProcess.ts",
|
|
"src/process/ProcessOwnership*.ts",
|
|
"src/process/ProviderDeadline.ts",
|
|
"src/process/PrivateRuntimeRoot.ts",
|
|
"src/resources/readStableArtifact*.ts",
|
|
"src/resources/ArtifactReader.ts",
|
|
"scripts/verify-evm-interface.mjs",
|
|
"scripts/verify-solidity-metadata.mjs",
|
|
"scripts/fixtures/evm-interface.sol",
|
|
"third_party/evmole/**",
|
|
],
|
|
apk_signature: [
|
|
".github/workflows/real-apk-signature.yml",
|
|
"src/domain/apkSignature/**",
|
|
"src/apkSignature/**",
|
|
"src/application/apkSignature/**",
|
|
"src/ports/apkSignature/**",
|
|
"src/composition/apkSignature.ts",
|
|
"src/contracts/apkSignature/**",
|
|
"src/cli/apkSignatureCommands.ts",
|
|
"src/server/createServer.ts",
|
|
"src/domain/analysisView/apkSignatureView.ts",
|
|
"src/domain/analysisView/analysisView.ts",
|
|
"src/application/analysisView/**",
|
|
"src/cli/analysisEvidenceDelivery.ts",
|
|
"src/artifacts/**",
|
|
"src/resources/**",
|
|
"scripts/verify-apk-signature.mjs",
|
|
"tests/fixtures/apkSignature/**",
|
|
"tests/acceptance/apkSignature*.test.ts",
|
|
],
|
|
javascript_recovery: [
|
|
".github/workflows/real-javascript-recovery.yml",
|
|
"src/javascript/recovery/**",
|
|
"src/domain/javascript/**",
|
|
"src/application/javascript/JavaScriptRecovery*.ts",
|
|
"src/ports/javascript/JavaScriptRecovery*.ts",
|
|
"src/composition/javascriptRecovery.ts",
|
|
"src/contracts/javascript/javascriptRecoveryToolContracts.ts",
|
|
"src/cli/javascriptRecoveryCommands.ts",
|
|
"src/cli/javascriptApplicationAnalysis.ts",
|
|
"src/server/createServer.ts",
|
|
"src/server/sessionAvailabilityPolicy.ts",
|
|
"src/application/CapabilityInventory.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/contracts/toolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
...CLI_LAUNCHER_INPUTS,
|
|
"src/process/**",
|
|
"src/resources/SafeOutputTree.ts",
|
|
"scripts/verify/javascript/recovery.mjs",
|
|
"scripts/fixtures/javascript-recovery/**",
|
|
"third_party/wakaru",
|
|
],
|
|
recorded_crash: [
|
|
".github/workflows/real-recorded-crash.yml",
|
|
"bridge/pwntools/**",
|
|
"bridge/pwndbg/**",
|
|
"src/native/pwntools/**",
|
|
"src/config/pwntoolsInputLimit*.ts",
|
|
"src/native/pwndbg/**",
|
|
"src/domain/native/recordedCrash*",
|
|
"src/application/binaryDiagnostics/**",
|
|
"src/ports/binaryDiagnostics/**",
|
|
"src/contracts/native/binaryDiagnosticsToolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/contracts/toolOutputSchemaGroups.ts",
|
|
"src/composition/binaryDiagnostics/**",
|
|
"src/server/createServer.ts",
|
|
"src/server/sessionAvailabilityPolicy.ts",
|
|
"src/cli/binaryDiagnosticsCommands.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/process/**",
|
|
"src/resources/readStableArtifact*.ts",
|
|
"src/domain/analysisError*.ts",
|
|
"scripts/verify-recorded-crash.mjs",
|
|
"scripts/verify/recorded-crash/**",
|
|
"scripts/lib/recorded-core-fixtures.py",
|
|
"scripts/fixtures/recorded-crash.c",
|
|
"third_party/pwndbg/**",
|
|
],
|
|
web_network: [
|
|
".github/workflows/real-web-network-captures.yml",
|
|
"bridge/mitmproxy/**",
|
|
"src/browser/history/**",
|
|
"src/domain/webNetworkCapture*.ts",
|
|
"src/domain/analysisError*.ts",
|
|
"src/contracts/errorSchemas.ts",
|
|
"src/domain/explicitSensitive*.ts",
|
|
"src/application/WebNetworkCapture*",
|
|
"src/composition/webNetworkCaptures.ts",
|
|
"src/cli/webNetworkCaptureCommands.ts",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/createServer.ts",
|
|
"src/server/toolRegistrationOptions.ts",
|
|
"src/cli.ts",
|
|
"src/contracts/cliCommandNames.ts",
|
|
"src/contracts/toolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/process/OwnedCommand.ts",
|
|
"src/process/ProviderProcess.ts",
|
|
"src/process/ProviderDeadline.ts",
|
|
"src/process/ProcessOwnership*.ts",
|
|
"src/process/PrivateRuntimeRoot.ts",
|
|
"src/process/capture/ProcessCaptureLifecycle.ts",
|
|
"src/resources/readStableArtifact*.ts",
|
|
"src/resources/ArtifactReader.ts",
|
|
"src/contracts/webNetworkCaptureToolContracts.ts",
|
|
"scripts/verify-web-network-captures.mjs",
|
|
"scripts/fixtures/generate-mitmproxy-capture.py",
|
|
],
|
|
web_runtime: [
|
|
".github/workflows/real-web-runtime.yml",
|
|
"scripts/verify-browser-runtime.mjs",
|
|
"scripts/lib/browser-runtime-*.mjs",
|
|
"src/process/ProviderProcess.ts",
|
|
"src/process/ProcessOwnership*.ts",
|
|
"scripts/fixtures/browser-runtime-site.mjs",
|
|
"src/browser/execution/**",
|
|
"src/browser/CdpConnection.ts",
|
|
"src/browser/CdpEndpoint.ts",
|
|
"src/browser/CdpTarget*.ts",
|
|
"src/browser/CdpCaptureValues.ts",
|
|
"src/browser/CdpAuthorized*.ts",
|
|
"src/domain/webRuntime.ts",
|
|
"src/domain/webExecution.ts",
|
|
"src/domain/webEventListeners.ts",
|
|
"src/domain/browserObservationError*.ts",
|
|
"src/application/WebRuntime*.ts",
|
|
"src/ports/WebRuntime*.ts",
|
|
"src/composition/webRuntime.ts",
|
|
"src/contracts/webRuntimeToolContracts.ts",
|
|
"src/contracts/toolEffects.ts",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/browserToolBindings.ts",
|
|
"src/server/createServer.ts",
|
|
"src/cli/webRuntimeCommands.ts",
|
|
"src/cli/commandCancellation.ts",
|
|
"src/cli.ts",
|
|
],
|
|
web_source_map: [
|
|
".github/workflows/real-web-source-map.yml",
|
|
"scripts/verify-browser-source-maps.mjs",
|
|
"scripts/lib/browser-source-map-e2e.mjs",
|
|
"scripts/lib/browser-nested-source-map-e2e.mjs",
|
|
"scripts/lib/browser-runtime-fixture-lifecycle.mjs",
|
|
"scripts/fixtures/browser-source-map-site.mjs",
|
|
"src/javascript/sourceMaps/**",
|
|
"src/browser/assets/**",
|
|
"src/domain/webSource*.ts",
|
|
"src/domain/webScript*.ts",
|
|
"src/application/WebSourceLocation*.ts",
|
|
"src/ports/WebSourceLocation*.ts",
|
|
"src/application/ValidateSelectedWebScript.ts",
|
|
"src/composition/webSourceLocations.ts",
|
|
"src/server/createServer.ts",
|
|
"src/contracts/webScriptToolContracts.ts",
|
|
"src/process/**",
|
|
"src/cli/webSourceLocationCommands.ts",
|
|
"src/cli.ts",
|
|
"src/resources/readStableArtifact.ts",
|
|
],
|
|
agentenv: [
|
|
".github/workflows/real-agentenv.yml",
|
|
"scripts/verify-agentenv-environment.mjs",
|
|
"src/{application,server}/environment/**",
|
|
"src/application/{JsonInputFile,OwnedJsonInput}.ts",
|
|
"src/resources/{SafeOutputTree*,StreamBytes}.ts",
|
|
"src/resources/ArtifactResourceScope.ts",
|
|
"src/process/RegularFileRead.ts",
|
|
"src/cli/cliJsonInput.ts",
|
|
"src/server/http/**",
|
|
"src/{cli,contracts/cliCommandNames,cli/environmentCommands}.ts",
|
|
"src/config/{environmentName,mcpHttpEndpoint}.ts",
|
|
"src/domain/analysisView/{environmentManifest*,EnvironmentManifest*,environmentState*,EnvironmentState*,recordedResponseBody,scenarioCaptureRecords,WebNetworkProjectionAccumulator,analysisViewDataAdmission}.ts",
|
|
"src/process/{OwnedCommand,ProviderProcess,PrivateRuntimeRoot}.ts",
|
|
"src/process/ProcessOwnership*.ts",
|
|
"tests/fixtures/historicalHar.ts",
|
|
],
|
|
nativeaot: [
|
|
"bridge/nativeaot/**",
|
|
"scripts/generate-nativeaot-fixtures.mjs",
|
|
"scripts/lib/nativeaot-build.*",
|
|
"tests/fixtures/nativeaot/**",
|
|
".github/workflows/nativeaot-fixtures.yml",
|
|
],
|
|
ghidra_bridge: [
|
|
...GHIDRA_PROJECT_COVERAGE_INPUTS,
|
|
"bridge/ghidra/**",
|
|
"src/ghidra/GhidraBridgeSources.ts",
|
|
"src/ghidra/GhidraJavaProperties.ts",
|
|
"src/ghidra/GhidraReleasePolicy.ts",
|
|
"scripts/verify-ghidra-bridge-sources.mjs",
|
|
"scripts/verify-ghidra-prototype-conflicts.mjs",
|
|
"tests/conformance/ghidra/ReaInstructionContextProbe.java",
|
|
"tests/conformance/ghidra/ReaComputedCallCoverageProbe.java",
|
|
"tests/conformance/ghidra/ReaDecodeProbe.java",
|
|
"scripts/verify-ghidra-loader-relocation.mjs",
|
|
"tests/conformance/ghidra/ReaLoaderRelocationProbe.java",
|
|
"tests/conformance/ghidra/loader-relocation*.c",
|
|
"tests/conformance/ghidra/ReaPrototypeConflictProbe.java",
|
|
".github/workflows/ghidra-bridge-sources.yml",
|
|
],
|
|
go_binary: [
|
|
".github/workflows/real-go-binary.yml",
|
|
"src/go/**",
|
|
"src/domain/go/**",
|
|
"src/domain/dosMz.ts",
|
|
"src/application/go/**",
|
|
"src/contracts/go/**",
|
|
"src/composition/go.ts",
|
|
"src/cli/goCommands.ts",
|
|
"src/server/contractToolBindings.ts",
|
|
"src/server/serviceToolBindings.ts",
|
|
"src/server/createServer.ts",
|
|
"scripts/verify-go-binary.mjs",
|
|
"scripts/lib/mcp-verifier-results.mjs",
|
|
],
|
|
android_metadata: [
|
|
".github/workflows/real-android-metadata.yml",
|
|
"bridge/android/**",
|
|
"src/android/JadxRelease.ts",
|
|
"scripts/fixtures/android/**",
|
|
"tests/conformance/android/**",
|
|
"tests/fixtures/android/static-initializers/**",
|
|
"tests/fixtures/android/direct-invokes/**",
|
|
"tests/fixtures/android/external-invokes/**",
|
|
],
|
|
website: [
|
|
"website/**",
|
|
"scripts/*website*.py",
|
|
"scripts/read-authored-skill-manifest.mjs",
|
|
"README*.md",
|
|
"docs/readme/README*.md",
|
|
".github/workflows/website-check.yml",
|
|
".github/workflows/website-contributors.yml",
|
|
".github/workflows/website-pages.yml",
|
|
],
|
|
};
|
|
|
|
// Only the broad PR matrix waits for static checks. Shared qualification and
|
|
// selected PR tests can start as soon as their runtime artifact is available.
|
|
export function testShardJob(event, tier, mode) {
|
|
return event === "pull_request" && tier === "fast" && mode === "full"
|
|
? "test-shard-broad"
|
|
: "test-shard";
|
|
}
|
|
|
|
// Each lane owns its path inputs, selection policy, and required jobs. The
|
|
// workflow stays explicit; contract tests bind it to this registry.
|
|
const sameJobs = (paths, jobs, selection = {}) => ({
|
|
paths,
|
|
required: { fast: jobs, full: jobs },
|
|
...selection,
|
|
});
|
|
export const CI_LANES = {
|
|
code: {
|
|
paths: [],
|
|
required: {
|
|
fast: ["build", "test-shard", "test-source", "test"],
|
|
full: ["build", "test-shard", "test"],
|
|
},
|
|
// A selected PR subset runs its source tests in the test-shard groups.
|
|
selectedTests: ["build", "test-shard", "test"],
|
|
},
|
|
runtime: sameJobs([], ["windows-native-build", "package-e2e"]),
|
|
package: sameJobs(PATH_SCOPES.package, ["windows-curated"], {
|
|
testInputs: true,
|
|
}),
|
|
apple: sameJobs(PATH_SCOPES.apple, ["apple-artifacts"], { testInputs: true }),
|
|
fixtures: sameJobs([], ["conformance-fixtures"]),
|
|
readiness: sameJobs(PATH_SCOPES.readiness, ["reconstruction-readiness"]),
|
|
docs: sameJobs([], ["docs"]),
|
|
workflows: sameJobs([], ["static"]),
|
|
python: {
|
|
paths: PATH_SCOPES.python,
|
|
earlyAll: true,
|
|
required: { fast: ["python"], full: ["static-deep"] },
|
|
},
|
|
packet_capture: sameJobs(PATH_SCOPES.packet_capture, ["packet_capture"], {
|
|
testInputs: true,
|
|
earlyInputs: CAPTURE_SHARED_INPUTS,
|
|
}),
|
|
signal_recording: sameJobs(
|
|
PATH_SCOPES.signal_recording,
|
|
["signal_recording"],
|
|
{ testInputs: true, earlyInputs: CAPTURE_SHARED_INPUTS },
|
|
),
|
|
reverse_tools: sameJobs(
|
|
PATH_SCOPES.reverse_tools,
|
|
["reverse-tools-quality"],
|
|
{ earlyAll: true },
|
|
),
|
|
sqlite: sameJobs(PATH_SCOPES.sqlite, ["sqlite-runtime"], {
|
|
testInputs: true,
|
|
}),
|
|
browser: sameJobs(PATH_SCOPES.browser, ["browser"]),
|
|
binary_layout: sameJobs(PATH_SCOPES.binary_layout, ["binary_layout"]),
|
|
evm: sameJobs(PATH_SCOPES.evm, ["evm"]),
|
|
apk_signature: sameJobs(PATH_SCOPES.apk_signature, ["apk_signature"]),
|
|
javascript_recovery: sameJobs(PATH_SCOPES.javascript_recovery, [
|
|
"javascript_recovery",
|
|
]),
|
|
recorded_crash: sameJobs(PATH_SCOPES.recorded_crash, ["recorded_crash"]),
|
|
web_network: sameJobs(PATH_SCOPES.web_network, ["web_network"]),
|
|
web_runtime: sameJobs(PATH_SCOPES.web_runtime, ["web_runtime"]),
|
|
web_source_map: sameJobs(PATH_SCOPES.web_source_map, ["web_source_map"]),
|
|
agentenv: sameJobs(PATH_SCOPES.agentenv, ["agentenv"]),
|
|
nativeaot: sameJobs(PATH_SCOPES.nativeaot, ["nativeaot"]),
|
|
ghidra_bridge: sameJobs(PATH_SCOPES.ghidra_bridge, ["ghidra_bridge"], {
|
|
earlyInputs: GHIDRA_PROJECT_COVERAGE_INPUTS,
|
|
}),
|
|
go_binary: sameJobs(PATH_SCOPES.go_binary, ["go_binary"]),
|
|
android_metadata: sameJobs(
|
|
PATH_SCOPES.android_metadata,
|
|
["android_metadata"],
|
|
{ testInputs: true },
|
|
),
|
|
website: sameJobs(PATH_SCOPES.website, ["website"], {
|
|
earlyInputs: [
|
|
".agents/skills/reverse-engineer-anything/**",
|
|
"scripts/lib/verifier-source-loader.mjs",
|
|
"src/domain/skillManifest.ts",
|
|
"src/domain/result.ts",
|
|
"src/domain/strictUtf8.ts",
|
|
"package.json",
|
|
"package-lock.json",
|
|
".nvmrc",
|
|
".npmrc",
|
|
],
|
|
}),
|
|
};
|
|
// An input owner omitted from the registry must never silently lose a lane.
|
|
for (const [name, paths] of Object.entries(PATH_SCOPES))
|
|
if (!Object.hasOwn(CI_LANES, name) || CI_LANES[name].paths !== paths)
|
|
throw new Error(`CI lane registry does not own input scope: ${name}`);
|
|
export const CI_FLAGS = Object.keys(CI_LANES);
|
|
|
|
// Verifier entrypoints that only manual, licensed, or self-hosted workflows
|
|
// run unless an explicit lane earlyInput owns one. Other edits need only the
|
|
// static checks and the source-test suite. Shared helpers under scripts/lib remain
|
|
// broad inputs.
|
|
export const MANUAL_VERIFIERS = [
|
|
"scripts/verify-real-electron.mjs",
|
|
"scripts/verify-real-ghidra*.mjs",
|
|
"scripts/verify-real-hopper*.mjs",
|
|
"scripts/verify-real-ida.mjs",
|
|
"scripts/verify-*-client.mjs",
|
|
"scripts/verify-native-agent-client.mjs",
|
|
"scripts/verify-jeb.mjs",
|
|
"scripts/verify-apktool.mjs",
|
|
"scripts/verify-adb.mjs",
|
|
"scripts/verify-agent-experience.mjs",
|
|
"scripts/verify-packaged-ghidra-windows.mjs",
|
|
"scripts/verify-wasm-artifact.mjs",
|
|
"scripts/verify-packaged-wasm-artifact.mjs",
|
|
"scripts/lib/ghidra-*-snapshot-e2e.mjs",
|
|
"scripts/lib/real-ghidra-snapshot-lifecycle.mjs",
|
|
];
|
|
|
|
// The OpenCode verifier also runs in the pull-request registration workflow.
|
|
// Keep edits to it out of the manual-only verifier path.
|
|
export const AUTOMATIC_VERIFIERS = ["scripts/verify-opencode-client.mjs"];
|