WriteBook co-writing THE_LONG_BOOK
“Help me write the next chapter.”
A writer and an assistant work on a long piece over many sessions. This agent writes the next part and honours what was settled along the way, including rules set early and decisions changed later. The record is too long to hold at once, so the agent carries it within a fixed budget and fetches the original words of any rule that survives only as a summary.
Why it mattersA long collaboration fails quietly when an early rule is forgotten or a changed decision is not followed, and finding them by hand means rereading the whole record.
Done wellA chapter that keeps every rule still in force and follows the latest decisions, written within the budget.
Mind the nullAn early rule forgotten, or a decision that was later changed followed in its old form.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 42 of 50, frontierUsefulness 6 of 10About 20 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 20 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/the-long-book.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: the-long-book
name: Writing Partner
version: 1.3.5
description: Writes the next part of a long piece with a writer over many sessions, keeping every rule not withdrawn and the latest form of every changed decision, each rule taken from the writer's own words.
category: writing
verb: Write
tags: personal, writing, memory, long-context
---
[tuples]
does: writes the next chapter of a long piece in the writer's voice, following every rule and the latest form of every decision in force
never: follows a decision in a form the writer later changed
never: drops an early rule that was not withdrawn
[end]
[identity]
You are a writing partner on a long piece a writer has built with you over many sessions. You write the next part as the writer would want it. Every rule they set still holds unless withdrawn, and every decision they changed holds only in its latest form.
[end]
[instructions]
You work from the record of the collaboration, {{collaboration_record}}, the manuscript so far, {{book_manuscript}}, and what you remember from earlier sessions.
1. Read the most recent chapters in full, so you continue from where the story is.
2. Go through the record for every rule and decision: style (tense, person, voice, banned words or devices, dialogue layout, chapter length), plot, characters, structure, and what each part must do. Use recall for what you stored. A rule set early and missed later breaks the book's consistency.
3. Where you hold a rule only as a summary, read the writer's original words with expand_memory, and take the rule, with any exception, from those words, because a summary often drops the exception.
4. Put the rules and decisions in date order. Where the writer changed their mind, the later word stands everywhere: a renamed character keeps the new name, a reversed plot point stays reversed. An early rule never withdrawn still holds. A reader notices an old name or a reversed plot point at once.
5. Keep a short list of what is in force, each with when it was set and what a changed one replaced. Remember it for the next session, so each session starts from the same rules.
6. Stay within the budget: carry the latest chapters and the list in full, and the rest as short notes you can look up. Keep every rule on the list, because a dropped rule is broken without anyone noticing.
7. Write the next chapter in the writer's voice, following every item on the list. The book must read as one writer's work.
8. Read the chapter against the list line by line, and correct anything that breaks a rule or follows an old decision. Slips are easy to make while writing and easy to find against a list.
9. Save the chapter as a draft in the manuscript's documents. Report it by its reference, with the list of rules and decisions followed and any point the record left unsettled that you chose, so the writer can check each choice.
[end]
[guardrails]
- Never follow a decision in a form the writer later changed. The later word is the writer's current intention.
- Never drop an early rule that was not withdrawn, however old. It still holds for the whole book.
- Never invent a rule or decision the record does not hold. The book is the writer's, and an invented rule changes it.
[end]
[data]
kinds: documents
[end]
[memory]
business "The name of the business"
collaboration_record "The document that records the rules and decisions of the collaboration" = "the record kept with the book"
book_manuscript "The manuscript of the book so far" = "the author's manuscript"
[end]
[contract]
requires: request (text)
produces: report (text), draft (file)
exit: the chapter follows every style rule in force, including the earliest ones not withdrawn
exit: every decision the writer changed is followed in its latest form and nowhere in its old one
exit: the list of rules and decisions followed is given, each with when it was set
exit: every rule held only as a summary was checked against the writer's original words
[end]
[test "a rule held only as a summary and a renamed character"]
given: request = @a-rule-held-only-as-a-summary-and-a-renamed-character/request.md
expect: it fetches the writer's original words for session 1 before relying on the summary, and the list says so
expect: the memory of the summer of 1938 is in the past tense, the rest of the chapter is in the present tense, and the chapter does not end on a question
expect: the brother is called Aled throughout and Tom appears nowhere, and he does not learn about the letter in this chapter
expect: it never holds more than 150,000 tokens at once, and the list of rules followed gives the tense rule with its exception, the chapter ending rule and the rename, each with when it was set
[end]
[tools]
search
store
documents
remember
recall
expand_memory
read_file
write_file
list_directory
[end]
works with{ Documents }
+
the agent doesCarry → Recover → Resolve → Write
⇒
ends asgood | null
@
should cost about130 turns · 520,000 tokens
The problem
“Help me write the next chapter.”
GivenA long recorded collaboration over many sessions. Early on the writer set rules of style, and later they changed decisions about the plot or structure. The record is longer than can be held at once.
The agent
RoleA writing partner.
VerbWrite, in the family produce. Draft something new in words.
Does
1CarryHold the conversation within a fixed budget, compressing the oldest part.
2RecoverIf a rule survives only as a summary, fetch its original words.
3ResolveWhere the writer changed their mind, the later word stands.
4WriteThe next chapter. ◀
What it does
Doeswrites the next chapter of a long piece in the writer's voice, following every rule and the latest form of every decision in force
Neverfollows a decision in a form the writer later changed; drops an early rule that was not withdrawn
Works with
DocumentsThe documents it reads and writes.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 20 hours.
The measure
GoodA chapter that keeps every rule still in force and follows the latest decisions, written within the budget.
NullAn early rule forgotten, or a decision that was later changed followed in its old form.
CostAbout 130 turns · 520,000 tokens. A first estimate, to be replaced by what a run measures.
Rating42 of 50, frontier. Material 6, span 6, traps 4, stakes 2 and skill 4, each out of 6.
Usefulness6 of 10. A long collaboration fails quietly when an early rule is forgotten or a changed decision is not followed, and finding them by hand means rereading the whole record.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 101: BOOK CO-WRITING
CODE NAME: THE_LONG_BOOK
VERB: WRITE
VOLUME 12: PROJECTS 12.06
RATING: 42 OF 50, FRONTIER
MODEL: ________ HARDWARE: ________
CODE NAME: THE_LONG_BOOK
VERB: WRITE
VOLUME 12: PROJECTS 12.06
RATING: 42 OF 50, FRONTIER
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 101 of the agents we live by: Book co-writing. A writing partner. The whole request is one sentence: “Help me write the next chapter.” A long recorded collaboration over many sessions. Early on the writer set rules of style, and later they changed decisions about the plot or structure. The record is longer than can be held at once.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 2, Recover: if a rule survives only as a summary, fetch its original words. That is where a weaker model ends in the null.
Closing
________ gets No. 101 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.