mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #4271] [Bug] Colliding ZIP paths receive a false integrity diagnosis and ineffective retry advice #1687
Closed
opened 2026-10-16 21:09:05 +00:00 by bsakaguchi
·
1 comment
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#1687
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?
Originally created by @coygeek on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/4271
Before submitting
Area
Evidence, artifacts, or reconstruction
Observed behavior
extract-artifactrefuses a valid ZIP whose regular members share one NFC logical path withcategory: integrity_mismatch, claims that the archive contradicts declared integrity, and recommends a retry that fails identically. Both members have correct CRCs and separately verified inventory content identities. Refusing this layout is legitimate under the existing no-overwrite extraction contract; the defect is the incorrect typed diagnosis and recovery advice. Byte-identical duplicate names reproduce the same problem, so this is one logical-path collision defect rather than separate Unicode and duplicate-entry issues.Reproduction
Use the source checkout and runtime described under Runtime or environment. From the repository root, prepare the locked dependencies with
npm ciand build withnpm run build, using the repository's pinned Node/npm. The following Python 3 recipe exercises that checkout's public launcher in isolated home, configuration, cache and temporary directories. It needsunzipfor a second reader's CRC check and creates regular stored members with Python's standard valid ZIP headers and timestamps. Both Unicode names carry the UTF-8 flag; the archive is read directly without first materializing its colliding names on the host filesystem.Expected behavior
A refusal caused by two regular occurrences mapping to the same destination logical path should identify the conflicting path using the existing path-failure contract (
details.reason: path), publish no output tree, and avoid claiming corrupt archive bytes or suggesting that an integrity-policy retry resolves the collision. Extraction may continue to refuse the entire layout. No disambiguating names, overwrite mode, subset selector, or successful materialization of both occurrences at one pathname is required.The public extraction schema has no entry or artifact-ID selector: it extracts every regular child of the active artifact. Inventory intentionally retains duplicate same-kind paths as distinct occurrences, and NFC normalization is intentional. Those inventory facts do not imply that every layout is materializable. The integrity policy concerns declared-versus-observed contradictions and need not bypass collision refusals or internal inventory/write verification.
Impact and scope
P3, supported: this changes the typed diagnosis and recovery guidance for a bounded refusal. Extraction may legitimately continue refusing this layout. Every failed extraction left its owned destination empty, and no data loss or incorrect successful output was observed. The emitted integrity-policy retry fails identically; a safe external-extraction workaround remains unverified.
REA version
Source build at
461eb16128, freshly fetched from public main and rebuilt with locked dependencies before the exact reproduction and focused checks. The independently verified original source baseline was62bf09809e. Both source launchers report 6.5.0; published-package behavior was not reproduced.Runtime and platform
Node.js v24.18.0 and npm 11.16.0; macOS 27.0.1 arm64. Python 3 standard-library zipfile and unzip -t supply independent archive/content validation. They do not establish safe external extraction.
Target and artifact context
A tiny self-authored stored ZIP with two ordinary regular members whose valid UTF-8 names differ by Unicode composition. Inventory retains both physical occurrences with verified content identities at the intended NFC logical path. No application target is involved.
Interface
CLI
Earliest failure stage
Native analysis or reconstruction, during artifact materialization after successful inventory.
Relevant output or evidence
The collision inspection exits 0 with two distinct occurrence IDs, logical path
café.txtfor both members, sizes 6 and 12,hash_status: verified, and an emptyintegrity_contradictionsarray. Their observed SHA-256 values areb6a98d9ce9a2d9149288fa3df42d377c3e42737afdcdaf714e33c0a100b51060and73b349007b6b3acf28463c3e759f8be279163402a49080194de9c7912a5c79a7, matching independent content calculations. Python reads both physical entries correctly, andunzip -texits 0.Both collision extraction calls exit 1, emit no stderr, and leave their isolated temporary directories empty. Their errors contain the following fields, and the message says that the bytes contradict declared integrity and recommends
--integrity-policy record-and-continueor a fresh copy. The retry fails with the same fields and message.Executed additional controls show the same bounded diagnosis error: reversing member order reports
Extracted content exceeds the inventoried size; different equal-length contents reportExtracted content disagrees with inventory; equal-content members reportRegular artifact entry is missing from inventory. Exact duplicate raw names with different contents or identical contents also produce an integrity failure. These are supporting variants of the same logical-path collapse, not additional reports. Noncolliding names and a single decomposed name extract successfully with independently checked bytes. A file/directory path collision correctly reports reasonpath. A separate bad-CRC control reports reasonformatunder both integrity policies.The unchanged draft recipe also passed on the freshly rebuilt current-main source: nine public CLI calls, both policy settings and successful distinct/single-NFD controls. All 37 existing focused tests passed across four files. These passing checks do not catch this duplicate-path diagnostic.
src/contracts/artifactToolContracts.ts:30-39,86-89defines complete extraction without a selector and promises never to overwrite;src/domain/analysisErrorPresentation.ts:418-432distinguishes conflicting-path guidance from declared-integrity guidance;tests/boundary/providers/native/artifactProvider.archiveSafety.test.ts:82-126establishes typed path refusal and absent output when a destination cannot preserve colliding names;src/domain/artifactIdentity.ts:11-12owns intended NFC logical spelling. Closed #3152 explicitly preserves extraction reasonpathwhile admitting duplicate inventory occurrences.src/artifacts/ArtifactPaths.test.ts:30-37explicitly permits repeated same-kind inventory entries, andtests/boundary/filesystem/artifactZipIntegrity.test.ts:265-322retains duplicate ZIP source identities.src/artifacts/extraction/ArtifactExtraction.ts:217-219,298-328indexes selected occurrences by logical path and compares the first physical member against the surviving same-path item, then deletes that path;src/artifacts/SafeOutputTree.ts:230-253detects the resulting size/hash mismatch. These source locations explain the observation without prescribing a repair.Pinned source: extraction input and result contract.
Pinned source: materialization selection and traversal.
Pinned source: output byte verification.
Typed outcome or recovery expected
Run the unchanged valid collision fixture through the public launcher with both integrity-policy settings. A typed path refusal (
details.reason: path) identifying the collision, with no published output and no false declared-integrity or ineffective retry advice, restores this contract. Preserve NFC normalization and inventory multiplicity. The noncolliding and single-decomposed-name controls must still extract the expected bytes, genuine corruption must remain a failure, and internal inventory/write contradictions must remain guarded. Reordered, equal-length, equal-content, and exact-duplicate variants should not masquerade as damaged source bytes. The existing extraction, duplicate-reader and cleanup checks should remain green.Additional context
This review verified the diagnostic defect only. It observed neither a successful extraction with the wrong occurrence nor source/output data loss. The supported public input offers no individual occurrence selection, so no claim of a broken selected-artifact workflow is made. The
record-and-continuefailure is included because it disproves the emitted recovery advice, not because the flag must suppress materialization checks. The registry's comment about rejecting exact collisions is narrower in executable behavior: repeated same-kind entries are intentionally accepted by its tests.Closed issue #3152 explicitly requires duplicate-member inventory to complete while extraction continues to refuse with reason
path, excludes caller selection, and distinguishes collisions from declared-hash contradictions. Its closing inventory change permits repeated same-kind entries in the shared registry; the extraction path map remains unchanged. This is a follow-up diagnosis regression after inventory became multiplicity-aware, rather than another request to admit duplicates or choose a winning member. The existing subset/destination feature request #3490 describes a correct case-collision refusal and proposes new selection capabilities. Issue #4124 rejects leading./producer paths during inventory, and #3953 misclassifies missing ZIP headers beyond EOF. Their triggers and restoration signals differ from the valid same-logical-path extraction diagnosis here. No alternate extractor was used to materialize this fixture, and no safe external-extraction workaround is established by the CRC-onlyunzip -tcheck.Fresh closed-report comparisons distinguish #1725 (reader physical-entry identity), #3956 (duplicate-path comparison counts), #1318 (false success after an inventoried file disappears), #1470 (case-distinct inventory admission), #1488 (NFC joins), and #1860 (engine JAR admission). They do not report this current false diagnosis after successful duplicate inventory. NOT_ENOUGH_INFO: packaged-release reproduction, MCP transport, other platforms/filesystems, a practical safe workaround and repaired-build restoration were not tested. Historical causality is source-derived; no old runtime was executed.
Triage assessment
@morluto commented on GitHub (Oct 16, 2026):
Fixed on
mainin 862a0b263. Artifact extraction preflights colliding materialization paths, preserving duplicate inventory occurrences and returning a path refusal before acquiring output resources.Collision, inventory and cleanup controls cover the reported false integrity diagnosis and ineffective retry.
Hosted main CI is still pending; this closure is based on the implemented fix and the scoped regression evidence.