Skip to main content

Methods and workflows

Status: Ready

Truth label: Limited

Audience: Fleet operator, System designer

Reader outcome: Package a role and its skills once, chain stages that carry it, and launch a reviewed run whose definition stays frozen.

Last verified: 2026-09-12

Full guides: Managed methods, Workflow templates, Operator manual

Managed methods​

Open Manage Cortex > Manage roles and methods, or New task > Manage roles and methods.

A managed method is a portable package: a role, instructions, required output, examples, evaluation case references, and an ordered list of skills. It replaces the separate legacy persona and skill list.

Five starter definitions cover small fixes, investigation, implementation, research, and writing or editing. They are cloneable starting points for trials. Their usefulness has not been established by operator outcome comparisons.

Author one​

  1. Clone a starter into a new id, or create a method.
  2. Edit its purpose, supported task kinds, role, instructions, required output, examples, and evaluation-case references.
  3. Add, remove, and reorder skills. Each skill has instruction text, a required or optional flag, supporting text files, and required-file declarations.
  4. Copy an installed skill by name from Central to bring its instruction text and supporting files into the editor. This creates an independent copy and does not edit the installed original.
  5. Validate and preview the actual method instructions and dependency report before saving.
  6. Save. Each save creates a revision.

Validation rules: missing required instruction content or files prevents a valid package. An optional skill with no instruction text is explicitly omitted. File paths must be relative and cannot collide with directories.

BoundValue
Skills per package12
Supporting files per skill60
Total serialized content2 MB
Inline instructions100,000 bytes

These are application limits, not provider context-window specifications. Binary skill resources are outside this text package format.

Use one​

Choose a Managed method in the task form and set a matching task kind in Brief and acceptance criteria. The task preview shows the resolved method revision, and submission pins its full content.

Task defaults and workflow stage definitions also support method ids and exact revisions. Omitting a revision chooses the current one at submission. Brain's task tool accepts the same optional method id and revision. An existing task request can select another revision through Execution settings, and clearing its revision resolves the current version for preview. Changing a resumable task's method requires clearing its old resume session.

What the worker does with it​

Workers validate the package hash and materialize supporting files in a private temporary method directory before model execution. CLI prompts reference those files. The agentic loop exposes read_method_file(skill, path, offset, limit) for the pinned package.

Required dependencies do not silently fall back to a worker's unrelated local skill cache. The one-shot JSON executor supports methods without supporting files and rejects packages requiring a separate file reader. A valid text-only deliverable can complete without invented file changes.

Managed CLI and tool-loop tasks use the method's output requirements, so writing and research are not forced through coding-report instructions. The task's permission and brief still apply.

Run metadata records the loaded method revision and hash, each skill's content and supporting-file hashes, and explicit omissions. Open Execution settings to inspect the full package retained for a submitted task.

A correct load report does not prove the model followed every instruction or that the method improved the result.

Lifecycle​

Restore an earlier revision into the editor, import or export a portable package, or retire a method from new submissions. Stale saves preserve local edits. Export includes the saved current package and provenance, and history revisions can be restored and exported individually.

Retiring a method does not invalidate tasks already carrying its content.

Central stores current methods and versions in method_packages and method_versions. Tasks retain immutable submitted package content alongside separate creation provenance. Workers retain private materialized copies under their data root's methods directory. Version and cache cleanup and large-history pagination remain lifecycle follow-up work.

Workflow templates​

Open New pipeline, then Manage workflow templates.

Bundled delivery and quickfix definitions are read only. Clone one into a unique id, or start a new template.

Author one​

Edit the template's purpose, ordered stages, instructions, persona, ordered skills, engine, provider and model, permissions, verification command, and review points. The stage brief editor manages task kind, constraints, requested files, and acceptance criteria.

Structural rules:

  • One ordered chain of at most 20 stages.
  • Every stage declares checkpoint or autonomous review.
  • At most one QA gate, and it targets the immediately preceding stage.
  • A stage selects a managed method or at least one legacy skill.

Validate and preview the definition before saving. History restoration and imports populate the editor for review. Saving creates a new revision. Export includes the saved definition and history. Retirement removes a template from new launches while preserving existing runs. A stale save keeps local edits and asks for a reload.

Legacy worker-local skills still depend on the worker installation. Managed methods deliver pinned role and skill content and validate required files.

Launch a run​

  1. Return to the launch form. Choose the project and an optional worker, and enter the goal.
  2. Engine, verification command, and QA budget overrides are optional.
  3. Preview workflow run shows each task's effective settings and their origins.
  4. Launch reviewed workflow requires that preview. A changed template must be previewed again.

Retrying the same launch request returns the original session and tasks. It does not create a second chain.

Each launch retains the definition and request on its session, plus the exact stage definition on each task. Open a stage's Execution settings to inspect that frozen workflow. Later template edits and retirement do not alter an existing chain. Pending stage briefs can still be revised explicitly through the task brief editor, and existing checkpoint, targeted rework, and cancellation controls continue to operate on the created tasks.

Definitions, history, and run snapshots live in forge.sqlite3 under workflow_templates, workflow_versions, and workflow_runs. Session metadata uses task_sessions. Launches use a savepoint, so sessions, stages, and run snapshots roll back together even inside a recurrence transaction.

Old sessions without snapshots report that evidence as unavailable rather than reconstructing it from current templates.

Bundled pipelines​

Inspect available templates with GET /pipelines and instantiate one with POST /pipelines/{name}.

Required inputs are a project id and an overall goal. Recommended inputs are an assigned worker id for cross-platform fleets, an engine, a platform-correct verification command, and a QA rework budget.

Delivery​

StagePermissionPersonaReview
ScopesafePMcheckpoint
Executewritedeveloperautonomous
QA gatesafeQAautonomous
Solution auditsafearchitectautonomous
Status reportsafePMcheckpoint

Quickfix​

StagePermissionPersonaReview
Executewritedeveloperautonomous
QA gatesafeQAautonomous
PR summarysafePMcheckpoint

Pipeline instantiation is treated as operator consent to execute its write stage. Verify the selected worker has the engine and the project path before starting. Pipeline creation does not currently prove every stage capability against the worker in advance.

Recurring workflows​

A schedule can launch a whole workflow rather than a single task. See Recurring tasks.