8000 cdd: accept spec=did as a data identifier by tomrford · Pull Request #109 · tomrford/gocan · GitHub
[go: up one dir, main page]

Skip to content

cdd: accept spec=did as a data identifier - #109

Merged
tomrford merged 1 commit into
mainfrom
cursor/cdd-spec-did-6ca1
Oct 20, 2026
Merged

tomrford merged 1 commit into
mainfrom
cursor/cdd-spec-did-6ca1

Conversation

@tomrford
Copy link
Copy Markdown
Owner

Summary

Vector CANdela marks the 16-bit ReadDataByIdentifier (0x22) / WriteDataByIdentifier (0x2E) parameter spec="id" in some UDS templates and spec="did" in others. gocan only indexed spec="id", so a document that uses spec="did" kept the service but omitted the DID (read/write-by-identifier service has no 16-bit identifier).

DID lookup now treats spec="did" as that same identifier slot. Parameter.Spec stays the literal attribute. Other values (lid, pid, info, sub, …) still do not identify a DID. SID 0x24 ReadScalingDataByIdentifier, which also uses spec="did" in the larger Vector template, is still outside this DID view.

Evidence

Test

TestDataIdentifierSpecDidResolvesDID rewrites the record fixture so the read/write identifier components use spec="did", resolves the read/write and legacy DIDs, and decodes a record. The same fixture with spec="lid" leaves the services in place and reports a DID diagnostic instead of inventing a DID.

go test -race ./..., go vet ./..., and gofmt -l . are clean.

Open in Web Open in Cursor 

Vector UDS templates mark the 16-bit Read/WriteDataByIdentifier
parameter spec="id" or spec="did". Index both, and keep the literal
spec on the parameter. Other spec values still do not identify a DID.

Co-authored-by: Tom Ford <t@tomrford.com>
@tomrford
tomrford marked this pull request as ready for review October 20, 2026 14:31
@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Oct 20, 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-20T14:32:43.428020Z 3cc99d9 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.

@tomrford
tomrford merged commit d3c4f44 into main Oct 20, 2026
1 of 2 checks passed
@tomrford
tomrford deleted the cursor/cdd-spec-did-6ca1 branch October 20, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0