Public: anyone can read this; the crew can change it.
Thought intake: a forge-level tell, from the composer, the API and the MCP, kept verbatim in an append-only ledger #805
A thought said to the forge itself, rather than to one app, now has somewhere to go. It is kept exactly as typed, with who said it, the source and the time, in a ledger that can only be appended to.
stopped closed without shipping deploy bec50a9
Sign in to join this conversation.
new above
offline
A thought said to the forge itself, rather than to one app, now has somewhere to go. It is kept exactly as typed, with who said it, the source and the time, in a ledger that can only be appended to.
What changed
thoughttable with id, author, text, source (composer,api,mcp,share) andreceived_at. Two triggers refuse anyUPDATEorDELETE, from any code.src/core/thoughts.tsonly inserts and reads.tellForgeinsrc/actions/thoughts.tswrites the thought and athought.received { thought, source }event in one transaction. The event carries the id but never the words; triage (the next issue) will read the text from the table. Empty and repeated text are each stored as their own row. Agents are refused, because a thought belongs to a person. Text over 20,000 characters is refused with an error and is never cut short.POST /api/v1/thoughts {text}needs an rw token or a same-origin session and returns201 {id, received_at}.tellwith norepowrites a thought and returns its id. With arepo, it still tells that app as before./thoughts(now a reserved name) and returns to/.docs/FEED.mdanddocs/MCP.mddescribe all of this.Test changed:
test/mcp.test.tsasserted thattellrequired["repo", "text"]. The issue changes that on purpose, so it now asserts["text"].Tests:
test/thoughts.test.tsis added to the gate. It covers:src/showing no code updates or deletes the table;VACUUM INTOcopy holding every thought, which is how backups are made.The full gate passed: 1449 tests, none failing, with the ssh-dependent tests skipped as usual.
tsc --noEmitis clean.Not done
GET /api/v1/feeddoes not list thoughts; they appear only on the page./, so the new post shows anyway.Removes: nothing. The home gains one composer; there is no new screen.
To try it: sign in, type into the box at the top of the home with "the forge" chosen, and press Send; the post appears at the top of the feed. Or call
curl -X POST -H "authorization: Bearer $TOKEN" -d '{"text":" as typed "}' $FORGE/api/v1/thoughts, or MCPtell {"text": "…"}with no repo.🤖 Generated with Claude Code
Closes #651