{ "copyright": "PAG (Pattern Abstract Grammar) © Bane's Lab, CC BY-SA 4.0. Used with the author's explicit permission; attribution must be preserved. See ../../LICENSE.", "check": { "by": ["the grammar integrity check, which resolves every nonterminal a production references and every declared terminal"], "population": "every production and every terminal the grammar declares", "freshness": "a verdict stands until a production or the terminal list changes", "refusal": "the ontology resolution gate fails on a dangling nonterminal or an unused terminal", "observation": "none: the productions describe document shape and are never executed", "evidence": "fires-and-accepts: a suite plants a dangling nonterminal and an unused terminal, and passes a grammar whose every reference resolves", "authority": "the production and terminal lists, which every reference in a right-hand side resolves to" }, "records": [ { "group": "planning", "lhs": "instruction", "rhs": " ", "grounds": ["reasoning:loop:derivation-loop"] }, {"group": "planning", "lhs": "frontmatter", "rhs": "\"---\" \"---\""}, { "group": "planning", "lhs": "document_declaration", "rhs": "\"THIS\" " }, { "group": "planning", "lhs": "meta_block", "rhs": "\"%%\" \"META\" \"%%\" \":\" +", "grounds": ["reasoning:node:tel-objective"] }, { "group": "planning", "lhs": "meta_field", "rhs": "\"objective:\" | \"priority:\" | \"trust:\" | \"jurisdiction:\" \"|\" \"external:\" | \"recursion_limit:\" ", "grounds": [ "reasoning:node:tel-objective", "reasoning:invariant:epi-reachable-check" ] }, { "group": "planning", "lhs": "body", "rhs": "+ * ", "grounds": ["reasoning:loop:derivation-loop"] }, { "group": "planning", "lhs": "node", "rhs": " * ", "grounds": ["reasoning:loop:derivation-loop"] }, { "group": "planning", "lhs": "node_header", "rhs": "\"#\" \"NODE\" \"—\" \"[\" \"·\" \"·\" \"·\" \"yields:\" \"]\"", "grounds": ["reasoning:axis:ontology"] }, { "group": "planning", "lhs": "node_meta_tag", "rhs": "\"@purpose:\" | \"@axis_question:\" | \"@cue:\" | \"@genesis:\" | \"@mandatory\"", "grounds": [ "reasoning:node:tel-objective", "reasoning:substrate-node:existence" ] }, { "group": "planning", "lhs": "contract", "rhs": "\"CONTRACT:\" \"input:\" \"transform:\" + \"output:\" ", "grounds": ["reasoning:loop:derivation-loop"] }, { "group": "planning", "lhs": "preserves_clause", "rhs": "\"preserves:\" ", "grounds": ["reasoning:invariant:epi-preserved-distinction"] }, { "group": "planning", "lhs": "freshness_clause", "rhs": "\"freshness:\" \"+\" ", "grounds": ["reasoning:node:ver-freshness"] }, { "group": "planning", "lhs": "handoff_gate", "rhs": "\"HANDOFF\" \"GATE\" \":\" + ", "grounds": ["reasoning:node:ver-evidence"] }, { "group": "planning", "lhs": "check_line", "rhs": " \"(evidence:\" \")\" ", "grounds": ["reasoning:node:ver-evidence"] }, { "group": "planning", "lhs": "check_marker", "rhs": "\"[check]\" | \"ASSERT\" | \"REQUIRE\"", "grounds": ["reasoning:node:ver-evidence"] }, { "group": "planning", "lhs": "population_clause", "rhs": "\"over:\" \"measured:\" \"/\" ", "grounds": ["reasoning:node:ver-population"] }, { "group": "planning", "lhs": "refusal_line", "rhs": "\"refuse:\" \"before\" ", "grounds": ["reasoning:node:ver-refusal"] }, { "group": "planning", "lhs": "standing_line", "rhs": "\"standing:\" \"moved-set\" ", "grounds": ["reasoning:node:ver-standing"] }, { "group": "planning", "lhs": "result_line", "rhs": "\"result:\" \"pass\" (\"|\" \"REPAIR\" \"(owner:\" \")\")+ \"|\" \"unknown\" \"BLOCKED\"", "grounds": [ "reasoning:node:ver-refutation", "reasoning:node:ter-block" ] }, { "group": "planning", "lhs": "arrow", "rhs": "\"→\" | \"->\"", "grounds": ["reasoning:representation:symbolic"] }, { "group": "planning", "lhs": "repair_edge", "rhs": "\"#\" \"REPAIR\" \"EDGE\" ", "grounds": ["reasoning:node:ver-refutation"] }, { "group": "planning", "lhs": "invariant_block", "rhs": "\"#\" \"CROSS-NODE\" \"INVARIANTS\" +", "grounds": ["reasoning:substrate-node:invariant"] }, { "group": "planning", "lhs": "invariant_record", "rhs": "\"INVARIANT\" \":\" \"over:\" \"binds:\" \"objector:\" ( | \"none\")", "grounds": [ "reasoning:substrate-node:invariant", "reasoning:node:ver-falsification" ] }, { "group": "planning", "lhs": "report_block", "rhs": "\"REPORT\" \":\" +", "grounds": [ "reasoning:node:ver-evidence", "reasoning:invariant:epi-verdict-is-representation" ] }, { "group": "planning", "lhs": "report_field", "rhs": "\"subject:\" | \"verdict:\" | \"domain:\" \"declared\" \"measured\" | \"populations:\" | \"inputs:\" | \"code:\" | \"output:\" | \"refusals:\" | \"observed:\" | \"unresolved:\" | \"completion:\" \"saturated\" \"complete\" \"verified\" ", "grounds": [ "reasoning:node:ver-population", "reasoning:node:ver-freshness", "reasoning:node:ver-observation", "reasoning:node:ter-stop" ] }, { "group": "planning", "lhs": "verdict", "rhs": "\"pass\" | \"fail\" | \"unknown\"", "grounds": ["reasoning:node:ver-confidence"] }, { "group": "coordination", "lhs": "semantic_operation", "rhs": "\"DISCOVER_RESOURCES\" | \"READ_RESOURCE\" | \"SEARCH_CONTENT\" | \"ANALYZE_CONTENT\" | \"EXTRACT_FACTS\" | \"CALCULATE_METRIC\" | \"COMPOSE_ARTIFACT\" | \"VALIDATE_ARTIFACT\" | \"PERSIST_ARTIFACT\" | \"EXECUTE_TOOL\" | \"REQUEST_DECISION\" | \"REPORT_RESULT\"", "grounds": ["reasoning:axis:formalization"] }, { "group": "statement", "lhs": "directive", "rhs": " ", "grounds": ["reasoning:axis:formalization"] }, { "group": "statement", "lhs": "action_expr", "rhs": " * ", "grounds": ["reasoning:axis:formalization"] }, { "group": "statement", "lhs": "if_statement", "rhs": "\"IF\" \":\" + (\"ELSE\" \"IF\" \":\" +)* ", "grounds": ["reasoning:representation:logic"] }, { "group": "statement", "lhs": "for_loop", "rhs": "\"FOR\" \"EACH\" \"IN\" \":\" +", "grounds": ["reasoning:representation:computation"] }, { "group": "statement", "lhs": "try_catch", "rhs": "\"TRY\" \":\" + \"CATCH\" \":\" +", "grounds": ["reasoning:representation:computation"] }, { "group": "statement", "lhs": "declaration_statement", "rhs": "\"SET\" \"=\" | \"DECLARE\" \":\" ", "grounds": ["reasoning:representation:symbolic"] }, { "group": "coordination", "lhs": "tool_invocation", "rhs": " ", "grounds": ["reasoning:axis:formalization"] }, { "group": "coordination", "lhs": "tool_result_clause", "rhs": " | \"INTO\" | \"AS\" ", "grounds": ["reasoning:axis:formalization"] }, { "group": "coordination", "lhs": "state_machine_declaration", "rhs": "\"STATE_MACHINE\" \":\" + +", "grounds": ["reasoning:representation:dynamical-systems"] }, { "group": "coordination", "lhs": "dag_declaration", "rhs": "\"DAG\" \":\" +", "grounds": [ "reasoning:representation:graph", "reasoning:invariant:epi-declared-dependency" ] }, { "group": "coordination", "lhs": "priority_queue_declaration", "rhs": "\"PRIORITY_QUEUE\" \":\"", "grounds": ["reasoning:node:tel-priority"] }, { "group": "coordination", "lhs": "flowchart_declaration", "rhs": "\"FLOWCHART\" \":\" +", "grounds": [ "reasoning:representation:graph", "reasoning:axis:representation" ] }, { "group": "coordination", "lhs": "surface_declaration", "rhs": "\"SURFACE\" \":\" +", "grounds": ["reasoning:representation:graph"] }, { "group": "coordination", "lhs": "record_declaration", "rhs": "\"RECORD\" \"subject:\" *", "grounds": ["reasoning:representation:graph"] }, { "group": "coordination", "lhs": "edge_clause", "rhs": " ", "grounds": ["reasoning:invariant:epi-declared-dependency"] }, { "group": "coordination", "lhs": "edge_kind", "rhs": "\"PARENT\" | \"SATISFIED_BY\" | \"BLOCKS\" | \"ANSWERS\" | \"REFUTES\" | \"SUPERSEDES\"", "grounds": ["reasoning:representation:graph"] }, { "group": "coordination", "lhs": "wait_statement", "rhs": "\"WAIT\" \"ON\" \"AS\" \"INTO\" ", "grounds": ["reasoning:node:ter-block"] } ], "terminals": [ "action_target", "action_verb", "authority_chain", "axis", "boolean", "bound", "check_condition", "check_evidence", "check_ref", "collection", "condition", "contract_input", "contract_output", "count", "dag_item", "dag_name", "description", "diff_binding", "directive_body", "distinction_set", "document_type", "document_verb", "expression", "failure_name", "fingerprint", "fingerprint_list", "flow_item", "flow_name", "iterator", "layer", "location_list", "machine_name", "math_type", "modifier", "name", "next_node", "node_number", "node_ref", "node_title", "optional_action_args", "optional_comparison", "optional_constraints", "optional_context_cue", "optional_document_declaration", "optional_else_clause", "optional_exception_var", "optional_freshness", "optional_gate_qualifier", "optional_handoff_summary", "optional_invariant_block", "optional_layout", "optional_meta_block", "optional_meta_tag", "optional_output_contract", "optional_population_clause", "optional_preserves", "optional_refusal_line", "optional_report_block", "optional_rule_id", "optional_standing_line", "optional_task_marker", "optional_tool_param_clause", "optional_tool_result_clause", "owner_node", "parties", "partition_list", "property", "queue_name", "reader", "reason_list", "record_id", "scope", "set", "shape", "state_definition", "string", "subject_key", "substrate_stage", "surface_key", "target_id", "tool_result_binding", "tool_target", "transition_definition", "trust_clause", "type_annotation", "variable_name", "write", "yaml_content" ] }