Mandate planner

Validate a proposed agency charter against an explicit authority grant before any agency.open run is issued.

You’re reading version sha-96f20fea489c. Go to the current version

Overview

Validate a proposed agency charter against the authority an operator actually holds. This skill is a read-only judgment step. It never opens an agency case, never mints authority, never stores state, and never calls agency.open.

Use it when an operator or downstream driver has:

  • an objective
  • a proposed_charter containing candidate roles, requested limits, and a measurable done-check
  • an authority_grant containing granted roles, spend cap, and turn cap

The skill emits an eligible decision plus a bounded recommended_charter only when every requested role and limit fits inside the grant. Ambiguous, over-limit, or under-specified charters stop for the human approval lane.

In the manual

Runner

  • default

Declared by its execution profile. Read the profile

SKILL.md

Mandate Planner

Validate a proposed agency charter against the authority an operator actually holds. This skill is a read-only judgment step. It never opens an agency case, never mints authority, never stores state, and never calls agency.open.

Use it when an operator or downstream driver has:

  • an objective
  • a proposed_charter containing candidate roles, requested limits, and a measurable done-check
  • an authority_grant containing granted roles, spend cap, and turn cap

The skill emits an eligible decision plus a bounded recommended_charter only when every requested role and limit fits inside the grant. Ambiguous, over-limit, or under-specified charters stop for the human approval lane.

Inputs

objective is a short string naming the work the charter is meant to govern.

proposed_charter must contain:

  • candidate_roster: array of { role, skill, scope }
  • requested_limits: { max_turns, spend }
  • done_check: measurable completion predicate

authority_grant must contain:

  • granted_spend
  • granted_roles
  • max_turns

Output

When eligible, emit:

  • decision.eligible: true
  • decision.reason
  • recommended_charter.scopes
  • recommended_charter.spend
  • recommended_charter.max_turns
  • recommended_charter.counterparty
  • evidence tying every roster role and every limit back to the grant

When refused, emit:

  • decision.eligible: false
  • decision.route: needs_agent
  • decision.reason
  • no recommended_charter

Guardrails

  • Refuse roster roles not present in authority_grant.granted_roles.
  • Refuse requested spend above authority_grant.granted_spend.
  • Refuse requested turns above authority_grant.max_turns.
  • Refuse missing or non-measurable done-checks.
  • Never invent a role, roster member, spend cap, turn cap, counterparty, or done-check.
  • Treat agency.open as a downstream dispatch-by-naming step. This skill only emits data for a separate governed run.

Verification

A reviewer should be able to inspect the returned decision and see:

  • each roster role is copied from candidate_roster
  • each role is present in authority_grant.granted_roles
  • spend and turn limits are at or under the grant
  • refused charters name the exact failing constraint
  • no effectful agency action occurred

Published execution profile

The execution profile published with sha-96f20fea489c, shown as its exact bytes.

Runner
  • default
Profile digestsha256:2471667406bf7db0eb1ca144ec0cd0192267739fc6f13f300c6f667945f3329b
skill: mandate-planner
version: 0.1.0
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: ops
runners:
  default:
    default: true
    inputs:
      objective:
        type: string
        required: true
      proposed_charter:
        type: json
        required: true
      authority_grant:
        type: json
        required: true
    steps:
      - id: default
        tool:
          command: node
          args:
            - run.mjs
          timeout_seconds: 30
        inputs:
          objective: $input.objective
          proposed_charter: $input.proposed_charter
          authority_grant: $input.authority_grant
harness:
  cases:
    - name: in-grant-charter-produces-recommendation
      runner: default
      inputs:
        objective: Open a bounded docs-polish agency case for a public README update.
        proposed_charter:
          candidate_roster:
            - role: docs
              skill: issue-to-pr
              scope: Update one README section and one docs page.
            - role: reviewer
              skill: pr-review-note
              scope: Review the proposed documentation diff before merge.
          requested_limits:
            max_turns: 8
            spend: 40
          done_check: Tests pass and the documentation PR is reviewed with a sealed receipt.
          counterparty: docs-maintainer
        authority_grant:
          granted_spend: 50
          granted_roles:
            - docs
            - reviewer
          max_turns: 10
          counterparty: docs-maintainer
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - work-plan
            - purchase-approval
          request: Plan the spending mandate this task needs.
          expected_outcome: Return a bounded mandate plan for approval, granting nothing.
        - mode: composed
          request: Continue this mandate-planner work from evidence already gathered upstream.
          expected_outcome: Return a bounded mandate plan for approval, granting nothing.
          prior_evidence:
            - The task and spending policy already supplied.
          must_not_repeat:
            - Do not grant the mandate.
    - name: outside-role-escalates-to-human
      runner: default
      inputs:
        objective: Open an agency case that tries to deploy and spend beyond the grant.
        proposed_charter:
          candidate_roster:
            - role: deployer
              skill: production-deploy
              scope: Deploy the service after changing billing code.
          requested_limits:
            max_turns: 12
            spend: 90
          done_check: deploy when it looks good
        authority_grant:
          granted_spend: 25
          granted_roles:
            - docs
            - reviewer
          max_turns: 6
      expect:
        status: failure
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

This exact version passed its recorded harness run: 2 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-96f20fea489c
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:95b38f2ffa56bdd5bde7316ea7064d138893bda5e5ac797c848c0b48d9f77ff7sha256:02b04ee584f6eee68ba998b2821eb741c35cc867a8264e5c98c3ad259df8848c

Package identity

Published revisionsha-96f20fea489c
Content digestsha256:96f20fea489cc4f0978eb223d22174378341059ba272482dc1bd5517fd3807e5
SKILL.md digestsha256:804522f8c6f79eaeb21a75d76c321d5c4368a53393c42338826a2f8419c92642
Execution profile digestsha256:2471667406bf7db0eb1ca144ec0cd0192267739fc6f13f300c6f667945f3329b
Publisher identityUnverified publisher · Liyitong.
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredLiyitong. · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-49dad3a1a516Content digest sha256:49dad3a1a516f33b58881c3d035a3723e6ef229470dc8cc2c7d44321dfe6b911
  2. sha-62dc0ab9fde5Content digest sha256:62dc0ab9fde5ebcdc23d6d13ea973684ed66ee8167d4bf1b1d883d710c9c3cca
  3. sha-96f20fea489cViewingContent digest sha256:96f20fea489cc4f0978eb223d22174378341059ba272482dc1bd5517fd3807e5
  4. sha-ad6f8792eadaContent digest sha256:ad6f8792eadabfb888ffc23f26b7b6b85f7c586f66fbab160b2f3d0d8f937371