# Drafts and marks

Build a few tracks, then listen to them for a while: in the car, with the phone in a pocket, in a browser tab while you
do something else. When you hear something you want to change, press the heart (**Mark this**). Later, back at the
editor, open the mark and you are at that bar.

- A **draft** is a program you built: played or evaluated from the editor. Each title is one draft, its newest
  version (an untitled program is one draft per CID), newest first, at most 40.
- A **mark** is one spot you marked while listening: the program's CID and the bar and beat that sounded. At most 500.
  The phone keeps when and from where (car, phone, watch) to itself: a phone's marks reach the account as the
  program, the bar, the beat and the section only, so no listening or driving timeline leaves it.

On beatscript.app they are in the menu under **marks**; in the Android app under **Menu › Marks**; in the car the
drafts come first in the media library and the heart is on the player. The heart in the browser is beside the
transport while something plays.

## Your account keeps them in step

Signed in on the site and paired on the phone, the two share one library: each keeps its own copy and, when it can
reach the site, sends what is new and takes what changed since it last asked. Nothing waits on the network: offline,
marks and drafts are kept on the device and sent later. A removal on one is a removal on the other.

Only Creative Commons programs reach the account. A draft or a mark is kept there when its program is an example or a
program the site stores (one you shared or streamed, CC0 by default). A private or sealed program's drafts and marks
never leave the device they were made on, and nothing in the library carries a program's text: only its CID and the
position (a browser's marks also keep the program's title and when).

## Open a mark

A mark opens its program in the editor with the caret on the lines that sound at that bar. A link does the same:
`https://beatscript.app/?cid=<cid>#bar=<bar>`.

## For an assistant

The MCP `marks` tool (signed in, read-only) lists your marks and drafts, newest first, with their program CIDs, so an
assistant composing with you can open the program at the bar you marked (`load` with its CID) and see what you meant.

## Terms

Ontology: [draft](https://beatscript.app/ontology/ns#Draft), [mark](https://beatscript.app/ontology/ns#Mark), and
[drafts and marks](https://beatscript.app/ontology/concept/listening-library). The HTTP routes are in
[docs/MARKS.md](https://github.com/stackdump/beatscript/blob/main/docs/MARKS.md).
