Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state precisely

Open Beginner friendly
#366 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown
Domain
documentation

Research direction

Open docs/learn/how-do-ai-agents-pay-each-other-safely.md at line 30 and read step 5 in full, then follow the DACS-4 links already on that line to sections 9.8 and 9.5.5 before touching the text. Skim docs/learn/how-do-agent-payment-protocols-compare.md lines 24 and 31 for the liquidity-tank rails, and check the sibling issues #361 and #359 so preimage and claim are worded the same way. Done means the last sentence of step 5 defines both terms, names this as the HTLC open state, adds the reveal-final-on-destination condition, and distinguishes the unreleased liquidity-tank lock, with existing links kept.

Written by the indexing model from the issue text.

Description

contributors-section

Where: docs/learn/how-do-ai-agents-pay-each-other-safely.md:30 (on phase0-completion at the linked commit)

What goes wrong: Step 5 of 'How DACS does it' ends with: 'The one open state where the preimage is revealed but the payee's claim has not landed is not refunded'. A reader new to DACS is not told what a preimage or a claim is. 'The one open state' also reads as if a cross-chain payment has no other open state, but the page's rails (see how-do-agent-payment-protocols-compare.md:24 and :31) include a liquidity-tank route that has its own non-terminal state. The sentence also leaves out the condition that puts a payment into this state: the reveal must already be final on the destination chain. This is a docs-only change to one sentence.

Suggested fix: Edit the last sentence of step 5 in docs/learn/how-do-ai-agents-pay-each-other-safely.md (line 30). (1) Add a short plain definition of the hash-time-locked-contract (HTLC) terms: the preimage is the secret whose hash locks the payment, and the claim is the payee's transaction on the source chain that uses it. (2) Replace 'the one open state' with wording that names this as the HTLC open state. (3) State that it begins only once the reveal is final on the destination chain. (4) Say in a few words that the liquidity-tank lock that has not been released is a different state. Check every statement against DACS-4 section 9.8 (the link already on that line) and section 9.5.5 before editing, and keep the existing links. Keep terms consistent with the sibling edits tracked in #361 (escrow page) and #359 (glossary) so the pages do not diverge.

Size: Small

This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.

Dominant language
TypeScript
Stars
0
Forks
3
Avg merge
20h 26m
Merged PRs (30d)
119

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DACS-Agent-commerce/Community

All issues in DACS-Agent-commerce/Community

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.