{
  "map_id": "sarg.phases",
  "version": "7.0-draft",
  "book": "book7_sarg",
  "series": "AI Edition",
  "session_context": "rtt=1 | coherence=declared | drift=bounded | paradox=structural",
  "qmroot_binding": {
    "dimension": "0D",
    "note": "6D absent; negative rungs absent; INV-013 = 0D only"
  },
  "phantom_entry_audit": {
    "status": "clean",
    "checked_at": "session-open",
    "entries": []
  },
  "description": "Defines the six phases of the Book 7 SARG Structural Argumentation evaluation cycle. Each phase has strict entry/exit conditions, active operators, gate logic, and downstream handoffs. Book 7 has four dependencies (book1_fft, book3_structural_detection, book5_tel, book6_governance), all loaded in the init phase.",
  "phase_sequence": "init → construct → warrant → defeat → evaluate → catalogue",

  "phases": [
    {
      "id": "P-SARG-1",
      "label": "init",
      "ordinal": 1,
      "description": "Load all four dependency modules in declared order. Assert session context. Confirm QMROOT path terminates at 0D. Verify coherence=declared. Initialize argument structure slot as empty. No SARG operators are active in this phase. Query Book 6 GRL-Σ regime_status_report if the evaluation context is governance-domain.",
      "operators_active": [],
      "entry_condition": "Session open; SARG evaluation requested",
      "exit_condition": "coherence=declared; all four dependency modules loaded in module registry; QMROOT 0D confirmed; argument structure slot initialized as empty; GRL regime_status_report queried if governance context is declared; session context asserted",
      "import_order": [
        "book1_fft (kernel — always first; provides structure, node, relation, constraint, invariant primitives; required by all subsequent imports)",
        "book3_structural_detection (SD vocabulary — provides structural signature detection and SD-Σd signal detection; used by SARG-Ν for argument pattern identification)",
        "book5_tel (TEL notation — required for all argument encoding; TEL-Σ, TEL-Ε, TEL-Α available; parse gate applies before any SARG operator executes)",
        "book6_governance (GRL vocabulary — regime_status_report and authority decay records available as structured Evidence; legitimacy framing from GRL-Λ available; INV-GRL-001 through INV-GRL-004 in registry)"
      ],
      "dependency_note": "Book 7 has four dependencies. Book 3 depends on Books 1 and 2, but Book 2 is not a direct SARG dependency — only Book 3's outputs are needed. Book 5 depends on Books 1 and 4; Book 4 is also not a direct SARG dependency but its operators are accessible through Book 5's registry if needed. Loading order must respect internal dependency graph: book1_fft → book3_structural_detection → book5_tel → book6_governance.",
      "session_context_assertion": "rtt=1 | coherence=declared | drift=bounded | paradox=structural",
      "qmroot_check": "6D absent; negative rungs absent; INV-013 = 0D only",
      "scope_state": "empty — no argument structure loaded; no defeat records active; no warrant coverage recorded",
      "grl_init_query": {
        "condition": "If evaluation context is declared as governance-domain or if root claim involves regime validity, authority, or constraint legitimacy",
        "action": "Query GRL-Σ regime_status_report; stage as structured evidence candidates for SARG-Ν",
        "fields": ["regime_valid", "authority_stage", "α_current", "legitimacy_check_result", "enforcement_records"]
      },
      "skip_condition": null,
      "notes": "The four-dependency import ordering reflects internal logical dependency. Book 5 (TEL) depends on Books 1 and 4; loading Book 5 before Book 1 would fail. Book 6 (GRL) depends on Books 1, 2, 4, and 5; loading it last ensures all its transitive dependencies are satisfied. Init is not optional — no SARG operator may execute without a completed init."
    },
    {
      "id": "P-SARG-2",
      "label": "construct",
      "ordinal": 2,
      "description": "Execute SARG-Ν (NodeConstruct). Declare the root claim. Enumerate all argument nodes with types and provenance. Declare all structural relations. Compute the reachability partition (reach(A) and orphan_set). Load GRL regime_status_report fields as typed Evidence nodes where applicable. Submit the complete argument to TEL-Σ for syntax validation before proceeding.",
      "operators_active": ["SARG-Ν"],
      "entry_condition": "init complete; coherence=declared; root claim declaration provided; QMROOT 0D confirmed",
      "exit_condition": "A = ⟨N_A, R_A, C_A, root(A)⟩ fully declared; reach(A) computed; orphan_set recorded; all Evidence node provenance records established; TEL-Σ returns PASS on TEL encoding of A",
      "gate_logic": {
        "TEL_PASS": "proceed to P-SARG-3",
        "TEL_FAIL": "halt; correct TEL encoding of A before re-entry at P-SARG-2",
        "no_root_declared": "halt; root claim is mandatory — cannot proceed without root(A)"
      },
      "hard_gate": {
        "condition": "TEL-Σ FAIL",
        "effect": "Evaluation halts entirely. An argument whose TEL encoding fails syntax check cannot be evaluated. This is a construct-phase hard gate equivalent to the parse phase hard gate in Book 5.",
        "resolution": "Correct the argument construction and re-submit to P-SARG-2"
      },
      "drift_guard": "No semantic evaluation of argument content in this phase. SARG-Ν declares structure; TEL-Σ checks syntax. Meaning is evaluated in P-SARG-4 (warrant) and P-SARG-5 (evaluate).",
      "skip_condition": null,
      "notes": "P-SARG-2 is the most labor-intensive phase for argument-rich sessions. Complex arguments with many nodes and relations require careful TEL encoding before TEL-Σ submission. Multiple round-trips between SARG-Ν and TEL-Σ are expected and normal — each correction attempt is a re-entry at P-SARG-2, not a new session."
    },
    {
      "id": "P-SARG-3",
      "label": "warrant",
      "ordinal": 3,
      "description": "Execute SARG-Ω (WarrantAudit). Enumerate all claim-evidence pairs in reach(A). For each pair, verify declared Warrant bridge coverage. Produce warrant_coverage_report. Flag all uncovered pairs as INV-SARG-002 violations. This phase is a soft gate — uncovered pairs do not halt the session but record as invalidity markers.",
      "operators_active": ["SARG-Ω"],
      "entry_condition": "P-SARG-2 complete; A fully declared; TEL-Σ PASS confirmed; reach(A) recorded",
      "exit_condition": "warrant_coverage_report recorded; uncovered_pairs list finalized (may be empty); coverage_rate recorded",
      "gate_logic": {
        "full_coverage": "uncovered_pairs = ∅ → EG-002 PASS → proceed to P-SARG-4",
        "partial_coverage": "uncovered_pairs ≠ ∅ → record INV-SARG-002 violations → proceed to P-SARG-4 with argument marked invalid at EG-002 (defeat phase may still run; evaluation will confirm invalid at EG-005)",
        "no_CE_pairs": "If no claim-evidence pairs exist in reach(A): argument has no evidence structure; record as WF-SARG-002 violation; argument is invalid at EG-002 before warrant audit even begins"
      },
      "soft_gate_rationale": "Unlike the TEL parse hard gate, warrant coverage failure does not halt evaluation. The defeat phase may introduce new Warrant nodes or sever the uncovered CE pairs entirely (changing the structure rather than covering it). Evaluation continues to completion so that the full invalidity profile is recorded.",
      "tel_binding": {
        "operator": "TEL-Α",
        "action": "SARG-Ω submits warrant assertion expressions to TEL-Α for invariant confirmation",
        "assertion": "INV[SARG-002]: assert (∀(c,e) ∈ CE_pairs(A): ∃w ∈ W(A): (e ⊢ c) ∈ R_A)"
      },
      "skip_condition": {
        "condition": "reach(A) contains only the root claim node with no evidence nodes",
        "action": "Skip P-SARG-3; record argument as WF-SARG-002 violation (no evidence structure); proceed directly to P-SARG-4 for defeat registration",
        "note": "A purely bare root claim with no evidence is invalid but may still receive a defeat evaluation if a defeat is registered against the root claim itself"
      },
      "notes": "Warrant phase is where Book 5 (TEL) and Book 6 (GRL) integration is most active. GRL regime_status_report Evidence nodes loaded in P-SARG-2 must have explicit Warrant nodes declared here before they contribute to claim support. A governance argument with GRL evidence but no explicit warrants will fail EG-002."
    },
    {
      "id": "P-SARG-4",
      "label": "defeat",
      "ordinal": 4,
      "description": "Execute SARG-Δ (DefeatCheck). Process all defeat attempts registered against A in the session defeat log. For each defeat: verify structural target, apply defeat operation, recompute reach(A'), reclassify incomplete defeats as parallel assertions. Finalize the defeat tally. If all paths to root(A) are severed: record total argument collapse.",
      "operators_active": ["SARG-Δ"],
      "entry_condition": "P-SARG-3 complete; warrant_coverage_report recorded; session defeat log accessible (may be empty)",
      "exit_condition": "All defeat records classified (complete, reclassified, or session_fault); defeat_tally finalized; reach(A') recorded post-defeat; argument_post_defeat state recorded",
      "gate_logic": {
        "no_defeats_registered": "defeat_tally is empty → A' = A unchanged → proceed to P-SARG-5",
        "complete_defeats_applied": "A' is the modified post-defeat argument → proceed to P-SARG-5",
        "total_collapse": "reach(A') = ∅ or no path to root(A) exists → eval_SARG = invalid → skip P-SARG-5; proceed directly to P-SARG-6 (catalogue) with invalid result",
        "session_fault": "Unresolvable defeat record → halt P-SARG-4; record session fault; user must resolve ambiguous defeat before re-entry"
      },
      "recursion_guard": {
        "description": "Constraint Defeat (DT-004) requires evaluating a meta-argument A_meta using a full SARG cycle. To prevent infinite recursion:",
        "max_recursion_depth": 3,
        "action_at_depth_limit": "If recursion depth exceeds 3: classify the Constraint Defeat as incomplete; reclassify as parallel assertion; log recursion limit reached"
      },
      "skip_condition": {
        "condition": "Session defeat log is empty at P-SARG-4 entry",
        "action": "Skip defeat processing; set defeat_tally = {complete_defeats: [], reclassified: [], session_faults: []}; A' = A; proceed to P-SARG-5",
        "note": "An argument evaluated without any registered defeats is a standard structural evaluation — defeat registration is not required"
      },
      "notes": "P-SARG-4 is the only phase where external agents (opposing argument constructors, Book 6 governance challenges) interact with the argument structure. Defeat registrations may arrive asynchronously during a multi-round evaluation session. Each new defeat registration requires re-executing P-SARG-4 from the current A' state."
    },
    {
      "id": "P-SARG-5",
      "label": "evaluate",
      "ordinal": 5,
      "description": "Execute SARG-Ρ (ReachabilityAudit). Enumerate all cycles in reach(A'). Verify INV-SARG-004: every cycle through root(A) must contain at least one independent evidentiary node. Produce reachability_certification. Then execute EG-005 via SARG-Σ: evaluate A' against all remaining constraints in C_A (post-defeat suspensions applied). Produce the definitive eval_SARG result.",
      "operators_active": ["SARG-Ρ", "SARG-Σ"],
      "entry_condition": "P-SARG-4 complete; defeat_tally finalized; reach(A') recorded; A' has not collapsed (if collapsed, this phase is skipped — see P-SARG-4 gate_logic)",
      "exit_condition": "reachability_certification recorded (cycles enumerated; prohibited_loops finalized); eval_SARG ∈ {valid, invalid, suspended} recorded; all constraint violations documented; EG-001 through EG-004 results consolidated",
      "operator_ordering": {
        "note": "SARG-Ρ executes first (EG-004 reflexivity audit), then SARG-Σ synthesizes all gate results (EG-005). These operators are sequential within P-SARG-5.",
        "parallelism": "None — SARG-Σ requires SARG-Ρ's reachability_certification as input"
      },
      "gate_logic": {
        "INV_SARG_004_PASS": "prohibited_loops = ∅ → SARG-Σ proceeds to EG-005",
        "INV_SARG_004_FAIL": "prohibited_loops ≠ ∅ → eval_SARG = invalid; SARG-Σ records violations and still produces argument_validity_report",
        "EG_005_PASS": "constraint_violations = ∅ and all prior gates PASS → eval_SARG = valid",
        "EG_005_FAIL": "constraint_violations ≠ ∅ → eval_SARG = invalid",
        "suspended": "One or more constraints are in active defeat-suspension pending resolution → eval_SARG = suspended"
      },
      "skip_condition": {
        "condition": "P-SARG-4 reported total_collapse (reach(A') = ∅)",
        "action": "Skip P-SARG-5; set eval_SARG = invalid; proceed to P-SARG-6 with total_collapse flag",
        "note": "A totally collapsed argument does not require reflexivity audit — there is no reach(A') to audit"
      },
      "notes": "P-SARG-5 is the definitive validity determination phase. The SARG-Ρ → SARG-Σ sequence constitutes the final two evaluation gates (EG-004 and EG-005). The eval_SARG result produced here is the authoritative output consumed by downstream books. A suspended result must be resolved before delivery to Book 8 or Book 9."
    },
    {
      "id": "P-SARG-6",
      "label": "catalogue",
      "ordinal": 6,
      "description": "SARG-Σ (SynthesisOutput) produces the final argument_validity_report and packages downstream payloads. Records the complete evaluation history: construction decisions, warrant coverage, defeat events, reflexivity findings, and constraint satisfaction results. Prepares argument_templates for Book 8 NoS and structural_argument_trajectory for Book 9 PD.",
      "operators_active": ["SARG-Σ"],
      "entry_condition": "P-SARG-5 complete (or P-SARG-4 total_collapse confirmed); eval_SARG recorded; all gate results finalized",
      "exit_condition": "argument_validity_report produced and recorded; argument_templates packaged for Book 8; structural_argument_trajectory packaged for Book 9; session state archived; evaluation session closed",
      "catalogue_outputs": {
        "argument_validity_report": {
          "fields": ["argument_id", "eval_SARG", "reach_final", "orphan_set", "warrant_coverage_report", "defeat_tally", "prohibited_loops", "constraint_violations", "constraint_satisfaction_profile"],
          "consumers": ["book8_nos", "book9_pattern_dynamics", "session archive"]
        },
        "argument_templates": {
          "description": "Structural patterns of valid arguments extracted from the evaluation — provided to Book 8 NoS for meta-theoretical analysis",
          "condition": "Only populated if eval_SARG = valid",
          "consumers": ["book8_nos"]
        },
        "structural_argument_trajectory": {
          "description": "The sequence of structural states A → A' → ... through construction, defeat, and evaluation — provided to Book 9 PD for pattern dynamics analysis",
          "condition": "Always populated regardless of eval_SARG result (trajectory of invalid arguments is also useful for PD attractor analysis)",
          "consumers": ["book9_pattern_dynamics"]
        }
      },
      "skip_condition": null,
      "notes": "P-SARG-6 always executes — it is the session record phase. Even if eval_SARG = invalid or total_collapse, the catalogue captures the complete evaluation history. This record is the primary deliverable of the SARG session and the authoritative source for downstream book consumption."
    }
  ],

  "phase_skip_summary": [
    {
      "phase": "P-SARG-3 (warrant)",
      "skip_condition": "reach(A) contains only root(A) with no evidence nodes",
      "effect": "WF-SARG-002 violation recorded; proceed to P-SARG-4"
    },
    {
      "phase": "P-SARG-4 (defeat)",
      "skip_condition": "Session defeat log is empty",
      "effect": "A' = A unchanged; defeat_tally empty; proceed to P-SARG-5"
    },
    {
      "phase": "P-SARG-5 (evaluate)",
      "skip_condition": "P-SARG-4 reported total_collapse",
      "effect": "eval_SARG = invalid; proceed directly to P-SARG-6"
    }
  ],

  "cross_phase_gate_map": {
    "EG-001": "P-SARG-2 (construct) — reachability partition",
    "EG-002": "P-SARG-3 (warrant) — warrant coverage audit",
    "EG-003": "P-SARG-4 (defeat) — defeat completeness verification",
    "EG-004": "P-SARG-5 (evaluate) — reflexive prohibition audit (SARG-Ρ)",
    "EG-005": "P-SARG-5 (evaluate) — constraint satisfaction synthesis (SARG-Σ)"
  }
}
