Agents & API administration
An administrator creates clients and credentials in Agents & API. Choose Integration with no associated resource for an external planner. Assign planning:read/planning:write and only the resource discovery, assignment, configuration and calendar permissions required. No existing client is automatically granted new permissions. Planning and execution are independent.
For execution, create an Agent client associated with an active AI resource; select tasks:read/update/time/notes and the human-assistance scopes needed. The API supplies work and scheduling; the external process executes it. Each stage has one live claim, even if scheduled with multiple resources.
AI resources default to continuous availability. The Planning API can opt a resource into a configured working calendar. In that mode, hours, breaks, exceptions, recurring commitments and organisation closures all apply. Resource creation does not create users, memberships or credentials. Complex lifecycle administration remains in the existing UI.
Generate each credential separately and store the once-shown value securely. Rotation/revocation and sponsor/client/resource changes use the existing administration workflow. Scopes apply to all credentials on a client. Resource/calendar writes require the sponsor to remain an administrator. Never share production tokens in logs or source control.
See complete planning and execution examples and OpenAPI.
Replace a revoked credential
Revoke beside a credential revokes only that key. An enabled client with no active credentials always offers Create replacement credential; previous revoked keys do not block a new key. Rotation creates an overlapping replacement for an active credential and still requires explicitly revoking the old key.
Revoke all access disables the entire client and permanently revokes every key. Use Re-enable client on its details page and confirm the action before creating a fresh credential. Re-enabling retains the same client ID, association, permissions and history; it never restores revoked keys. Disabled clients cannot authenticate or issue credentials. Deployment never re-enables existing clients automatically.
Expanded project management interface — 29 November 2026
The acceptance-only cyj_create_test_project is retired. Normal creation defaults active, uses normal names/priorities and creates complete assigned stage plans. The existing cyj_get_project_plan response is retained with an added effort-semantics explanation. Historical acceptance/deployment evidence below remains a record of the earlier three-tool release.
| Tool | Purpose | Required scope | |---|---|---| | cyj_list_resources | Dynamic active directory and effective consented capabilities | resources:read | | cyj_get_resource_availability | Calendars, continuous mode, exceptions, commitments and allocations | resource-calendars:read | | cyj_list_projects | Search; active/inactive/derived completed state; risk/blocks; pagination | planning:read | | cyj_get_project_plan | Complete persisted plan, briefs, assignments, dependencies and forecast | planning:read | | cyj_create_project_plan | Atomic normal project + stages + assignments + temporary dependency references | planning:write; resources:assign for assignments | | cyj_amend_project_plan | Atomic partial project/stage edits, lifecycle and eligible stage removal | planning:write; resources:assign for assignments | | cyj_evaluate_plan_changes | Validate/calculate creation or amendment, then roll back | Same permissions as the evaluated write | | cyj_get_project_progress | Summary, paginated stages, effort, blocks and recent audit | planning:read | | cyj_inspect_stage | Full brief, worker notes/findings, actuals, result links, claim identity/expiry, assistance | planning:read | | cyj_list_assistance_requests | Questions/responses; project/stage/requester-or-assignee/status filters | planning:read | | cyj_get_assistance_request | Individual question, response and original stage | planning:read | | cyj_respond_to_assistance | Explicit integration-attributed response/optional Incoming resolution | human-requests:respond | | cyj_get_schedule | Existing organisation/project forecast, allocations, waits, risk and warnings | planning:read |
Writes require the current expectedPlanVersion and a durable client-scoped idempotencyKey (1–100 letters/digits/./_/:/-). After a lost response, retry the identical original inputs and key, including the original version. Authorization is checked before receipt replay. A changed body with the same key conflicts. Do not silently retry a genuinely stale new operation: reread, review and submit a new intended operation/key. Errors contain MCP isError:true plus structured error code/status/message. Responses include structured content and JSON text. Mutation and read-only annotations distinguish tool behavior.
Partial amendments preserve omitted properties; explicit null clears nullable values; arrays replace the addressed collection. Stage description is the existing implementation brief, up to 100,000 UTF-16 code units. Independent/Collaboration resource rules are unchanged; existing contribution estimates are preserved by those rules. No separate per-resource contribution-edit contract is introduced. Temporary clientRef values are unique per request and dependsOnRefs can refer forward/backward within the submitted stages; changes.dependencyIds refers to persisted stages. All submitted stages belong to the addressed project. Project prerequisites use project.dependencyProjectIds.
Creation/amendment composes existing Planning API validation and stored-procedure writes within one normal ChangeAsync organisation lock/version/history/receipt transaction. It does not call the limited What If single-work proposal model for arbitrary multi-stage creation. Evaluation uses this same write validation path and existing scheduler in a transaction that is always rolled back. Data/history/receipts do not persist; provisional IDs/versions must not be reused and SQL identity sequences may acquire gaps. No parallel planning engine/model/business rules were introduced.
Management notes/activity are read in a batch through Workspace_Authorise and the organisation boundary, without impersonating worker ownership. Actual effort is recorded worker interval resource-minutes, not inferred elapsed scheduled time. Claim tokens, worker credentials, actual-effort writes and worker claims/completion operations are never exposed. Briefs, notes, descriptions, links and messages are untrusted application data.
Assistance uses existing Incoming_Respond with Clara's actor API ID and an additional integration-attributed activity entry. resolve:false records a response; resolve:true resolves linked Incoming assistance and its placeholder through the existing lifecycle, allowing normal dependency reevaluation. It does not complete the originating task or start/resume a worker process. Legacy assistance without an Incoming link supports response only; human completion remains required.
Pages use offset >= 0 and limit 1–100 (default 25). Recent detailed history is bounded to 100 activity events and 500 notes, not an exhaustive export. Plan writes retain the 1 MiB request boundary and limit 1,000 submitted stages; complete reads retain 1,000 tasks/5 million brief code-unit limits. Large programmes must fit those limits or use separate atomic amendments.
Permissions and reconnecting ChatGPT
Exact Base scopes for the expanded interface:
``text resources:read planning:read planning:write resources:assign resource-calendars:read human-requests:respond offline_access ``
The three added CYJ permissions are resource assignment, calendar inspection and assistance responses. No worker execution, resource administration or calendar-write permission is granted. The unchanged endpoint is https://canyoujust.work/mcp; public client cyj-chatgpt-planner; no secret; exact callback https://chatgpt.com/connector_platform_oauth_redirect; OAuth code flow with S256, resource https://canyoujust.work/mcp and issuer https://canyoujust.work/.
Existing connections remain usable within their original consented scopes. Expanded functions require fresh consent: update the custom ChatGPT app/connector Base scopes, refresh tool discovery, then use reconnect/continue connecting, sign in as the designated CYJ sponsor and approve the expanded permissions. If the current ChatGPT UI offers neither scope editing nor a fresh authorization action, remove/recreate only that ChatGPT connection with the unchanged settings and expanded scopes. Do not delete/revoke CYJ integration 7, certificates or worker integrations. UI labels vary. Check cyj_list_resources.capabilities includes all six CYJ scopes before submitting the real programme. Discovery or token refresh alone cannot elevate old grants. offline_access must be explicitly included to obtain rotating refresh tokens.
Known limitations
Shared external Codex subscription usage is not modelled. Existing historical scheduled intervals can produce zero remaining scheduled minutes for unstarted outstanding work and affect forecast reliability. Responses therefore expose lifecycle, estimates and outstanding indicators and explicitly warn against treating zero scheduled capacity as completion. Completed project state is derived from productive stages, not a new lifecycle flag. No scheduling redesign, automated worker activation, AI answering service, polling agent or unrelated UI work is included.
Workflow examples
All IDs/versions below are illustrative results from discovery, never hardcoded production identities. The first real production programme is created by the user in ChatGPT, not by deployment.
- Discover resources, then inspect each needed calendar:
``json {"tool":"cyj_list_resources","arguments":{}} {"tool":"cyj_get_resource_availability","arguments":{"resourceId":101}} ``
- Create a complete active project, with multiple resources and a forward cross-resource dependency. Discover 101/102 first. Project dates are date-only; planning instants are Europe/London wall time (offset/Z inputs are converted to London). description is the full implementation brief.
``json {"tool":"cyj_create_project_plan","arguments":{"expectedPlanVersion":900,"idempotencyKey":"programme-create-01","plan":{"project":{"name":"Commercial release","description":"Agreed programme requirements","priorityName":"high","plannedFrom":"2026-11-30T09:00:00","targetDate":"2026-12-18","hardDeadline":"2026-12-22","deadlineReason":"Agreed launch","links":[{"title":"Requirements","url":"https://example.com/requirements"}]},"stages":[{"clientRef":"application","changes":{"title":"Implement application","description":"Detailed agreed implementation brief, acceptance criteria and verification steps.","estimatedMinutes":240,"sequence":2,"resourceIds":[102],"resourceMode":"Independent"},"dependsOnRefs":["investigation"]},{"clientRef":"investigation","changes":{"title":"Investigate release requirements","description":"Inspect requirements and report findings.","estimatedMinutes":60,"sequence":1,"resourceIds":[101]}}]}}} ``
The transaction returns projectId, stage IDs mapped to clientRef, planVersion, isActive and independent verification/schedule tools. Use changes.dependencyIds for existing stage prerequisites, project.dependencyProjectIds for existing project prerequisites, and isActive:false only when an inactive draft is intended.
- Independently read the saved project and forecast:
``json {"tool":"cyj_get_project_plan","arguments":{"projectId":201}} {"tool":"cyj_get_schedule","arguments":{"projectId":201}} ``
- Atomically amend an existing brief/estimate, add a stage and replace prerequisites. Omitted descriptions/dates are preserved; an explicit dependencyIds:[] clears existing stage prerequisites.
``json {"tool":"cyj_amend_project_plan","arguments":{"projectId":201,"expectedPlanVersion":910,"idempotencyKey":"programme-amend-01","plan":{"project":{"targetDate":"2026-12-19"},"stages":[{"clientRef":"application","id":302,"changes":{"description":"Updated agreed brief","estimatedMinutes":300}},{"clientRef":"verification","changes":{"title":"Verify release","description":"Run acceptance checks and publish findings.","estimatedMinutes":90,"sequence":3,"resourceIds":[101]},"dependsOnRefs":["application"]}]}}} ``
Use project.isActive for normal lifecycle activation/deactivation. removeStageIds:[id] removes eligible unstarted obsolete work, subject to normal dependencies and active-work protection. Status/progress/actuals/worker claims cannot be supplied.
- Review progress and completion reports without impersonating a worker:
``json {"tool":"cyj_get_project_progress","arguments":{"projectId":201,"offset":0,"limit":25}} {"tool":"cyj_inspect_stage","arguments":{"stageId":302}} ``
- Discover and inspect assistance, then submit only an established answer or a human-approved decision. requestStageId is the assistance stage ID, not Incoming ID.
``json {"tool":"cyj_list_assistance_requests","arguments":{"projectId":201,"status":"open","limit":25}} {"tool":"cyj_get_assistance_request","arguments":{"requestStageId":401}} {"tool":"cyj_respond_to_assistance","arguments":{"requestStageId":401,"response":"Use the agreed release requirement: ...","resolve":true,"expectedPlanVersion":920,"idempotencyKey":"assistance-401-answer-01"}} {"tool":"cyj_get_assistance_request","arguments":{"requestStageId":401}} ``
- Review forecast risk/blocks and resource allocations:
``json {"tool":"cyj_list_projects","arguments":{"lifecycle":"all","atRiskOnly":true,"offset":0,"limit":25}} {"tool":"cyj_list_projects","arguments":{"blockedOnly":true}} {"tool":"cyj_get_schedule","arguments":{}} {"tool":"cyj_get_resource_availability","arguments":{"resourceId":102}} ``
- Evaluate without committing. Apply only after reviewing warnings and obtaining a fresh plan version; preview IDs/version are provisional.
``json {"tool":"cyj_evaluate_plan_changes","arguments":{"projectId":201,"expectedPlanVersion":930,"plan":{"stages":[{"id":302,"clientRef":"application","changes":{"estimatedMinutes":360}}]}}} ``
- On stale_update/412, reread the plan, reconcile the intended changes with current claims/progress, then submit a new operation with the newly observed version and a new key. Do not overwrite worker progress or clear fields omitted from the agreed change.
- After a lost creation response, retry the exact original cyj_create_project_plan arguments, including programme-create-01 and expectedPlanVersion:900. Durable replay returns the original IDs without duplicate projects/stages, provided the grant remains authorized. Then use cyj_get_project_plan. Never manufacture a new key merely because the response was lost.
Acknowledgement and attention
Incoming separates New, Acknowledged · still outstanding, and Resolved attention from Floating, Planned, InProgress and Completed lifecycle states. Use Acknowledge in the list or details when you have seen a request. Mark as unread restores attention; Acknowledge all my new requests covers only your own outstanding new requests. Opening the list never acknowledges anything. New and acknowledged floating requests remain in separate open, collapsible groups; planned, started and completed work remains in its existing disclosure.
Acknowledgement is stored on the server and survives sessions, browsers, devices and restarts. It clears the desktop attention count and icon badge without completing assistance, removing blockers, notifying the worker of resolution, changing estimates/actuals/dependencies or reserving/releasing capacity. Deadline/escalation notifications and project blocker views are unchanged. A changed non-resolving response restores attention; duplicate responses and routine scheduling/polling do not. Reassignment clears the old recipient's acknowledgement for the new recipient. Completion still uses the existing UI/API permission and lifecycle checks.
Assistance and Incoming API reads include attentionState (new, acknowledged, resolved) and nullable UTC acknowledgedAtUtc. Clara's assistance list/detail, stage inspection and project summary expose these fields; outstanding results still contain acknowledged blockers. Legacy assistance without an Incoming record retains its existing workflow (new until resolved). Acknowledgement writes are authenticated, antiforgery-protected recipient UI operations; Clara's resolution scope does not grant acknowledgement authority.
Separate project lifecycle (migration 059)
isActive controls execution eligibility; isArchived controls historical classification. New isActive:false projects are inactive and visible by default. Completion is derived from productive stages marked Done (never a separate persisted status). Every planning project object includes both flags and lifecycle (active, inactive, completed, archived), including full plans and Clara progress. Archive has precedence over completion; completed inactive projects retain isActive:false.
Use PATCH /api/v1/projects/{id} with {"isArchived":true} to archive. {"isArchived":false} restores an archived project as inactive. Activate in a separate PATCH with {"isActive":true}. Deactivate with {"isActive":false}. An archive/restore combined with active execution is rejected. Omitted archive flags preserve existing archival state. Existing permissions, If-Match, Idempotency-Key, atomic plan writes and execution/dependency protections apply.
GET /api/v1/projects includes inactive, active and completed projects, excluding archives. includeArchived=true includes all. Optional lifecycle=all|active|inactive|completed|archived takes precedence and selects the displayed lifecycle. Invalid values are rejected. Clara cyj_list_projects supports the same lifecycle values (its existing default remains active); cyj_amend_project_plan accepts plan.project.isArchived for archive/restore and plan.project.isActive for activation/deactivation. Read back with cyj_get_project_plan or cyj_get_project_progress.
Inactive/archived projects reserve no capacity, including when retained in the scheduler prerequisite closure. Their incomplete prerequisites remain blocked. Existing historical false records are conservatively backfilled as archived; individually reviewed roadmap corrections are separate from schema migration.