Least privilege plan
Convert grant history and observed effects into a reviewable least-privilege plan.
You’re reading version sha-c76dfbf61a93. 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
- Require
run_history_packet.grants. - Compare each grant against
observed_effects. - Keep grants that were used or explicitly required by policy.
- Reduce wildcard grants when all observed effects fit one narrower scope.
- Revoke unused grants that are not required by policy.
- 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-c76dfbf61a93, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256: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 result | Passed |
|---|---|
| Tested version | sha-c76dfbf61a93 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:7d50801f9859ddb1b60e67808ea9ec9289ddaf4878baed90c8a0048a6810cc56sha256:7f69cff76f8d6eab1c83fea3ba5185c710cc8c1ac270259d916f2523d1aeecf2Package identity
| Published revision | sha-c76dfbf61a93 |
|---|---|
| Content digest | sha256:c76dfbf61a93f8565116de12f2e805b15214cd73f1bcae49ad5f3c7ec3895409 |
| SKILL.md digest | sha256:5799fb59902276d99dd397fc967f58833fc2e2fe054ec71fb827412c65572c04 |
| Execution profile digest | sha256:f8d9d4e093b69f5e13ac5efce8aa351bdd19fe5522ab31ce18f3700044bd52ff |
| Publisher identity | Unverified publisher · rohitmulani63-ops |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-c880f80a52c0Content digest sha256:c880f80a52c06a149f554908acba2d73fd7e550d8cb630a12582bc95749ed2b1sha-c76dfbf61a93ViewingContent digest sha256:c76dfbf61a93f8565116de12f2e805b15214cd73f1bcae49ad5f3c7ec3895409sha-ab94f9e4bcb9Content digest sha256:ab94f9e4bcb93bb9ab18d4decfb6061bfca1d34d4959ae6f7237eba912810e7asha-3dc6b3d3a65dContent digest sha256:3dc6b3d3a65dbf221030ef08fc59b985b0182aa5efb1f3e7c6e3eaecebb8a0c4