Manage Schemas — Note Schema Lifecycle
Create, view, edit, delete, and validate note schemas in .taskorchestrator/config.yaml. Schemas define which notes agents must fill at each workflow phase before advancing items.
Step 1 — Determine Intent
Classify from $ARGUMENTS and conversation context before making any tool calls.
| Signal words | Action |
|---|---|
| "create", "build", "new", "add schema", "define", "set up" | CREATE |
| "recommend", "advise", "design", "what schema should I use", "help me choose", a described workflow with no schema name | CREATE (advisor path) |
| "show", "view", "list", "what schemas", "display" | VIEW |
| "edit", "modify", "change", "update", "add note to", "remove note from" | EDIT |
| "delete", "remove schema", "drop" | DELETE |
| "validate", "check", "verify", "lint" | VALIDATE |
If $ARGUMENTS contains both an action and a schema name (e.g., "view bug-fix"), extract both. If intent cannot be determined, ask via AskUserQuestion with options: Create, View / Validate, Edit, Delete.
Validate is grouped with View — both are read-only operations on the config file.
Step 2 — Config Bootstrap
Check if .taskorchestrator/config.yaml exists by reading it.
If the file does not exist:
- For VIEW or VALIDATE: report "No schemas configured —
.taskorchestrator/config.yamldoes not exist." and stop. - For CREATE, EDIT, or DELETE: create the
.taskorchestrator/directory if missing, then createconfig.yamlwith an emptywork_item_schemas:key:yamlwork_item_schemas:
If the file exists: Read and parse it. Proceed to Step 3.
Note:
project:is a recognized top-level key alongsidework_item_schemas,traits,resources, andactor_authentication— it anchors this repo to a project root item and is read only by other skills (quick-start,/adopt-project-scope), never by this skill. Do not treat it as unknown, and never drop or rewrite it — every write operation in Step 3 (CREATE/EDIT/DELETE) must carry it through unchanged. Seereferences/config-format.md→ Project Scoping for its fields. (resources:is the optional shared-resource registry — seereferences/config-format.md→ "Resources (Trait Dimension)"; it must be preserved the same way.)
Step 3 — Route to Operation
CREATE — Build a New Schema
Three entry paths: a pattern-driven advisor (the user describes their workflow; classify it
against references/workflow-patterns.md and recommend a configuration with per-gate
rationale), starter templates, and from-scratch Q&A. All three converge on the same
customize → write → smoke-test machinery. When the user described a workflow rather than naming
a schema, go straight to the advisor path.
For detailed workflow, see references/create-workflow.md in this skill folder.
VIEW — Display Existing Schemas
Read .taskorchestrator/config.yaml and display schemas in a summary table:
◆ Note Schemas — .taskorchestrator/config.yaml | Schema Type | Lifecycle | Queue Notes | Work Notes | Review Notes | Total | |---|---|---|---|---|---| | feature-implementation | auto | 1 (1 req) | 2 (2 req) | 1 (1 req) | 4 | | bug-fix | auto | 1 (1 req) | 2 (2 req) | 1 (1 req) | 4 |
If the user specified a schema name, show that schema's full detail: each note with key, role, required, description, guidance, and skill (if set). Also show the schema's lifecycle mode and default_traits (if any).
If the config has a traits: section, show a separate traits summary table:
◆ Traits | Trait | Notes | Skills | |---|---|---| | needs-security-review | security-assessment (review, req) | security-review | | needs-migration-review | migration-assessment (queue, req) | migration-review |
If the config has an actor_authentication: section, display the actor authentication status including verifier type when present:
◆ Actor authentication: enabled, verifier: noop
Or with a JWKS verifier and its source:
◆ Actor authentication: enabled, verifier: jwks (uri: https://provider.example/.well-known/jwks.json)
Or with DID-trust mode:
◆ Actor authentication: enabled, verifier: jwks (DID trust: did:web:agent.example.com, did:web:lair.dev)
Or ◆ Actor authentication: disabled (or omit if the section is absent). When verifier is absent, default to verifier: noop. When did_allowlist or did_pattern is set, show the DID trust variant.
EDIT — Modify an Existing Schema
Read current config, display the target schema, ask what to change (add note, remove note, toggle required, change description/guidance/skill, change lifecycle mode, add/remove default_traits, rename key), apply changes, write back.
When adding or editing a note, offer the skill field: "Should this note have a skill framework? If so, provide the skill name (e.g., review-quality, or a Claude Code built-in like security-review). The skill will be invoked before the agent fills the note."
If the target schema is not found in config.yaml, inform the user and offer to CREATE instead.
For detailed workflow, see references/edit-workflow.md in this skill folder.
DELETE — Remove a Schema
Read current config, confirm the schema name, warn about orphaned notes on existing items, remove the key, write back.
If the target schema is not found in config.yaml, inform the user and offer to CREATE instead.
For detailed workflow, see references/delete-workflow.md in this skill folder.
VALIDATE — Check Config Integrity
Run structural and semantic checks on the config file and report issues with fix suggestions.
In addition to the checks in references/validate-workflow.md, flag any skill: value that is
exactly one of review, plan, run, or init as a probable built-in-skill collision (warning,
not an error) — these bare names resolve to a Claude Code built-in (e.g. review is the
GitHub-PR review skill) rather than a project's intended framework skill. Suggest the likely
intended framework skill name (e.g. review-quality instead of review) and cite the exact-name
rule in references/config-format.md → "skill — exact-name rule".
For detailed workflow, see references/validate-workflow.md in this skill folder.
Step 4 — Report
For write operations (CREATE, EDIT, DELETE):
- Show what changed in the config file
- Sync to server (if project-scoped): Check whether the config has a top-level
project.rootId(see Step 2's note andreferences/config-format.md→ Project Scoping). If present, check the tool list formanage_project_config— older servers may not expose it, in which case note this to the user and skip (the config.yaml write above is authoritative locally; the server picks it up on its normal read path once the tool becomes available). If the tool is available, call:manage_project_config(operation="push", rootId="<project.rootId>", configYaml="<full current file text>")- Success → report the returned
fingerprint. Re-pushing identical content later returns the same fingerprint (idempotent) — safe to call after every write without pre-checking. VALIDATION_ERROR→ the server rejected the YAML (e.g. a construct its parser can't accept). The local file is already saved — tell the user the parse error from the response and to fix.taskorchestrator/config.yaml, then re-run VALIDATE and retry the push.CONFLICT_ERROR(superseded) → the pushed content is provably older than the server's (its fingerprint is in the server's history but not current). Tell the user to pull/copy the server's config back before editing (manage_project_config(operation="get", ...)shows it), or passforce: trueon the push if overwriting the server's newer config is intentional.- A
warningfield on a successful response → relay it to the user as-is (non-fatal — e.g. the root item'stypeisn't"project").
- Success → report the returned
- Remind: MCP reconnect required (
/mcp) for schema changes to take effect on the global config path — the server caches.taskorchestrator/config.yamlon first access. A successful per-root push above takes effect immediately for items scoped to that root, without needing reconnect.
For VIEW and VALIDATE: The output from Step 3 is the deliverable — no additional report needed.
Troubleshooting
expectedNotes is empty after creating an item with the schema tag
- Cause: MCP server hasn't loaded the updated config file
- Solution: Run
/mcpin Claude Code to reconnect the server, then retry
Schema not applied — item has no schema
- Cause: The item's
typefield doesn't match any key inwork_item_schemas, and its tags don't match anynote_schemaskey (legacy fallback) - Resolution order:
typefield → direct lookup inwork_item_schemas; if no type or no match, first tag match innote_schemas; if no match, falls back todefaultschema if one exists - Solution: Verify the item's type and tags with
query_items(operation="get", itemId="<uuid>"). Settypeto a key that exists inwork_item_schemasfor reliable schema selection.
Duplicate schema key in config file
- Cause: YAML allows duplicate keys but only the last one is used
- Solution: Check for duplicate entries under
work_item_schemas:(ornote_schemas:) and merge them
Changes not taking effect after editing config
- Cause: The server caches schemas on first access — changes are not hot-reloaded
- Solution: Run
/mcpto reconnect the MCP server subprocess
Examples
Example 1: View all schemas
User says: "What schemas do I have?"
- Read
.taskorchestrator/config.yaml - Display summary table with note counts per phase
- Offer to show detail for any specific schema
Example 2: Add a required note to an existing schema
User says: "Add a rollout-plan note to the bug-fix schema"
- Read config, find
bug-fixschema - Ask: which phase (queue/work/review), required?, description, guidance
- Append the new note entry, write config back
- Remind:
/mcpreconnect needed
Example 3: Validate config after manual editing
User says: "I edited the config by hand — check it"
- Read and parse config
- Run validation checks (syntax, structure, field rules, duplicates)
- Report issues or confirm "Config is valid — N schemas, M total notes"
Actor authentication config
The .taskorchestrator/config.yaml file also has an actor_authentication: block:
yamlactor_authentication: degraded_mode_policy: accept-cached # accept-cached | accept-self-reported | reject # ... other actor_authentication settings (enabled, verifier)
When the user wants to view, set, or change degradedModePolicy:
- Read
.taskorchestrator/config.yaml - Locate the
actor_authentication:block (create it if absent) - For view: display the current value (default
accept-cachedif key is absent) - For changes: update the
degraded_mode_policy:field (preserving all other actor_authentication keys) - Validate the new value is one of:
accept-cached,accept-self-reported,reject - Write back
Note: If the DEGRADED_MODE_POLICY environment variable is set on the server, it overrides the YAML value. To check whether an override is in effect:
bashecho $DEGRADED_MODE_POLICY
Tell the user when the env-var override is active — the YAML change will be shadowed until the env var is unset or the server is restarted without it.
Recommended: Use reject for cross-org or multi-tenant fleet deployments where agents from different organizations share a single Task Orchestrator instance. See current/docs/fleet-deployment.md for the full security rationale.
degradedModePolicy values
| Value | Behavior | When to use |
|---|---|---|
accept-cached | (default) Trust JWKS-verified identity from stale cache on UNAVAILABLE; self-reported otherwise | Single-org; occasional JWKS outages |
accept-self-reported | Always trust the caller-supplied actor.id | Local dev; no JWKS; explicit opt-out |
reject | Reject any unverified operation (rejected_by_policy) | Cross-org did:web fleets; maximum assurance |

