from pathlib import Path def test_loop_engineering_meta_prompt_locks_safety_fields(): text = Path("plans/meta-prompts/loop_engineering.md").read_text(encoding="utf-8") for marker in [ "Agent loop", "Verification loop", "Event-driven loop", "Hill-climbing loop", "git-proxy:8099/deploy", "auto_patch_proven", "rsi_canary_recovery_evidence", "Agent harness", "end-loop guardrails", "latency, token use", "YouTube `GrNbuWWJYiI`", "Open-source model portability", "quality gate checklist", "YouTube `dJI2GRG1GEE`", "Autonomous work agent", "Team manages agents", "vault/proxy credential injection", "YouTube `hLUGXO5DSpo`", "Product work with coding agents", "artifact declares its stage", "production-looking prototypes must not imply production readiness", "human taste and systems thinking", "model-timing assumptions", "deletion/simplification", "YouTube `P3KDebPTUrw`", "Activity modes", "Prototyper", "Grower", "Sweeper", "Architect/Primitive keeper", "role collapse means expertise is obsolete", "Founder learning loop", "Niche/distribution thesis", "Money-flow map", "AI amplifier check", "Seven-day learning protocol", "xunx7VvlOgs", "Insider-threat model", "least-privilege access", "no raw secrets", "human approval before any action with business", "attestation that a human reviewed output", "YouTube `yvJYw2gR0cU`", "Agent multiplexer note", "Primary agent = orchestrator", "Pane = isolation boundary", "CLI + socket, not MCP", "git-proxy:8099/deploy", "WAFUMBLOjHo", "herdr.dev", "External research anchors", "NVIDIA Secure Agent Workspace", "Infisical Agent Vault", "Anthropic agent evals", "OWASP AI Agent Security Cheat Sheet", "signed-action-only", "Model Workspace Protocol", "00-intake/", "40-ship/", "arXiv 2603.16021", ]: assert marker in text