Files
archie/.okf/codebase/internal/workflow/agent_test.md
T
sam 7c34bdae5a okf: scaffold knowledge bundle and MCP server config
Adds a harvested .okf/ knowledge bundle (codebase concepts + starter
architecture/services/rules scaffolding) and .mcp.json pointing at the
shared okf MCP service (http://localhost:8765/archie-core/), which
serves multiple projects' bundles from a single process.
2026-07-22 04:36:50 +10:00

51 lines
1.1 KiB
Markdown

---
description: Source module internal/workflow/agent_test.go (276 lines).
resource: internal/workflow/agent_test.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: agent_test.go
type: Module
---
# Module agent_test.go
**Path**: `internal/workflow/agent_test.go`
**Lines**: 276
## Snippet Preview
```
package workflow
import (
"context"
"encoding/json"
"errors"
"log/slog"
"path/filepath"
"reflect"
"testing"
"github.com/samcharles93/archie-core/internal/agentexec"
"github.com/samcharles93/archie-core/internal/config"
"github.com/samcharles93/archie-core/internal/store"
)
type fakeAgentRunner struct {
workspace string
request agentexec.Request
result agentexec.Result
err error
}
type agentRunnerFunc func(context.Context, string, agentexec.Request) (agentexec.Result, error)
func (f agentRunnerFunc) Run(ctx context.Context, workspace string, req agentexec.Request) (agentexec.Result, error) {
return f(ctx, workspace, req)
}
func (r *fakeAgentRunner) Run(_ context.Context, workspace string, req agentexec.Request) (agentexec.Result, error) {
```