Repository navigation
feat(evidence): project Go and Rust dependencies as CycloneDX - #8445
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The reviewed code appears safe to merge; no new blocking defect was established. SummaryAdds a deterministic CycloneDX 1.6 view of retained Go and Rust dependency Evidence.
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]
Reviews (25) · Last reviewed commit: "chore(evidence): align CycloneDX integra..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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".
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
26dc76f to
fab4400
Compare
Keep both the CycloneDX and batch-decompile sentences in the inspect_analysis_view description, which both sides edited on one line.
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.
There was a problem hiding this comment.
💡 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.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Keep both the procedure_pseudo_code and CycloneDX guidance in the analysis view tool description.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
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.
…'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.
|
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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
gensokyo-dev
left a comment
There was a problem hiding this comment.
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.
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
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