Commit Graph
5484 Commits
Author SHA1 Message Date
2SinceJuly b6e40dc914 fix(artifacts): compare Evidence by identity across a replay session
The composed-workflow test opened a second fixture, which writes its own
temp artifact, so a replay record's subject path and the session-attributed
provider selection no longer matched the snapshot copy. Both are display
metadata outside the Evidence id; the provider call is what establishes
the binding here, so compare the content the id commits to and assert the
ids separately, which the test already does.

Also apply the formatter to BinarySessionInvestigation.test.ts, which
fails format:check on its own.
2026-11-13 03:54:11 +08:00
2SinceJuly 332c3afedd fix(evidence): keep retained display metadata and notify observers on duplicate
Attribution replaced the whole stored record with the incoming copy, so a
provider-produced duplicate without the caller-selected path, alias set or
subject display erased the metadata the recording session retained merely to
add provider_selection. Adopt only the display facts the incoming copy actually
carries; omission is not deletion. Import keeps its documented replace
semantics.

The duplicate branch also returned before refreshEvidenceMetadata and
#emitSnapshotChanged, so replay caches and snapshot subscribers kept the old
metadata after a successful replacement. Treat a non-no-op replacement exactly
as the import path does.
2026-11-12 15:55:42 +08:00
2SinceJuly be3c6ae4e1 fix(evidence): adopt the recording session's selection on a duplicate record
Recording an observation the ledger already holds under the same semantic ID
returned duplicate and discarded the attributed object, so lookup and export
kept the imported record's missing or foreign provider_selection. Replace the
retained display metadata with the active selection on that path; semantic
identity and the stored payload stay the same record.

The provenance schema also accepted a selected candidate that is unavailable
or unsupported, which no registry path can bind. Require the selected
candidate to be available and supported so an imported bundle cannot
re-export a selection that never occurred.
2026-11-12 14:47:38 +08:00
2SinceJuly 1380c952f0 fix(evidence): require one selected candidate in provider provenance
provider_selection carries no separate selected-provider id, so a reader can only name the recording session's provider when exactly one candidate claims the selection. The schema accepted any candidates array, so an imported bundle could re-export zero or several selected candidates under a stable Evidence id and consumers would have no way to resolve the provider.

