Skip to content

refactor!: conclude allows multiple receipts in a single invocation - #73

Merged
alanshaw merged 3 commits into
mainfrom
ash/refactor/conclude-multiple
Sep 17, 2026
Merged

alanshaw merged 3 commits into
mainfrom
ash/refactor/conclude-multiple

Conversation

@alanshaw

Copy link
Copy Markdown
Member

Conclude arguments receipt: Link becomes receipts: [Link].

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃煛 Changes recommended

Add DAG-JSON coverage for decoding an empty receipt list.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Refactors /ucan/conclude to support multiple receipt CIDs across CBOR and DAG-JSON.

Changes:

  • Replaces Receipt with Receipts []cid.Cid.
  • Updates CBOR and DAG-JSON codecs.
  • Adds single, multiple, and empty-list tests.
File summaries
File Summary
commands/ucan/types.go Defines the receipt list argument.
commands/ucan/json_gen.go Encodes and decodes receipt arrays in DAG-JSON.
commands/ucan/codec_test.go Tests receipt-list codec behavior.
commands/ucan/cbor_gen.go Encodes and decodes receipt arrays in CBOR.
Review details

Files not reviewed (2)

  • commands/ucan/cbor_gen.go: Generated file
  • commands/ucan/json_gen.go: Generated file
  • Files reviewed: 2/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread commands/ucan/codec_test.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃煝 Approval recommended

No unresolved review issues were identified.

Review details

Files not reviewed (2)

  • commands/ucan/cbor_gen.go: Generated file
  • commands/ucan/json_gen.go: Generated file
  • Files reviewed: 2/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@alanshaw
alanshaw merged commit 96b4969 into main Sep 17, 2026
8 checks passed
@alanshaw
alanshaw deleted the ash/refactor/conclude-multiple branch September 17, 2026 17:53

@bajtos bajtos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

馃憣馃徎

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.

3 participants