惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
小众软件
小众软件
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
J
Java Code Geeks
WordPress大学
WordPress大学
The Cloudflare Blog

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - AronDaron/dataset-generator: No-code desktop app for generating high-quality synthetic datasets to fine-tune LLMs — plan-then-execute pipeline, LLM-as-judge, HuggingFace upload. GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL).
GitHub - JordanCT/VigIA-Orchestrator
2026-04-10 · via Hacker News - Newest: "LLM"

VigIA: Deterministic State Machine for LLM Orchestration

Runtime: .NET 10 Native AOT Paradigm: Deterministic FSM License: Apache 2.0

LLMs are probabilistic engines. Forcing them to manage application state or business logic leads to hallucination spirals. VigIA takes state management away from the LLM, demoting it to a purely functional heuristic parser bounded by a strict, deterministic Finite State Machine (FSM) built in .NET 10 (Native AOT).

If the LLM hallucinates a requirement, violates a Domain-Driven Design (DDD) boundary, or if the user evades providing business rules, the .NET Orchestrator intercepts the payload, discards the mutation, rolls back the chat history, and issues a [NACK] (Negative Acknowledgment).

VigIA Execution Demo (Demo: The Judge agent intercepting user evasion, the FSM issuing a Cognitive Strike, and forcing the user to provide strict domain rules).

1. The Homelab Context

This architecture was developed and stress-tested on Ubuntu 24.04 LTS with a local RTX 5090 running Gemma 4. It is designed for zero-latency local inference, proving that enterprise-grade deterministic orchestration can run entirely on edge hardware without relying on external, rate-limited APIs.

2. The Technical Problem: State Corruption

Standard LLM agents (like LangChain wrappers) suffer from State Corruption. When an LLM fails to generate a valid JSON or hallucinates a business rule, the failure is appended to the chat history. In the next turn, the LLM reads its own garbage output, assumes it as ground truth, and spirals into an unrecoverable state.

Furthermore, LLMs suffer from Sycophancy. If a business user asks for a "Stock Reservation" system but provides no specific rules, the LLM will hallucinate a textbook CRUD response just to appease the user, silently bypassing critical domain invariants like Reservation TTL (Time-To-Live) and cancellation release triggers.

3. The Solution: FSM Interceptor & Snapshot Rollbacks

VigIA solves this through a strict architectural pipeline (VigiaAgentOrchestrator):

  1. Structured State Vector (SSV): Chat history is purged of state. Global context is maintained via an immutable StructuredStateVector. Only successfully resolved Aggregate Roots are injected into the prompt, preventing context window poisoning.
  2. Deterministic Cross-Validation (InvariantEnforcer): The LLM's JSON output is never trusted. It is routed through a strict validation layer. It doesn't just check syntax; it enforces DDD invariants. Does the payload have an Actor and an Action? Does it contain exhaustive Gherkin criteria (at least one Happy Path and one Edge Case)? If not, the transition is aborted.
  3. Snapshot Rollbacks (ChatHistoryManager): When the InvariantEnforcer returns a failure (via a strict Result<T, E> monad), the FSM performs a snapshot rollback. The LLM is punished with a "Cognitive Strike" prompt detailing its exact structural error, but its previous hallucination is erased from the chat history.
  4. The 3-Strike[NACK] Rule: If the user evades questions (detected by the Judge agent) or the Synthesizer LLM fails to pass the InvariantEnforcer 3 consecutive times, the FSM triggers a Hard Block and halts the system.

4. Why .NET 10 Native AOT? (The Engineering)

VigIA is not a Python script relying on mutable dictionaries. It is a compiled, memory-safe binary designed for production orchestration.

  • Zero Reflection: JSON serialization is handled entirely by C# Source Generators (OrchestrationJsonContext).
  • Memory Safety: The SSV relies on readonly record structs and ImmutableDictionary. State transitions generate mathematically distinct vectors, preventing memory leaks during long elicitation sessions.
  • Monadic Error Handling: Exceptions are not used for control flow in the hot path. The Result<T, E> monad guarantees that the Orchestrator handles every possible LLM failure deterministically at compile-time.