The recording paths always derive the selection from a single bound provider (AnalysisProviderRegistry selects one usable candidate, and SessionProviderRouter marks only the bound id selected), so the refine rejects only foreign input.
2026-11-11 19:34:52 +08:00
2SinceJuly 97b4ecad31 Merge remote-tracking branch 'origin/main' into feat/9137-session-provider-provenance 2026-11-11 16:36:40 +08:00
morluto b94d811500 fix(cli): retain cancellation observed during final cleanup (#9944) 2026-11-11 03:20:06 -05:00
2SinceJuly 679fbe2cbe fix(providers): attribute the atomic Evidence-and-Unknown mutation record
recordEvidenceWithUnknown synthesizes its own rea.residual-unknown-mutation record, so the selection the session threads into recordUnknown and updateUnknown never reached it. The atomic comparison workflows therefore exported one record without provider_selection, contradicting the guarantee that every admitted record carries the recording session's selection. Thread the active binding through the atomic method as well; analyst-authored mutation records still keep analyst-inference authority and gain only the session selection.
2026-11-11 15:43:17 +08:00
morluto 2b1f725221 fix(browser): validate retained runtime source identity (#9941) 2026-11-11 02:28:27 -05:00
morluto 91456101f1 fix(asn1): preserve decoder capacity refusals (#9932) 2026-11-11 02:26:46 -05:00
morluto a2aea3f4c6 fix(web): preserve exact module imports and capture coverage (#9940) 2026-11-11 02:22:30 -05:00
morluto 19f7eef513 fix(reconstruction): qualify claims against retained source coverage (#9937) 2026-11-11 02:21:36 -05:00
N0zoM1z0andgensokyo-dev e8fc501e06 test(mcp): parse discovery replies at the unknown SDK boundary
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:51:05 +08:00
N0zoM1z0andgensokyo-dev 10a5a60000 test(mcp): preserve catalog visibility on exhausted discovery pages
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:51:05 +08:00
N0zoM1z0andgensokyo-dev 310993d4cb fix(mcp): distinguish discovery exhaustion from absent matches
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:51:05 +08:00
N0zoM1z0andgensokyo-dev 1de3298eeb test(cli): assert typed selector refusals rather than nested issue text
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:43:19 +08:00
N0zoM1z0andgensokyo-dev ff86e19e23 test(cli): place selector regressions in the discovered adapter suite
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:43:19 +08:00
N0zoM1z0andgensokyo-dev 1544fe8803 fix(cli): admit equivalent addresses in native analysis commands
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:43:19 +08:00
N0zoM1z0andgensokyo-dev e33a207749 fix(cli): compare native selector coordinates through the address owner
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:43:19 +08:00
N0zoM1z0andgensokyo-dev 4e96d64189 refactor(ntfs): share the producer-owned record identity verdict
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
N0zoM1z0andgensokyo-dev 4546673eec refactor(ntfs): keep reference lookup refusals in tagged results
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
N0zoM1z0andgensokyo-dev b99a7b6a21 feat(ntfs): advertise extension link coverage and shared capacity
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
N0zoM1z0andgensokyo-dev 5934ba1bf9 test(ntfs): retain extension facts across inventory and paired workflows
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
N0zoM1z0andgensokyo-dev b3bab01b22 feat(ntfs): resolve acquired extension attributes by full identity
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
N0zoM1z0andgensokyo-dev 428590e9f2 feat(ntfs): define bounded attribute reference evidence
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 14:10:25 +08:00
2SinceJuly eeca98bb2b fix(providers): attribute staged snapshot and unknown-mutation Evidence
Address the open review findings on session provider provenance:

- importAnalysisSnapshot merged the re-attributed bundle into the ledger but
  staged the snapshot's own bundle, so AnalysisSnapshotCache rebuilt replay
  bindings from records the merge had replaced. Hand the merged bundle back
  to the stage so replays bind to the attributed evidence.
- recordResult recorded an attributed record and then serialized the
  caller's copy, so successful MCP responses omitted provider_selection
  while the ledger and exports carried it. Read the recorded Evidence back
  before delivery, as the direct analysis path already does.
- recordUnknown and updateUnknown synthesized unknown-mutation Evidence
  without the active session's provider selection, so those exported
  records were unattributed. Thread the binding's selection through to
  unknownMutationEvidence, which is where the record is produced.
2026-11-11 13:51:11 +08:00
morlutoandCursor Agent 1e80a96094 fix(python): handle one-byte marshal strings and deep code references (#9895)
* fix(python): decode marshal one-byte strings as Latin-1

* fix(python): hash referenced code objects iteratively

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-11 00:44:54 -05:00
morlutoandCursor Agent abc4f0f8b2 fix(android): validate DEX long syntax before conversion (#9909)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-11 00:44:20 -05:00
morlutoandCursor Agent 5c2917266d fix(inputs): validate command admission and preserve valid MCP requests (#9901)
* fix(cli): validate named inputs before target admission

* fix(mcp): preserve valid inputs when advertised schema references widen

* test(inputs): reach session behavior with admitted inputs

One-shot admission now rejects incomplete requests before a session exists. Lifecycle tests supply the required fields, and unknown arguments are rejected before provider issues are retained.

* fix(cli): preserve Electron fuse path spelling

Anchor relative fuse paths without stripping dot segments, and let an empty path reach the operation so it still reports invalid_request.

* fix(cli): reject outline-depth unless detail is summary

The advertised schema already required detail summary whenever outline-depth
was present. The parser still applied the full default and accepted that
combination, so its output failed the same schema. Parsing now rejects it
before the command runs.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-11 00:43:30 -05:00
morluto 6de105bc60 fix(kuna): validate output and retain exact cleanup ownership (#9974)
* fix(kuna): preserve output validity and cleanup ownership

* fix(kuna): preserve Unicode boundaries in diagnostic tails
2026-11-11 00:26:08 -05:00
morluto 7aaff2e4e4 fix(cli): retain Evidence receipts on format refusal (#9943) 2026-11-11 00:22:30 -05:00
morlutoandCursor Agent 6a2b690440 fix(environment): preserve capture evidence during state inference (#9897)
fix(environment): preserve evidence when inferring and serving state

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-11 00:14:27 -05:00
N0zoM1z0andgensokyo-dev a8cd7cadc0 fix(ntfs): align inventory limitations with decoded metadata
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 22a3ba263e refactor(ntfs): select metadata details from the retained identity index
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 1a8a9b749a perf(ntfs): make detailed MFT pages opt in for journal queries
Keep inventory counts inline and preserve explicit 1–32 record detail requests. The real 26-record Windows sample serialized 57,946 metadata bytes before detail selection.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev c51ac43f9c fix(ntfs): retain valid entries before malformed attribute list tails
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 710c353bff feat(ntfs): page MFT metadata alongside journal events
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 96086e9c1f feat(ntfs): report bounded V4 extents and unknown history coverage
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev f8ed4d16a0 feat(ntfs): decode V3 journal identities without false MFT joins
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 699cb72c48 feat(ntfs): validate resident and nonresident attribute metadata
Keep attribute parsing at the verified record boundary and retain only the identity index for journal joins.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
N0zoM1z0andgensokyo-dev 411804afbf feat(ntfs): expose source file names and lossless metadata
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:13:09 +08:00
morlutoandCursor Agent 81c09773be fix(hopper): scope recovery guidance to the caller lifetime (#9905)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-11 00:09:05 -05:00
morluto 25d46f3a58 fix(captures): validate packet read scope before paging (#9922) 2026-11-11 00:06:36 -05:00
morluto 75871ebb8b fix(hopper): finish cleanup after progress observer failures (#9966) 2026-11-11 00:05:55 -05:00
N0zoM1z0andgensokyo-dev ffac2e0c99 perf(ntfs): reuse validated acquisitions and MFT identity lookups
Retain one completed pair per resource scope, revalidate selected file state on every page, invalidate failures, and clear retained bytes at shutdown. Keep cold CLI process costs explicit.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev fc9585a44f feat(artifacts): expose verified file state for snapshot reuse
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev 7771fb7123 fix(ntfs): describe the journal page row limit
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev 2847464189 perf(ntfs): decode journal pages at their requested offsets
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev 58edc31638 fix(ntfs): leave unused MFT reference identities unresolved
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev 114b57678f test(ntfs): retain paired facts through journal cleanup retry
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00
N0zoM1z0andgensokyo-dev 4a8b157a28 fix(ntfs): retain completed MFT facts after journal failure
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-11 13:03:32 +08:00