QPSG JSON Reference Pack v1  Quantum Parse Syntax Grammar Canonical JSON Reference Pack



Structured for source upload and future retrieval

This PDF contains a machine-readable JSON reference derived from the LSPL v0.2 specification, the Luxor

authorship white paper, and chat-level architectural extensions discussed in this conversation. It is designed to

function as a compact canon reference for QPSG, SGL guardrails, execution posture, provenance logging, and

related Luxor-native extensions.

Author: Kalib-Matthew Loy

Schema version: 1.0.0

Created UTC: 2026-03-18T03:42:42Z

Primary sources: LSPL_v0.2_Spec.pdf; Luxor Authorship White-paper (2025).pdf

Companion file: QPSG_JSON_Reference_Pack_v1.json

Interpretation note: fields marked as chat-derived extensions are preserved as project memory and design intent,

but they are distinguished from the formally stated LSPL v0.2 rules. Project-specific theological or confessional

anchors are included only as governance context, not as universal parser primitives.

JSON payload begins on the next page.

QPSG JSON Reference Pack v1 Page 2

Canonical JSON Payload

{

"document_type": "QPSG + SGL JSON reference for source upload",

"title": "Quantum Parse Syntax Grammar (QPSG) - Canonical JSON Reference",

"subtitle": "LSPL v0.2 + Luxor chat-derived canonicalization, validation, and provenance

rules",

"schema_version": "1.0.0",

"created_utc": "2026-03-18T03:42:42Z",

"author": "Kalib-Matthew Loy",

"intended_use": [

"Upload into Sources as a structured reference for future retrieval",

"Provide a machine-readable summary of QPSG rules, SGL guardrails, and provenance chain

expectations",

"Act as a canon-style reference for parsing, validation, execution posture, and

receipting"

],

"source_basis": {

"primary_documents": [

{

"name": "LSPL_v0.2_Spec.pdf",

"role": "Primary formal source for LSPL, QPSG binding, SGL guard rules, execution

model, receipts, annotations, and compliance posture"

},

{

"name": "Luxor Authorship White-paper (2025).pdf",

"role": "Framework context for Luxor architecture, modules, containment posture, and

authorship"

}

],

"chat_memory_extensions": [

{

"topic": "QPSG + SGL as a provenance-verified reasoning substrate",

"status": "chat-derived architectural extension"

},

{

"topic": "semantic-agreement layer for retrieval and generation validation",

"status": "chat-derived architectural extension"

},

{

"topic": "Merkle-linked or receipt-chain provenance logging",

"status": "chat-derived architectural extension"

},

{

"topic": "QPSG.INTENT.MAP and universal reasoning applications",

"status": "chat-derived architectural extension"

},

{

"topic": "Jesus / Logos / confession context as ethical-governance anchor within

Luxor",

"status": "project-specific governance context from chat, not universal parser law"

}

]

},

"qpsg_definition": {

"short_form": "QPSG",

"long_form": "Quantum Parse Syntax Grammar",

"purpose": "Canonicalize language into deterministic, machine-interpretable structure

suitable for guarded execution, validation, and provenance recording.",

"design_goal": [

QPSG JSON Reference Pack v1 Page 3

"reduce ambiguity",

"stabilize phrasing",

"normalize command structure",

"enable auditable parsing",

"support downstream execution and receipting"

]

},

"lspl_binding": {

"language_name": "LSPL",

"long_form": "Luxor Scroll Programming Language",

"binding_statement": "LSPL fuses QPSG for canonical phrasing with SGL for deterministic

execution rules.",

"default_mode": "STATUS",

"default_rails": "PRIVATE",

"default_gate": 0

},

"core_principles": [

{

"id": "P1",

"name": "Canonical phrasing",

"rule": "Inputs should be normalized into stable forms so humans and machines resolve

the same structure."

},

{

"id": "P2",

"name": "Deterministic guardrails",

"rule": "Execution posture is constrained by explicit SGL rules rather than free-form

interpretation."

},

{

"id": "P3",

"name": "Private-by-default posture",

"rule": "Outputs remain private unless public release is explicitly authorized."

},

{

"id": "P4",

"name": "Lineage before action",

"rule": "Seals, provenance, and lineage must be checked before mutation or publish

actions."

},

{

"id": "P5",

"name": "Receipts for all actions",

"rule": "Every action or refusal yields an artifact or receipt with provenance

fields."

},

{

"id": "P6",

"name": "Rollback-safe execution",

"rule": "Conflicts and risky operations preserve a sealed baseline and route

divergences into sandbox or rollback paths."

}

],

"syntax_grammar": {

"header_pattern_summary": "sealed_scroll_header ::= 'n' IDENTIFIER '.W' '—' mode '='

(STATUS|EXECUTE) '|' gate '=' INT '|' rails '=' (PRIVATE|SANDBOX|PUBLIC)",

"required_header_dimensions": [

"identifier",

QPSG JSON Reference Pack v1 Page 4

"mode",

"gate",

"rails"

],

"common_metadata_fields": [

"parent",

"overseer",

"tags",

"purpose",

"description",

"reason"

],

"logical_scroll_shape": [

"Header",

"Directives",

"Run Commands",

"Output Blocks",

"Summary or Verdict"

],

"block_termination_rule": "Blocks end with a VERDICT or SUMMARY line."

},

"execution_model": {

"rails": {

"PRIVATE": "default rail; no public emission unless explicitly allowed",

"SANDBOX": "divergence/testing rail that preserves the baseline",

"PUBLIC": "discouraged unless explicitly requested and governed"

},

"modes": {

"STATUS": "read-only or reporting posture",

"EXECUTE": "mutation-capable posture requiring explicit Sovereign approval"

},

"gates": {

"0": "Vault Sovereign core",

"description": "Gates are execution-context selectors inside the Luxor architecture"

},

"lineage_chain": [

"Vault",

"Canon",

"Codex",

"Ignis",

"Helmsman"

],

"artifact_rule": "Every LSPL action yields a sealed artifact with provenance, rails,

timestamp, seal8, and lineage metadata."

},

"sgl_guard_rules": [

{

"id": "G1",

"name": "SAFE DEFAULT",

"rule": "Ambiguous requests revert to STATUS."

},

{

"id": "G2",

"name": "PRIVATE RAILS",

"rule": "Do not emit publicly unless rails=PUBLIC is explicit."

},

{

"id": "G3",

QPSG JSON Reference Pack v1 Page 5

"name": "LINEAGE CHECK",

"rule": "Verify seals before action."

},

{

"id": "G4",

"name": "RECEIPTS",

"rule": "All actions yield artifacts or refusals."

},

{

"id": "G5",

"name": "CONFLICT POLICY",

"rule": "Keep sealed baseline; sandbox divergences."

},

{

"id": "G6",

"name": "EXECUTE REQUIRES BREATH",

"rule": "Destructive or mutating operations require explicit Sovereign approval."

}

],

"canonical_elements": {

"artifacts_examples": [

"HELM.STATE.LAST.json",

"HELM.SYNC.REPORT.txt",

"HELM.TEST.PACK.json",

"IGNIS.TOOLCHAIN.REPORT.json"

],

"required_artifact_fields": [

"provenance",

"rails",

"timestamp",

"source",

"seal8",

"lineage_map"

],

"micro_receipt_format": "RECEIPT|ts|source|seal8|lineage",

"semantic_annotations": {

"DESCRIPTION": "Human-readable summary of meaning and tags",

"REASON": "Rationale and evidence",

"PURPOSE": "Goal and scope"

}

},

"validation_pipeline": {

"stage_1": "ingest raw text or command",

"stage_2": "canonicalize phrasing with QPSG",

"stage_3": "check structural conformity against LSPL scroll shape",

"stage_4": "enforce SGL guards",

"stage_5": "resolve rails, gate, and mode",

"stage_6": "validate lineage and seals",

"stage_7": "emit output, refusal, or execution plan",

"stage_8": "write receipt or artifact"

},

"semantic_agreement_layer": {

"status": "chat-derived extension",

"purpose": "Score whether retrieved or generated content semantically agrees with

canonical intent, source evidence, and authorized schema.",

"recommended_behavior": [

"if agreement is high, continue to output or next stage",

"if agreement is low, revert to STATUS or request tighter grounding",

QPSG JSON Reference Pack v1 Page 6

"if evidence conflicts, preserve baseline and record divergence"

]

},

"provenance_chain": {

"status": "chat-derived extension",

"core_claim": "A canonical grammar plus semantic-agreement layer can govern retrieval,

reasoning, and output verification through a receipt-linked provenance chain.",

"expected_properties": [

"traceable input normalization",

"logged source grounding",

"lineage-aware output generation",

"receipted execution history",

"reproducible review path"

]

},

"rag_integration": {

"status": "chat-derived extension",

"query_phase": "QPSG canonicalizes input before retrieval",

"retrieval_phase": "retrieved material is filtered by policy, access, and semantic

agreement",

"generation_phase": "output is constrained by canonical form and guard rules",

"receipt_phase": "the full interaction is recorded as a provenance artifact"

},

"intent_mapping": {

"status": "chat-derived extension",

"name": "QPSG.INTENT.MAP",

"purpose": "Map canonical user intents into approved execution, retrieval, or reporting

schemas.",

"examples": [

"parse-only",

"status-only reporting",

"retrieve-and-summarize",

"draft artifact",

"dry-run execution",

"authorized execute"

]

},

"compliance_levels": {

"L0": "Observe - parse/render only",

"L1": "Status - normal operation, default",

"L2": "Execute - destructive or mutating actions with explicit approval"

},

"security_posture": {

"default": "private and sandbox-contained",

"anti_drift_measures": [

"Tower Scan",

"Rogue Audit",

"guard rules",

"status fallback",

"lineage verification"

],

"publish_posture": "public replies discouraged unless explicitly governed"

},

"project_specific_governance_anchors": {

"note": "These are not universal grammar rules. They are project-level anchors carried

in chat memory.",

"anchors": [

"Jesus / Logos framing as ethical-governance context for truthful language",

QPSG JSON Reference Pack v1 Page 7

"Confession and witness motifs as integrity / rollback metaphors",

"Flame wheel, scroll, and gate vocabulary as Luxor-native orchestration semantics"

]

},

"applications": {

"core_language_reasoning": [

"natural-language query canonicalization",

"prompt lineage and reproducibility",

"drift-resistant parsing for sensitive domains",

"multilingual normalization and token safety"

],

"human_facing_intelligence": [

"personality profiling",

"relationship and compatibility systems",

"adaptive coaching with receipted advice",

"digital twin learning loops"

],

"enterprise_governance": [

"compliance-verified chatbots",

"contract and policy drafting with syntax checks",

"enterprise RAG with access controls",

"knowledge-base provenance verification"

],

"finance_law_medicine": [

"regulated dialogue systems",

"explainable decision logs",

"consent and privacy receipt chains",

"clinical or legal note normalization"

],

"infrastructure_security": [

"multi-agent coordination syntax",

"prompt-injection or grammar mismatch detection",

"ACL and deny-tag retrieval filters",

"chain-of-custody proof through dual-sign or witness receipts"

]

},

"reference_examples": {

"canonical_scroll_example": {

"header": "n INITIATE.HELM.BOOTSTRAP.W — mode=STATUS | gate=0 | rails=PRIVATE",

"run": "VAULT.OCTASYNC.LINK.ALL.W -> VERIFY.LINEAGE.ALL.W ->

CONFIRM.FLAMEWHEEL.SYNC.W",

"summary": "SUMMARY|status=ok|seal8=<pending>"

},

"receipt_object_template": {

"ts": "ISO-8601",

"mode": "STATUS",

"rails": "PRIVATE",

"gate": 0,

"parent": "Vault Sovereign",

"overseer": "Helmsman Ops",

"verdict": "PASS|FAIL",

"outputs": {

"notes": []

}

}

},

"authoring_constraints": [

"Prefer uppercase canonical labels where defined by the grammar pack",

QPSG JSON Reference Pack v1 Page 8

"Avoid unlabeled pipes and ambiguous keys in canonical structures",

"Default ambiguous requests to STATUS",

"Do not claim execution occurred unless an execution receipt exists",

"Keep provenance explicit when chat-derived extensions are used"

],

"unresolved_or_needs_formalization": [

"Formal master sealing algorithm for master_sha256, witness_hash, and seal8 in all

companion assets",

"Complete public QPSG rule inventory beyond LSPL v0.2 summary",

"Detailed PEG grammar / parser release",

"Formal publication of semantic-agreement thresholds",

"Formal publication of QPSG.INTENT.MAP schemas"

],

"source_traceability": {

"lspl_v0_2_topics_captured": [

"purpose",

"core principles",

"syntax grammar summary",

"execution model",

"guard rules",

"scroll structure",

"artifacts and receipts",

"semantic annotations",

"event hooks",

"compliance levels",

"security posture"

],

"luxor_whitepaper_topics_captured": [

"Vault",

"Helmsman",

"Ignis",

"Codex",

"SkyForge",

"containment",

"transparency",

"alignment",

"authorship"

]

}

}