mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
Open
opened 2026-10-31 01:11:41 +00:00 by bsakaguchi
·
0 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#6077
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/morluto/rea/pull/4133
Author: @0xLLVEL
Created: 10/15/2026
Status: 🔄 Open
Base:
main← Head:feat/cluster-artifacts📝 Commits (10+)
dfce61afeat(evidence): cluster inspected artifacts into families by root digestfc51e3bfix(evidence): keep cluster member identity and byte claims exact8ca824dfix(evidence): count scope exclusions on the scope axis onlyb5b1352fix(evidence): bound the cluster member index and make its rows exactca971ebfix(server): measure the clustering response before delivering it158e1dafix(evidence): keep clustering coverage, identity, and provenance exact0e40918fix(evidence): count clustering omissions and withhold the index without reparsingacadcfafix(evidence): remove the unused clustering input type aliasd7d00b4Merge remote-tracking branch 'upstream/main' into feat/cluster-artifactse418b75test(mcp): assert the canonical input-contract error📊 Changes
21 files changed (+2848 additions, -4 deletions)
View changed files
📝
.agents/skills/reverse-engineer-anything/references/evidence-workflows.md(+9 -0)📝
docs/cli.md(+13 -0)📝
docs/mcp-contracts.md(+56 -0)➕
src/application/artifacts/ArtifactFamilyClusteringCommand.ts(+66 -0)➕
src/application/artifacts/ArtifactFamilyClusteringEvidence.ts(+61 -0)📝
src/cliCommandNames.ts(+1 -0)📝
src/cliEvidenceCommands.ts(+46 -0)📝
src/contracts/sessionToolContracts.ts(+6 -0)📝
src/contracts/toolContractExamples.ts(+8 -0)📝
src/contracts/toolEffects.ts(+1 -0)📝
src/contracts/toolOutputSchemaGroups.ts(+2 -0)➕
src/domain/artifactFamilyClustering.test.ts(+753 -0)➕
src/domain/artifactFamilyClustering.ts(+563 -0)➕
src/domain/artifactFamilyClusteringIndex.test.ts(+137 -0)➕
src/domain/artifactFamilyClusteringIndex.ts(+196 -0)📝
src/domain/artifactInventoryEvidence.test.ts(+14 -1)📝
src/domain/artifactInventoryEvidence.ts(+12 -3)➕
src/server/registerArtifactFamilyClusteringTool.ts(+180 -0)📝
src/server/registerSessionTools.ts(+7 -0)➕
tests/boundary/cli/clusterArtifactsCli.test.ts(+80 -0)...and 1 more files
📄 Description
Summary
Closes #4135.
Analysts can already compare two inspected artifacts, but nothing answers the
wider question: among the artifacts I have inspected, which are the same
build, which merely share members, and which only look alike? Today that
answer has to be reconstructed by hand from pairwise comparisons and
occurrence lists.
This adds
cluster_artifacts(MCP session tool) andrea cluster-artifacts(CLI). It partitions two or more complete
inspect_artifactinventories byexact root content digest and indexes every graph member as shared, partially
shared or unique. It reuses the existing artifact inventory contract instead of
introducing a parallel one: every family and member row cites the member
Evidence that established it, and a member that cannot be compared is reported
unplaced with its reason, never as different.
Related follow-up issue:
#4135. Its full scope (retained-referenceand summary members) stays listed under Remaining proof gaps.
Problem and expected behavior
byte-identical at the root and which members they share.
compare_artifactsoutput exists, so the grouping andthe sharing threshold are reconstructed manually.
becomes a claim. A member whose inventory is incomplete, contradictory or
declared under a different coverage scope is reported unplaced with its
reason; a re-packed container with identical members has no family and appears
only in the member index; a member with no partner is counted without being
evidence of difference.
status(partitioned/partial/unknown), familyrows whose members each carry their own Evidence identity, a shared / partially shared / unique
member index that is never paged away, and explicit
coveragefields for thescope, the shared-member threshold actually used and whether the member index
was withheld.
Change and scope
src/domain/artifactFamilyClustering.tsowns placement: the singleroot-sha256family tier, the strict-majority coverage scope, theshared/partially-shared/unique index, unplaced rows with reasons, code-point
ordering, and explicit resource bounds (
ARTIFACT_FAMILY_MEMBER_LIMIT= 64members, 250,000 examined nodes before the index is withheld rather than
reported partially).
src/domain/artifactInventoryEvidence.tsextractsdeclaresCompleteInventoryso "graph members present" and "producer declarescomplete child coverage" are one decision instead of two callers with
different definitions. Behavior-preserving.
ArtifactFamilyClusteringCommand.ts,ArtifactFamilyClusteringEvidence.ts,registerArtifactFamilyClusteringTool.ts,the session tool contracts (
sessionToolContracts,toolEffects=sessionEvidence,toolOutputSchemaGroups,toolContractExamples),cliEvidenceCommands.tsandcliCommandNames.ts.docs/mcp-contracts.mdand the authored skill reference.agents/skills/reverse-engineer-anything/references/evidence-workflows.md;skills/is regenerated bynpm run artifacts:skillsand not committed.inspect_analysis_viewsummaries (inline Evidence only), cost measurements,and CI coverage for a truncation shape the public producer cannot currently
emit (see Remaining proof gaps).
No target execution, injection, mutation or protection recovery, and no
provider is launched — a boundary test asserts the clustering path refuses to
start one. Maintainer scope decision: not applicable.
Contract and boundary impact
remains the owner of inventory facts (
src/domain/artifactInventoryEvidence.ts);the new domain function decides placement from those facts only. No producer
representation was added downstream and no consumer reinterprets raw source.
read-only analysis boundary; no maintainer scope decision required, and none
is claimed.
cluster_artifacts(effect
sessionEvidence) with a strict input schema and output schema boundthrough the existing
toolOutputSchemaGroupsmap, plus the CLI commandrea cluster-artifacts. Advertised JSON Schemas are validated bydocs:checkand the output-schema profile tests.started and no format reader changed. One member shape is host-dependent — a
universal Mach-O is only fully readable where a native slice adapter exists —
and the boundary test reads the producer's own coverage declaration instead of
assuming which host it runs on.
member rows carry the member
evidence_ids that established them; unplacedmembers carry a reason; the producer's own per-member limitations travel into
the result prefixed with the caller's label.
applicable — nothing is selected, launched, attached to or cleaned up. The
clustering handler returns a validation error if an Evidence reference cannot
be resolved by the caller's session instead of launching anything.
docs/public/product-catalog.json), package, orinstallation impact: none. Authored instructions were edited in
.agents/skills/reverse-engineer-anything/and regenerated locally; no buildoutputs are committed.
Expected effects:
Evidence and regression coverage
src/domain/artifactFamilyClustering.test.ts— 14 tests over everyplacement decision: family formation, shared/partially shared/unique
thresholding, repeated labels, per-row source Evidence, graph-derived root
digests, truncated inventories, members that declare unknown child coverage,
scope ties, strict-majority scope, coverage accounting, paging, determinism
and result-shape validation.
tests/boundary/mcp/artifactFamilyClusteringMcp.test.ts— 3 tests drivingthe real MCP session (
createServer({ kind: "session" }), linked in-memorytransports,
ArtifactProvider) throughopen_binary→inspect_artifact→cluster_artifacts, with Evidence read back from the session and passedinline. Fixtures are fixture code: archives written per run with the
existing
@zip.js/zip.jswriter, and a universal Mach-O built with therepo's own
fatImage/machoImagefixtures.that real session over a universal Mach-O plus a ZIP before the fix — the
result reported
status: "partitioned"whilesummary.members_with_unknown_inventorywas already1and the memberappeared in no family, index or unplaced row. After the fix the same input
reports
partialwith the member inunknown_membersasincomplete-inventory. The regression is covered deterministically by thedomain test using the new
coverageStatusfixture option, which fails on thebase revision.
real call are
status: "partial",coverage.member_scope: "container-entries",families: [{ family_id: "unplaced", tier: null, members: [], unknown_members: [{ label: "universal", reason: "incomplete-inventory" }] }],summary.members_with_complete_inventory: 1,summary.members_with_unknown_inventory: 1,summary.members_without_family: 1, and a limitation beginninguniversal: Universal Mach-O slices.host without a native slice adapter, so that boundary test reads the
producer's declaration and skips where children are readable; (2) a
count-truncated inventory is covered by the domain test only, because a
3,000-entry ZIP still reports complete coverage and a CRC-contradicted
archive is refused by the producer even under
integrity_policy record-and-continue; (3) no cost measurement was taken, sono performance claim is made.
For evidence-bearing changes:
Validation performed
npx tsc --noEmit— exit 0.npm run lint(oxlint plus module-boundary verification over 1,941 sourcefiles) — exit 0; repository-wide warnings unchanged.
npm run check:fast— exit 0.npx vitest run src/domain/artifactFamilyClustering.test.ts tests/boundary/mcp/artifactFamilyClusteringMcp.test.ts tests/boundary/filesystem/artifactComparison.test.ts tests/boundary/filesystem/setupSkill.test.ts— 45 passed, 4 skipped (49), exit 0.
npx vitest run src/domain tests/boundary/filesystem/artifactComparison.test.ts tests/boundary/filesystem/setupSkill.test.ts tests/boundary/mcp/artifactFamilyClusteringMcp.test.ts— 3,235 passed, 4 skipped (3,239) across 186 files, exit 0.
npx vitest run tests/boundary/mcp/artifactFamilyClusteringMcp.test.ts -t "unknown child coverage"— the new test runs on this host (1 passed), it does not silently skip.
npx oxfmt --checkon every changed file — all correctly formatted.npm run docs:generatethennpm run docs:check— exit 0, includinggenerate-skill-metadata.mjs --check, the product catalog, doc facts andtests/conformance/readmeConsistency.test.ts(5 passed).the caller already holds and starts no provider; the boundary test asserts a
provider launch would be a bug. No Hopper, Ghidra or IDA run is involved.
After merging main (
905cbaf23)sessionToolContracts.tsandtoolContractExamples.tsneeded both new tools (this PR'scluster_artifactsand main'smatch_native_functions), andartifactInventoryEvidence.test.tsneeded both import sets. Resolved as a union, with main'sbundleComparisonMcpInputSchemareplacing the olderbundleComparisonInputSchema.npm ci,npm run build:cached— exit 0.npm run check:fast— exit 0.npm run test:focusedover the six clustering/encoding files — 47 passed, exit 0.npm run test:focusedovertoolEffects,toolInputReferences,toolOutputReferences,compactInputSchema,mcpResponseBudgetandtargetContentProvenance— 101 passed, exit 0.npm run docs:check— exit 0.invalid_request/inspect_input_contractenvelope, so the "not artifact inventory Evidence" case asserts that structured contract instead of the old "Input validation" sentence.Compatibility, safety, and release
extraction is behavior-preserving (verified by the 19
artifactComparisonboundary tests and the full domain suite); no schema field was removed or
renamed, and the CLI/MCP surfaces are additive.
launched. The one platform-dependent member shape (universal Mach-O) is
handled by reading the producer's declaration.
skills/aregenerated and validated by CI rather than committed here.
selected, launched, attached to or modified; no process is supervised or
signalled; member labels are caller text and are never parsed as identity;
no credentials or transport data are persisted.
Review round (
fc51e3b00)Every finding from the first review round (Greptile and Codex) was addressed,
and each thread carries a reply with its root cause, structural fix and
validation:
observations: [{ label, evidence_id }]and countmembers, so repeated labels stay distinct and a row keeps its provenance when
it has no family row.
(graph-derived digest, unread symlink targets uncommitted) is compared and
counted but never called byte-identical, and directory nodes leave the member
index;
members_without_byte_root_digestandnodes_without_byte_identitykeep those omissions visible.
(
members_with_complete_inventory,members_with_unknown_inventory,members_outside_member_scope).coverage.families_offsetandcoverage.families_limitand in the retained Evidence parameters, and the CLIenforces the 64-member bound before reading any document.
8ca824d70:members_outside_member_scopecounts on the scope axis only (completeinventories, with the no-majority case defined explicitly), so it no longer
counts members whose own inventory is incomplete.
Author readiness
Human owner: @0xLLVEL
Before merge
type(scope): outcome.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.