🧭

AST Path Literal Scanner & Fleet Resolver

Rejecting host-specific path literals for dynamic multi-seat discovery

AXIOMATIC LAW: Path literals and repository directory structures are strictly prohibited in source; paths resolve dynamically via config and workspace discovery.
1
STEP 1 · OBSERVE FAILURE MODE
Scan source containing a hardcoded /srv/dev/acme literal to trip Gate 15.
2
STEP 2 · PROVE DETERMINISTIC GATE
Switch to dynamic config.LoadConfig() resolution across multi-seat roots.
AST PATH LITERAL SCANNER · NOMOS GATE 15
🔍 [G-15] Path Hardcoding Blocker · AST Call-Site Scan:
✅ AST scan clean: 0 host-coupled path literals detected.
🧭 Dynamic Workspace Anchor resolved from env root: /var/deployments/nomos-cluster
• workstation-local -> /var/deployments/nomos-cluster/nomos
• ci-cleanroom -> /var/deployments/nomos-cluster/cleanroom-runner
• cloud-sandbox -> /var/deployments/nomos-cluster/ephemeral-seat
🛡️ Law 5 Satisfied: portable across every workstation and CI runner (Exit 0).
AUTHENTIC CLI RECEIPT TC-AGT-08

In Your Local Terminal

When a Tier 1 agent violates or satisfies Law #5, the compiled Go binary emits a deterministic machine-readable exit code:

$ nomos verify
❌ [TC-AGT-08 · G-15] ERR_FORBIDDEN_LITERAL at loader.go:14:21
literal "/srv/dev/acme/nomos" prohibited; resolve via config.LoadConfig()
$ nomos verify (after switching to dynamic workspace discovery)
✅ [G-15] Zero host path literals across 100% of AST call-sites (Exit 0)
SSoT ENFORCEMENT MATRIX 3 ACTIVE PROBES

Enforcing DoD Quality Gates

Mechanism: Configuration discovery (config.LoadConfig())

G-14 Open Core Architecture Check Phase Discipline & OS
Invariant: Air-Gapped Sovereign Boundaries
G-15 Path Hardcoding Blocker Sandboxing & GitOps
Invariant: Zero Absolute / System Paths in Code
G-35 Config Drift Detector Testing & Hygiene
Invariant: 100% Env Variables in .env.example
Ask Sophia Docs & Specs Sophia AI · Grounded Nomos Architecture & Docs Concierge