Agent-native product interface
Product statement
Fairway is an agent-native engineering control plane that gives software agents durable context and gives humans accountable decisions, evidence, and promotion control.
Agents are the primary operational users. Humans remain the authority for consequential judgment. Agent-first does not mean agent-authoritative.
Primary design test
Every Fairway capability should satisfy both questions:
- Can a replacement agent safely continue this work without rereading the provider conversation?
- Can a responsible human understand and defend the result without trusting the agent's narrative?
A feature that serves only one side is incomplete. Raw agent convenience without accountability is unsafe; human-facing ceremony that agents cannot use reliably becomes process drag.
Primary workflow
agent reads bounded context
|
v
agent performs scoped work
|
v
Fairway records observed facts, material decisions, and proof
|
v
independent controls evaluate review and promotion boundaries
|
v
human approves, challenges, or accepts consequential outcomes
The CLI, JSON contracts, context packets, recipes, rules, sessions, checkpoints, and evidence models are primary agent interfaces. The dashboard is a human and coordinator control-room projection over the same durable facts, not a separate workflow authority.
Authority boundaries
| Actor or surface | May do | Must not do implicitly |
|---|---|---|
| Agent | Read context, propose and implement scoped changes, draft decisions, run bounded validation, record facts. | Approve its own consequential work, infer credentials, grant live authority, or rewrite history. |
| Fairway | Store task state, observed facts, curated decisions, evidence, reviews, waits, and promotion gates; produce deterministic packets. | Invent historical reasoning, execute arbitrary provider work, or become autonomous approval authority. |
| Reviewer | Compare intent, diff, decisions, evidence, and policy; accept or reject within a named domain. | Treat agent narrative as proof or approve outside assigned authority. |
| Human operator | Authorize consequential actions, credentials, production mutation, release, and risk acceptance. | Delegate accountability to generated prose. |
| LLM explanation provider | Turn a grounded packet into readable narrative and bounded inference. | Become provenance, silently fill unknown history, or mutate Fairway state. |
Grounded code explanation
The target interaction is:
fairway explain code packages/platform/iam/session_store.go \
--line 142 \
--format packet
Fairway resolves the code location to a grounded packet containing:
- source repository, path, symbol, line, commit, and diff facts;
- owning tasks, declared scope, contracts, and acceptance criteria;
- current and superseded material decisions;
- evidence, CI, UAT, and review verdicts;
- canonical architecture, policy, and operational references;
- conflicts, missing provenance, and confidence limits.
The deterministic packet is useful without an LLM and is the authority supplied to any explanation provider.
The first executable slice is:
fairway explain code packages/platform/iam/session_store.go \
--line 142 \
--symbol LookupSession \
--format packet
It resolves the selected committed path, line blame, commit file set, and Go
symbol metadata, then maps those facts to existing Fairway task scope,
acceptance contracts, structured decisions, evidence references, and review
references. JSON uses schema fairway.explain-code.v1; packet and markdown
produce the same deterministic Markdown. The command reports conflicts and
missing provenance instead of filling gaps. It does not emit source bodies or
generate a narrative. Non-Go symbol resolution and optional advisory narrative
generation remain later slices.
An optional first narrative adapter is available through:
fairway explain code packages/platform/iam/session_store.go \
--line 142 \
--narrative-provider local-explain \
--format packet
This path is deliberately narrower than generic provider execution. It accepts
an enabled, capability-declaring local_ollama adapter with a loopback endpoint
only. Fairway sends the already-redacted grounded packet in memory and validates
an exact fairway.explain-narrative.v1 response. Every recorded or inferred
statement must cite a packet reference; unknown statements remain explicit.
Generated text is displayed but never written back as evidence, a decision, or
accepted provenance. Missing local provider access leaves deterministic packet
generation fully usable.
LLM narrative boundary
An optional configured advisory provider may turn the grounded packet into a human-readable explanation. Fairway requires the output to distinguish:
recorded: directly supported by cited Fairway, Git, contract, evidence, or review facts;inferred: a bounded interpretation derived from code or related facts;unknown: absent, contradictory, or insufficient provenance.
Example:
Recorded:
Session authorization moved into the shared lookup in commit abc123 under
IAM-142. Decision D-142 says handler-only enforcement left two bypass paths.
Inferred:
The centralized placement also reduces the chance that future handlers omit the
same check.
Unknown:
No accepted record explains why the cache key format changed in the same commit.
Generated narrative is never written back as historical truth. It may propose a missing decision or documentation update, but normal review is required before that proposal becomes accepted provenance.
Reproducibility posture
Fairway does not claim deterministic LLM execution. It creates a replayable, auditable engineering packet that allows independently produced implementations to be evaluated against the same:
- objective and boundaries;
- contracts and source facts;
- material decisions and accepted deviations;
- source, tool, model, dependency, and environment identities when available;
- validation commands, evidence hashes, and review requirements;
- closeout and promotion decisions.
The target is outcome equivalence and accountable re-execution, not identical token streams or byte-identical generated code.
Progressive disclosure
Agent-first usage must remain fast:
- routine reversible work uses compact
workcommands and advisory decision guidance; - advanced inspection exposes the underlying task, session, checkpoint, decision, evidence, and review facts;
- consequential boundaries retain explicit review and human authorization.
Explainability cannot become a mandatory LLM call. Grounded packet generation is local and deterministic; narrative generation is optional. Missing provider access must not block normal task continuation or closeout.
Privacy
Grounded packets and narratives exclude secrets, credentials, raw prompts,
chain-of-thought, provider-private transcripts, raw tool bodies, and unredacted
artifact content. Optional forensic transcript references follow the retention
and access rules in
task-decision-memory.md and remain outside normal
explain output.
Delivery sequence
- Complete common-path and task-decision primitives.
- Implement deterministic
explain codepacket generation. - Pilot packet usefulness with maintainers and replacement agents.
- Add optional advisory-provider narrative generation.
- Measure citation accuracy, unknown labeling, resume quality, authoring cost, and incorrect inference rate before broader promotion.
The release must state which steps are implemented, advisory, experimental, or planned. Product positioning must not outrun executable behavior.