Repository navigation
refactor(sqlite): classify database failures through the shared provider classifier - #10870
Merged
Merged
Conversation
When a capture read's tool launch was refused with EPERM, pcap reported it as unreadable tool output (AnalysisProtocolError) instead of an unavailable tool. Pcap also never told "not executable" apart from "missing". Add classifyLaunchFailure in src/process as the one owner of which spawn errnos mean missing (ENOENT, ENOTDIR) and which mean present but not executable (EACCES, EPERM, ENOEXEC, EISDIR). Pcap, apktool and gdb used three different errno lists; all three now use it.
Add ProviderOutcome, read once from the supervisor's facts, and classifyProviderOutcome, the one mapping from an outcome to a typed error. Migrate pcap and the shared artifact producer command failure (TShark, sigrok). Add the rea/provider-failure-classifier lint rule with a shrink-only baseline of per-site (cause: unknown) => AnalysisError functions.
…red owner (#10598) The Ghidra and JADX Java probes and adb's version probe now take missing-versus-not-executable from classifyLaunchFailure instead of their own errno checks. ELOOP and ENAMETOOLONG join the owner's missing set, so adb keeps its existing classification and both Java probes now treat a non-directory path component as a missing runtime.
…ol exits unsuccessfully
Add ProviderOutcome, read once from the supervisor's facts, and classifyProviderOutcome, the one mapping from an outcome to a typed error. Migrate pcap and the shared artifact producer command failure (TShark, sigrok). Add the rea/provider-failure-classifier lint rule with a shrink-only baseline of per-site (cause: unknown) => AnalysisError functions.
…nto HEAD # Conflicts: # src/pcap/PcapCommand.ts
… a target refusal The supervisor now watches for a managed runtime's out-of-memory report while output streams (JVM java.lang.OutOfMemoryError, V8 'JavaScript heap out of memory'), so a retention budget cannot hide it. ProviderOutcome gains a runtime-exhausted kind and classifyProviderOutcome maps it once. Apktool decode opts in and moves to the shared classifier; Ghidra's single-purpose output token becomes the JVM runtime option and its area matching reuses the shared table.
…HEAD # Conflicts: # src/pcap/PcapCommand.ts # tests/evaluation/providerFailureClassifierRule.test.ts
…nto refactor/provider-outcome # Conflicts: # src/pcap/PcapCommand.ts
…fix/streaming-runtime-exhaustion
Name the executable on errnos Node throws synchronously from spawn (ENOEXEC, ENOTDIR, ...) and read the Windows native launcher's executable-launch constraint, so pcap attributes those refusals to the selected tool or limiter instead of an unknown stage.
…nto w5/provider-outcome # Conflicts: # src/pcap/PcapCommand.ts
…t retained stderr (#10724) The SQLite worker and the Node capture decoders now declare runtime: "v8", so the supervisor observes V8's heap report as output streams. Both classifiers read the runtime-exhausted outcome instead of matching retained stderr, so a report beyond the retention budget, or one whose process then overflowed its output budget, is still reported as memory exhaustion.
# Conflicts: # .oxlintrc.json # scripts/lint/index.mjs # src/pcap/PcapCommand.ts
…vider classifier (#10716) * refactor(evm): classify EVMole worker outcomes through the shared provider classifier The EVMole worker's cancellation, deadline, output budget and CPU/file-size signals now go through classifyProviderOutcome; only the prlimit launch refusal and the reserved EFBIG exit remain in its dialect. The worker is opted into V8 exhaustion scanning so a heap report names its fixed 256 MiB heap. providerOutcomeOf now reads a launch refusal only from a spawn errno, so a private-storage or carrier read errno is no longer reported as a limiter launch failure. * fix(evm): keep a stream failure's exit status and update Linux worker expectations * refactor(process): read launch refusals through the launcher identity owner * refactor(wasm): classify WABT command outcomes through the shared provider classifier (#10727) * refactor(wasm): classify WABT command outcomes through the shared provider classifier WABT's cancellation, command deadline, output budget, and inherited-limit signals now go through classifyProviderOutcome; its dialect keeps only the configuration-probe and launch-refusal unavailability and the unclassified-exit output error. A tool ended by SIGXCPU/SIGXFSZ or the memory limit is now a resource constraint instead of an output error, and a refused launch in the producer phase is reported as unavailable. The shared timeout context gains the analysis setting that selected the deadline, and the output-limit context may name its exceeded budget. * fix(wasm): keep setup guidance when a WABT version probe's output cannot be collected
…w5-10634 # Conflicts: # src/apktool/ApktoolProvider.ts # src/ghidra/GhidraDiagnostics.ts
…d the carried caller reason
…lassifier baseline
Merged
11 tasks
morluto
force-pushed
the
refactor/sqlite-database-classifier
branch
from
November 15, 2026 07:48
ec20d0b to
075dc37
Compare
…r classifier (#10836) * refactor(ghidra): classify Ghidra failures through the shared provider classifier PSP extension inspection reports through classifyProviderFailure with a Ghidra dialect. The startup deadline decides at abort time whether the shared startup owner closed it, so Ghidra and Hopper no longer compare the abort reason with the owner's sentinel, and Ghidra's startup no longer compares a producer cancellation's reason with the deadline's. Three helpers that only construct one error kind now name that kind instead of AnalysisError. * refactor(hopper): classify original-source read failures through the shared provider classifier (#10838) * test(ghidra): pin the aborted startup deadline over a producer cancellation * refactor(kuna): classify Kuna failures through the shared provider classifier (#10843) Session operations, the workspace copy and the project export report raw failures through classifyProviderFailure with Kuna dialects; the copy and export keep their cleanup report shapes through the readCleanup hook.
…' into w5/ccd # Conflicts: # src/pcap/PcapProvider.ts # src/process/ArtifactAnalysisResources.ts # src/signals/SigrokRecordingProvider.ts
# Conflicts: # scripts/verify/architecture-guard-baselines.json # src/captures/TsharkCaptureProvider.ts # src/providers/classifyProviderFailure.ts
…vider classifier (#10859) * refactor(ida): classify IDA operation failures through the shared provider classifier * refactor(process): let artifact-resource consumers classify through the shared provider classifier (#10867) * test(providers): pin attribution of a cleanup-failed read's typed primary
Base automatically changed from
refactor/ida-provider-classifier
to
refactor/sqlite-capture-classifier
November 15, 2026 11:12
# Conflicts: # src/ghidra/GhidraClient.ts # src/hopper/HopperClient.ts
…' into refactor/adb-provider-classifier # Conflicts: # src/ghidra/GhidraClient.ts # src/hopper/HopperClient.ts # tests/boundary/providers/ghidra/ghidraClient.test.ts
…capture-classifier # Conflicts: # src/process/ArtifactAnalysisResources.ts # src/sqlite/SqliteDatabaseWorkerExecution.ts
…er' into refactor/sqlite-database-classifier # Conflicts: # scripts/lint/rules/provider-failure-classifier-baseline.json # src/process/ArtifactAnalysisResources.ts # src/sqlite/SqliteDatabaseFailures.ts
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
morluto
changed the base branch from
refactor/sqlite-capture-classifier
to
main
November 15, 2026 12:07
…assifier # Conflicts: # scripts/lint/rules/provider-failure-classifier-baseline.json
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…assifier # Conflicts: # src/sqlite/SqliteDatabaseFailures.ts
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The second SQLite slice of W5c.
sqliteDatabaseFailure(cause, path, phase, ...), a recursiveunknown → AnalysisErrorclassifier, becomessqliteDatabaseDialect(path, phase, ...)for the sharedclassifyProviderFailure. Therea/provider-failure-classifierbaseline dropssrc/sqlite/SqliteDatabaseFailures.ts(1 → 0).Stacked on #10859 (IDA, which now also carries the artifact-resources change from #10867). Refs #10482.
Problem and expected behavior
The classifier re-derived typed pass-through, a failed read's unresolved cleanup, reader cancellation and selected-file access refusals beside the shared owner. Expected: SQLite supplies only its own meaning (snapshot acquisition diagnostics, the database file set's integrity and input refusals, a sharing-violation
EBUSY, the owned worker's reports, and its cleanup error). The shared owner does the rest.Change and scope
recognise: snapshot acquisition (classifies the operation cause through the same dialect and keeps the completed members), readeriocauses, integrity, path/format/limit input refusals,AbortError, the owned worker (the existingownedCommandFailure, now taking a typedOwnedCommandFailure), andEBUSYduring the artifact read.file(artifact-read phase only): the shared selected-file projection reportsEACCES/EPERMand missing or non-regular paths for the "database file set".readCleanup: the SQLite cleanup error with the shared read primary. A plain read failure without a file outcome still reports its physical cause as the primary, as before.cancelledBy; the selected-file refusal message ends with a period and covers the shared regular-file codes (addingEISDIR,ENOTFILE,ESTALEtoENOENT,ENOTDIR,ELOOP,ENAMETOOLONG).Not included, needs a maintainer decision:
classifyProviderOutcome(command/commandCleanup). That would report the diagnostic-captureoutput-limitasresource_constraintinstead of today'sunreadable_output(tests/boundary/sqlite/sqliteDatabaseProvider.test.tspins the current code), and would change the heap-exhaustion message. The worker classification therefore stays inownedCommandFailure, typed onOwnedCommandFailure.Contract and boundary impact
classifyProviderFailurewith the SQLite dialect.Evidence and regression coverage
SqliteDatabaseSnapshotLimits.test.tspin the reports and now callclassifyProviderFailure(cause, sqliteDatabaseDialect(...)).EBUSY, one native case) and run in CI.Validation performed
npm run check:fast: pass.npm run test:focused --with the eighttests/boundary/sqlite/*.test.tsfiles,src/sqlite/SqliteDatabaseSnapshotLimits.test.tsandtests/evaluation/providerFailureClassifierRule.test.ts: 10 files, 156 passed, 2 skipped.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.