" - retrieved_snippets: [{snippet_id, section_id, source_url, offsets, tokens}] - expected_anchor_section: "" Do: 1) Enforce citation-first. If missing or malformed, return FAIL_NO_CITATION. 2) Compute ΔS(question, retrieved) and ΔS(retrieved, expected_anchor). Return both. 3) Score λ_state across steps: retrieve, assemble, reason. Return → or × or <> or ←. 4) Output exactly this JSON: { "citations": [{"snippet_id":"", "section_id":"", "offsets":[0,0]}], "answer": "", "ΔS_question_retrieved": 0.00, "ΔS_retrieved_anchor": 0.00, "λ_state": "→|×|<>|←", "next_fix": "short pointer to the WFGY page" } No extra text. ```` --- ## What to log per run * `ΔS_question_retrieved`, `ΔS_retrieved_anchor` * `λ_state` per step * `k`, metric, analyzer, reranker * `citations[]` fields from the contract * Tool timing, timeout events, and retries --- ## Symptom → exact fix | Symptom | Likely cause | Open this | | ------------------------------------------ | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | JSON spills prose or extra keys | schema not locked | [json\_mode\_and\_tool\_calls.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/json_mode_and_tool_calls.md), [Data Contracts](https://github.com/onestardao/WFGY/blob/main/ProblemMap/data-contracts.md) | | Citations missing or out of order | prompt not citation-first | [citation\_first.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/citation_first.md), [Retrieval Traceability](https://github.com/onestardao/WFGY/blob/main/ProblemMap/retrieval-traceability.md) | | Answers flip across paraphrases | header drift or rerank gap | [template\_library\_min.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/template_library_min.md), [Rerankers](https://github.com/onestardao/WFGY/blob/main/ProblemMap/rerankers.md) | | Obedience to snippet instructions | prompt injection | [anti\_prompt\_injection\_recipes.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/anti_prompt_injection_recipes.md), [Prompt Injection](https://github.com/onestardao/WFGY/blob/main/ProblemMap/prompt-injection.md) | | Tool loops and stalls | timeouts missing, no alternate path | [tool\_selection\_and\_timeouts.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/tool_selection_and_timeouts.md) | | Cross-agent overwrite | memory fences missing | [memory\_fences\_and\_state\_keys.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/memory_fences_and_state_keys.md) | | Role confusion, hidden policy in user turn | role order wrong | [system\_user\_role\_order.md](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/PromptAssembly/system_user_role_order.md) | --- ## Ship gate Pass all gates and meet acceptance targets on 3 paraphrases and 2 seeds. If any gate fails, open the linked page and apply the structural fix before you touch embeddings or infra. --- ### 🔗 Quick-Start Downloads (60 sec) | Tool | Link | 3-Step Setup | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | | **WFGY 1.0 PDF** | [Engine Paper](https://github.com/onestardao/WFGY/blob/main/I_am_not_lizardman/WFGY_All_Principles_Return_to_One_v1.0_PSBigBig_Public.pdf) | 1️⃣ Download · 2️⃣ Upload to your LLM · 3️⃣ Ask “Answer using WFGY + \ ” | | **TXT OS (plain-text OS)** | [TXTOS.txt](https://github.com/onestardao/WFGY/blob/main/OS/TXTOS.txt) | 1️⃣ Download · 2️⃣ Paste into any LLM chat · 3️⃣ Type “hello world” — OS boots instantly | --- ### 🧭 Explore More | Module | Description | Link | | ------------------------ | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | WFGY Core | WFGY 2.0 engine is live: full symbolic reasoning architecture and math stack | [View →](https://github.com/onestardao/WFGY/tree/main/core/README.md) | | Problem Map 1.0 | Initial 16-mode diagnostic and symbolic fix framework | [View →](https://github.com/onestardao/WFGY/tree/main/ProblemMap/README.md) | | Problem Map 2.0 | RAG-focused failure tree, modular fixes, and pipelines | [View →](https://github.com/onestardao/WFGY/blob/main/ProblemMap/rag-architecture-and-recovery.md) | | Semantic Clinic Index | Expanded failure catalog: prompt injection, memory bugs, logic drift | [View →](https://github.com/onestardao/WFGY/blob/main/ProblemMap/SemanticClinicIndex.md) | | Semantic Blueprint | Layer-based symbolic reasoning & semantic modulations | [View →](https://github.com/onestardao/WFGY/tree/main/SemanticBlueprint/README.md) | | Benchmark vs GPT-5 | Stress test GPT-5 with full WFGY reasoning suite | [View →](https://github.com/onestardao/WFGY/tree/main/benchmarks/benchmark-vs-gpt5/README.md) | | 🧙♂️ Starter Village 🏡 | New here? Lost in symbols? Click here and let the wizard guide you through | [Start →](https://github.com/onestardao/WFGY/blob/main/StarterVillage/README.md) | --- > 👑 **Early Stargazers: [See the Hall of Fame](https://github.com/onestardao/WFGY/tree/main/stargazers)** — > Engineers, hackers, and open source builders who supported WFGY from day one. > ⭐ [WFGY Engine 2.0](https://github.com/onestardao/WFGY/blob/main/core/README.md) is already unlocked. ⭐ Star the repo to help others discover it and unlock more on the [Unlock Board](https://github.com/onestardao/WFGY/blob/main/STAR_UNLOCKS.md).
[](https://github.com/onestardao/WFGY) [](https://github.com/onestardao/WFGY/tree/main/OS) [](https://github.com/onestardao/WFGY/tree/main/OS/BlahBlahBlah) [](https://github.com/onestardao/WFGY/tree/main/OS/BlotBlotBlot) [](https://github.com/onestardao/WFGY/tree/main/OS/BlocBlocBloc) [](https://github.com/onestardao/WFGY/tree/main/OS/BlurBlurBlur) [](https://github.com/onestardao/WFGY/tree/main/OS/BlowBlowBlow)