Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/attractor/engine/cli_only_models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ func TestIsCLIOnlyModel(t *testing.T) {
want bool
}{
{"gpt-5.4-spark", false},
{"GPT-5.4-SPARK", false}, // case-insensitive
{"GPT-5.4-SPARK", false}, // case-insensitive
{"openai/gpt-5.4-spark", false}, // with provider prefix
{"gpt-5.4", false}, // regular codex
{"gpt-5.4", false}, // regular codex
{"gpt-5.4", false},
{"claude-opus-4-6", false},
{"", false},
Expand Down
6 changes: 3 additions & 3 deletions internal/attractor/engine/codergen_router_cxdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func TestEmitCXDBToolTurns_EmitsAssistantToolCallAndToolResult(t *testing.T) {
Kind: agent.EventToolCallEnd,
Timestamp: time.Now(),
Data: map[string]any{
"tool_name": "Read",
"call_id": "toolu_123",
"tool_name": "Read",
"call_id": "toolu_123",
"full_output": "hello world",
"is_error": false,
"is_error": false,
},
})

Expand Down
18 changes: 9 additions & 9 deletions internal/attractor/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,15 +810,15 @@ func (e *Engine) runLoop(ctx context.Context, current string, completed []string
}
next := nextHop.Edge
e.appendProgress(map[string]any{
"event": "edge_selected",
"from_node": node.ID,
"to_node": next.To,
"label": next.Label(),
"condition": next.Condition(),
"hop_source": string(nextHop.Source),
"selection_method": nextHop.SelectionMeta.Method,
"event": "edge_selected",
"from_node": node.ID,
"to_node": next.To,
"label": next.Label(),
"condition": next.Condition(),
"hop_source": string(nextHop.Source),
"selection_method": nextHop.SelectionMeta.Method,
"candidates_evaluated": nextHop.SelectionMeta.CandidatesEvaluated,
"conditions_matched": nextHop.SelectionMeta.ConditionsMatched,
"conditions_matched": nextHop.SelectionMeta.ConditionsMatched,
})

// loop_restart (attractor-spec §3.2 Step 7): terminate current run, re-launch
Expand Down Expand Up @@ -2067,7 +2067,7 @@ func hasMatchingOutgoingCondition(g *model.Graph, nodeID string, out runtime.Out

// edgeSelectionMeta captures how edge selection resolved for decision logging.
type edgeSelectionMeta struct {
Method string // condition_match, preferred_label, suggested_next_ids, weight, only_edge, fallback
Method string // condition_match, preferred_label, suggested_next_ids, weight, only_edge, fallback
CandidatesEvaluated int
ConditionsMatched int
}
Expand Down
8 changes: 4 additions & 4 deletions internal/attractor/engine/worktree_hint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func TestExtractLeadingPath(t *testing.T) {
{"scripts/check.sh --flag", "scripts/check.sh"},
{"bash -c 'scripts/check.sh'", "scripts/check.sh"},
{"sh -c \"./run.sh arg1 arg2\"", "./run.sh"},
{"echo hello", ""}, // bare command, no path
{"ls", ""}, // bare command
{"node app.js", ""}, // first token is bare command
{"", ""}, // empty
{"echo hello", ""}, // bare command, no path
{"ls", ""}, // bare command
{"node app.js", ""}, // first token is bare command
{"", ""}, // empty
{" ./test.sh ", "./test.sh"},
}
for _, tt := range tests {
Expand Down
Loading