Files
archie/.okf/codebase/internal/agentexec/protocol.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/agentexec/protocol.go (206 lines).
resource: internal/agentexec/protocol.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: protocol.go
type: Module
---
# Module protocol.go
**Path**: `internal/agentexec/protocol.go`
**Lines**: 206
## Snippet Preview
```
// Package agentexec defines the unprivileged agent execution boundary.
// Workflow orchestration and external side effects remain daemon-owned.
package agentexec
import (
"encoding/json"
"errors"
"fmt"
"net/url"
"strings"
"time"
)
const ProtocolVersion = 1
// ErrBlocked is returned by ReviewResult when the daemon blocks agent output
// from reaching human channels.
var ErrBlocked = errors.New("agent output blocked by daemon review")
const StatusPassed = "passed"
// Command is one executable gate or preflight command.
type Command struct {
Name string `json:"name"`
Argv []string `json:"argv"`
ExpectFailure bool `json:"expect_failure,omitempty"`
}
// Gate is the quality gate an agent must satisfy.
type Gate struct {
```