Status: Current reference. For active product truth and operational boundaries, start with
docs/current-source-of-truth.md.
Date: 2026-03-04 (America/Los_Angeles)
This contract captures active, externally visible promises verified in this release regression.
- Entrypoint:
CLI - Trigger:
friday start - Example input:
friday start --host 127.0.0.1 --port 3141 - Success (user-visible): API becomes reachable and returns structured JSON envelopes.
- Failure (user-visible): startup exits with explicit error/log context.
- Error standards: startup/log errors include actionable message; HTTP failures include
requestId.
- Entrypoint:
Web/API - Trigger:
/v1/*calls - Example input:
GET /v1/health,GET /v1/auth/me(without token) - Success:
{ ok: true, data, requestId } - Failure:
{ ok: false, error: { code, message }, requestId } - Error standards: route/auth/validation failures map to explicit codes (
VALIDATION_ERROR, etc.)
- Entrypoint:
Web/API - Trigger:
/v1/agent/runs* - Example input:
POST /v1/agent/runs {"task":"...","providerId":"...","model":"..."} - Success: run accepted/completed with retrievable run state and events.
- Failure: explicit run errors (
AGENT_RUN_NOT_FOUND,AGENT_RUN_ALREADY_TERMINAL, tool/runtime errors).
- Entrypoint:
Web/API - Trigger:
/v1/workflow-runs* - Example input:
POST /v1/workflow-runs {"workflowId":"...","versionNumber":1} - Success: start -> terminal run -> timeline/nodes/evidence endpoints accessible.
- Failure: explicit code + error message in response envelope.
- Entrypoint:
Discord/Webchat(and channel framework) - Trigger: inbound message
- Example input: inbound channel event (
MESSAGE_CREATE/ webchat frame{type:"message"}) - Success: outbound reply text and optional attachments delivered to channel user.
- Failure: explicit fallback delivery text with code (
E-CH-OUTBOUND-001) and correlation reference.
- Entrypoint:
Agent tool runtime(via API/channel) - Trigger: tool action
browserscreenshot/snapshot flow - Example input: agent task that triggers
browseractionscreenshot/snapshot - Success: screenshot/file artifact exists, is non-empty, and is referenced in user output.
- Failure: explicit tool error text and event-level
errorCode.
- Entrypoint:
Agent tool runtime - Trigger: tool action
desktop - Example input: agent task triggering desktop
session_info - Success (enabled): desktop session/action result returned to user.
- Failure (disabled): explicit enablement guidance
FRIDAY_DESKTOP_ENABLED=true.
- Entrypoint:
Web/API - Trigger: run request with
marketplaceListingId - Example input: run request referencing marketplace listing before/after install
- Success: entitled/installed principal can run.
- Failure: explicit
MARKETPLACE_ENTITLEMENT_REQUIREDorMARKETPLACE_INSTALL_REQUIRED.
- Entrypoint:
Web/API - Trigger: unsupported route family call (e.g., observability when disabled)
- Example input:
GET /v1/observability/traceswhen observability routes are not wired - Success: clear not-enabled message.
- Failure standard: no silent success; response still includes structured error envelope.
- Entrypoint:
Web/API + Agent + Channels - Trigger: run execution and delivery flows
- Example input: agent run and channel delivery events for one correlation scope
- Success: logs/events include correlation context (
requestId,runId,correlationId,routeIdas applicable). - Failure: error paths still preserve structured error code and contextual IDs.