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-dadcb69040b5. 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 containingidplus either structuredclausesor labelled contracttext.playbook: an object containingidand a non-emptyrulesarray.
Structured clauses should contain id, type, title, and text. Rules may
contain:
idandclause_typerequirementseveritymax_daysforbidden_termsrequired_termsrequire_caprequiredproposed_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
- Validate both input objects and the supplied playbook rules.
- Extract structured clauses or labelled sections from contract text.
- Reject the run if the input cannot be identified as a contract.
- Match each rule to a clause by normalized type or supplied keywords.
- Record missing required clauses without inventing clause text.
- Evaluate only explicitly encoded rule conditions.
- 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-dadcb69040b5, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:ca04e271e284ff75b85bafdf951888f0b4f972ee5074afa157b3eed619d0ae18 |
skill: contract-review
version: 0.1.1
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 result | Passed |
|---|---|
| Tested version | sha-dadcb69040b5 |
| 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:16b8d9efcb2d0ba315abebe32b046e932209deed8606b650fa1720b41e964921sha256:4969cd724072a7bf6fb9fb277867a2ee51ca3aff12c9430106a73e0eb93b8f49Package identity
| Published revision | sha-dadcb69040b5 |
|---|---|
| Content digest | sha256:dadcb69040b519899a54bd2d20709321782d5234aa61b05bbda1d4a7341f59fe |
| SKILL.md digest | sha256:f787c179576924bdf145ed2803ac9d72843887a89298ac03b25f508434b8d8c5 |
| Execution profile digest | sha256:ca04e271e284ff75b85bafdf951888f0b4f972ee5074afa157b3eed619d0ae18 |
| Publisher identity | Unverified publisher · luismireles12 |
| 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-dadcb69040b5ViewingContent digest sha256:dadcb69040b519899a54bd2d20709321782d5234aa61b05bbda1d4a7341f59fesha-52f54b5e8611Content digest sha256:52f54b5e8611c7f59a15d615ea5dfa82e64437ec53cb3a634d6a6f826047abb2sha-8e63870aacf8Content digest sha256:8e63870aacf8a42349fd1aa709ebd3abf9552e63e2dbd003e3cd5c2d6322fb22sha-e8dd4b5252f5Content digest sha256:e8dd4b5252f54507d8a4dff81090b2a702abdfc0cab8e3bf9574366a4f3e7bc4