Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (49 loc) · 2.38 KB
/
Copy pathMakefile
File metadata and controls
59 lines (49 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: build test test-race vet tidy clean ready
# Build from the reviewed module graph only, never mutate it (see
# basecamp-mcp-server's Makefile for the full rationale). tidy opts back in.
export GOWORK := off
export GOFLAGS := -mod=readonly
GO := go
build:
$(GO) build -trimpath ./...
test:
$(GO) test ./...
test-race:
$(GO) test -race ./...
vet:
$(GO) vet ./...
tidy:
GOFLAGS=-mod=mod $(GO) mod tidy
clean:
rm -rf bin
ready: vet test-race build
# Run the structural eval loop as a hermetic smoke: the in-process fake server
# with the deterministic oracle backend, over a PINNED corpus, compared against
# a committed baseline. No network, no model spend. The pinned corpus is what
# makes the gate real: the committed golds are graded against the current fake
# catalog, so a surface change that invalidates a gold under an unchanged
# scenario id — a renamed action, an added required param, a changed enum —
# is refused by the corpus preflight before any cell runs (nonzero exit).
# Regenerating the corpus instead would let the oracle's answers drift with the
# schema and hide exactly that. Annotations are the one surface scoring cannot see — the
# oracle returns the pinned gold either way, so an action that merely loses
# ReadOnly, or a write that loses Idempotent, still scores 1 — so the run
# compares the pinned class and readonly_framed against the live catalog and
# errors on drift. (Idempotent on a read-only action is not pinned: class folds
# it into "read".) Real model runs use the eval command with --backend cli/api.
.PHONY: eval-smoke
eval-smoke:
$(GO) run ./eval/cmd/eval --server fake --backend oracle \
--scenarios eval/testdata/scenarios/fake.json \
--out /tmp/eval-smoke.jsonl --require-pass \
--baseline eval/testdata/results/fake-oracle.jsonl
# The multi-turn mode's hermetic smoke: the in-process fake product server
# replayed from committed cassettes, every guidance arm, each task's gold
# script as the agent — no model, no network. It proves the loop turns end to
# end (connect, arm realization, calls, replay, trace grading, report) and
# gates against a committed baseline. Real runs use --backend api or cli.
.PHONY: eval-multiturn-smoke
eval-multiturn-smoke:
$(GO) run ./eval/cmd/multiturn --server fake --backend script --quiet \
--out /tmp/eval-multiturn-smoke.jsonl --require-pass \
--baseline eval/testdata/multiturn/fake/baseline-script.jsonl