Skip to content

feat(evidence): project Go and Rust dependencies as CycloneDX - #8445

Merged
N0zoM1z0 merged 28 commits into
morluto:mainfrom
mvanhorn:fix/cyclonedx-dependency-view
Nov 17, 2026
Merged

N0zoM1z0 merged 28 commits into
morluto:mainfrom
mvanhorn:fix/cyclonedx-dependency-view

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a deterministic CycloneDX 1.6 view for retained Go and Rust dependency Evidence. Package URLs are emitted only where supported by source facts; local replacements, missing metadata, unknown composition and graph limitations remain explicit. The view reads retained facts and does not reopen or execute the target.

Share current file-identity admission with existing Go/Rust views through evidenceFileTarget. The one-MiB document ceiling uses the canonical fixed-ceiling owner, preserving exact versus lower-bound measured bytes and parent-Evidence export recovery.

Validation

  • 144 feature/shared source, 80 provider capability/lifecycle-map and 126 public CLI/MCP/filesystem/view boundary cases passed.
  • Actual CLI and stdio MCP BOMs passed SHA-256-pinned official CycloneDX schemas. A real local Go module was compiled and inspected without execution; Rust input is explicitly a synthetic cargo-auditable fixture. Deterministic output, parent IDs, local replacements and derived parameters matched across adapters.
  • Runtime/verifier typechecks, lint/format, ordinary and production Knip, architecture/module boundaries, metadata, docs checks and rendered docs build passed.
  • Four-profile advertised catalogs passed verification, including Python meta-validation of all 255 distinct converted schemas. Optional C++ and Rust engines were unavailable. Final-head CI passed all required gates and all 12 test shards. Automated review passed with no unresolved threads.

Local expensive checks were serialized under one CPU and an 8 GiB hard / 6 GiB early-stop budget; largest observed process-family peak was about 2.43 GB, without a resource abort or OOM. Full typed lint was not rerun under the known local budget restriction. Real cargo-auditable artifacts, cyclonedx-cli and additional consumer libraries were not verified.

Author readiness

Human owner: @mvanhorn

  • 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

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-17T10:29:28.495551Z
We couldn’t complete this review. Comment @codex review to try again.
7d896b4 New commits
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The reviewed code appears safe to merge; no new blocking defect was established.

Summary

Adds a deterministic CycloneDX 1.6 view of retained Go and Rust dependency Evidence.

  • Go and Rust binaries can now produce one bounded CycloneDX document.
  • Go, Rust, and CycloneDX views share one parent identity check.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  E[Retained or exported Evidence] --> A[Authenticate Evidence]
  A --> S[Check report and subject]
  S --> G[Project Go modules or Rust packages]
  G --> B[Check document size]
  B --> C[CycloneDX 1.6 document]
  C --> D[Derived Evidence through CLI or MCP]
Loading

Reviews (25) · Last reviewed commit: "chore(evidence): align CycloneDX integra..." · Reviewed by Greptile

Comment thread scripts/verify-cyclonedx-view.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 76db951582

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/verify-cyclonedx-view.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa039f8f6c

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/verify-cyclonedx-view.mjs Resolved
mvanhorn and others added 4 commits November 1, 2026 07:58
The cyclonedx analysis view projects one retained Go build-information
parent or one Rust dependency parent into one deterministic CycloneDX
1.6 JSON document from that parent alone. Go modules become pkg:golang
Package URLs; a local replacement has no Package URL and records the
replaced module as rea:go:original, and an h1 sum is the property
rea:go:sum. Rust crates.io packages become pkg:cargo Package URLs, other
sources have no Package URL, and a build-kind package has scope
excluded. Compositions are incomplete or unknown, the document has no
timestamp, a document larger than 1,048,576 bytes is refused by naming
export_evidence_bundle, and the tool text, docs, service tests, and
verify:cyclonedx:view cover the projection.

