mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-21 02:43:25 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Routines are recurring work that an agent runs on a schedule, webhook or request. People file them under their responsibilities. > - #22253 and #22261 let agents read and change areas and responsibilities. Agents still have no dedicated routine tools, and they can change only routines assigned to themselves. > - When a person says "move my weekly digest to Monday mornings" or "map my routines to my responsibilities", the agent must use the generic API, write cron, and it is refused for the person's routines. > - This pull request adds `list_routines` and `update_routine`. It also lets an agent change routines that the person its run works for is responsible for. > - The benefit is that an agent can find routines under no responsibility, file them, and change their schedule in plain terms. Each change is a routine revision the person can restore. ## Linked Issues or Issue Description Refs #22261 (phase 2; this pull request is stacked on it), #22253 (phase 1). **Subsystem affected** Server (routine routes, native runner tool authority), the native runner tool catalog, and the `paperclip` skill. **Problem or motivation** An agent can list and change only its own routines through the generic API. It cannot change the schedule of a routine its person is responsible for. It must write cron expressions, and it cannot find the routines that are filed under no responsibility. **Proposed solution** Make the existing scenario operation `list_routines` live, with filters for words, status, agent, project, responsible person, a responsibility and "unfiled". Add `update_routine` for the title, instructions, agent, project, status, priority, a plain `schedule`, and filing under a responsibility. Let an agent manage a routine when the person its run works for is responsible for it. Handing the routine to another agent needs that person to have `tasks:assign`. **Alternatives considered** A new `routines` permission grant would add a setting with no current need. Routine revisions already give an undo path, so this change adds no new history. ## What Changed - `list_routines` is now live (it was a scenario-only mock) and keeps its scenario mock. - Add `update_routine`. A `schedule` such as `{ frequency: "weekly", dayOfWeek: "monday", time: "09:00", timezone }` maps to the routine's schedule trigger through the existing routine-offer cadence helpers. `schedule: null` turns the schedule off. `fileUnder` files the routine under a responsibility. - Add `server/src/services/routine-tools.ts`. It calls the routine routes with the run token. Fields and schedule go in one `PATCH /routines/:id` (one transaction and revision, guarded by `baseRevisionId`); filing follows, and if it fails after the routine changed the tool reports what was saved. Each part reports its own undo: the routine revision, or the Dashboard history for filing. - `PATCH /routines/:id` takes `schedule` (`{ cronExpression, timezone? }` or `null`) and replaces the schedule under the routine row lock, so racing changes leave one schedule. Without a zone it keeps the current schedule's, else uses the person's saved time zone, else answers 422. - `GET /companies/:companyId/routines` filters `q`, `status`, `assigneeAgentId`, `responsibleUserId`, `responsibilityId` and `unfiled=true` in SQL. - In `routes/routines.ts`, an agent may manage routines assigned to itself or routines its person is responsible for. On a routine the agent does not run, taking it from another agent (or handing it on), turning it on, changing its schedule (also through the trigger routes), starting a run, or restoring a revision requires that person's `tasks:assign`, as for a person. The person must have directed the run (see #22261). `routine.updated` activity records `onBehalfOfUserId`. - The routine and responsibility routes share one rule, `agentPersonInCompany` in `routes/agent-person-authz.ts`. - The catalog keeps each live action's `requiredClaims` (`list_routines` is `routines:read`). - The routine tools stay visible when Responsibilities is off. Only `responsibilityId`, `unfiled` and `fileUnder` need it. - Update `search_api` tool pointers, the routines reference, the skill section, the chat directive, the operation-groups spec and the pinned counts. ## Verification - Server: `routine-tools.test.ts` (new), `routines-routes.test.ts` (new: an agent changes its person's routine, hands it off only with `tasks:assign`, and is refused for another person's routine), the `responsibilit*` tests, `paperclip-runner-tool-authority` and `runner-api`: all pass. The first test in `routines-routes.test.ts` (Fireflies) times out at 15 s in my sandbox on a cold import, with or without this change. It passes with `--testTimeout=60000`. - Server `node scripts/typecheck-layers.mjs`: passed. - Runner: catalog, semantic-tool, eval, scenario and permission-policy tests (316) pass. All generator checks pass. ## Risks - Medium-low. Agents get write access to their person's routines. The route still checks the company, the routine revision guard and `tasks:assign` for a hand-off. The person can restore any earlier routine revision. - `list_routines` changes from a scenario-only mock to a live tool, so the reconciled catalog counts change. ## Model Used Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with tool use and code execution. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Paperclip <noreply@paperclip.ing>
845 lines
33 KiB
JSON
845 lines
33 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"documentTitle": "Paperclip agent operation groups",
|
|
"evalRepositoryUrl": "https://github.com/paperclipai/paperclip-evals/blob/master/",
|
|
"prpEventFamilyDescriptions": {
|
|
"runner": "Runner connection, drain, and diagnostic lifecycle.",
|
|
"runtime": "Runner phase transitions and run-scoped reported activity.",
|
|
"sandbox": "Sandbox resource measurements.",
|
|
"workspace": "Workspace readiness.",
|
|
"harness": "Provider harness startup, readiness, exit, and diagnostics.",
|
|
"auth": "Content-free harness credential changes observed by the runner.",
|
|
"session": "Provider-neutral session open, resume, reconciliation, close, and failure.",
|
|
"turn": "Model turn submission through terminal turn disposition.",
|
|
"item": "Provider-neutral model/tool item lifecycle.",
|
|
"mcp_app": "MCP App discovery, initialization, tool, action, host-context, and teardown evidence.",
|
|
"runtime_request": "Runtime permission/input request lifecycle.",
|
|
"interaction": "Issue-thread interaction proposal, materialization, response, delivery, and rejection.",
|
|
"run": "Structured result negotiation and terminal run outcome.",
|
|
"attention": "Continuation and attention routing lifecycle.",
|
|
"work": "Recorded work-assessment evidence.",
|
|
"issue": "Issue-status decision proposal outcome and application evidence.",
|
|
"plan": "Complete provider-authored within-turn checklist snapshots, and provider-proposed plan documents that Paperclip may synchronize into the durable Plan document for approval.",
|
|
"tool": "Provider-neutral process, MCP, dynamic, and built-in execution activity.",
|
|
"research": "Provider-reported search, page-open, and in-page research activity.",
|
|
"delegation": "Child-agent delegation lifecycle and aggregate status.",
|
|
"model": "Requested/effective model routing and verification state.",
|
|
"context": "Context-window compaction markers without hidden summaries.",
|
|
"artifact": "Authorized artifact viewing and structured generated outputs.",
|
|
"review": "Provider review-mode state, separate from Paperclip authority.",
|
|
"hook": "Bounded provider hook lifecycle and blocking outcomes.",
|
|
"memory": "Authorized or unavailable memory citation references.",
|
|
"safety": "Provider safety review state attached to governed work.",
|
|
"terminal": "Content-free terminal input activity metadata.",
|
|
"wait": "Intentional provider waits, distinct from warm idle and human input.",
|
|
"provider": "Redacted provider notices and actionable warnings.",
|
|
"semantic_tool": "Canonical authorized Paperclip tool input and result evidence.",
|
|
"usage": "Provider/model-attributed usage and accounting boundaries."
|
|
},
|
|
"prpCommandFamilyDescriptions": {
|
|
"semantic_tool": "Returns an authorized, correlated Paperclip tool result to the provider through runnerd.",
|
|
"run": "Prepare or cancel a run.",
|
|
"session": "Open, snapshot, or close a normalized provider session.",
|
|
"turn": "Start, steer, interrupt, or stop a model turn.",
|
|
"request": "Resolve a pending runtime request.",
|
|
"interaction": "Acknowledge delivery of an interaction response.",
|
|
"runner": "Drain or shut down the runner process."
|
|
},
|
|
"optionalGrantGroups": [
|
|
{
|
|
"id": "feedback",
|
|
"description": "Internally attributed complaints and improvement suggestions; no additional grant required beyond active run authority.",
|
|
"operationIds": [
|
|
"submit_complaint",
|
|
"submit_suggestion"
|
|
]
|
|
},
|
|
{
|
|
"id": "discovery",
|
|
"description": "Company-visible task, agent, project, and goal discovery.",
|
|
"operationIds": [
|
|
"search_tasks",
|
|
"list_agents",
|
|
"get_agent",
|
|
"list_projects",
|
|
"list_goals",
|
|
"set_task_title"
|
|
]
|
|
},
|
|
{
|
|
"id": "projects",
|
|
"description": "Project creation and authorized repository discovery through the live company/run authority.",
|
|
"operationIds": [
|
|
"create_project",
|
|
"list_project_repositories"
|
|
]
|
|
},
|
|
{
|
|
"id": "delegation_dependencies",
|
|
"description": "Create or reassign delegated work and maintain dependency edges.",
|
|
"operationIds": [
|
|
"create_task",
|
|
"reassign_task",
|
|
"set_dependencies",
|
|
"hire_agent"
|
|
]
|
|
},
|
|
{
|
|
"id": "governance",
|
|
"description": "Read, request, comment on, and decide approvals under governed-action checks.",
|
|
"operationIds": [
|
|
"list_approvals",
|
|
"get_approval",
|
|
"get_approval_context",
|
|
"request_approval",
|
|
"decide_approval",
|
|
"comment_on_approval"
|
|
]
|
|
},
|
|
{
|
|
"id": "cases",
|
|
"description": "Read and update authorized case facts and revisioned documents, author company workflow prompts, and durably hand off the primary task. list_cases and upsert_case remain scenario mocks.",
|
|
"operationIds": [
|
|
"list_cases",
|
|
"upsert_case",
|
|
"create_case",
|
|
"read_case",
|
|
"update_case",
|
|
"list_workflows",
|
|
"read_workflow",
|
|
"create_workflow",
|
|
"update_workflow",
|
|
"handoff_case"
|
|
]
|
|
},
|
|
{
|
|
"id": "responsibilities",
|
|
"description": "Read and change a person's areas and responsibilities and file work under them, through the live company/run authority. Acting for the person the run works for, an agent may do what that person could; each change is an undoable Dashboard version and a permanent delete waits for the person's confirmation card. Hidden while the instance has Responsibilities off.",
|
|
"operationIds": [
|
|
"list_responsibilities",
|
|
"get_responsibility",
|
|
"find_responsibilities_for",
|
|
"create_area",
|
|
"update_area",
|
|
"delete_area",
|
|
"create_responsibility",
|
|
"update_responsibility",
|
|
"delete_responsibility",
|
|
"file_under_responsibility",
|
|
"remove_from_responsibility"
|
|
]
|
|
},
|
|
{
|
|
"id": "workspace_runtime",
|
|
"description": "Inspect and select task workspaces, prepare repositories, and control workspace runtime services.",
|
|
"operationIds": [
|
|
"get_workspace_runtime",
|
|
"control_workspace_service",
|
|
"get_workspace",
|
|
"list_workspaces",
|
|
"select_workspace",
|
|
"prepare_repository"
|
|
]
|
|
},
|
|
{
|
|
"id": "wake_scheduling",
|
|
"description": "Schedule a bounded continuation wake when the current task owns the future check.",
|
|
"operationIds": [
|
|
"schedule_wake",
|
|
"set_task_monitor"
|
|
]
|
|
},
|
|
{
|
|
"id": "routines",
|
|
"description": "List routines and change them (title, instructions, agent, project, status, priority, schedule, filing) through the live company/run authority; manage_routine remains a scenario mock.",
|
|
"operationIds": [
|
|
"list_routines",
|
|
"manage_routine",
|
|
"update_routine"
|
|
]
|
|
},
|
|
{
|
|
"id": "company_skills",
|
|
"description": "Create, update, or inspect company skills and synchronize the current agent's skills.",
|
|
"operationIds": [
|
|
"create_skill",
|
|
"update_skill",
|
|
"list_company_skills",
|
|
"sync_company_skills"
|
|
]
|
|
},
|
|
{
|
|
"id": "secrets",
|
|
"description": "Inspect secret metadata or use a brokered secret value without exposing plaintext evidence.",
|
|
"operationIds": [
|
|
"list_secret_metadata",
|
|
"read_secret_value"
|
|
]
|
|
},
|
|
{
|
|
"id": "portability_admin",
|
|
"description": "Export portable company state; broad administration remains deferred until split into governed operations.",
|
|
"operationIds": [
|
|
"export_company",
|
|
"administer_company"
|
|
]
|
|
},
|
|
{
|
|
"id": "test_escape_hatch",
|
|
"description": "Controlled skill-test transport only; never product coverage.",
|
|
"operationIds": [
|
|
"generic_api_request"
|
|
]
|
|
},
|
|
{
|
|
"id": "api_fallback",
|
|
"description": "Discover and invoke HTTP API operations unsupported by available dedicated tools. Production authority and route authorization remain required.",
|
|
"operationIds": [
|
|
"search_api",
|
|
"call_api"
|
|
]
|
|
}
|
|
],
|
|
"behaviorGroups": [
|
|
{
|
|
"id": "hb",
|
|
"legacyGroup": 1,
|
|
"name": "Heartbeat",
|
|
"owner": "control plane + always tools",
|
|
"operationIds": [
|
|
"get_task_context",
|
|
"set_task_title"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"select_work",
|
|
"enforce_budget"
|
|
],
|
|
"realSurface": "agent identity, inbox-lite, heartbeat context, budget and active-issue services",
|
|
"mockStateDomains": [
|
|
"company",
|
|
"actor",
|
|
"wake",
|
|
"task",
|
|
"budget",
|
|
"run"
|
|
],
|
|
"prpEvidence": "runner/session/run context plus bounded task-context tool results",
|
|
"gap": "Production semantic binding is unbound; identity and work selection remain injected/control-plane-owned."
|
|
},
|
|
{
|
|
"id": "co",
|
|
"legacyGroup": 2,
|
|
"name": "Checkout",
|
|
"owner": "control plane",
|
|
"operationIds": [],
|
|
"controlPlaneOperationIds": [
|
|
"checkout_task"
|
|
],
|
|
"realSurface": "POST /api/issues/:id/checkout and execution-lock services",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"actor",
|
|
"run",
|
|
"idempotency",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "run preparation and issue-status decision evidence with checkout receipt",
|
|
"gap": "Intentionally no model tool; the production checkout receipt still needs the additive semantic-receipt envelope."
|
|
},
|
|
{
|
|
"id": "st",
|
|
"legacyGroup": 3,
|
|
"name": "Status",
|
|
"owner": "always tools + control-plane arbitration",
|
|
"operationIds": [
|
|
"answer_status_question",
|
|
"finish_task",
|
|
"block_task",
|
|
"request_review"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"reconcile_run",
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "issue PATCH, review/liveness policy, and native finalization arbitration",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"comments",
|
|
"interactions",
|
|
"blockers",
|
|
"audit",
|
|
"run"
|
|
],
|
|
"prpEvidence": "semantic operation receipt, work assessment, issue-status decision, and terminal causality",
|
|
"gap": "Production semantic binding and additive typed operation/conflict receipts remain unimplemented."
|
|
},
|
|
{
|
|
"id": "cm",
|
|
"legacyGroup": 4,
|
|
"name": "Comments",
|
|
"owner": "always tools",
|
|
"operationIds": [
|
|
"get_task_history",
|
|
"report_progress",
|
|
"send_chat_message"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "issue comment list/get/create routes and own-agent chat messaging service",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"comments",
|
|
"actor",
|
|
"idempotency",
|
|
"audit"
|
|
],
|
|
"prpEvidence": "bounded read result, idempotent progress receipt, or persisted proactive chat comment with source task/run provenance",
|
|
"gap": "Proactive chat delivery is bound to the running agent and responsible human; arbitrary chat destinations are unsupported. Other comment/history binding gaps remain recorded per operation."
|
|
},
|
|
{
|
|
"id": "se",
|
|
"legacyGroup": 5,
|
|
"name": "Search",
|
|
"owner": "optional discovery tools",
|
|
"operationIds": [
|
|
"search_tasks",
|
|
"list_agents",
|
|
"get_agent",
|
|
"list_projects",
|
|
"list_goals",
|
|
"list_project_repositories",
|
|
"list_responsibilities",
|
|
"get_responsibility",
|
|
"find_responsibilities_for"
|
|
],
|
|
"controlPlaneOperationIds": [],
|
|
"realSurface": "company issue search, agent/project/goal list/get routes, and responsibility list/detail/lookup routes",
|
|
"mockStateDomains": [
|
|
"company",
|
|
"task",
|
|
"actor",
|
|
"project",
|
|
"goal",
|
|
"responsibility"
|
|
],
|
|
"prpEvidence": "bounded redacted read projections through tool-result item events",
|
|
"gap": "Goal operations remain scenario-only. Project and repository discovery contracts are delivered by the live server authority; they are not implemented by the mock command dispatcher. Responsibility discovery is likewise live-only and hidden while the instance has Responsibilities off."
|
|
},
|
|
{
|
|
"id": "su",
|
|
"legacyGroup": 6,
|
|
"name": "Subtasks",
|
|
"owner": "optional delegation tools",
|
|
"operationIds": [
|
|
"create_task",
|
|
"reassign_task",
|
|
"hire_agent",
|
|
"handoff_case"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"route_wake"
|
|
],
|
|
"realSurface": "company issue create, child issue, guarded reassignment, and wake services",
|
|
"mockStateDomains": [
|
|
"company",
|
|
"task",
|
|
"actor",
|
|
"blockers",
|
|
"wake",
|
|
"audit"
|
|
],
|
|
"prpEvidence": "company/task state diff, audit reference, and continuation wake evidence",
|
|
"gap": "create_task is production-bound to ordinary active-issue child creation with assignment, dependency-ready wake, company checks, child limits, and durable source-scoped idempotency. handoff_case is live-only: the dedicated case service moves the same primary task after source execution settles, or records completion intent subject to ordinary completion gates; legacy scenarios do not claim that coverage."
|
|
},
|
|
{
|
|
"id": "bl",
|
|
"legacyGroup": 7,
|
|
"name": "Blockers",
|
|
"owner": "always/optional tools + control plane",
|
|
"operationIds": [
|
|
"block_task",
|
|
"set_dependencies"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"schedule_blocker_wake",
|
|
"route_wake"
|
|
],
|
|
"realSurface": "issue relations, blocker projection, liveness validation, and blocker wake services",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"blockers",
|
|
"wake",
|
|
"actor",
|
|
"audit",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "dependency diff, block receipt, attention routing, and issue-status decision",
|
|
"gap": "set_dependencies is production-bound for the active issue; block_task remains unbound, and cancelled-blocker receipts still need typed additive evidence."
|
|
},
|
|
{
|
|
"id": "dp",
|
|
"legacyGroup": 8,
|
|
"name": "Documents and plans",
|
|
"owner": "always task-document tools; restore optional; destructive lifecycle control-plane-only",
|
|
"operationIds": [
|
|
"list_documents",
|
|
"read_document",
|
|
"list_document_revisions",
|
|
"write_document"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "issue document list/read/upsert/revision/restore/lock/unlock/delete routes",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"documents",
|
|
"interactions",
|
|
"idempotency",
|
|
"audit",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "bounded reads and revision-safe write/conflict/denial receipts with revision lineage",
|
|
"gap": "restore_document_revision is an approved optional-tool gap; lock/unlock/delete are intentionally control-plane-only. Case kickoff initialDocuments become ordinary task documents in the same transaction. Case reads roll up authorized task document metadata; historical case-document REST storage remains readable without dedicated native document tools."
|
|
},
|
|
{
|
|
"id": "ix",
|
|
"legacyGroup": 9,
|
|
"name": "Interactions",
|
|
"owner": "always tools + addressed resolver",
|
|
"operationIds": [
|
|
"request_human_input"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"route_wake"
|
|
],
|
|
"realSurface": "issue-thread interaction create/respond/accept/reject/withdraw services",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"documents",
|
|
"interactions",
|
|
"wake",
|
|
"actor",
|
|
"idempotency"
|
|
],
|
|
"prpEvidence": "interaction proposal/materialization/response/delivery and attention events",
|
|
"gap": "Production binding and semantic resolution receipts are unbound."
|
|
},
|
|
{
|
|
"id": "ap",
|
|
"legacyGroup": 10,
|
|
"name": "Approvals",
|
|
"owner": "optional governance tools + governed approver",
|
|
"operationIds": [
|
|
"list_approvals",
|
|
"get_approval",
|
|
"get_approval_context",
|
|
"request_approval",
|
|
"decide_approval",
|
|
"comment_on_approval"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"route_wake",
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "company approval, decision, issue-link, comment, and governed-action services",
|
|
"mockStateDomains": [
|
|
"company",
|
|
"task",
|
|
"approvals",
|
|
"actor",
|
|
"wake",
|
|
"audit",
|
|
"idempotency"
|
|
],
|
|
"prpEvidence": "governed semantic receipts, audit references, and attention/continuation linkage",
|
|
"gap": "Production binding and additive governed-action receipts are unbound; board-only authority stays outside grants."
|
|
},
|
|
{
|
|
"id": "ar",
|
|
"legacyGroup": 11,
|
|
"name": "Artifacts",
|
|
"owner": "always tools + artifact/work-product services",
|
|
"operationIds": [
|
|
"register_deliverable"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "attachment upload and issue work-product routes",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"artifacts",
|
|
"workProducts",
|
|
"workspace",
|
|
"audit",
|
|
"idempotency"
|
|
],
|
|
"prpEvidence": "artifact/work-product reference and durable inspectability receipt; never binary bytes",
|
|
"gap": "Production upload/register composite and additive durable-reference receipt are unbound."
|
|
},
|
|
{
|
|
"id": "er",
|
|
"legacyGroup": 12,
|
|
"name": "Errors and critical rules",
|
|
"owner": "runner/control plane + optional workspace/wake tools",
|
|
"operationIds": [
|
|
"get_workspace_runtime",
|
|
"control_workspace_service",
|
|
"get_workspace",
|
|
"list_workspaces",
|
|
"select_workspace",
|
|
"prepare_repository",
|
|
"schedule_wake",
|
|
"inspect_operation_result"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"release_task",
|
|
"enforce_budget",
|
|
"persist_run",
|
|
"replay_run",
|
|
"reconcile_run"
|
|
],
|
|
"realSurface": "workspace runtime, monitor/recovery, budget, run persistence/replay, release, and terminal services",
|
|
"mockStateDomains": [
|
|
"workspace",
|
|
"budget",
|
|
"run",
|
|
"wake",
|
|
"audit",
|
|
"idempotency",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "runtime/workspace/attention/run lifecycle, typed denials, replay facts, and terminal causality",
|
|
"gap": "Budget stop reasons and semantic denial/conflict receipts require additive v1 envelopes; inspect_operation_result remains scenario-only. Task workspace inspection, discovery, selection and repository preparation use live authenticated service contracts; the legacy scenarios do not claim coverage for these operations."
|
|
},
|
|
{
|
|
"id": "rf",
|
|
"legacyGroup": 13,
|
|
"name": "Reference files",
|
|
"owner": "always instruction tools + optional domain tools + test-only escape hatch",
|
|
"operationIds": [
|
|
"list_cases",
|
|
"upsert_case",
|
|
"create_case",
|
|
"read_case",
|
|
"update_case",
|
|
"list_workflows",
|
|
"read_workflow",
|
|
"create_workflow",
|
|
"update_workflow",
|
|
"list_routines",
|
|
"manage_routine",
|
|
"update_routine",
|
|
"create_skill",
|
|
"update_skill",
|
|
"list_company_skills",
|
|
"sync_company_skills",
|
|
"list_secret_metadata",
|
|
"read_secret_value",
|
|
"export_company",
|
|
"administer_company",
|
|
"generic_api_request",
|
|
"search_api",
|
|
"call_api",
|
|
"create_project",
|
|
"read_agent_instructions",
|
|
"update_agent_instructions",
|
|
"get_agent_instruction_history",
|
|
"restore_agent_instructions",
|
|
"submit_complaint",
|
|
"submit_suggestion",
|
|
"create_area",
|
|
"update_area",
|
|
"delete_area",
|
|
"create_responsibility",
|
|
"update_responsibility",
|
|
"delete_responsibility",
|
|
"file_under_responsibility",
|
|
"remove_from_responsibility"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"append_audit_record"
|
|
],
|
|
"realSurface": "agent instruction revisions, project, case, routine, company-skill, secret, portability, and administration services, and run-attributed agent commentary; responsibility and area routes",
|
|
"mockStateDomains": [
|
|
"company",
|
|
"cases",
|
|
"routines",
|
|
"skills",
|
|
"secrets",
|
|
"audit",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "bounded domain projections, redacted broker receipts, company diffs, and audit references",
|
|
"gap": "Instruction read/update/history/restore require the live canonical revision service, current responsible-user permissions, and pinned base revisions for writes. Their service, authority, and product E2E tests are separate from the legacy mock scenarios. Project and skill creation and API tools require the live server authority; generic_api_request is test-only. Workflow definition tools are live-only company-scoped prompt authoring and bounded retrieval under the Cases flag. create_case, read_case and update_case are live-only authorized case creation, projections and fact mutations; list_cases and upsert_case remain scenario mocks. list_routines and update_routine are live through the routine routes for the agent's own routines and its person's; manage_routine and other domain operations remain scenario-only. Broad administer_company is deferred and cannot claim product coverage. Production API and paired dedicated-tool regressions are recorded separately in paperclip-evals/evals/runner-api-tools; the legacy scenario count is not evidence of that coverage. Feedback actions are live-only: shared persistence, authority, API, and actual Codex smoke tests cover them; the legacy scenario count does not claim feedback coverage. Responsibility and area changes are live-only and bound to the person the run works for; the mock dispatcher does not implement them."
|
|
},
|
|
{
|
|
"id": "mh",
|
|
"legacyGroup": 14,
|
|
"name": "Multi-hop",
|
|
"owner": "composed semantic operations + control-plane continuation",
|
|
"operationIds": [
|
|
"create_task",
|
|
"set_dependencies",
|
|
"request_human_input",
|
|
"request_approval",
|
|
"register_deliverable"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"route_wake",
|
|
"reconcile_run"
|
|
],
|
|
"realSurface": "delegation, dependency, interaction, approval, artifact, and terminal orchestration services",
|
|
"mockStateDomains": [
|
|
"task",
|
|
"blockers",
|
|
"interactions",
|
|
"approvals",
|
|
"artifacts",
|
|
"wake",
|
|
"run",
|
|
"audit"
|
|
],
|
|
"prpEvidence": "correlated operation receipts, state diffs, attention hops, work assessment, status decision, and terminal outcome",
|
|
"gap": "No generic transaction tool is allowed; shared mock/real conformance must prove each composed effect."
|
|
},
|
|
{
|
|
"id": "rs",
|
|
"legacyGroup": 15,
|
|
"name": "Restraint and no-call",
|
|
"owner": "policy/exposure layer",
|
|
"operationIds": [
|
|
"answer_status_question",
|
|
"read_secret_value",
|
|
"generic_api_request"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"enforce_budget"
|
|
],
|
|
"realSurface": "task-mode, secret-broker, test-scope, pause, and budget policy checks",
|
|
"mockStateDomains": [
|
|
"actor",
|
|
"task",
|
|
"budget",
|
|
"secrets",
|
|
"audit",
|
|
"fault"
|
|
],
|
|
"prpEvidence": "absence of forbidden effects plus typed policy denial/redaction receipts when a call is attempted",
|
|
"gap": "Typed redaction/authorization receipts need additive v1 evidence; generic_api_request is never a product fallback."
|
|
},
|
|
{
|
|
"id": "wk",
|
|
"legacyGroup": 16,
|
|
"name": "Wake situations",
|
|
"owner": "control plane + always context/history tools",
|
|
"operationIds": [
|
|
"get_task_context",
|
|
"get_task_history",
|
|
"schedule_wake",
|
|
"set_task_monitor"
|
|
],
|
|
"controlPlaneOperationIds": [
|
|
"select_work",
|
|
"route_wake"
|
|
],
|
|
"realSurface": "wakeup requests, heartbeat context, comment/interaction/approval/blocker wake routing, and scheduled wake services",
|
|
"mockStateDomains": [
|
|
"wake",
|
|
"task",
|
|
"comments",
|
|
"interactions",
|
|
"approvals",
|
|
"blockers",
|
|
"run"
|
|
],
|
|
"prpEvidence": "attention request routing/resolution plus resumed session/run causality",
|
|
"gap": "set_task_monitor binds the one-shot monitor scheduler in production; schedule_wake remains mock-backed. Control-plane routing remains non-callable."
|
|
}
|
|
],
|
|
"rules": {
|
|
"companyAuthorization": [
|
|
"Every entity read and write is resolved inside the authenticated actor's company; cross-company identifiers fail without disclosing protected facts.",
|
|
"Board actors use active membership and role permissions. Agent writes require a company-scoped run JWT and X-Paperclip-Run-Id; active-task tools cannot accept a caller-selected company or arbitrary task.",
|
|
"Optional tools are omitted unless every required claim, role, and task-mode condition is satisfied. A grant never bypasses approval, budget, pause, execution-lock, interaction-owner, or other governed-action checks."
|
|
],
|
|
"taskModes": [
|
|
"standard permits the full eligible catalog subject to claims and role checks.",
|
|
"ask is answer-only: investigation reads are eligible, while implementation, document mutation, delegation, terminal, and governed writes are absent.",
|
|
"planning permits plan/document/progress/input operations but not delegation or terminal completion; accepting a plan transitions the issue into a fresh standard execution continuation for the exact accepted revision.",
|
|
"skill_test exposes only scenario-admitted tools. generic_api_request additionally requires the explicit test grant and allowlist and never supplies product coverage."
|
|
],
|
|
"redaction": [
|
|
"Tool descriptors declare observable redaction. Secret plaintext may reach only the model-use capsule authorized for a bound secret; it never reaches PRP, logs, artifacts, errors, audit details, or serialized tool results.",
|
|
"Authorization denials reveal stable codes, missing public claims, and remediation only; they do not include protected entity state, credentials, headers, cookies, or another company's policy.",
|
|
"Artifacts carry durable references, hashes, content type, and size on the wire; binary payloads remain in storage transports."
|
|
],
|
|
"idempotency": [
|
|
"Every mutation whose descriptor says required must carry a stable idempotency key. Retrying the same key and equivalent input returns the prior receipt without duplicating side effects.",
|
|
"Reusing a key with different input is an idempotency conflict. Optimistic document writes additionally bind baseRevisionId and return the current revision on conflict.",
|
|
"PRP source event IDs are idempotent, source sequence gaps are evidence, and replay is side-effect free. Replaying a trace cannot repeat control-plane writes."
|
|
],
|
|
"sideEffects": [
|
|
"read operations return bounded projections and do not mutate control-plane state.",
|
|
"task_write and company_write operations emit normalized state diffs and immutable audit references after production authorization succeeds.",
|
|
"governance, workspace_control, secret_read, and admin operations retain their production-specific gates; catalog exposure is necessary but never sufficient authority.",
|
|
"Terminal semantic operations propose intent. The control plane owns checkout, release, budget enforcement, persisted run evidence, replay, wake routing, audit append, and final status arbitration."
|
|
]
|
|
},
|
|
"documentLifecycle": {
|
|
"scope": [
|
|
"Issue documents are active-task working records identified by (activeIssueId, key). Always-present document tools do not accept a company id or arbitrary issue id.",
|
|
"Cross-task document reads require a future explicit optional operation and grant; case documents and future company knowledge are separate resource types.",
|
|
"Locked-document fallback may create a deterministic new key only when lockedDocumentStrategy is create_new_document; the source stays locked and the returned receipt names the redirected key."
|
|
],
|
|
"operations": [
|
|
{
|
|
"action": "create",
|
|
"semanticOperation": "write_document",
|
|
"placement": "always_agent_tool",
|
|
"contract": "baseRevisionId is null; create revision 1 and return document/revision/audit identity.",
|
|
"status": "supported contract; production binding unbound"
|
|
},
|
|
{
|
|
"action": "read",
|
|
"semanticOperation": "list_documents / read_document",
|
|
"placement": "always_agent_tool",
|
|
"contract": "List metadata or read the current active-task document by stable key.",
|
|
"status": "supported contract; production binding unbound"
|
|
},
|
|
{
|
|
"action": "update",
|
|
"semanticOperation": "write_document",
|
|
"placement": "always_agent_tool",
|
|
"contract": "Require the exact latest baseRevisionId and an idempotency key; append an immutable revision.",
|
|
"status": "supported contract; production binding unbound"
|
|
},
|
|
{
|
|
"action": "revisions",
|
|
"semanticOperation": "list_document_revisions",
|
|
"placement": "always_agent_tool",
|
|
"contract": "Return bounded immutable revision history newest first.",
|
|
"status": "supported contract; production binding unbound"
|
|
},
|
|
{
|
|
"action": "restore",
|
|
"semanticOperation": "restore_document_revision",
|
|
"placement": "optional_agent_tool (documents:restore)",
|
|
"contract": "Validate same-document lineage, reject locked documents, append a new revision, and return source/new revision identity; restoring current is a no-change duplicate.",
|
|
"status": "approved catalog gap"
|
|
},
|
|
{
|
|
"action": "lock",
|
|
"semanticOperation": "none",
|
|
"placement": "control_plane_owned",
|
|
"contract": "Board/administrative lifecycle action; agent writes receive document_locked or use explicit create-new fallback.",
|
|
"status": "intentionally non-callable"
|
|
},
|
|
{
|
|
"action": "unlock",
|
|
"semanticOperation": "none",
|
|
"placement": "control_plane_owned",
|
|
"contract": "Board/administrative lifecycle action; never inferred from a failed write.",
|
|
"status": "intentionally non-callable"
|
|
},
|
|
{
|
|
"action": "delete",
|
|
"semanticOperation": "none",
|
|
"placement": "control_plane_owned",
|
|
"contract": "Destructive audited action; pending targets become stale and the runner never recreates them automatically.",
|
|
"status": "intentionally non-callable"
|
|
}
|
|
]
|
|
},
|
|
"legacySemanticTargetDispositions": {
|
|
"injected_actor_context": {
|
|
"kind": "control_plane",
|
|
"targets": [
|
|
"select_work"
|
|
],
|
|
"reason": "Identity is launch context, not a model tool."
|
|
},
|
|
"runner_work_selection": {
|
|
"kind": "control_plane",
|
|
"targets": [
|
|
"select_work"
|
|
],
|
|
"reason": "Inbox selection belongs to the control plane."
|
|
},
|
|
"get_project": {
|
|
"kind": "folded",
|
|
"targets": [
|
|
"list_projects"
|
|
],
|
|
"reason": "The bounded discovery operation owns project list/get projection in V1."
|
|
},
|
|
"wait_for_workspace_service": {
|
|
"kind": "folded",
|
|
"targets": [
|
|
"control_workspace_service"
|
|
],
|
|
"reason": "Wait is a bounded action of workspace service control."
|
|
},
|
|
"get_goal": {
|
|
"kind": "folded",
|
|
"targets": [
|
|
"list_goals"
|
|
],
|
|
"reason": "The bounded discovery operation owns goal list/get projection in V1."
|
|
},
|
|
"semantic_task_disposition": {
|
|
"kind": "composite",
|
|
"targets": [
|
|
"answer_status_question",
|
|
"finish_task",
|
|
"block_task",
|
|
"request_review"
|
|
],
|
|
"reason": "Generic issue PATCH is replaced by intent-specific terminal/status operations."
|
|
},
|
|
"atomic_checkout": {
|
|
"kind": "control_plane",
|
|
"targets": [
|
|
"checkout_task"
|
|
],
|
|
"reason": "Checkout is an atomic control-plane transaction."
|
|
},
|
|
"runtime_release": {
|
|
"kind": "control_plane",
|
|
"targets": [
|
|
"release_task"
|
|
],
|
|
"reason": "Release is runner/control-plane cleanup."
|
|
},
|
|
"restore_document_revision": {
|
|
"kind": "known_gap",
|
|
"targets": [],
|
|
"reason": "Approved optional documents:restore operation is not yet in the canonical catalog."
|
|
},
|
|
"link_approval": {
|
|
"kind": "folded",
|
|
"targets": [
|
|
"request_approval",
|
|
"get_task_context"
|
|
],
|
|
"reason": "Issue linkage is part of approval request/context composites."
|
|
},
|
|
"unlink_approval": {
|
|
"kind": "control_plane",
|
|
"targets": [
|
|
"append_audit_record"
|
|
],
|
|
"reason": "No standalone agent unlink tool is approved in V1."
|
|
},
|
|
"test_only_api_escape_hatch": {
|
|
"kind": "folded",
|
|
"targets": [
|
|
"generic_api_request"
|
|
],
|
|
"reason": "Compatibility alias for the test-only escape hatch."
|
|
}
|
|
}
|
|
}
|