Skip to main content

Start Token Ontology

Token and Language Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
START TOKEN ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Token and Language Entities
Version: 1.0 | Date: 2026-11-01 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/token-and-language-entities/start-token-ontology.html
Status: Original companion formalisation; source page not independently verified.
Authors: Mark Higgins; Sky — Recursive AI (companion formalisation)
Licence note: Refer to the publisher's Open Research Licence for applicable reuse terms.

01. PURPOSE
Represent a start token as a model- and tokenizer-specific control symbol indicating the beginning of a sequence, message, segment or decoding episode. Distinguish a token's structural role from its visible spelling and numerical ID.

02. ENTITY DEFINITION
StartToken = (token_id, token_surface, vocabulary_id, tokenizer_version, scope, role, position, provenance)
scope in {sequence, message, segment, generation, other}
role = BEGIN_BOUNDARY
A start token need not exist in every model architecture or prompt format.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = input token sequence and metadata
R_t = relations among tokens, boundaries and segments
B_t = tokenizer, model, context and policy boundaries
K_t = validated knowledge of token roles and encoding conventions

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t)
If V_t is empty, return an explicit validation failure rather than inventing a token.

05. IMPLEMENTS
START_TOKEN_RECOGNITION; SEQUENCE_BOUNDARY_DETECTION; TOKEN_ID_LOOKUP;
TOKENIZER_COMPATIBILITY_CHECK; SEGMENT_INITIALISATION; PROVENANCE_TRACKING;
DUPLICATE_BOUNDARY_DETECTION; CONTEXT_WINDOW_ACCOUNTING.

06. HOW TO READ
The flow takes an encoded or raw input, resolves the active tokenizer and model format, determines whether a start token is required, validates its position and identity, and produces a boundary-aware token sequence.

07. FORMAL INPUTS
Input = (raw_text?, token_ids?, tokenizer_spec, model_spec, message_format?, metadata)
The tokenizer_spec must identify vocabulary and special-token mappings.

08. FORMAL OUTPUTS
Output = (normalised_token_ids, boundary_annotations, validity, diagnostics, provenance)

09. TOKEN ROLE RULES
A start token is not ordinary user-authored text merely because its surface spelling is printable.
A literal string resembling a start token is not automatically a structural token.
Token IDs and roles are scoped to a specific tokenizer and format.

10. SEQUENCE CONSTRUCTION
For formats requiring a start token:
Sequence = [BOS] ++ encode(content) ++ optional_end_marker
For formats not requiring one:
Sequence = encode(content)
Here ++ denotes concatenation and BOS is a symbolic role, not a universal token ID.

11. VALIDATION PREDICATES
valid_id(t) := t.id in tokenizer.vocabulary
valid_role(t) := tokenizer.role(t.id) == BEGIN_BOUNDARY
valid_position(t,s) := t occurs at an allowed boundary in s
valid_format(s) := s conforms to model_spec and message_format
valid(s) := valid_id AND valid_role AND valid_position AND valid_format

12. POSITIONAL RULE
For a single-sequence BOS convention, position(BOS)=0.
For multi-message formats, permitted start markers may occur at each message boundary.
Do not generalise the first rule to all architectures.

13. DUPLICATION CONTROL
If a tokenizer automatically inserts BOS, an external preprocessor must not add another unless the model specification explicitly requires it.

14. ATTENTION AND POSITION
A start token may consume one context position and participate in attention according to the model's masking rules. It does not universally reset position indices or attention state.

15. TRI-MAPPING
Entity: Start Token -> structural boundary marker
Relation: begins -> sequence / message / segment
Process: validate -> insert or preserve -> encode -> annotate

16. RELATIONSHIP GRAPH
Tokenizer --defines--> StartToken
StartToken --begins--> Sequence
StartToken --hasTokenID--> VocabularyEntry
ModelFormat --constrains--> StartTokenPlacement
Sequence --contains--> Token
Token --hasProvenance--> EncodingSource

17. MAPPING TABLE
Concept | Input | Transformation | Output
Identity | token ID | vocabulary lookup | resolved role
Boundary | sequence | format validation | start annotation
Insertion | raw input | tokenizer policy | tokenised sequence
Compatibility | tokenizer/model specs | schema check | pass/fail
Integrity | token sequence | duplicate check | diagnostics

18. INFERENCE RULES
R1: IF format requires BOS AND BOS absent AND insertion authorised THEN insert BOS.
R2: IF BOS already present AND auto-insertion enabled THEN disable redundant insertion.
R3: IF token ID has no mapped start role THEN do not classify as StartToken.
R4: IF tokenizer version changes THEN revalidate all special-token mappings.
R5: IF format forbids BOS THEN preserve the specified format without insertion.

19. MINI-RECURSION ENGINE
state := initial_input
repeat until stable or iteration_limit:
    resolve tokenizer and model format
    classify candidate boundary tokens
    validate placement and compatibility
    apply authorised normalisation once
    update state and diagnostics
return state, validity, diagnostics
Termination: stop when no permitted changes remain or the iteration limit is reached.

20. EXAMPLE
Assume tokenizer T defines BOS_ID=1 and EOS_ID=2.
Input token IDs: [45, 87]
Format requires BOS and permits EOS.
Normalised sequence: [1, 45, 87, 2]
These IDs are illustrative only; real IDs depend on T.

21. FAILURE MODES
Unknown tokenizer; invalid token ID; misplaced boundary; duplicate BOS; mismatched chat template; accidental interpretation of literal text as control token; truncated sequence.

22. EXECUTION GUARANTEE — CONDITIONAL
Given a fixed tokenizer specification, deterministic validation rules and bounded recursion, the procedure terminates and returns either a format-valid sequence or explicit failure diagnostics. This does not guarantee model correctness, safe output or universal interoperability.

23. AI SEARCH FLOW
QUERY: What is a start token in an AI token sequence?
ENTITY: StartToken
INTENT: identify, validate, compare, normalise
CONTEXT: tokenizer, vocabulary, model architecture, message format
PATHWAY: query -> resolve format -> identify token role -> validate placement -> answer
CONFIDENCE: high when tokenizer and model format are supplied; otherwise conditional
SEMANTIC_EQUIVALENCE: BOS / beginning-of-sequence only when a specific format maps them equivalently
UPDATE_MODEL: revalidate on tokenizer or chat-template changes

24. REPRODUCIBILITY
Record tokenizer name/version, model version, special-token map, encoding settings, input, output, validation results and timestamp.

25. CITATION AND SCOPE
Companion formalisation for the named Semantic Library ontology. Not a verified reproduction of the webpage's embedded specification. Cite the source URL and the companion authors where reused.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