The minimum context that still earns the answer.

OBJECTIVE

answer usefulness

token cost

disclosure risk

subject to permission + provenance

More context is not automatically better context. Ninai explores retrieval as a constrained disclosure problem: preserve answer usefulness while reducing irrelevant tokens and unnecessary exposure.

Honest status

PACT is a working engineering method in the MVP. It is not presented as academically novel until it is evaluated against credible baselines.

01

Identify

Name the requesting client and record its purpose.

02

Constrain

Resolve explicit grants before any search begins.

03

Retrieve

Search only rows within the allowed scope set.

04

Rank

Combine relevance, type-aware freshness, importance, and confidence.

05

Compose

Select the highest-value evidence that fits the packet budget.

06

Log

Record the exact memory IDs, scopes, purpose, and estimated tokens.

Inspectable weights, not hidden magic.

The MVP uses deterministic weights that can be tested and changed. They are evaluation hypotheses, not immutable product truth.

SignalWeightQuestion
Lexical relevance0.34

Does the fact address this request?

Search position0.18

How strongly did local retrieval surface it?

Freshness0.16

Is this memory current for its type?

Importance0.14

Was the outcome marked consequential?

Confidence0.12

How reliable was extraction or entry?

Reinforcement0.06

Has this memory proved useful before?

Compare the packet, not just the search result.

Ninai should be measured against full history, lexical top-k, semantic top-k, and future graph retrieval using the same questions and source evidence.

Answer accuracyDid the model answer correctly?
Context precisionHow much released context was useful?
Temporal accuracyDid it prefer the current fact?
AbstentionDid it stop when evidence was missing?
Scope leakageDid any forbidden memory appear?
Token reductionHow much context stayed local?
ProvenanceCan each claim be traced?
LatencyIs the policy layer fast enough?

Earn complexity one benchmark at a time.

  1. 01 Build deterministic long-session fixtures.
  2. 02 Measure lexical PACT against full history.
  3. 03 Add a rebuildable local vector adapter.
  4. 04 Test temporal supersession and conflict handling.
  5. 05 Publish results—including failures.