Skip to content

Reference

Header Reference

HeaderPurposeExample
@uriUnique identifier for the record@uri local:prompt-001
@byAttribution of who provided feedback@by alice
@priorReference to input that produced the content@prior ./prompts/sunset.txt
@sourceReference to external content file@source ./images/photo.jpg

Header order in canonical form: @uri@by@prior@source → unknown headers (alphabetical)

CLI Command Reference

CommandPurposeOptions
markback init [path]Create a .env template--force, -f
markback lint <paths...>Lint MarkBack files/directories--json, -j, --no-source-check, --no-canonical-check
markback normalize <input> [output]Normalize to canonical form--in-place, -i
markback list <paths...>List records--json, -j
markback convert <input> <output>Convert storage modes--to, -t (single, multi, compact, paired)
markback workflow run <dataset>Run editor/operator workflow--prompt, -p, --output, -o, --env, -e
markback workflow evaluate <results>Show evaluation summary--json, -j
markback workflow prompt <results>Extract refined prompt--output, -o

Configuration Keys (.env)

KeyMeaning
FILE_MODEgit (overwrite) or versioned (timestamped outputs)
LABEL_SUFFIXESComma-separated suffixes for paired label files
EDITOR_API_BASEBase URL for editor model API
EDITOR_API_KEYAPI key for editor model
EDITOR_MODELModel name for editor
EDITOR_MAX_TOKENSMax tokens per editor call
EDITOR_TEMPERATURESampling temperature for editor
EDITOR_TIMEOUTHTTP timeout (seconds)
OPERATOR_API_BASEBase URL for operator model API
OPERATOR_API_KEYAPI key for operator model
OPERATOR_MODELModel name for operator
OPERATOR_MAX_TOKENSMax tokens per operator call
OPERATOR_TEMPERATURESampling temperature for operator
OPERATOR_TIMEOUTHTTP timeout (seconds)
POSITIVE_LABELSComma-separated labels treated as positive
NEGATIVE_LABELSComma-separated labels treated as negative

Lint Error Codes

CodeMeaning
E001Missing feedback (no <<< delimiter found)
E002Multiple <<< delimiters in one record
E003Malformed URI in @uri header
E004Content after <<< delimiter
E005Content present when @source is specified
E006Malformed header syntax or invalid file (UTF-8, missing file)
E007Invalid JSON after json: prefix
E008Unclosed quote in structured attribute value
E009Empty feedback (nothing after <<< )
E010Missing blank line before inline content
E011Invalid line reference format (must be :line or :start-end)
E012Line number must be a positive integer
E013End line must be greater than or equal to start line

Lint Warning Codes

CodeMeaning
W001Duplicate URI within the same file
W002Unknown header keyword
W003@source file not found
W004Trailing whitespace on line
W005Multiple blank lines
W006Missing @uri (record has no identifier)
W007Paired feedback file not found
W008Non-canonical formatting detected
W009@prior file not found
W010Line reference exceeds file line count