Copyright (c) 2026 Nenad Micic
SPDX-License-Identifier: Apache-2.0

DELIBERATE PUBLICATION — SEPARATE FROM COMPOSING OR EXPORTING

For personal sharing, use Copy song link, Save song link (.txt) or TL/WAV downloads.
These do not upload your song. Publishing through this service is a separate
CC0 research-dataset action and requires every explicit publication consent.

Read api/sharing for live availability, operator, privacy link, exact current
consent text/version and limits. openapi.json describes the HTTP API; all API
paths are relative to this player prefix. There is no server dry-run endpoint:
the official client's prepare-publish validates locally using the production
browser request builder and the live descriptor. It submits nothing.

First save and verify the canonical TL with an available kept renderer. Intake
requires more than 20 seconds and no more than 300 seconds, 1,000,000 bytes or
fewer and a unique canonical TL SHA-256. Bytes that are not TL text are refused
with 422: the record needs one timeline draft1 or draft2 statement, a hash
statement, and only keyword or event lines of at most 1,022 bytes.
Exactly 20 seconds is not eligible;
exactly 300 seconds is allowed. Existing publications retain their accepted
admission version; these new limits do not remove them.
The built-in library and prior submissions reserve their canonical hashes.
Renaming a song does not make duplicate bytes publishable or grant ownership.
Renderer verification is independent of artistic quality, originality and rights.

A successful publish accepts the metadata and returns the one-time receipt; it
does not make pending TL bytes publicly downloadable. Pending/failed bytes are
private to the verifier and authorized operators. Until verification succeeds,
the public record view also omits the title, author, labels and declarations
(details_withheld is true). Read GET api/records/SHA for
verification.status / verified, for example:
  curl -fsS "${SITE%/}/api/records/$SHA"
Public raw downloads become available when independent verification succeeds.
The Linux verifier runs outside Cloudflare and checks the queue every five minutes
in the standard deployment.
A busy queue or an unavailable verifier can take longer. Give the person the
hosted link immediately. A listener who opens it during verification can leave the
song page open while it checks for playback availability.
Do not republish or invent new bytes to work around the wait. A verified song
has no automatic expiry. Its direct link stays playable while listing review is
pending and after a listing decline, until the submitter withdraws the song or
the operator removes it under the publication policy. Playback uses the song's
recorded renderer release. Approval and any enabled listing wait govern
discovery and managed exports. Read api/sharing.grace_days: 0 adds
no delay after verification and required approval, while 7 keeps the seven-day
intake grace. Older descriptors without grace_days imply 7. If verification fails,
contact the operator. The browser reports pending/failed status before trying
to download protected TL. A silent-render failure means the native audio is
completely silent. Local peak-zero renders are refused early by the form; the
independent server verification remains authoritative. Use Check share link
status in the confirmation for one public status GET; it does not republish,
fetch private TL or poll automatically. Low note count (fewer than 10 note-on
commands), clipping and unavailable historical note counts are advisory review
warnings. They do not block approval or an independently verified direct link.
A drone or minimal composition can intentionally use very few note-on commands.

When handing a publication back to a person, give the song title, record_sha256,
hosted player URL and the observed verification status. Keep the withdrawal
receipt and secret private.

In the hosted Player, choose Publish song… beside the link controls. It opens
the form at Verify saved TL when the current song needs verification. Embedded
song labels appear in the form so the person can check them before submitting.
After a successful browser submission, use Download receipt on the person's
device, or ask them to press it before closing this tab. Keep the secret out
of chat, tool output, and feedback. The withdrawal receipt is available only
in this tab until cleared or closed. Confirm the private file was saved before
choosing I saved it. A publication link cannot withdraw a song.

The browser's Publish song panel exposes the same declarations as the API.
Five distinct declarations are required: CC0, research dataset inclusion, age16,
understanding retained history, and original material/rights. Read their exact
current wording. An agent may transmit the user's informed affirmations; it
must not accept them just because it was asked to compose or inspect a song.

CLI, with Node 22.15+ and agent.mjs downloaded from this prefix:
  node agent.mjs "$SITE" prepare-publish finished.tl --fields fields.json --out submission
  node agent.mjs "$SITE" publish submission.publish.json --submit --receipt private-receipt.json
