Skip to content

docs(devicetree): use the ev_ retained Evidence id prefix in the example - #7760

Closed
ayobamiseun wants to merge 1 commit into
morluto:mainfrom
ayobamiseun:docs/7612-devicetree-evidence-prefix
Closed

ayobamiseun wants to merge 1 commit into
morluto:mainfrom
ayobamiseun:docs/7612-devicetree-evidence-prefix

Conversation

@ayobamiseun

@ayobamiseun ayobamiseun commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #7612

The devicetree guide's retained-reference example spelled the Evidence id as "ev:<digest>". Retained Evidence ids are ev_ followed by 64 lowercase hex characters, so a reader who keeps the example's prefix and fills in a real digest gets invalid_request / invalid_format on source.evidence_id. The example now uses ev_<digest>, the placeholder the other guides already use.

Problem and expected behavior

  • Trigger: copy the inspect_analysis_view request shape from docs/devicetree.md and replace only <digest> with the digest from a real parent_evidence_id.
  • Violated expectation: an example request shape should validate once its placeholder is filled. src/domain/evidenceReference.ts binds evidence_id to prefixedDigestSchema("ev"), and src/domain/digests.ts defines that as ^ev_[a-f0-9]{64}$; the colon form never validates.

Change and scope

One-character documentation fix in docs/devicetree.md. A repository grep (grep -rn 'ev:<' docs website src .agents) found no other occurrence of the colon form; docs/android-analysis.md, docs/go-binaries.md, docs/rust-binaries.md, docs/mcp-contracts.md, docs/wasm-artifacts.md, docs/native-function-matching.md, docs/desktop-applications.md, docs/binary-diagnostics.md and the skill reference already use ev_<...>. No schema change: the producer-returned id already works unchanged. Maintainer scope decision: not applicable.

Contract and boundary impact

  • Semantic owner and earliest changed stage: src/domain/digests.ts owns the id format; only the guide example changes.
  • Contribution scope fit and linked maintainer decision: ordinary documentation fix; not applicable.
  • CLI and MCP/tool-catalog contract: unchanged.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged; the example now matches the retained-reference contract.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • 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: none; the format is already pinned by the schema and its tests, and no test pins the guide text.
  • Base reproduction or other evidence: executed a direct schema check with tsx against retainedEvidenceReferenceSchema: ev: + 64 hex is rejected with "Expected a ev_ prefixed lowercase sha256 digest"; ev_ + 64 hex is accepted. The issue's MCP reproduction was not rerun.
  • User-visible CLI/MCP output: not applicable.
  • Remaining proof gaps: no rendered-docs check beyond the diff.

Validation performed

  • grep -rn 'ev:<' docs website src .agents — after the change: no matches.
  • grep -rn 'ev_<' docs | wc -l — the remaining placeholders all use the underscore form.
  • node --import tsx <schema check script> — ev: rejected: Expected a ev_ prefixed lowercase sha256 digest, ev_ accepted.

Compatibility, safety, and release

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

Author readiness

Human owner: @ayobamiseun

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

🤖 Generated with Claude Code

The retained-reference example wrote the Evidence id as "ev:<digest>".
Retained ids are "ev_" followed by the digest (prefixedDigestSchema in
src/domain/digests.ts), and inspect_analysis_view rejects the colon form
with invalid_format. Use the same "ev_<digest>" placeholder as the other
guides.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation correction appears safe to merge.

Summary

Corrects the retained Evidence example in docs/devicetree.md from ev:<digest> to ev_<digest>.

  • The devicetree guide shows retained Evidence ids with an underscore.

Reviews (1) · Last reviewed commit: "docs(devicetree): use the ev_ retained E..." · Reviewed by Greptile

@ayobamiseun
ayobamiseun marked this pull request as ready for review October 28, 2026 19:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:32:43.381921Z c1e1b99 Draft marked ready
ℹ️ 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.

N0zoM1z0 pushed a commit that referenced this pull request Nov 14, 2026
The retained-reference example wrote the Evidence id as "ev:<digest>".
Retained ids are "ev_" followed by the digest (prefixedDigestSchema in
src/domain/digests.ts), and inspect_analysis_view rejects the colon form
with invalid_format. Use the same "ev_<digest>" placeholder as the other
guides.

Fixes #7612
Supersedes #7760

Co-Authored-By: gensokyo-dev <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thanks! This landed on main in #10490 as its own commit, cherry-picked with your authorship kept (rebase merge). Closing in favor of that merge.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction documentation Improvements or additions to documentation 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 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Devicetree retained-reference example spells the Evidence prefix as ev:

3 participants