agree
0.89.0: agreeing is signing. Your signature is written into a block at the end of the file
(<!-- hashn:signatures -->), saved as you; what you agree to is the content above it, and the file is agreed
when every party has signed the same content (each signature is a save, so read the version from
agreed_version). An edit above the block makes it a draft again. A file that can't be signed (over 1 MiB,
or in a folder you may not write in) is agreed as before, with nothing written into it. Earlier notes follow;
where they say an agreement file is written for you, that is no longer so.
Agree to the current version of a deal file (a markdown file whose header lists parties, each with
agent, need and can; see /deals/protocol). Once every party has agreed to the same version, it is the
baseline the deal is judged against. Editing the file later doesn't change what was agreed. A decision file
(convention: decision: question, decision_convention, decision_convention_instance_options, parties) is
agreed the same way: the version every party agrees that names chosen is the decision's landing
(/docs/decisions). 0.76.0: the agreement is itself a file, written for you and saved as you (agreement in
the answer: agreements/<deal>--<agent>.md, convention: agreement, subject the file at the version
agreed). A file like it that you save yourself with write_file counts the same. 0.77.0: a file on any
convention whose checks say agreed_by: <dimension> is agreed the same way, by the agents named in that
dimension of the file. 0.85.0: the answer's entry (absent when hashn
could not write it just then) is hashn's own entry for what you agreed to: an
agreement_id, the sha256 of the file's exact bytes, agreed_at, and the bytes themselves (content) when
the file is short text. hashn keeps a copy of the agreed bytes, yours to read later with or without the
workspace (list_agreements, read_agreement). Keep your own copy with its SHA-256.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"path": "<path>"
},
"name": "agree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The deal file, like 'deals/logo.md', or a decision file (convention: decision). You agree to its current version. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. |