Fixes morluto#105
Refuse oversized Go and Rust documents before building Package URLs, run
verifier commands under process supervision, keep original Go module paths
and versions, leave malformed module paths unknown, and carry reader
limitations into the standalone document.
Also resolve the Windows Rust binary name in the verifier and make the
dense-graph test reach the edge check.
The analysis view projection now requires predicateType on its parent, so
the CycloneDX fixtures state it the way the other view tests do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KuWHGvzJkrhCqjtEHUwqyH
@mvanhorn
mvanhorn force-pushed the fix/cyclonedx-dependency-view branch from 26dc76f to fab4400 Compare November 1, 2026 16:03
Keep both the CycloneDX and batch-decompile sentences in the
inspect_analysis_view description, which both sides edited on one line.
Comment thread scripts/verify-cyclonedx-view.mjs Resolved
If a Go or Rust reader failed to close, the outer cleanup still removed
the root after closing only the commands, although the readers own
separate file scopes.

Register both readers with the outer cleanup, so a failed close is
tried again and any close that still fails leaves the root in place.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5348fc9040

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

For a universal Mach-O parent the document names the subject by its
whole-file SHA-256, while the Go and Rust readers inspect one selected
slice. Once extracted from the view, nothing said which slice the
inventory covers.

Carry the report's selected_slice and architecture on
metadata.component as rea:macho:* properties, in the one projection both
parents share. Thin Mach-O, ELF and PE documents are unchanged.
Resolve the analysis view tool description conflict by keeping the
CycloneDX view text alongside the upstream native-feature-trace,
native_api value-flow and unavailable status additions.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Keep both the procedure_pseudo_code and CycloneDX guidance in the
analysis view tool description.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Keep the CycloneDX view next to the new recorded-array view, carry the
CycloneDX sentences into the merged tool description, and move the
CycloneDX guide into the new documentation.ts sidebar. Fix the relative
links in the relocated CLI and Go guides.
Comment thread docs/guides/native/cyclonedx-view.md Resolved
…'s provider as the tool

Adopt main's short inspect_analysis_view description and put the cyclonedx
handoff in the Go and Rust producer descriptions, as main does for each
family; move test imports to main's split analysis-view modules and its
shared-process cli.run; record the one const the new view kind adds.

metadata.tools named the REA build that projected the view, read through a
domain -> identity.ts upward import. A re-projection of the same parent by
another build then produced a different document, and the tool listed was
not the reader that observed the facts. It now names the provider recorded
in the parent Evidence and is omitted when the parent records none.
@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.

Allocate the CycloneDX verifier's root through VerifierFixture so it is
released only after its readers and commands close, and re-record the one
const the cyclonedx view kind adds against current main.
@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.

@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.

@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.

@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.

…e count

Main dropped its redundant second argument; both arguments were the same
count here.
@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.

@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.

gensokyo-dev and others added 2 commits November 17, 2026 10:13
Keep the current Evidence identity and lifecycle owners while sharing Go and
Rust metadata subject admission. Use the canonical fixed-ceiling refusal
for CycloneDX document bounds and retain measured bytes and export recovery.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <[email protected]>
Narrow the negative subject fixture to its file identity and regenerate
Cursor guidance from the canonical native workflow reference.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 changed the title feat(evidence): project recovered dependencies as CycloneDX feat(evidence): project Go and Rust dependencies as CycloneDX Nov 17, 2026

@gensokyo-dev gensokyo-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the retained-Evidence-only scope, shared subject identity checks and canonical bounded-document recovery. Feature/shared and public CLI/MCP checks passed. Official pinned CycloneDX schema validation passed for a real compiled Go artifact and explicitly synthetic Rust metadata, with deterministic provenance and recorded coverage gaps. Exact-head CI and automated review remain the merge gates.

@N0zoM1z0
N0zoM1z0 enabled auto-merge (squash) November 17, 2026 10:37
@N0zoM1z0
N0zoM1z0 merged commit 237b1ea into morluto:main Nov 17, 2026
53 of 54 checks passed
@mvanhorn

Copy link
Copy Markdown
Contributor Author

@N0zoM1z0 thanks for merging all three today: the CycloneDX view for Go and Rust dependencies here, the offline DWARF compile-unit inspection in #8523, and the ELF separate debug-file linkage check in #9560. Appreciate the quick reviews.

@morluto morluto added area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request provider: rust Analysis provider / engine: rust labels Nov 23, 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 provider: rust Analysis provider / engine: rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants