CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

jbaruch/coding-policy

General-purpose coding policy for Baruch's AI agents

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

script-output-contracts.mdskills/release/references/

Script Lookup and Output Contracts

These preconditions bind the exceptions named in rules/script-delegation.md.

Scoped Plugin Contracts

Applies when a script locates another plugin's skill script, or relies on another plugin script's non-JSON stdout, for an installed plugin or one authored in its own verified repository.

A script that calls its runtime's interfaces (host IPC task files, MCP tools, a provider API) is integration code outside this section. It reads and writes each interface in the shape the interface owner's existing contract defines, and the owner's tests cover that shape. This section adds no authority beyond the owner's contract.

Preconditions (all required):

  1. The other plugin declares the lookup scope, the co-shipped scripts a caller locates and each script's input/output contract in that script's header or docstring or in a skill reference the caller reads, never in a rule.
  2. Regression coverage verifies the declared lookup and output behavior.
  3. The exception grants no runtime authority and waives no check after lookup.
  4. During source authoring, the review proves plugin identity from the trusted base manifest matching the reviewed repository.
  5. During source authoring, the review reads that declaration from the head's committed regular files and checks it against the scripts it names.

The provider declaration does not replace an invoking skill or reference's contract under rules/script-as-black-box.md. Every other command block follows Scripts Are Real Files and Script Requirements unchanged.

Release Readback Consumers

jbaruch/coding-policy owns the scoped helper contract for skills/release/** and skills/learning-pass/scripts/learning-delivery.py consumers. These co-shipped targets live under skills/release/:

TargetInput → successful output
resolve-publish-run.showner, repository, source commit, workflow and optional ref → JSON database_id
confirm-tessl-landed.shworkspace, plugin, captured baseline and run id → landed version plus newline
verify-moderation-cleared.shworkspace, plugin and published version → JSON moderation verdict
fleet_publish_wait.pyconsumer repository, merged source SHA and optional central run id → JSON source-bound run selection after bounded enqueue waiting
fleet_publish_resolver.pyconsumer repository, merged source SHA and optional central run id → JSON source-bound central run selection
fleet_publish_confirm.pyconsumer repository, merged source SHA, baseline and central run id → JSON exact-version publication confirmation

The consumer resolves only the host-installed jbaruch/coding-policy provider; caller data cannot choose a replacement root or executable. Resolve an installation-root alias once, then validate the actual provider manifest's name, version, declared release skill and declared authority rule. Each target must be a regular contained file under that same provider. Refuse linked target components, missing files and provider/target substitution before execution. Retain the verified provider identity across the readback sequence.

The helpers retain their own watch budgets and publication gates. Their input, output, exit-code and recovery contracts are canonical in skills/release/references/PUBLICATION.md; the confirmation helper's successful version stdout also follows Version Stdout below. A successful lookup never substitutes for successful source-bound publication, registry advance or moderation. Readback grants no approval of changed bytes.

The historical central fleet readers co-ship fleet_publish_resolver.py and fleet_publish_confirm.py under the same verified release provider. Their JSON selection and confirmation contracts are declared in their docstrings and skills/release/references/fleet-publication.md. Neither changes the legacy version-stdout helper contract. Central source identity is separate from the workflow's own commit; resolve and retain both through confirmation.

Provider regressions live in tests/release/tests/test_resolve_publish_run.sh, tests/release/tests/test_release_helpers.sh and tests/release/tests/test_verify_moderation_cleared.sh. Consumer lookup and link/substitution refusal coverage lives in jbaruch/nanoclaw-admin tests/test_learning_delivery.py.

Version Stdout

Applies to skills/release/registry-baseline.sh and skills/release/confirm-tessl-landed.sh when the wrapper's whole output is the version or verified unpublished baseline its caller passes to the next gate command.

Preconditions (all required):

  1. Success emits only that version or verified baseline sentinel and a newline.
  2. Failure emits no version, exits non-zero, and writes an actionable diagnostic to stderr.
  3. Each distinct verdict of the helper it wraps reaches the caller as a distinct exit code.
  4. unpublished requires verified registry absence or a supported empty versions response; authentication failures and indeterminate reads never prove absence.

Every other release script retains the JSON-producing requirement.

Bounded Runner Stdout

Applies to skills/release/lib/bounded-run.sh when a caller runs a script or an existing third-party tool under a wall-clock budget.

Preconditions (all required):

  1. The runner's stdout is exactly the wrapped command's stdout.
  2. The runner adds nothing to stdout on success.
  3. On a spent budget the runner adds nothing to stdout, writes a diagnostic to stderr, and exits 124.
  4. The runner's own failures exit non-zero and write only to stderr.
  5. A wrapped skill script remains subject to Script Requirements. Existing third-party tools may use their own output contracts.
  6. A caller discards the wrapped command's partial stdout on exit 124 or 125.

Every other skill script retains the JSON-producing requirement.

skills

README.md

tile.json