5. Architecture Blueprint

Vigia.RequirementsMaster.slnx/
│
├── src/Vigia.Core.Domain/
│   # 🛡️ LAYER 1: The Deterministic Core. Zero dependencies.
│   ├── Aggregates/           # ArtifactRequirement, SystemBlueprint.
│   ├── Exceptions/           # DomainAmbiguityException, RejectionReason.
│   ├── Monads/               # Result<T, E> forcing compile-time NACK handling.
│   ├── StateVectors/         # StructuredStateVector (SSV) immutable snapshots.
│   └── ValueObjects/         # SystemId, ArtifactId, VectorVersion.
│
├── src/Vigia.Agent.Orchestration/
│   # 🧠 LAYER 2 & 3: Cognitive auditing and FSM state-shift management.
│   ├── Commands/             # CommandInterceptor (e.g., /approve handling).
│   ├── CrossValidation/      # InvariantEnforcer and strict Payload schemas.
│   ├── FSM/                  # Pure functional mapping: f(SSV, Payload) -> State | NACK.
│   ├── History/              # ChatHistoryManager (Snapshot & Rollback mechanics).
│   ├── Ports/                # ILlmInferenceEngine interface.
│   ├── Prompts/              # CognitivePrompts, VigiaBasePrompt, VigiaJudgePrompt.
│   └── Serialization/        # OrchestrationJsonContext (SourceGen for AOT).
│
├── src/Vigia.Infrastructure.LLM/
│   # 🔌 LAYER 4: Infrastructure and Inference.
│   ├── Configuration/        # LlmSettings.
│   └── Engines/              # LocalInferenceClient (vLLM/OpenAI compatible) + Strict Schemas.
│
├── src/Vigia.LiveTest/
│   # 🖥️ PRESENTATION: The interactive FSM REPL console.
│   ├── Presentation/         # ReplOrchestrator, VigiaConsoleTerminal.
│   └── appsettings.json      # SystemBlueprint injection.
│
└── tests/Vigia.Tests.Unit/
    # 🧪 VALIDATION SUITE: Mathematical proof of state immutability.

6. Execution Flow: The Inventory System Test Case

VigIA is driven by a SystemBlueprint. In this repository, we provide a real-world test case: an Inventory Management System. The FSM forces the LLM and the User to sequentially resolve 5 artifacts: CategoryManagement, ProductManagement, InboundStock, ManualStockAdjustment, and finally, the ultimate Sycophancy Trap: StockReservation.

  1. The Judge (Sensing): User input is first evaluated by a Judge LLM (Temperature 0.0). It checks for IsDomainDrift, IsEvasion, or IsMalice. If true -> NACK.
  2. The Synthesizer (Elicitation): If approved, the Synthesizer LLM evaluates if the data is complete. If missing -> Emits Type: Question.
  3. The FSM Interceptor: Once the LLM emits a Deliverable, the .NET FSM validates the Gherkin scenarios, Actor, Action, and Domain Rules.
  4. Sign-Off: The FSM locks the state and requires the user to type /approve.

7. Running VigIA Locally

Prerequisites

  • .NET 10 SDK (Preview)
  • A local LLM inference server (vLLM, LM Studio, Ollama) exposing an OpenAI-compatible API.

Setup

  1. Clone the repository.
  2. Edit src/Vigia.LiveTest/appsettings.json to point to your local LLM endpoint:
"LlmSettings": {
  "Endpoint": "http://localhost:8000/v1",
  "ModelId": "gemma-4-local",
  "ApiKey": "empty"
}
  1. Run the REPL Terminal:
cd src/Vigia.LiveTest
dotnet run -c Release

8. Background & Research

This architecture evolved from our initial academic research: "VIGÍA 4+1: Mitigating LLM Sycophancy and Normative Bias in Requirements Engineering via Deterministic Agentic Orchestration" (March 2026).

While the original paper utilized Command-R as the baseline model, this repository represents the production-grade evolution of the framework. It has been migrated to .NET 10 Native AOT, refactored with Monadic state handling, and optimized to orchestrate superior reasoning models like Gemma 4.


Built with rigorous engineering. No hype. Just state machines.