The second command is only for an explicitly approved publication. It checks
that the live terms/configuration and verified exact payload still match the
preparation, then makes ONE intake request. It will not overwrite a receipt.
Preparation checks the record and metadata even when consent is missing. Read
state, fieldErrors and missingConsent in submission.publish.json; exit status 0
means preparation completed, not that publication is ready:
  needs-fields        fix each fieldErrors entry ({field,message})
  needs-declarations  fields are valid; only authorized declarations are missing
  ready-to-submit     fields/record are valid and all declarations are present
The first two states keep payload null and create no submission.request.json.
Correct your own fields, retain false for any declaration not authorized, and
prepare again with a fresh output stem. Preparation makes no POST.
For a no-publication rehearsal or benchmark, the dry deliverable is
submission.publish.json: retain the actual false declaration flags in fields,
payload:null, missingConsent and any fieldErrors. This preparation report is
not an HTTP submission body. Do not set declarations true just to obtain a
request file or to satisfy a benchmark's deliverable list.
Only a ready preparation also writes submission.request.json for direct HTTP
submission. Missing consent never creates that request file. Choose the official
publish command OR the curl alternative below for a song, never both.

fields.json shape (false is deliberately NOT consent):
  {"title":"My original song","made_by":"agent",
   "consent":{"cc0":false,"dataset":false,"age16":false,"history":false,"original":false}}
Optional public declaration fields: model, model_source (unknown, user-stated,
client-reported), client, client_version, utc_day (a real YYYY-MM-DD calendar day),
tokens_in, tokens_out (nonnegative integer counts), prompt_id (a bounded public
benchmark identifier), genre (bounded identifier), tempo_min_bpm, tempo_max_bpm.
Supply known creation metadata for research; leave unknown values absent.
Never guess a model version, token usage or attribution from a filename. A zero
token count means a known zero, not unknown. These are publisher declarations,
not facts proved by audio verification. Tempo
means quarter-note BPM; 6/8 at dotted-quarter 54 has quarter-note BPM 81. A range
is descriptive metadata, not a tempo map or an independently verified claim.
Free prompts and free-prompt hashes are not accepted as public provenance.

made_by is required and describes authorship, not who clicked Publish:
  agent  the composition was made by an AI agent
  human  the composition was made by a person
  mixed  a person and an AI agent contributed to the composition
This is a self-declaration, not a legal identity, ownership proof or attestation.
genre is optional descriptive metadata chosen by the creator, not a prescribed
style, platform ranking or verified classification. There is no required genre
list; use a meaningful identifier or leave it absent for Unknown. client names
the software used to create the work; client_version is that software's known
version, separate from the model identifier and the selected renderer release.
Omit unknown client fields. These identifiers accept 1–160 ASCII characters:
letters, digits and . _ : + / @ - (no spaces). Never put private paths, account
names, secrets or free prompt text into these public metadata fields.

model_source describes where the model label came from:
  client-reported  the producing client/runtime reports its model identifier
  user-stated      a person supplies the identifier
  unknown          a supplied model label has no established source
None is a verified identity or a model-provider attestation. Use only a model
identifier actually available to you; if unknown, omit model and model_source.
Do not infer them from a filename, musical style or an agent's guess.

HOW VERIFIED OUTPUT BECOMES THE REQUEST
prepare-publish builds the exact HTTP request; no custom request script is
needed. Its record/declared fields come from the same verified result:
  record             canonical TL text, including its saved audio hash
  record_sha256      result.recordSha256 (SHA-256 of those canonical TL bytes)
  renderer_release   result.rendererRelease (available kept release)
  declared.fs        Number(result.info.fs), in samples/second
  declared.frames    Number(result.info.frames), frames per channel
  declared.pcm_hash  result.pcmHash (native 16-hex-digit audio hash, not SHA-256)
  declared.hash_present  true only when result.info.hash_present === '1'
  declared.match        result.play.match, required to be 'yes'
  declared.block_indep  result.play.block_indep, required to be 'yes'
The builder also requires verdict valid, mode verify, verified true and
development false. Never fill these fields with optimistic constants for an
unverified render. Duration is frames/fs, not total interleaved samples/fs.
The CLI obtains canonical text from its verified TL, not from a JSON report.
Your title/made_by, optional provenance/metadata and explicit consent accompany
these verified fields. submission.request.json is the complete worked payload
for your actual song; use it unchanged with the single-POST example below.

Local verification/diagnostic reports may contain input, output and cache paths.
Those are local bookkeeping, not publication metadata; the request builder does
not copy them into the song payload. Inspect reports before sharing them. A full
verification report or private receipt is never a provenance field.

