← Catalog

@pi-in-go/pigpen-piglet-pig-warden

PiG with warden: irreversible calls held before they run, off-task calls flagged, stuck loops and unverified done claims called out. Off until /warden enable; it shows what leaves the machine before anything does; judged by TypeSafe Jev or…

PigletPigpen

Add this Piglet

Add the Piglet source

pig piglet add npm:@pi-in-go/pigpen-piglet-pig-warden

PiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet pig-warden.

Review before installing

Piglets run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party Piglet. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.

What this Piglet is

Pigpen index status: planned (it records no signed Binary release for this Piglet). Source in the Pigpen repository ↗

  • Not released yet: no signed Piglet Binary is published and no remote install command is offered. The source composition is in this repository; see RELEASE-BLOCKERS.md.
  • Go only. Warden, a Go port of DevMortimer's pi-warden (Ryan Gapac, MIT): irreversible tool calls held before they run, off-task calls flagged, stuck loops and unverified done claims called out. Run npm run stage before using its generated manifest under dist/staged.
  • Opt-in: it does nothing until /warden enable, which shows what would leave the machine and asks which judge to use: TypeSafe Jev, your own session model, or offline patterns only. The warden Package also installs on its own with pig install and shares the typesafe client library Package.
  • A Piglet Binary builds locally from the staged manifest with PIG_SOURCE_ROOT set to a git checkout of the PiG source. No release is published; version 0.1.0 is a development default and only linux/amd64 has been built and run; linux/arm64, darwin/arm64, darwin/amd64 and windows/amd64 are listed in the manifest and compile-checked only; neither is a support claim.

Selects

Extensions (1)

  • warden from package:warden

Packages it uses

Binary targets

linux/amd64linux/arm64darwin/arm64darwin/amd64windows/amd64

These are the targets the manifest lists for pig piglet build. Which of them have been built and run is in the notes above.

Signing

  • Signed Piglet Binary: none published. Nothing has been signed for this Piglet yet, so pig piglet pull has no release to pull.
  • npm package: 2 registry signatures.
piglet.yaml
# GENERATED by scripts/npm-piglets.mjs from piglets/pig-warden/piglet.yaml. Do not edit.
name: pig-warden
description: "PiG with warden: irreversible calls held before they run, off-task calls flagged, stuck loops and unverified done claims called out. Off until /warden enable; it shows what leaves the machine before anything does; judged by TypeSafe Jev or your own session model."
release:
  version: 0.1.1
build:
  targets:
    - linux/amd64
    - linux/arm64
    - darwin/arm64
    - darwin/amd64
    - windows/amd64
  extensionRealization: fused
packages:
  typesafe: npm:@pi-in-go/pigpen-typesafe@^0.2.0
  warden: npm:@pi-in-go/pigpen-warden@^0.1.2
extensions:
  - name: warden
    origins:
      - package:warden
    tools: []
skills: []
discovery:
  extensions:
    - user
    - workspace
  skills:
    - user
    - workspace

PiG manifest JSON

The pig field of package.json.

{
  "piglet": "piglet.yaml"
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

pig-warden

PiG with warden, a Go port of pi-warden (Ryan Gapac, MIT): guardrails that steer instead of interrupt. Nothing happens until you type /warden enable.

CommandWhat it does
/warden enableShows what warden reads and what a judged check would send, and asks for the judge: TypeSafe Jev, your session model, or offline patterns only.
/warden testRuns four synthetic dangerous calls through the guard and shows what would happen. Executes nothing.
/warden status, mode, backend, trace, disableSee the state, change how a held call is handled, switch the judge, read the recent decisions, turn it off.

Warden holds irreversible calls before they run and tells the agent why (offline: force-push, rm -rf of a home or absolute path, DROP, git reset --hard; with a judge, the judge's irreversible score decides, see the Package README); it flags calls unrelated to your request, breaks stuck loops and asks for evidence when the agent claims it is done. It registers no tool. The TypeSafe client library Package typesafe is selected as a library, not as a member.

Run from a checkout

npm ci --ignore-scripts
npm run stage
pig piglet validate dist/staged/piglets/pig-warden/piglet.yaml
pig --piglet dist/staged/piglets/pig-warden/piglet.yaml

Build a Piglet Binary (needs a git checkout of the PiG source the pig was built from):

PIG_SOURCE_ROOT=/path/to/pig-git-checkout \
  pig piglet build dist/staged/piglets/pig-warden/piglet.yaml --format binary --targets <os>/<arch> --out ./pig-warden

The Binary fuses the extension (extensionRealization: fused). Linux/amd64 is the development default; no release is published and no support is claimed.

Credits

Warden: components/warden/CREDITS.md. The composition is MIT, Michael Kinsy.

Signed Binary

This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-pig-warden registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release pig-warden/v0.1.1):

pig piglet pull 'github:MichaelKinsy/pigpen/pig-warden@0.1.1'