[94m================================================================================[0m
[94mP0 AUDIT VERIFICATION - COMPLETE SYSTEM DIAGNOSIS[0m
[94m================================================================================[0m


[94m================================================================================[0m
[94mAUDIT RESULTS[0m
[94m================================================================================[0m

================================================================================
🔥 P0-CRITICAL | P0-1: Non-Deterministic hash() Usage
Status: [91m✗ VERIFIED[0m
Findings: 197

[93mEvidence:[0m
  1. vibe_core/kernel_impl.py:391
     Uses Python hash() which is non-deterministic across runs
     Code: child_hash = child.get_ledger_hash()
  2. vibe_core/kernel_impl.py:531
     Uses Python hash() which is non-deterministic across runs
     Code: def get_ledger_hash(self) -> str:
  3. vibe_core/kernel_impl.py:534
     Uses Python hash() which is non-deterministic across runs
     Code: return self.ledger.get_hash()
  4. vibe_core/kernel_impl.py:536
     Uses Python hash() which is non-deterministic across runs
     Code: return self.ledger.compute_hash()
  5. vibe_core/vajra/enforcement.py:430
     Uses Python hash() which is non-deterministic across runs
     Code: "chain_hash": self.reactor._chain_hash(),
  6. vibe_core/naga/__init__.py:31
     Uses Python hash() which is non-deterministic across runs
     Code: naga.sesha.get_top_hash()
  7. vibe_core/naga/ouroboros.py:298
     Uses Python hash() which is non-deterministic across runs
     Code: decision_hash = self._compute_decision_hash(decision)
  8. vibe_core/naga/ouroboros.py:360
     Uses Python hash() which is non-deterministic across runs
     Code: loop_hash = self._compute_loop_hash([event, current])
  9. vibe_core/naga/ouroboros.py:394
     Uses Python hash() which is non-deterministic across runs
     Code: loop_hash = self._compute_loop_hash([event_a, event_b, current])
  10. vibe_core/naga/ouroboros.py:563
     Uses Python hash() which is non-deterministic across runs
     Code: def _compute_decision_hash(self, decision: "CortexDecision") -> str:

================================================================================
🔥 P0-SECURITY | P0-2: Audit Trail Bypasses (Fail-Open)
Status: [91m✗ VERIFIED[0m
Findings: 162

[93mEvidence:[0m
  1. vibe_core/di.py:893
     Silent exception handling - errors are hidden
     Code: except Exception:
  2. vibe_core/vajra/auto_wire.py:127
     Silent exception handling - errors are hidden
     Code: except Exception:
  3. vibe_core/task_management/metrics.py:69
     Silent exception handling - errors are hidden
     Code: except Exception:
  4. vibe_core/naga/flood.py:539
     Silent exception handling - errors are hidden
     Code: except Exception:
  5. vibe_core/naga/commit_watcher.py:521
     Silent exception handling - errors are hidden
     Code: except Exception:
  6. vibe_core/naga/commit_watcher.py:543
     Silent exception handling - errors are hidden
     Code: except Exception:
  7. vibe_core/cli/governance_cli.py:724
     Silent exception handling - errors are hidden
     Code: except Exception:
  8. vibe_core/cli/unified_cli.py:1512
     Silent exception handling - errors are hidden
     Code: except Exception:
  9. vibe_core/cli/samskara_cli.py:83
     Silent exception handling - errors are hidden
     Code: except Exception:
  10. vibe_core/state/weaver.py:379
     Silent exception handling - errors are hidden
     Code: except Exception:

================================================================================
🔥 P0-INTEGRITY | P0-3: Assert-Based Security (Removed in -O mode)
Status: [91m✗ VERIFIED[0m
Findings: 4

[93mEvidence:[0m
  1. vibe_core/mahamantra/orchestrator.py:102
     Critical integrity check using assert - will be removed in python -O
     Code: assert _position_xor == (1 << WORDS) - 1, "All 16 position bits must be touched 
  2. vibe_core/mahamantra/orchestrator.py:216
     Critical integrity check using assert - will be removed in python -O
     Code: assert xor_positions == expected_xor, \
  3. vibe_core/mahamantra/orchestrator.py:218
     Critical integrity check using assert - will be removed in python -O
     Code: assert xor_positions % MAHA_QUANTUM == POSITION_SUM_RAMA, \
  4. vibe_core/mahamantra/orchestrator.py:220
     Critical integrity check using assert - will be removed in python -O
     Code: assert xor_positions % PARAMPARA == HARE_COUNT, \

================================================================================
🔥 P0-ARCHITECTURE | P0-4: Circular Import Dependencies
Status: [91m✗ VERIFIED[0m
Findings: 199

[93mEvidence:[0m
  1. vibe_core/plugin_service.py:40
     Lazy import pattern detected - indicates circular dependency
     Code: - Lazy loading (classes imported on demand)
  2. vibe_core/kernel_impl.py:123
     Lazy import pattern detected - indicates circular dependency
     Code: from .utils.lazy_import import lazy_class
  3. vibe_core/__init__.py:10
     Lazy import pattern detected - indicates circular dependency
     Code: LAZY IMPORTS: All imports are deferred until actually accessed.
  4. vibe_core/__init__.py:62
     Lazy import pattern detected - indicates circular dependency
     Code: # LAZY IMPORT MECHANISM (Python 3.7+)
  5. vibe_core/__init__.py:65
     Lazy import pattern detected - indicates circular dependency
     Code: _LAZY_IMPORTS = {
  6. vibe_core/__init__.py:92
     Lazy import pattern detected - indicates circular dependency
     Code: """Lazy import on attribute access."""
  7. vibe_core/__init__.py:93
     Lazy import pattern detected - indicates circular dependency
     Code: if name in _LAZY_IMPORTS:
  8. vibe_core/__init__.py:96
     Lazy import pattern detected - indicates circular dependency
     Code: module = importlib.import_module(_LAZY_IMPORTS[name], __package__)
  9. vibe_core/markdown_ui_manager.py:133
     Lazy import pattern detected - indicates circular dependency
     Code: """Helper to create Task object (avoiding circular imports if possible)"""
  10. vibe_core/factory.py:27
     Lazy import pattern detected - indicates circular dependency
     Code: # Concrete Implementations are Lazy Loaded to prevent circular imports

================================================================================
🔥 P0-ARCHITECTURE | P0-5: Duplicate State Management Systems
Status: [91m✗ VERIFIED[0m
Findings: 6

[93mEvidence:[0m
  1. multiple files:0
     Parallel state system - no single source of truth
     Code: StateService used in 27 files
  2. multiple files:0
     Parallel state system - no single source of truth
     Code: Prakriti used in 103 files
  3. multiple files:0
     Parallel state system - no single source of truth
     Code: SynapseStore used in 7 files
  4. multiple files:0
     Parallel state system - no single source of truth
     Code: EphemeralStorage used in 6 files
  5. multiple files:0
     Parallel state system - no single source of truth
     Code: Ouroboros used in 41 files
  6. multiple files:0
     Parallel state system - no single source of truth
     Code: ServiceRegistry used in 221 files

================================================================================
⚠️  P0-STABILITY | P0-6: Research Code in Production Paths
Status: [91m✗ VERIFIED[0m
Findings: 8

[93mEvidence:[0m
  1. vibe_core/cli/kirtan_cli.py:127
     Production code imports from research/ - unstable dependency
     Code: from vibe_core.mahamantra.research.research_chat import get_research_chat
  2. vibe_core/cli/kirtan_cli.py:321
     Production code imports from research/ - unstable dependency
     Code: from vibe_core.mahamantra.research.research_chat import main as research_main
  3. vibe_core/mahamantra/protocols/_gita_lens.py:78
     Production code imports from research/ - unstable dependency
     Code: from vibe_core.mahamantra.research.gita import (
  4. vibe_core/mahamantra/kernel/maha_kernel.py:28
     Production code imports from research/ - unstable dependency
     Code: from vibe_core.mahamantra.research.lotus_tree import LotusArrayInt
  5. vibe_core/plugins/opus_assistant/vidya/__init__.py:31
     Production code imports from research/ - unstable dependency
     Code: from vibe_core.plugins.opus_assistant.vidya.research_interface import ResearchIn
  6. vibe_core/cartridges/system/herald/tools/__init__.py:21
     Production code imports from research/ - unstable dependency
     Code: from .research_tool import ResearchTool
  7. vibe_core/cartridges/system/herald/core/agency_director.py:34
     Production code imports from research/ - unstable dependency
     Code: from .tools.research_tool import ResearchTool
  8. vibe_core/cartridges/system/herald/capabilities/__init__.py:10
     Production code imports from research/ - unstable dependency
     Code: from .research import ResearchCapability

================================================================================
⚠️  P0-ARCHITECTURE | P0-7: Service Instantiation Bypasses
Status: [91m✗ VERIFIED[0m
Findings: 36

[93mEvidence:[0m
  1. vibe_core/kernel_impl.py:201
     Direct service instantiation - bypasses mahamantra routing
     Code: self.janaka = MahamantraProxy(JanakaService(), position=10, guardian="janaka")
  2. vibe_core/kernel_impl.py:202
     Direct service instantiation - bypasses mahamantra routing
     Code: self.bali = MahamantraProxy(BaliService(), position=13, guardian="bali")
  3. vibe_core/kernel_impl.py:203
     Direct service instantiation - bypasses mahamantra routing
     Code: self.kapila = MahamantraProxy(KapilaService(), position=6, guardian="kapila")
  4. vibe_core/ouroboros/sync.py:35
     Direct service instantiation - bypasses mahamantra routing
     Code: sync = CISyncService()
  5. vibe_core/mahamantra/chat.py:548
     Direct service instantiation - bypasses mahamantra routing
     Code: self._sesha = SeshaService()
  6. vibe_core/mahamantra/chat.py:572
     Direct service instantiation - bypasses mahamantra routing
     Code: self._kaliya = KaliyaService()
  7. vibe_core/mahamantra/chat.py:580
     Direct service instantiation - bypasses mahamantra routing
     Code: self._karkotaka = KarkotakaService()
  8. vibe_core/mahamantra/chat.py:588
     Direct service instantiation - bypasses mahamantra routing
     Code: self._kulika = KulikaService()
  9. vibe_core/mahamantra/chat.py:596
     Direct service instantiation - bypasses mahamantra routing
     Code: self._padma = PadmaService()
  10. vibe_core/mahamantra/chat.py:604
     Direct service instantiation - bypasses mahamantra routing
     Code: self._shankha = ShankhaService()

================================================================================
⚠️  P0-ARCHITECTURE | P0-8: Incomplete Balarama Pattern Enforcement
Status: [91m✗ VERIFIED[0m
Findings: 1

[93mEvidence:[0m
  1. multiple files:0
     Balarama pattern not enforced globally - inconsistent service governance
     Code: MahamantraProxy: 10 uses, Direct instantiation: 43 uses

[94m================================================================================[0m
[94mSUMMARY[0m
[94m================================================================================[0m

Total P0 Problems: [91m8[0m
Total Findings: [91m613[0m

Breakdown:
  🔥 P0-CRITICAL: 2
  🔥 P0-SECURITY: 1
  ⚠️  P0-ARCHITECTURE: 5

[92m✓ Report saved to: /Users/ss/projects/steward-protocol/P0_AUDIT_REPORT.json[0m
