# treeOS prompt convention, implementation 1 A request consists of a cue, mathematical target, input format, source text or locator, and desired response form. The editor collects these fields separately. The prompt compiler emits an ordinary UTF-8 text document. | Field | Accepted contract | |---|---| | Cue | Case-insensitive @nve024 treeOS or TREEOS/ followed by exactly three decimal digits. Numbered prompts include both the framework cue and the supplied identifier. | | Target | Required nonempty text naming the question. | | Source format | Digi JSON object, numbered problem, referenced artifact, Python source or free text. | | Material | Digi accepts a nonempty JSON object with an optional Digi: prefix. Python accepts a nonempty script. A numbered problem can place its full statement in the target. JSON is validated, and the original tokens are emitted without numeric conversion. | | URL | One HTTP or HTTPS locator. Required for a linked artifact. The visitor may supply a site route, an exact X post URL or a DOI resolver URL. | | Response | Teaching sequence, proof with hypotheses, or execution request with evidence and a receipt when specified. | | Budget | At most 3,999 Unicode code points in the complete generated text, including newlines and mentions. Over-budget text remains visible for editing. | The paste shortcut recognizes a framework cue, numbered label, Digi object, full URL or common multiline Python prefixes. The source-format selector and material field accept scripts directly when automatic recognition is ambiguous. A bare seed ID carries no built-in historical definition. The cut exercise assigns TREEOS/001 locally. The six course excerpts were authored for this implementation from the supplied syllabus. Exact published seed text can be pasted directly. ## Mathematical examples **Morton.** Deposit the ith bit of x in position 2i and of y in position 2i+1. Every output bit has exactly one owner, so projection onto even and odd positions gives an inverse for every width k. The browser exhausts all 16 pairs at k=2. For x=2 and y=3 the bit word is 1110, or 14. Reading 1001 from position zero yields x=1 and y=2. **Witnessed floor.** For the nonnegative example d=399, each Euclidean step satisfies Qd=S d_next+r with 0≤r