Contract review

Extract contract clauses, compare them only with a supplied terms playbook, and produce cited redlines plus a human-gated risk summary.

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

Overview

contract-review performs a deterministic, read-only comparison between a contract and a supplied acceptable-terms playbook. It extracts only clauses present in the input, cites the exact playbook rule behind every redline, and returns an analysis artifact for a human reviewer.

It never signs, accepts, rejects, sends, files, or negotiates a contract and does not provide a final legal conclusion.

In the manual

Runner

  • review

Declared by its execution profile. Read the profile

SKILL.md

Contract Review

contract-review performs a deterministic, read-only comparison between a contract and a supplied acceptable-terms playbook. It extracts only clauses present in the input, cites the exact playbook rule behind every redline, and returns an analysis artifact for a human reviewer.

It never signs, accepts, rejects, sends, files, or negotiates a contract and does not provide a final legal conclusion.

Inputs

  • contract: an object containing id plus either structured clauses or labelled contract text.
  • playbook: an object containing id and a non-empty rules array.

Structured clauses should contain id, type, title, and text. Rules may contain:

  • id and clause_type
  • requirement
  • severity
  • max_days
  • forbidden_terms
  • required_terms
  • require_cap
  • required
  • proposed_text

Outputs

  • clauses[]: only clauses traceable to the contract input.
  • redlines[]: each item cites its clause and supplied playbook rule, explains the detected variance, and includes proposed text only when the playbook supplied it.
  • risk_summary: counts, severity, input references, and explicit read-only constraints.

Guardrails

  • Refuse non-contract or unparseable input.
  • Refuse a playbook without rules.
  • Never create clause text that is absent from the contract.
  • Never create a policy requirement or proposed replacement that is absent from the playbook.
  • Redact obvious credentials and payment-card numbers from quoted evidence.
  • Emit no effects. A human decides whether to accept, negotiate, or escalate.

Review procedure

  1. Validate both input objects and the supplied playbook rules.
  2. Extract structured clauses or labelled sections from contract text.
  3. Reject the run if the input cannot be identified as a contract.
  4. Match each rule to a clause by normalized type or supplied keywords.
  5. Record missing required clauses without inventing clause text.
  6. Evaluate only explicitly encoded rule conditions.
  7. Return risk ordered from high to low with exact source citations.

Example

If a termination clause requires 90 days while the supplied rule caps notice at 30 days, the redline cites the 90-day clause, cites the 30-day playbook requirement, and uses replacement text only if proposed_text was supplied.

This artifact is suitable for a first-pass commercial review, not a substitute for advice from qualified counsel.

Published execution profile

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

Runner
  • review
Profile digestsha256:b6b7ebc3cf8d725ea5e284aa1c66221fb925c21e52b141130df6733eb975adaa
skill: contract-review
version: 0.1.0
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: security
runners:
  review:
    default: true
    inputs:
      contract:
        type: json
        required: true
        description: Contract text or explicitly supplied clauses.
      playbook:
        type: json
        required: true
        description: The only acceptable-terms rules the review may apply.
    steps:
      - id: review
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          contract: $input.contract
          playbook: $input.playbook
        artifacts:
          wrap_as: contract_review_packet
harness:
  cases:
    - name: cited-redlines
      inputs:
        contract:
          id: msa-example
          clauses:
            - id: term-1
              type: termination
              title: Termination
              text: Either party may terminate for convenience with 90 days written notice.
            - id: liability-1
              type: liability
              title: Limitation of Liability
              text: Vendor liability is unlimited for every category of damages.
        playbook:
          id: commercial-terms-v1
          rules:
            - id: termination-notice
              clause_type: termination
              requirement: Notice must not exceed 30 days.
              max_days: 30
              severity: medium
              proposed_text: Either party may terminate for convenience with 30 days written notice.
            - id: liability-cap
              clause_type: liability
              requirement: Liability must contain an express monetary cap.
              require_cap: true
              severity: high
              proposed_text: Aggregate liability will not exceed fees paid in the preceding 12 months.
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - contract-drafter
            - policy-draft
          request: Review this contract against our policy before signature.
          expected_outcome: Return cited findings and a recommendation, signing and sending nothing.
        - mode: composed
          request: Continue this contract-review work from evidence already gathered upstream.
          expected_outcome: Return cited findings and a recommendation, signing and sending nothing.
          prior_evidence:
            - The contract text and review policy already supplied.
          must_not_repeat:
            - Do not re-review clauses already cleared.
    - name: refuse-non-contract
      inputs:
        contract:
          id: lunch-note
          text: Soup, salad, and coffee are available today.
        playbook:
          id: commercial-terms-v1
          rules:
            - id: termination-notice
              clause_type: termination
              requirement: Notice must not exceed 30 days.
      expect:
        status: failure

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-52f54b5e8611
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:16b8d9efcb2d0ba315abebe32b046e932209deed8606b650fa1720b41e964921sha256:4969cd724072a7bf6fb9fb277867a2ee51ca3aff12c9430106a73e0eb93b8f49

Package identity

Published revisionsha-52f54b5e8611
Content digestsha256:52f54b5e8611c7f59a15d615ea5dfa82e64437ec53cb3a634d6a6f826047abb2
SKILL.md digestsha256:f787c179576924bdf145ed2803ac9d72843887a89298ac03b25f508434b8d8c5
Execution profile digestsha256:b6b7ebc3cf8d725ea5e284aa1c66221fb925c21e52b141130df6733eb975adaa
Publisher identityUnverified publisher · luismireles12
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredluismireles12 · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-dadcb69040b5Content digest sha256:dadcb69040b519899a54bd2d20709321782d5234aa61b05bbda1d4a7341f59fe
  2. sha-52f54b5e8611ViewingContent digest sha256:52f54b5e8611c7f59a15d615ea5dfa82e64437ec53cb3a634d6a6f826047abb2
  3. sha-8e63870aacf8Content digest sha256:8e63870aacf8a42349fd1aa709ebd3abf9552e63e2dbd003e3cd5c2d6322fb22
  4. sha-e8dd4b5252f5Content digest sha256:e8dd4b5252f54507d8a4dff81090b2a702abdfc0cab8e3bf9574366a4f3e7bc4