Skip to content

Commit 0449e69

Browse files
committed
Qualify records with the agent model and add task chunk setters
Actor names like cursor or codex identify tools, not models. agents run now injects AGENTS_AGENT alongside AGENTS_ACTOR, records carry an Agent: line, and run/dispatch output shows qualified descriptors like 'codex (model gpt-5.5, reasoning high)'. Add agents task scope|status|next so task chunks are maintained through the CLI, configure the repo's own two-agent roles with pinned models, and correct earlier record attribution to mekilis.
1 parent 104d165 commit 0449e69

12 files changed

Lines changed: 314 additions & 17 deletions

.agents/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 1
2+
storage:
3+
commit_chunks: true
4+
cleanup_on_archive: true
5+
cleanup_mode: summarize_then_prune
6+
keep:
7+
active_tasks: true
8+
archived_summaries: true
9+
decisions: promoted_only
10+
findings: unresolved_only
11+
settings:
12+
# Codex CLI: model examples: gpt-5.5, gpt-5.4, gpt-5-codex, codex-mini-latest
13+
# Codex reasoning examples: minimal, low, medium, high, xhigh
14+
codex_model: "gpt-5.5"
15+
codex_reasoning: ""
16+
# Claude Code: model names and aliases vary by account and CLI version.
17+
# Run 'claude --help' or use Claude's in-app model controls for current choices.
18+
# Claude effort: low, medium, high, xhigh, max; supported levels depend on the selected model.
19+
claude_model: ""
20+
claude_effort: ""
21+
# Cursor Agent: run 'agent models' or 'cursor-agent --list-models' for account-specific choices
22+
# Common examples from CLI help: gpt-5, claude-4.6-sonnet-medium, claude-4.6-sonnet-medium-thinking
23+
cursor_model: "gpt-5"
24+
# Each role is a provider name (cursor, cursor-agent, agent, codex, claude)
25+
# or a map with provider plus optional model/reasoning overrides:
26+
# reviewer:
27+
# provider: codex
28+
# model: gpt-5.5
29+
# reasoning: high
30+
# Advanced escape hatch: a cmd template containing {prompt_file}.
31+
roles:
32+
implementer: agent
33+
reviewer:
34+
provider: codex
35+
reasoning: high
36+
coordinator:
37+
provider: codex
38+
reasoning: medium
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Decision: Records carry an Agent: line from AGENTS_AGENT because cursor/codex/claude name
2+
3+
Status: proposed
4+
By: mekilis
5+
6+
Records carry an Agent: line from AGENTS_AGENT because cursor/codex/claude name tools, not models; agents run injects a qualified descriptor like codex (model gpt-5.5, reasoning high)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Decision: Task chunks scope.md/status.md/next.md are maintained through agents task scope|
2+
3+
Status: proposed
4+
By: mekilis
5+
6+
Task chunks scope.md/status.md/next.md are maintained through agents task scope|status|next, not hand-editing
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Handoff: reviewer
2+
3+
To: reviewer
4+
From: cursor
5+
Agent: cursor (model claude-fable-5-thinking-high)
6+
7+
Second pass adds model-qualified attribution (AGENTS_AGENT -> Agent: lines on all records, qualified run/dispatch output) and agents task scope|status|next setters. Review agentDescriptor, agentLine, setTaskChunk in internal/app/app.go; suite green with -race.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Next
22

3-
- decide next step
3+
Independent reviewer pass over internal/app/app.go, then archive the task
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Scope
22

3-
- define scope
3+
Core loop enforcement and provenance: actor identity, fixer!=verifier, verification evidence, managed run loop, per-role config, model-qualified attribution, and CLI setters for task chunks. No commit/push automation.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Status
22

3-
Starting task.
3+
Loop core and model attribution implemented and committed in part; agent descriptors recorded on chunks via AGENTS_AGENT; task chunk setters added; full suite green with -race.

.agents/tasks/2026-06-10-001-enforce-the-verification-loop-core--agents-2/verification/2026-06-10T082029Z-gofmt-clean-go-vet-clean-full-suite-passes-with-race.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Verification: gofmt clean, go vet clean, full suite passes with -race
22

33
Result: pass
4-
By: smart
4+
By: mekilis
55
Recorded at: 2026-06-10T08:20:29Z
66

77
gofmt clean, go vet clean, full suite passes with -race
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Verification: gofmt clean, go vet clean, full suite passes with -race after model attribution
2+
3+
Result: pass
4+
By: mekilis
5+
Recorded at: 2026-06-10T08:28:50Z
6+
7+
gofmt clean, go vet clean, full suite passes with -race after model attribution and task setters
8+
9+
## Command
10+
11+
$ gofmt -l . && go vet ./... && go test ./...
12+
exit: 0
13+
14+
```
15+
? github.com/mekilis/agents/cmd/agents [no test files]
16+
ok github.com/mekilis/agents/internal/app 3.514s
17+
```

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ agents task open "Fix checkout flow" --ref WEB-123
110110
agents task use tasks/2026-06-05-001-fix-checkout-flow--web-123
111111
```
112112

113+
Maintain the active task's chunks through the CLI instead of hand-editing:
114+
115+
```bash
116+
agents task scope "Checkout service and its API tests; no schema changes"
117+
agents task status "Fix implemented; regression test added; awaiting review"
118+
agents task next "Reviewer verifies the expired-card path"
119+
```
120+
113121
Record coordination state:
114122

115123
```bash
@@ -126,6 +134,13 @@ Every record carries an actor identity, resolved from `--by`, then the
126134
launches a role, it sets `AGENTS_ACTOR` to the role name in the agent's
127135
environment, so records written by agents are attributed automatically.
128136

137+
Actor names alone are not enough: `cursor`, `codex`, and `claude` name tools,
138+
not models. `agents run` also sets `AGENTS_AGENT` to a qualified descriptor —
139+
for example `codex (model gpt-5.5, reasoning high)` — and records carry it as
140+
an `Agent:` line, so it is always inspectable which model produced a decision,
141+
finding, fix, or verification. Run output and `agents dispatch` show the same
142+
qualified descriptor.
143+
129144
Independent verification is enforced, not suggested:
130145

131146
- A finding must be marked `fixed` before it can be `verified`.
@@ -257,6 +272,7 @@ Interactive slash commands available today:
257272
/init [--share|--local]
258273
/task open "title" [--ref REF]
259274
/task use <task>
275+
/task scope|status|next "text"
260276
/decision add "text"
261277
/handoff --to ROLE "text"
262278
/finding add|fix|verify ...

0 commit comments

Comments
 (0)