$ saci --status

S.A.C.I.

Sistema Automático de Caminhos Inteligentes — Automatic System of Intelligent Paths

A decision layer that turns a program's state into routed, calibrated choices — and says "I don't know" when it doesn't. in training

First version is trained, calibrated and serving. The reinforcement-learning stage and the public benchmark comparison are in progress — the open items are listed rather than guessed at.

the name

System 1, by contract

Kahneman's fast, automatic, effortless mode is the latency contract: single-pass answers on a sub-50 ms path, no chain-of-thought in the loop. The whirlwind is the product metaphor.

Tying knots

The generator operates on nodes and edges — states to typed options. Resolving a tangled decision is literally untying knots in a graph, which is what the engine does.

Adaptive redirection

The Saci misdirects the obvious route. Same idea here: alternative paths and dynamic routing that a rigid rules engine would never see — including abstaining when confidence is low.

An independent build

State plus typed questions plus calibrated answers is a general idea with several implementations, including commercial ones. This one is built and measured here, on its own terms.

architecture

State, routing and execution are three different jobs, and keeping them in three different places is what makes the system auditable. The model never owns a consequence.

  1. State
    Program state
    • Holds what is known, what is stale, and what the current step needs to resolve — owned by the application, never by the model.
  2. Routing
    S.A.C.I.
    • Given that state and a set of typed questions, returns typed answers with probabilities and a confidence band.
  3. Execution
    Application code
    • Owns the consequences. It reads the band, not the raw answer, and decides to proceed, escalate or ask.

when to use it

Six conditions a calibrated decision layer needed in the consumers we measured. Each is shown with the case that exposed it or, where no measured case failed on it, the nearest one. They are failure modes we observed in one harness, not a proven set of jointly sufficient conditions.

The same question, with a fixed set of answers, recurs in live traffic.

Do not use when: The decision has no fixed answer set, or each case is different.

Measured counterexample: Contradiction detection in the code graph stopped before any model: all 10 relation types allow many values, so no contradiction could be defined.

Some component acts on the answer and its outcome can be observed.

Do not use when: Nothing consumes the decision, so a better answer changes nothing.

Measured counterexample: The skill-suggestion front closed before a model: the census found bugs and an absent consumer, not a costly decision.

A label source has passed an agreement gate, or the label is mechanical (observed in the outcome).

Do not use when: The only labels come from models that disagree with a stronger reference.

Measured counterexample: A seven-model panel as label source for tier reached kappa 0.241 [0.048, 0.433] against a strong anchor, below the 0.6 bar; a text-only model trained on mechanical scope labels, a different target, passed its own test.

Acting wrongly costs more than abstaining, and abstaining falls back to a safe default.

Do not use when: The do-nothing default is already as accurate as the layer.

Measured counterexample: Joint calibration of two flags per record was right 79.4% of the time, the same as never acting.

The decision tolerates the latency of the cheapest model that passes its gate.

Do not use when: The caller needs an answer faster than the cheapest passing model gives one.

Measured counterexample: No consumer we measured had a budget the cheapest passing model missed. The nearest case: scoring the questions concurrently, meant to cut the served latency, cut the median by 10.3% over the run, against the 30% the bench required, and was 2% slower once an overlapping run on the same server had ended.

A rule-based or constant alternative at the same cost was measured and lost.

Do not use when: No simple alternative was measured, or it wins.

Measured counterexample: Two rerank-and-prune models kept 27% of the error lines in tool logs; a deterministic extractor kept 91.24% on the CPU.

These rules come from the applicability section of the S.A.C.I. paper, which is in preparation; every number above is checked against the run that produced it. The paper will be linked here once it is public — progress is on the roadmap.

roadmap

Absorbed from the open implementations of the same pattern, each pre-registered with a status. Nothing moves to adopted without a measurement.

A1 in progress

Calibration-shaped reward

Reinforcement stage whose reward is outcome minus the probability assigned to the chosen option. Published evidence from an independent implementation: final ECE 0.021 with a 6-point accuracy gain, where the same loop with a plain outcome reward ends at ECE 0.216 — the calibration term is what preserves calibration. A lightweight rebalanced retrain is running now.

A2 planned

Learned abstention slot

An explicit "insufficient evidence" candidate in the answer space, so abstention is learned rather than bolted on post-hoc.

A3 planned

Parallel multi-question broadcast

Answer every question for a state in one pass instead of one call per question — independently measured at 5.6–7.0× latency reduction.

A4 planned

Small distill, decision-only export

A compact student model with only the decision head exported — enough for routing tasks that never need generation.

A5 planned

Synthetic template expansion

Generated slot templates to widen domain coverage, and the prerequisite for running domain-specialised benchmarks.

A7 adopted

NLI framing of candidate labels

Rephrasing candidates as statements rather than bare labels. Measured +22 points on the intent question and +22 on the public benchmark's easy split at zero cost elsewhere — with the caveat that framing everything breaks the routing question, so the word-only variant is the one in use.

next consumers

Every place the harness currently guesses with a heuristic is a candidate for a typed question with a calibrated answer.

clarify gateshadowinjection screenservingcache admitcandidatemodel routingservingbudget tiercandidatecompaction triggershadowdelegation hintcandidateredundancy probecandidate

open items

Training is still running. These are the slots that fill in next — listed rather than quietly omitted, because a research page that only shows finished work is a brochure.

  • Active-learning queue: 953 uncertain samples mined from shadow logs, waiting on human annotation.
  • Judge agreement: 0.198 today against an 0.85 bar — blocked on annotating the queue above.
  • Feature-model promotion: the 86-compaction repeat landed at a 0.426 revisit ratio (95% CI 0.281 to 0.591 against a 0.5 bar); segment-family routing and identifier state are next before pre-registering a third gate.
  • Injection head v4: golden F1 0.911 beats v3 at 0.891, held back until the functional suite passes.
  • Embedding variant: lexical-dense score fusion passed the retrieval gate (0.412 vs 0.402 lexical); cross-encoder reranker and line-pruner bake-off is queued next on the GPU window.
  • Contextual-bandit routing: the router now logs the probability of every route it takes, with exploration held at zero until the source of some unpaired router decisions is traced; the offline replay gate is pre-registered, not yet run.
  • Reinforcement stage (calibration-shaped reward) — running; result pending.
  • Public benchmark on the domain-specialised task set — blocked on the synthetic-template path.