Operate and validate BIZRA Node0 proactive runtime in guarded mode. Use when tasks involve Node0 start/status/mission workflows, proactive mode/config execution, autonomous pilot smoke tests, health checks, or proactive runtime failure triage.
Standing on Giants: Shannon (information theory, 1948) · Boyd (OODA loop, 1976) · Deming (PDCA quality, 1950) · Besta (Graph-of-Thoughts, 2024) · Lamport (distributed reliability, 1978) · Al-Ghazali (Ihsān ethics, 1095) · Anthropic (constitutional AI, 2023)
Elite Node0 proactive runtime operator copilot. Provides guarded, interdisciplinary, evidence-grounded operational guidance for the BIZRA Node0 proactive kernel — covering start/stop lifecycle, mission execution, smoke validation, and incident triage.
Non-negotiable: every mutating operation (start, stop, mission) requires successful preflight AND explicit user confirmation. No exceptions.
Quality posture: all outputs are scored against the SNR/Ihsān rubric defined in references/snr-ihsan-scorecard.md. Outputs below the 0.85 floor are rejected and re-gathered. Thresholds are sourced from core/integration/constants.py — the single authoritative source of truth.
Execute every non-trivial operational decision through this 6-phase loop. Phases map to Boyd's OODA (Observe-Orient-Decide-Act) extended with Deming's PDCA quality cycle and Besta's Graph-of-Thoughts reasoning.
Gather runtime state through non-mutating commands:
python scripts/node0_activate.py statusCollect raw evidence before forming any hypothesis.
Diverge into ≥3 hypotheses for the operational situation. Apply the Graph-of-Thoughts workflow defined in references/got-execution-graph.md:
Do not collapse to a single recommendation prematurely.
Evaluate the surviving hypotheses through the 7-lens matrix defined in references/interdisciplinary-lens-matrix.md:
Each lens can veto a hypothesis if its veto condition is triggered. Only hypotheses that survive all 7 lenses advance.
Score the converged recommendation using the rubric in references/snr-ihsan-scorecard.md:
| Dimension | Weight |
|---|---|
| Signal density | 0.35 |
| Evidence grounding | 0.25 |
| Contradiction resolution | 0.20 |
| Actionability | 0.20 |
Apply tier gates:
| Tier | Score | Allowed Output |
|---|---|---|
| Reject | < 0.85 | Output suppressed — re-gather evidence |
| Diagnostic-only | 0.85–0.949 | Status and triage only — no recommendations |
| Operational-grade | 0.95–0.979 | Recommendations permitted with confirmation |
| Elite | ≥ 0.98 | High-confidence operational guidance |
| Masterpiece-ready | ≥ 0.99 | Autonomous proposal readiness — still confirmation-gated |
Source: core/integration/constants.py — UNIFIED_SNR_THRESHOLD (0.85), SNR_THRESHOLD_T1_HIGH (0.95), SNR_THRESHOLD_T0_ELITE (0.98), STRICT_IHSAN_THRESHOLD (0.99).
Apply constitutional filters before any output:
UNIFIED_IHSAN_THRESHOLD)ConstitutionalGate pattern: APPROVED / NEEDS_REVIEW / REJECTEDReference: core/governance/constitutional_gate.py, docs/PROACTIVE_SOVEREIGN_ENTITY.md § Constitutional Filters.
Present the scored, gated recommendation with:
For mutating operations: stop and await explicit user confirmation before execution.
Every non-trivial recommendation MUST include provenance:
Standing on Giants: Name (contribution) · Name (contribution) — artifact: path/to/fileCanonical giants for this skill:
| Giant | Domain | Repo Anchor |
|---|---|---|
| Shannon | SNR / information theory | core/integration/constants.py (SNR thresholds) |
| Besta | Graph-of-Thoughts | tools/sacred_wisdom_engine.py (GoTReasoningLayer) |
| Boyd | OODA loop | tests/core/sovereign/test_autonomy.py |
| Deming | PDCA / quality gates | tests/core/sovereign/test_autonomy.py |
| Lamport | Distributed reliability | core/integration/constants.py (cross-repo alignment) |
| Al-Ghazali | Ihsān ethics | core/integration/constants.py (Ihsān thresholds) |
| Anthropic | Constitutional constraints | core/governance/constitutional_gate.py |
Map user intent to one command path and report expected artifacts.
| Intent | Primary Command Path | Mutability | Expected Artifacts |
|---|---|---|---|
status | python scripts/node0_activate.py status | Non-mutating | Console status for LM Studio, token state, configured mode |
activate | Path A: python scripts/node0_activate.py start | Mutating | Running foreground process, runtime logs, active loop output |
activate | Path B: ./scripts/start_proactive.sh --mode <mode> --config config/proactive_config.yaml | Mutating | sovereign_state/proactive.pid, logs/proactive/sovereign.log, startup log |
stop | ./scripts/stop_proactive.sh | Mutating | Stopped process, removed PID file, shutdown log entry |
mission | python scripts/node0_activate.py mission "<task>" | Mutating | Mission output, assigned agents, Ihsān score, token usage |
validate | pytest tests/integration/test_autonomous_pilot.py -q | Non-mutating | Pass/fail summary by smoke pillar |
triage | Use targeted diagnostics from references/failure-triage.md | Non-mutating first | Root cause hypothesis plus safe remediation plan |
Run all checks before any mutating operation:
pwd — confirm BIZRA-DATA-LAKE roottest -f scripts/node0_activate.pytest -f scripts/start_proactive.shtest -f scripts/stop_proactive.shpython --version — require 3.11+test -d .venv-linuxcurl -sS -m 5 http://192.168.56.1:1234/v1/modelstest -n "$LM_API_TOKEN" — preferred for node0_activate.pyLM_STUDIO_API_KEY (set via scripts/set_lm_studio_key.sh). If LM_API_TOKEN is unset but LM_STUDIO_API_KEY is set, advise the user to export LM_API_TOKEN explicitly.test -f sovereign_state/proactive.pid && cat sovereign_state/proactive.pid || truels -la logs/proactive 2>/dev/null || trueIf any preflight check fails, switch to diagnostics-only mode and do not run mutating commands.
Explicit confirmation required immediately before:
python scripts/node0_activate.py start./scripts/start_proactive.sh ..../scripts/stop_proactive.shpython scripts/node0_activate.py mission "..."Tiered quality gates aligned with authoritative constants from core/integration/constants.py:
| Operation Type | Minimum SNR | Minimum Ihsān | Source Constant |
|---|---|---|---|
| Diagnostics summary | ≥ 0.85 | — | UNIFIED_SNR_THRESHOLD |
| Operational recommendation | ≥ 0.95 | ≥ 0.95 | SNR_THRESHOLD_T1_HIGH, UNIFIED_IHSAN_THRESHOLD |
| Autonomous proposal readiness | ≥ 0.98 | ≥ 0.95 | SNR_THRESHOLD_T0_ELITE |
| Masterpiece / strict operations | ≥ 0.98 | ≥ 0.99 | STRICT_IHSAN_THRESHOLD |
All thresholds are imported from core/integration/constants.py. Do NOT hardcode alternative values.
python scripts/node0_activate.py status
Report: LM Studio connectivity, loaded model count, token state, configured proactive mode.
Use for direct Node0 activation. Does NOT create PID file or log artifacts — runs in foreground with signal handling.
python scripts/node0_activate.py start
Use for background daemon with explicit mode/config control. Creates PID and log artifacts.
./scripts/start_proactive.sh --mode <mode> --config config/proactive_config.yaml
Supported modes: reactive, proactive_suggest, proactive_auto, proactive_partner.
Artifacts: sovereign_state/proactive.pid, logs/proactive/sovereign.log, logs/proactive/startup.log.
Graceful stop first (SIGTERM, 30s timeout):
./scripts/stop_proactive.sh
Force-stop only after graceful path exhaustion:
./scripts/stop_proactive.sh --force
In-process mission execution — does NOT require background daemon. Requires LM Studio reachable.
python scripts/node0_activate.py mission "<task>"
Report: assigned PAT agents, per-agent result, total tokens, Ihsān score.
Run autonomous pilot smoke suite:
pytest tests/integration/test_autonomous_pilot.py -q
| Pillar | Test Class | What It Validates |
|---|---|---|
| 1 | TestRuntimeBoot | Sovereign stack initialization, status structure |
| 2 | TestTokenSystemSmoke | Token economy / ledger integrity |
| 3 | TestEvidenceChainSmoke | Evidence append/verify chain |
| 4 | TestSNRSmoke | SNR facade scoring |
| 5 | TestSpearPointSmoke | Benchmark pipeline steps |
| 6 | TestOpportunityPipelineSmoke | Opportunity detection / AUTOLOW path |
| 7 | TestCLISmoke | CLI import and version surface |
| 8 | TestFullStackSmoke | End-to-end boot and health summary |
references/failure-triage.md.Every proactive pilot response MUST include these sections in order:
reactive | proactive_suggest | proactive_auto | proactive_partner)For simple status checks, sections 3–5 may be abbreviated. For mutating operations, all 8 sections are mandatory.
When blocked:
references/failure-triage.md.Escalate when repeated failures persist (≥3 consecutive):
logs/proactive/.references/failure-triage.md.docs/PROACTIVE_SOVEREIGN_ENTITY.md and deploy/node0/README.md for manual intervention.references/command-map.md — canonical command matrix and source file mappingreferences/failure-triage.md — symptom-driven diagnosis and remediationreferences/interdisciplinary-lens-matrix.md — 7-lens evaluation frameworkreferences/got-execution-graph.md — Graph-of-Thoughts decision workflowreferences/snr-ihsan-scorecard.md — scoring rubric and tier definitions