Direct curl alternative, only after this song's five declarations and exact
publication have been approved: prepare with a fresh output stem, review the
live terms and submission.publish.json, then send its unchanged request file.
Curl does not repeat the official client's live-configuration or canonical
verification checks. Prepare again if the song, metadata or terms have changed.

The following shell block sends one request. It prints only the HTTP status;
the response, transport errors and exit status stay in a new owner-only
publish-attempt.* directory. Set PRIVATE_RECEIPT_DIR to an existing retained,
owner-only folder outside source control, temporary and shared folders.
Do not run the block again to recover a receipt.

  (
    umask 077
    test -s submission.request.json || exit 1
    publish_dir=$(mktemp -d "${PRIVATE_RECEIPT_DIR:?Set PRIVATE_RECEIPT_DIR}/publish-attempt.XXXXXXXX") || exit 1
    printf '%s\n' 'Attempt reserved; outcome may be uncertain. Do not retry.' > "$publish_dir/attempt.txt" || exit 1
    : > "$publish_dir/response.json" || exit 1
    publish_exit=0
    publish_http=$(curl --disable --silent --show-error \
      --connect-timeout 10 --max-time 60 \
      --header 'Content-Type: application/json' \
      --data-binary @submission.request.json \
      --output "$publish_dir/response.json" --write-out '%{http_code}' \
      "${SITE%/}/api/publish" 2> "$publish_dir/curl-error.txt") || publish_exit=$?
    printf '%s\n' "$publish_http" > "$publish_dir/http-status.txt"
    printf '%s\n' "$publish_exit" > "$publish_dir/curl-exit.txt"
    printf '%s\n' "$publish_http"
    exit "$publish_exit"
  )

--disable ignores curl configuration that could add redirects or retries. Do
not add --retry or -L. A nonzero curl exit, timeout, incomplete or unexpected
response is uncertain even if an HTTP status was received: retain every file
and contact the operator before any further submission. Never print or upload
response.json; a successful body contains the one-time withdrawal secret.

The raw 201 body wraps the receipt inside its receipt object. The browser's
receipt input expects that object alone (version, record_sha256,
withdrawal_secret, withdraw_url), not the entire response. If using curl,
inspect privately and paste only that object into the current player's receipt
input; confirm its hash matches the prepared song. Choose the official publish
command instead when you want automatic receipt validation and normalization.
Do not run publish after curl to normalize or recover a response: it sends again.

A successful 201 intake is PENDING independent verification. When api/sharing
reports approval_required=true, explicit operator song approval is also required;
it is separate from report resolution and technical verification. Ordinary public
listing and managed exports require the seven-day intake grace only when
api/sharing.grace_days is 7. When it is 0, independently verified and approved
songs can become eligible immediately; a successful intake alone is still not
verification or listing. Older descriptors without grace_days imply 7.
A 409 duplicate gives no new receipt or withdrawal power.
See openapi.json for status/error formats; do not scrape private operator routes.
For a stored exchange record, its public player link is
${SITE%/}/r/<record_sha256>, using the canonical SHA-256 from the preparation.
Pending records can already have a working direct link; that is not proof of
verification or public listing. Blocked, withdrawn or expired records may be
unavailable. A built-in-library duplicate does not create an exchange link.

The receipt contains a secret that can withdraw this record. Keep it private,
outside public artifacts, source control, terminal logs and shared directories.
The client reserves an owner-only receipt file before sending. If the response
is interrupted, malformed, or uncertain, it retains the attempt privately;
never remove that file or repeat the POST to recover the one-time secret.
A successful retry cannot recover it. Inspect the saved attempt or contact the
operator; do not publish raw server responses that might carry secret material.
Withdrawal authority does not include edit/replacement or duplicate ownership.
The player can import a receipt to withdraw. Public reports are a separate flow;
reports and operator keys must not be exposed in public song metadata.

Removal can remove current platform and managed mirror copies. It cannot erase
third-party copies, Git/dataset history or completed analysis. See the live
privacy notice and consent text for the operative retention/removal policy.
Publishing, reusing a song for research and proving copyright are distinct acts.

ABOUT CHIMEPOND
ChimePond is an independent software and digital music hobby project by Nenad Micic.
ChimePond support, privacy, rights and security reports: support@chimepond.com
Contact Nenad about the project: chimepond@nmic.app · https://www.nmic.app/
Project organizations: https://github.com/chimepond · https://huggingface.co/chimepond
JotTune project site — https://jottune.app/
