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.
51 lines
1.1 KiB
Markdown
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) {
|
|
```
|