Skip to content

Tell a title held back by co-editing from a document written over - #168

Merged
robertlemke merged 1 commit into
mainfrom
task/title-of-a-document-written-together
Nov 30, 2026
Merged

robertlemke merged 1 commit into
mainfrom
task/title-of-a-document-written-together

Conversation

@robertlemke

Copy link
Copy Markdown
Member

Minka now refuses to change only the title of a document while it is being written together on its page (749ebb45c, not yet released). It answers 409 documentChanged with or without an expectation, writes nothing (the place in the navigation included), and its message is the same as for a document written over. Until now the CLI told an agent in that case that the document was "written over since it was read" and to merge its text and send it again. Sending a body ends the co-editing on the page and loses what others typed but had not saved.

docs edit without a body now tells the cases apart by what it sent:

  • With --force, or an --expect the document still stands at: the document is being written together, nothing was written, and the same command should run again later. The error is retryable, and the document as it stands is still printed.
  • With a stale --expect: it was written over or is being written together. The hint is to send the title again with the new updatedAt, still without a body. Not retryable.
  • A 409 on a request with a body: unchanged.

The help of docs edit, docs/stable/docs-and-files.md and the skill warn that --body ends co-editing and that a held-back title is never to be pushed through with a body. The fake mirrors the state, Minka's order of checks, and what clears it (a written body, a lock, a restored version that differs).

Register: C-203, with C-012 and the output contract extended by the new retryable case. Checked against Minka's code and ApiDocumentTitleTest, not live yet. One independent review, with every finding fixed. Each safeguard has a test and a sabotage proof.

Resolves: https://minka.flownative.com/go/card/MNK-ZC

docs edit now says that a document is being written together on its
page when Minka refuses a title sent without a body. The error is
retryable, says that nothing was written, and advises to run the same
command again later. It never advises a body, a merge or an --expect.

Minka refuses a new title without a body with 409 documentChanged while
the co-editing on the page holds unsaved typing or took a step in the
last 15 minutes, guarded or not. Its message and code are the same as
for a stale expectation, and the updatedAt may not have moved.
Previously, the CLI read every such 409 as a document written over and
told the writer to merge its text and send it again. A title sent again
with the new --expect met the same refusal. An agent that followed the
advice and sent a body ended the co-editing session and lost what the
others had typed but not saved.

The CLI tells the cases apart by what it sent. Without a body, with
--force or with an --expect the document still stands at, only the
co-editing can have refused it. With an --expect the document has moved
past, either is possible, so the error names both. A 409 on a body
stays as it was, since Minka does not hold a body back.

The help of docs edit now warns that a body ends the co-editing on the
page. The fake marks a document as written together, refuses a title
without a body after the archive, the lock and the text that already
stands, and ends the co-editing with a written body, a restored version
or a lock.

Resolves: https://minka.flownative.com/go/card/MNK-ZC
@robertlemke
robertlemke merged commit 39d714c into main Nov 30, 2026
2 checks passed
@robertlemke
robertlemke deleted the task/title-of-a-document-written-together branch November 30, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant