Palintropy Work Protocol
1. Abstract
PWP defines how people and their AI chats record work in one record of statements: what each unit of work needs, who may act on it, the evidence for what was made or read, and who decides. It is carried over MCP in two tools. A server computes where every unit stands from what was said; no sender ever states it.
2. Principles
Every rule in this protocol follows from one of these 5. A rule that follows from none of them does not belong in it.
- Record, never claim. Where a unit stands is read from the record each time. A server computes it, and no statement sets it.
- Evidence counts. What is said to be made or read counts only with evidence that can be opened again. What is said without it is kept and counts for nothing.
- Who acts is named. Who may act is named on each need, and a decision is only that person's. Where a unit names nobody, who decides on the unit it stands in decides. Nobody decides in another's place.
- Nothing is lost. No statement is changed or removed. gone takes a unit out of every read and restore brings it back.
- A chat acts for its person. What a chat sends counts as its person's and says that a chat relayed it. A chat never takes a decision: it puts it to the person and sends it only on their word.
3. Conventions
MUST, MUST NOT, SHOULD and MAY are used as in RFC 2119. Field names, statement names and values are set in code.
4. Terms
| Record | The statements of one workspace, in the order they were said. It only grows. |
|---|---|
| Statement | One object with do and its fields. The server gives it its number, its time and its seal. |
| Unit | Anything in the record: a project, a thing, a test, a key, a person, a party outside. It has no kind and no stored state. |
| Side | One of the four of every unit: Gathering, Building, In use and Kept. What a unit needs sits on one of them. |
| Need | What a unit needs on one side. It is met by another unit that is out, by an act of someone named, or by a value that reaches a number. |
| Act | What someone named on a need does. With hand it is a decision that only that person takes. |
| Evidence | Something that can be opened again: a link, a file of the project, or a test in a file. |
| Value | A number read for a need, with what came out and what went in when both were sent. |
| Chat | An AI chat of the person's team. It acts for the one person it works for and never takes their decisions. |
| Party outside | Someone outside the team. It is asked by hand and answers. |
| Workspace | Everything of one person: their projects, their chats and one record. Identified by an id the server assigns. |
| Seal | h on every statement: SHA-256 over the seal before it in its chain and the statement. There is one chain per project and one for what is about no project. |
5. Transport
MCP (JSON-RPC 2.0) over HTTPS. Endpoint /mcp; signed in at /mcp/me (OAuth).
| Tool | Arguments | Returns |
|---|---|---|
ledger_read | unit (an id, or tell: and an id, optional), log (optional), after (optional), session (optional), workspace (optional) | Without unit: per project what waits for the person and what a chat can do now, with the instructions for working in it. With unit: that unit in full. With tell: and an id: who can act on it and what each act finishes. With log: the statements of one chain. The section The language lists the fields. |
ledger_send | message (one statement or short form, or do state with a list under say), session (optional), workspace (optional) | Says what was sent to the record. Returns what came of it, or a refusal. The section Answers lists the fields. |
| Key | At /mcp every call carries two more arguments: forecast_id, the id of the workspace, and key, the key of the person or of one agent. A key MUST NOT stand in an address. At /mcp/me the caller signs in as in the MCP authorization specification (OAuth 2.1 with PKCE); the sign-in names the workspace and the actor, and the two arguments are left out. A client finds where to sign in at /.well-known/oauth-protected-resource. |
|---|---|
| Identity | A key or a sign-in is one actor. An agent's key is that agent. Under a person's sign-in, session names an agent only if that agent has no key of its own. |
| Another workspace | A project is not shared yet. Left out, workspace means the caller's own workspace; a call about another is refused. |
| Refusal | A refused message changes nothing. The tool result has isError true; its text is the reason as a sentence, and structuredContent.code is a code of the section Refusals. A sentence MAY be reworded. |
| Time | A time is a number: seconds since 1 January 1970 UTC. |
| Version | The version of the protocol is the version of this document. v in an answer is that version. |
| More fields | A server MAY add fields to an answer. A client MUST ignore a field it does not know. |
6. The language
The record of a workspace is a record of statements that only grows. Everything in it is a unit: a project, a thing, a test, a key, a person, a party outside. A unit has no kind and no stored state: where it stands is read from the record each time.
The four sides
| Side | Name | Holds |
|---|---|---|
G | Gathering | that it is wanted: the decision to start it |
B | Building | what it is made of, what it is made on, and that it was made |
U | In use | what reads it: a number it has to reach |
K | Kept | what keeps it: a proof that holds it, a rule that reacts |
What a unit needs sits on one of its four sides and is met in exactly one of three ways: by another unit that is out (from), by an act of someone named (by; with hand it is a decision that only that person takes), or by a value that reaches a number (number, with most for at most). A number MAY name the unit whose level it reads (reads). It is met by its value as any number is, and it does not wait for that unit to be out: at least says the unit reads that level, at most says that level holds it back. Such a need MAY be stated with reads alone while its bound is not known: it says what is read and in which sense, it is not met, and no act meets it. A bound is found with its source and never estimated; the need is then withdrawn and stated again with its number.
Where a unit stands
- A side is full when every need on it counts as met. Gathering and Building are also full when they need nothing; In use and Kept are never full on nothing.
- A unit stands at the number of sides that are full, counted from Gathering: 0 not given, 1 building, 2 in use (it is out), 3 kept, 4 all four.
- A need met by another unit counts when that unit stands at 2 or more.
- An act can be done when the sides before it are full and the unit it stands in was given. A yes or a close comes last on its side, and a yes or a close on nothing is no act.
- A need that was withdrawn, and a need met by a unit that is gone or a number that reads one, is out of every read: it is neither met nor open, and no side counts it. Restoring the need or the unit brings it back.
- Units that each need another of them on Gathering or Building wait on each other to be out, and none of them is: a ring. A circle that runs through In use or Kept, or through a number that reads a unit, is a loop: nothing waits in it.
- Nothing else moves a unit. A server MUST NOT store where a unit stands.
What counts
- A statement is true by being said, or it describes the world. That a unit is there, that a need exists, and a decision (given, yes, close, asked, a number set by hand) are true by being said: their evidence is the statement, its sender and its seal.
- That something was made (an act on Building that is nobody's decision: a version, built, passes, written, sent, the answer of a party outside) and a value that was read describe the world. They count only with evidence.
- Evidence is something that can be opened again: a link (http or https), a file of the project, or a test in a file (
path::name). A server MUST refuse evidence that is anything else; words go innote. - What is said without evidence is kept and counts for nothing: the need is not met, the unit does not go out on it, and no yes is open on it. A read lists it under
unshown.showadds the evidence later, as the same version. - A value keeps what came out and what went in when both were sent. Whether it reaches the number is computed by the server, never said by the sender. A reading is sent by someone who works in the project.
- A proof is shown by a run:
ranstates what a run of a test found, with the run as evidence. A failure takes the proof back, and with it everything it holds. - A server does not test whether evidence is any good, and does not open it. It is taken as given.
Who may say what
- Who decides on a unit is whoever a decision of it names (
byon a need withhand). A unit with no decision of its own is decided on by who decides on the unit it stands in. - Who makes a unit is whoever its making names. A unit with no making is made by who decides on it.
- An act is done by someone its need names, and a need names persons and parties outside, never a chat. A chat acts for the one person it works for, and what it sends counts as that person's. A decision (
hand) is taken by the person and never by a chat on its own: a chat puts it to them and sends it only on their word. - What a chat sends over the connector as the person carries
relayed: chat, and a read shows it on the act it met. A server MUST set it on every statement that came over the connector, and MUST drop it when a sender writes it. A server cannot tell whether the person said yes in the chat; the record says that a chat relayed it. gone,backandunmetare said by who decides on the unit.take,need_gone,need_back,titleandnoteare said by who makes it or decides on it.- A value, and what shows a value, is sent by a member of the project or by who decides on the unit.
- A sender states units and parties outside. A person joins a project themselves (
member) and says of themselves how they like to work (says); a chat is an agent of the person's team.
How statements are sent
- Statements are sent one as the message, or several as a list under
say. They are said in the order sent.#3in a later statement stands for what the third statement of that message made. - A server gives every unit and every need its id, and every statement its number, its time and its seal. What a sender writes for these is dropped.
- A round and a thing stand in a project or in a unit of one.
- A text is at most 120 characters;
note,why,evidenceandaddressat most 2,000. - When a statement is refused, nothing of its message is kept. The refusal names the statement and says why.
The same thing once
- A unit MAY carry an address: the thing itself, a path, a page, a document. In one project the same address stands once: stating a unit whose address stands is answered with the unit that stands, and nothing is made.
- A reading MAY name its source. In one project the same reading from the same source stands once: a second one is refused.
- A title is a label. Two units may share one.
Versions
- Every time something that is made is made again, the unit has its next version. A need met by a unit that stands elsewhere keeps the version it was made on.
- When that unit has a newer version, what was made on it is exposed: it stays where it stands and has something to answer. It is remade (its own next version) or it takes the new version as it is (
take). gonetakes a unit and everything in it out of every read;restorebrings it back. Nothing is ever removed from the record.
Statements
A statement is an object with do and its fields. The server adds n (its number), at, by (the sender), c and h.
| do | Required | May carry | Says |
|---|---|---|---|
unit | id, title | in, as, for, notes, address | A unit is there. as person, chat or outside makes it someone who can act. notes are pairs of a label and a text; a server keeps notes said in any other shape and reads them as text without a label. |
need | on, side, what | from | by | number | reads alone; title, hand, most, source, reads, met, draft, value, evidence | A unit needs something on one side. reads goes with number and names the unit whose level is read; alone, the bound is not known yet. |
met | need, by | draft, evidence, note | An act was done. On something made that is made already: its next version. A draft is not offered yet. |
unmet | need, by | why, evidence | An act is taken back: a no to a version, a close reopened, a proof that failed. |
value | need, value, by | out, into, source, evidence | A value of a reading. |
shows | need, evidence, by | What shows something that was made or read, added to it. The same version. | |
address | unit, address, by | The address of a unit. | |
title | unit, title, by | The title of a unit, changed. The record keeps every title it had. | |
note | unit, label, by | text | One note of a unit under its label: written, changed, or taken away when the text is empty. A purpose is one line of at most 140 characters; any other note at most 600. |
moved | unit, in, by | A unit stands in another unit of its project from now on, with everything in it. Its id stays. Refused: into itself, into another project, a project. | |
take | need, by | What uses a unit takes its new version as it is. | |
gone | unit, by | why | A unit and everything in it leaves every read. |
back | unit, by | What went with gone comes back. | |
need_gone | need, by | why | One need is withdrawn: it leaves every read and stays in the record. |
need_back | need, by | A withdrawn need is there again. | |
enter | who, unit | Someone is in a unit now. | |
leave | who, unit | They left it. | |
member | who, of | A person joined a project. | |
says | who, key, value | What a person says of how they like to work: carries, projects, deep, reach, decisions. Nothing is concluded from it. | |
told | to, key | A reader was told what others hold, so it is said once. |
Short forms
Sent like a statement; the server says the statements they stand for.
| do | Fields | Stands for |
|---|---|---|
project | title | A unit with its sender as member, given. |
round | in, title; number, counts, most, source | A unit that is closed by hand, with a reading when it has a number. |
thing | in, title; address, yes | A unit that is made and takes a yes, or nobody's. |
reading | on, title, number; most, source, reads, kept | A number a unit has to reach, and the rule that keeps it: an act of the sender, or with kept a need on Kept from the unit that keeps it. |
outside | title; for, what, side | A party outside: it is asked by hand and answers. |
persistor | in, title; notes, address, needs | A unit with the needs it is said to have, each as it stands. |
give | unit | met on its given. |
offer | unit; evidence, note | met on its making: a version. |
draft | unit; evidence | met as a draft. |
yes | unit | met on its yes. |
close | unit | met on its close. |
ask | unit | met on asked, of a party outside. |
answer | unit; evidence | met on the answer, for the party outside. |
rule | unit; of | met on a rule. |
no | unit; why | unmet on its version. |
reopen | unit | unmet on its close. |
unyes | unit | unmet on its yes. |
report | unit; value | out, into; evidence, offered | What scheduled code sends: a value of a reading, or a version of a thing. |
take | unit; from | take on what it is exposed to. |
restore | unit | need | back on a unit, need_back on a need. gone with need in place of unit withdraws that one need. |
show | unit | title; evidence, of | shows on what was made or read and has nothing that shows it. |
ran | file, test, passed, evidence; why | What a run of a proof found: shows, met or unmet on the test that file and test name. |
hold | on, reads; title, side, number, source | What holds a unit back: a need on on that the level of reads is at most number, or at most a bound that is not known yet. |
move | unit, in | A unit to another place in its project: it is withdrawn as a part of where it stood, moved, and stated as a part of where it stands. |
What a read returns
at | The unit that is read, or the reader. |
|---|---|
say | What can be done now, in sentences. |
yours | The acts of the reader's own hand. |
chat | What a chat can make for the reader. |
others | What others hold; said once, until a fact about it changes. |
held | What a party outside holds; said once. |
ends_on | The numbers the unit has to reach. |
more | How many more acts there are of each group. |
unopened | Units of which nothing says what they are made of or on. |
unshown | What is said to be made or read with nothing that shows it: count, and the first of them. |
unnamed | What should be there and is not named: a unit others are made on of which nothing says what it is made of (B), and a unit that is out, that nothing needs and that has nothing on In use (U) or on Kept (K). Count per side, and the first of them. |
rings | Units that wait on each other in a circle to be out: each needs another of them on Gathering or Building. Each holds the others up. |
loops | Units that use, keep or read each other in a circle. Nothing waits in a loop. |
unbounded | Numbers that read a unit and have no bound yet: count, and the first of them with the unit they sit on and the unit they read. |
gone | What was thrown away and can come back with restore: the unit each gone named, where it stood, and how many went with it. |
shape | With a unit that holds others: its shape. Units, areas, depth, leaves, links (part, use, between areas), pairs of areas that are linked of those possible, the area most pairs run through, the longest chain, what is open now and in how many areas, how many units have something on each side, rings, loops, numbers with no bound yet, and what is not named. |
chain | Whether every seal holds, the chains with their entries and heads, and how many statements were sealed late. |
unit | With a unit: the unit in full, with its address, its four sides and every need: said, counted, evidence. |
projects | Without a unit: per project where it stands and its first sentences. |
how | Instructions for an agent, as the skill gives them (/skills/palintropy.md). They are no rules: a server enforces none of them. |
you_said | What the reader said of how they like to work. |
passed_over | Statements of the record that no longer hold when it is said again, and are passed over. |
The seal
Every statement is sealed as section Hash chain says: h over the hash before it in its chain, a line feed and the statement without h. c names the chain: the id of the project a statement is about, or the empty string for what is about no project (a person, a chat, a party outside, what was said to a reader). A statement that was in the record before it was sealed carries late and sealed_at: the chain proves it from then on. ledger_read with log gives one chain by the id of its project, or workspace.
Not in it
- A project is not shared yet: only its owner's side reads and writes it.
- No agent is added and no key is made yet:
hire,agent,keyandroleare refused. A chat works as the person it signed in as. - A server does not open evidence, so a link that leads nowhere passes. Nothing marks evidence that a server checked itself.
- A number cannot be changed once stated, so a value is never judged against an earlier number.
- The head of a chain is not sent outside: a change by whoever holds the database shows only to someone who kept a head.
- A statement says that a chat relayed it, and not through which client.
Instructions are not in this section
This section holds what a server enforces, and no advice. How an agent works with it, and the mistakes to avoid, are a skill of their own at /skills/palintropy.md. A read returns its instructions as how.
7. Answers
What ledger_send and ledger_read with log return. A server MAY add fields to an answer. A client MUST ignore a field it does not know.
send
ledger_send, when the message was taken.
| Field | Type | Meaning |
|---|---|---|
v | text | The version of the protocol. |
me | text | The actor the message counted for. |
came | text | stated: all of the message was said. |
ids | list | The ids of the units and needs it made, in the order of the message: at most 40. |
made | number | How many it made. |
said | number | How many plain statements were said: a short form stands for several. |
not_counted | list | Only when something was said to be made or read with no evidence: per statement the unit and what it was. It is kept and counts for nothing. |
why | text | With not_counted: why it does not count. |
log
ledger_read with log: one chain, to read and to check. log is the id of a project, or workspace for what is about no project (the owner's side only).
| Field | Type | Meaning |
|---|---|---|
chain | text | What was asked for. |
before | text | The seal the first statement of this answer stands on. The empty string at the start of a chain. |
entries | list | The statements in order. Each has n, body (the exact text that was sealed) and h, its seal. |
of | number | How many statements the chain has. |
head | text | The seal of its last statement. |
more | boolean | Whether statements follow. A server sends at most 200 in one answer: send the last n as after to read on. |
holds | boolean | Whether every seal of the record holds. |
8. Refusals
A refused message changes nothing. The tool result has isError true; its text is the reason as a sentence, and structuredContent.code is a code of the section Refusals. A sentence MAY be reworded.
| Code | Sentence |
|---|---|
no_such_unit | no such unit |
key_opens_nothing | This key opens nothing. |
refused | any other reason |
9. Rules for a server
- A server MUST compute where every unit stands from the record, as the section The language says. It MUST NOT store it or take it from a sender.
- A server MUST refuse a message it does not take and MUST keep nothing of it. The refusal says why as a sentence.
- A server MUST NOT offer an act it would refuse: what a read says can be done is what a send takes.
- A unit stands in a unit that is there, and an act on it can be done only once the unit it stands in was given.
- What is said to be made or read MUST count only with evidence that can be opened again. Said without it, it MUST be kept and MUST NOT count.
- A server MUST NOT change or remove a statement. gone and restore change what a read shows, never the record.
- Every statement MUST be sealed in the chain of its project when the record is stored. A statement sealed later than that MUST carry late and sealed_at.
- A server MUST give the statements of a project's chain to whoever can read that project, as the text that was sealed, and to nobody else.
- What came over the connector MUST carry relayed: chat, set by the server.
10. Hash chain
| field | h, and c for the chain the statement is in |
|---|---|
| algorithm | SHA-256, lowercase hex |
| chains | one per project, named by the id of the project in c; what is about no project (a person, a chat, a party outside, what was said to a reader) is in the chain named by the empty string |
| input | the seal before it in its chain, a line feed, then the statement without h (and with c) as JSON with sorted keys, separators , and :, UTF-8, characters outside ASCII written as they are |
| first | the seal before the first statement of a chain is the empty string |
| head | the seal of the last statement |
| when | computed when the record is stored; a stored seal is never computed again |
| read | a read gives whether every seal holds, and per chain its statements and its head. ledger_read with log gives the statements of one chain, each as the text that was sealed and its seal |
| check | start from before. For each statement in order, SHA-256 over the seal so far, a line feed and body MUST equal h; h is then the seal so far. The last one MUST equal head when more is false |
| late | a statement with late true was sealed after it was said: it entered the chain at sealed_at. The chain proves it from sealed_at on and says nothing of the time before |
| not | statements are not signed |
A changed statement breaks every seal after it in its chain. A removed last statement shows only against a head kept elsewhere, so a client SHOULD keep the head beside a decision or a value that has to stand.
11. Example
Made by running the language, so it is what a server does. Times are seconds since 1970.
{"do": "project", "title": "Ember Roast"}
answers{"came": "stated", "ids": ["x1"], "made": 1, "said": 3}{"do": "thing", "in": "x1", "title": "Pricing page"}
answers{"came": "stated", "ids": ["x3"], "made": 1, "said": 5}{"do": "give", "unit": "x3"}
answers{"came": "stated", "ids": [], "made": 0, "said": 1}{"do": "offer", "evidence": "https://emberroast.example/pricing", "unit": "x3"}
answers{"came": "stated", "ids": [], "made": 0, "said": 1}{"do": "yes", "unit": "x3"}
answers{"came": "stated", "ids": [], "made": 0, "said": 1}
Where the thing stands after it: {"stands": 2, "unit": "x3"}
A refusal: {"code": "refused", "send": {"do": "offer", "evidence": "done", "unit": "x3"}, "text": "Statement 1: evidence is a link or a file that can be opened again; put what you want to say in note."}
One sealed statement to check a seal against. The seal is SHA-256 over a line feed, because the seal before it is empty, and then this text:
{"at":1794787200,"c":"x1","do":"unit","id":"x1","n":2,"title":"Ember Roast"}
h: e8409029dab2cb65c0865ebd3cddfa52cd8464a1caa300f621e071765cc508d7
12. Palintropy's own
- What follows is Palintropy's own and not part of the protocol. Another server need not have it, and a client MUST NOT count on it.
- The message plan, which states a plan kept with the product whole, for the person who owns the workspace.
- The fields how and you_said in a read: the instructions of the skill at /skills/palintropy.md, and what the reader said of how they like to work.
- The words a person reads for where a unit stands, such as Building, In use and Kept. The protocol names sides and statements by the identifiers of the section The language.
13. Formats
This document as JSON and as Markdown, generated from the same source.
14. Licence
Published under CC BY 4.0: use, change and build on it, also commercially, naming Palintropy as its source.