Skip to content

feat(artifacts): name the integrity check for stable, selected and provider artifact sources - #11129

Merged
morluto merged 2 commits into
mainfrom
feat/integrity-check-artifact-sources
Nov 15, 2026
Merged

morluto merged 2 commits into
mainfrom
feat/integrity-check-artifact-sources

Conversation

@morluto

@morluto morluto commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

Refs #10508 (Phase 6.1). The artifact sources under the readers (stable reads, ArtifactFileSource, admission, selected-source spelling, GPU and model inputs, Android JNI libraries, local web scripts, canonical scan root, native plist) raised integrity failures that only the message told apart. Each now names its check.

Problem and expected behavior

  • Session and lifecycle tests matched "no longer resolves to its admitted source" and "source identity changed" to tell a selected-path retarget from other integrity failures.
  • Expected: the source names the check; tests and consumers read integrityCheck / details.integrity_check.

Change and scope

  • container-identity: selected file or path changed (stable reads, file source, admission, selected source, GPU, model, canonical scan root, plist), carrier digest differs from inventory.
  • read-coverage: GPU source truncated, model header or full-file hash ended before the admitted extent.
  • declared-size: Android native library longer or shorter than its ZIP size.
  • member-identity: local web script bytes differ from the selected inventory content; the captured-web read projection (WebArtifactReads) now forwards the check, which it previously dropped.
  • inventory-node: iNES inventory without its reconstruction scan.

With #11119 and #11125 this leaves one unnamed integrity throw in src/ (.NET bundle open, whose lines #11065 is editing).

Not included: a type-level guard requiring a check for every integrity failure; it becomes possible once the three PRs and the .NET site land.

Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.

Contract and boundary impact

  • Semantic owner and earliest changed stage: each source names its check at the throw: stable artifact reads, ArtifactFileSource, file admission, selected-source spelling, GPU and model providers and readers, Android JNI extraction, local web script selection, canonical scan root revalidation and the native plist source
  • Contribution scope fit and linked maintainer decision: approved owner change (Phase 6.1, [Design] Assert structured remediation facts instead of guidance prose #10508)
  • CLI and MCP/tool-catalog contract: additive: more integrity errors carry details.integrity_check (existing values only). Codes, categories and messages unchanged
  • Provider, bridge, target-format, or platform compatibility: none
  • Evidence, artifact, provenance, or reconstruction contract: none
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): unchanged
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; edit authored instructions in .agents/skills/reverse-engineer-anything/ and never commit build outputs): none

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: 7 message matches converted to integrityCheck: "container-identity": artifactAdmittedIdentity (2, session execute), asarSelectedCompanion, binarySessionAsarSelectedPath, godotPckIdentity, selectedArtifactSourceLifecycle, artifactFileSourceLifecycle
  • Base reproduction or other evidence: mutation (run, reverted): dropping the check from ArtifactSelectedSource and ArtifactFileSource failed 11 tests across all 6 converted files
  • User-visible CLI/MCP output (if applicable): e.g. inventory_artifact after the selected symlink is retargeted: "details":{"reason":"integrity","integrity_check":"container-identity",…}
  • Remaining proof gaps: GPU/model truncation, JNI size, web script identity, plist and scan-root checks have no deterministic public trigger without a race; they name fixed values at the throw and reach output through the existing projections

For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run test:focused -- tests/boundary/filesystem/artifactAdmittedIdentity.test.ts tests/boundary/filesystem/asarSelectedCompanion.test.ts tests/composition/analysis-sessions/binarySessionAsarSelectedPath.test.ts tests/boundary/filesystem/godotPckIdentity.test.ts tests/process-global/selectedArtifactSourceLifecycle.test.ts tests/process-global/artifactFileSourceLifecycle.test.ts: 56 passed (base: 56). Warm wall/CPU (user+sys): after 9.3 / 14.5 s and 9.5 / 14.0 s; before 8.3 / 13.9 s and 12.0 / 15.7 s (noise)
  • Regression: npm run test:focused -- tests/acceptance/gpuCodeObjectsCli.test.ts tests/boundary/model/modelArtifact.test.ts tests/boundary/providers/native/nativePlistSelection.test.ts tests/boundary/filesystem/webArtifactAcquisition.test.ts tests/boundary/providers/ghidra/ghidraFileFailure.test.ts: 186 passed
  • Mutation above: 11 failures, then reverted
  • Review fix (WebArtifactReads forwards integrityCheck): npm run test:focused -- tests/boundary/filesystem/webArtifactAcquisition.test.ts: 7 passed; the new source-mismatch details.integrity_check assertion fails without the fix
  • npm run check:fast: passed; node scripts/verify/architecture-guards.mjs: passed; npx oxfmt --check src tests: passed
  • command — result

Compatibility, safety, and release

Additive public detail only. No message, code or category changes.

  • Breaking changes or migration steps: none
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable; macOS only
  • Package or release metadata impact: none
  • Security, privacy, process, or containment review: none

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T13:01:03.777270Z
We couldn’t complete this review. Comment @codex review to try again.
06207dd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge, with the web error fix complete and no new blocking issues found.

Summary

Adds check names to existing artifact integrity failures without changing the checks themselves.

  • Changed artifact sources now name the identity check that failed.
  • Web script identity mismatches keep their check name in caller errors.
  • GPU and model readers name when a read ends too soon.
  • Android JNI library reads name mismatches with the ZIP-declared size.
  • A missing iNES reconstruction scan now has its own check name.

Reviews (3) · Last reviewed commit: "fix(browser): keep the reader's integrit..." · Reviewed by Greptile

Comment thread src/android/AndroidJniLibraries.ts Resolved
@morluto
morluto merged commit b3c50c1 into main Nov 15, 2026
7 of 9 checks passed
@morluto
morluto deleted the feat/integrity-check-artifact-sources branch November 15, 2026 13:35
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant