Least privilege plan

Convert grant history and observed effects into a reviewable least-privilege plan.

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

Overview

Read a bounded grant history packet and propose which scopes to keep, reduce, revoke, or send to human review.

This skill does not change grants. It emits a plan for an operator or a later governed grant-change lane.

In the manual

Runner

  • plan

Declared by its execution profile. Read the profile

SKILL.md

Least-Privilege Plan

Read a bounded grant history packet and propose which scopes to keep, reduce, revoke, or send to human review.

This skill does not change grants. It emits a plan for an operator or a later governed grant-change lane.

Procedure

  1. Require run_history_packet.grants.
  2. Compare each grant against observed_effects.
  3. Keep grants that were used or explicitly required by policy.
  4. Reduce wildcard grants when all observed effects fit one narrower scope.
  5. Revoke unused grants that are not required by policy.
  6. Defer unknown or unparsable scopes to human review.

Inputs

  • run_history_packet: grants and observed effects.
  • declared_policy: policy id, required scopes, and review constraints.

Outputs

  • keep: justified grants.
  • reduce: grants with narrower proposals.
  • revoke: unused grants.
  • needs_human_review: scopes with unknown semantics.
  • evidence: policy digest, grant ids, observed effect counts, and unused scopes.

Published execution profile

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

Runner
  • plan
Profile digestsha256:f8d9d4e093b69f5e13ac5efce8aa351bdd19fe5522ab31ce18f3700044bd52ff
skill: least-privilege-plan
version: 0.1.0
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: security
runners:
  plan:
    default: true
    inputs:
      run_history_packet:
        type: json
        required: true
        description: Bounded grant and observed-effect packet.
      declared_policy:
        type: json
        required: true
        description: Policy id, required scopes, and review constraints.
    steps:
      - id: plan
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          run_history_packet: $input.run_history_packet
          declared_policy: $input.declared_policy
        artifacts:
          wrap_as: least_privilege_plan_packet
harness:
  cases:
    - name: least-privilege-over-broad-grant
      runner: plan
      inputs:
        run_history_packet:
          grants:
            - id: grant_repo
              scope: repo:*
            - id: grant_delete
              scope: repo:delete
          observed_effects:
            - id: fx_read
              scope: repo:read
              summary: Read issue metadata.
        declared_policy:
          id: policy_public_triage
          required_scopes: []
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - least-privilege
            - policy-draft
          request: Plan the smallest grant this workflow needs from its run history.
          expected_outcome: Return a read-only least-privilege grant plan.
        - mode: composed
          request: Continue this least-privilege-plan work from evidence already gathered upstream.
          expected_outcome: Return a read-only least-privilege grant plan.
          prior_evidence:
            - The bounded run history and declared policy already supplied.
          must_not_repeat:
            - Do not change any grant.
    - name: least-privilege-justified-grant
      runner: plan
      inputs:
        run_history_packet:
          grants:
            - id: grant_read
              scope: repo:read
          observed_effects:
            - id: fx_read
              scope: repo:read
              summary: Read issue metadata.
        declared_policy:
          id: policy_read_only
          required_scopes:
            - repo:read
      expect:
        status: sealed
        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-ab94f9e4bcb9
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:7d50801f9859ddb1b60e67808ea9ec9289ddaf4878baed90c8a0048a6810cc56sha256:7f69cff76f8d6eab1c83fea3ba5185c710cc8c1ac270259d916f2523d1aeecf2

Package identity

Published revisionsha-ab94f9e4bcb9
Content digestsha256:ab94f9e4bcb93bb9ab18d4decfb6061bfca1d34d4959ae6f7237eba912810e7a
SKILL.md digestsha256:5799fb59902276d99dd397fc967f58833fc2e2fe054ec71fb827412c65572c04
Execution profile digestsha256:f8d9d4e093b69f5e13ac5efce8aa351bdd19fe5522ab31ce18f3700044bd52ff
Publisher identityUnverified publisher · rohitmulani63-ops
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredrohitmulani63-ops · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-c880f80a52c0Content digest sha256:c880f80a52c06a149f554908acba2d73fd7e550d8cb630a12582bc95749ed2b1
  2. sha-c76dfbf61a93Content digest sha256:c76dfbf61a93f8565116de12f2e805b15214cd73f1bcae49ad5f3c7ec3895409
  3. sha-ab94f9e4bcb9ViewingContent digest sha256:ab94f9e4bcb93bb9ab18d4decfb6061bfca1d34d4959ae6f7237eba912810e7a
  4. sha-3dc6b3d3a65dContent digest sha256:3dc6b3d3a65dbf221030ef08fc59b985b0182aa5efb1f3e7c6e3eaecebb8a0c4