Challenge
Long-context, high-effort inference did not reliably produce a final actionable answer. A model-only response was not a sufficient correctness boundary.
NCMA SYSTEMS / APPLIED AI ENGINEERING / VERIFIED LAB
Building a resumable local agent runtime where model outputs are proposals and independent evidence determines what becomes accepted state.
SEQUENCE / VERIFIED HOP
Model proposals are untrusted. A deterministic validator must match each next hop to authoritative source rows before progress can be checkpointed.
Coordinator Corpus
Verify corpus SHA and fetch NODE / PATCH / TEAM rows
Corpus Coordinator
Return focused authoritative evidence
Coordinator Model HIGH
Request bounded preliminary draft
Model HIGH Coordinator
Return untrusted analysis
Coordinator Model MEDIUM
Request one-hop JSON proposals
Coordinator Validator
Check highest numeric PATCH revision and target
Validator Checkpoint
Accept verified steps; reject unsupported candidates without losing progress
Checkpoint Coordinator
Resume from compact verified state
Offline tests Oracle
Score final result AFTER inference, never during
ORACLE BOUNDARY: the synthetic oracle was withheld from the model in the historical run. Independent comparison is post-inference only. No model-authored host commands are executed.
Full source-grounded sequence and recovery branches ↗EXPERIMENT CHRONOLOGY
G2 coding tests are a different workload from the G3/G4H synthetic graph audit. Their pass fractions must not be compared as model accuracy.
| Gate | Configuration | Evidence | Finding |
|---|---|---|---|
| G2 / coding | 32K; LOW / MEDIUM / HIGH | MEDIUM: 11/11 unit tests PASS. LOW: syntax rejected. HIGH: 8K/12K output exhausted. | Independent unit tests gate code proposals. |
| G3 / monolith | 98,304 context reserved; 77,103 input + 16,384 completion tokens | HIGH-only; no final JSON, 0 bytes final, 0/12 synthetic cases returned. | Large context did not guarantee completion. |
| G4H / hybrid | 98,304 reserved; targeted retrieval; HIGH draft + MEDIUM finalizer | 12/12 synthetic cases, 60/60 fields, 22 rounds, 44 calls, 78 verified hops, 28 rejections. | Checkpointed runtime completed this fixture. |
Long-context, high-effort inference did not reliably produce a final actionable answer. A model-only response was not a sufficient correctness boundary.
Task-specific retrieval → bounded high-effort draft → medium-effort JSON finalizer → independent source validator → atomic checkpoint → resumable execution.
Reject invalid graph transitions without losing verified progress. Keep source evidence separate from model proposals. The model does not execute host shell commands.
G4H produced correct results for 12/12 synthetic incidents and 60/60 evaluated fields. The runtime accepted 78 verified hops across 22 checkpoint rounds and 44 model calls, rejecting 28 proposed steps.
The published oracle and corpus enable independent replay, but do not prove general-world accuracy. The 96K configured context window is not the amount ingested in every G4H inference; G4H used focused retrieval.
REPRODUCIBILITY / SEPARATE BACKEND
The compatibility guide documents a new local Chat Completions backend. HTTP success alone does not prove HIGH/MEDIUM reasoning semantics.
python -m unittest discover -s tests -v
python -m ncma_lab.g4_hybrid --check-only
python -m ncma_lab.g4_hybrid --max-rounds 18
python scripts/verify_backend_result.py --result runs/backend-trial-01/final_results.jsonConfigure PYTHONPATH, NCMA_MODEL_API, NCMA_MODEL_ALIAS and NCMA_RUN_DIR first. The guide covers security, budgets, resume and validation.
Scope: one synthetic deterministic fixture, not a claim of broad real-world accuracy. Local model inference is not an OS sandbox.