Locket

Available

Locket keeps a small business's commercial agreements from request to renewal: approved templates and a clause playbook, negotiated versions, cited review findings, approvals pinned to the exact version, a signature-ready package for the signing service you already use, executed files reconciled on return, obligations and renewal notice deadlines.

Locket is available as MIT-licensed source for self-hosting. See its public source and release documents for setup. Business can also install and run projects for invited accounts; the app shows whether it offers Locket before checkout.

Run Locket on your own computer with one line:

npx -y @runeditrun/rer dev just-every/run-locket

It clones the public source, installs it, sets up a local owner and starts the app; nothing is deployed. To set up without starting, run npx -y @runeditrun/rer setup just-every/run-locket. Without Node 22 or later, run curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-locket.

Or have your agent set it up for a Business: Start a Business with Locket ticked

For HappyToHelp: Assisted is in early access; Managed is in early access.

Category
contract-management
Licence
MIT
Version
0.1.5
Requirements
19 clauses
Release signature
Signed by just-every · key rer-ed25519-5a42fb9c9c4f8acb2b32386e9e40461c · statement
Target release
v0.1.5 · published
Publisher’s stage
first-release-local
Instead of
Ironclad, Icertis, Agiloft

Outside services

The services the project declares it sends data to, each with its reason.

cloudflare
Worker hosting

Scope and limits

What it will not do

  • Finished product functionality
  • Speculative domain data

Declared limits

Status
unmeasured

Requirements

All 19 clauses of Locket’s CONTRACT.md. They say what the project must do; the handover and verification records say what is built and tested.

REPO 1 clause

  1. REPO-001
    Import a legacy agreement A person uploads a PDF or DOCX with where it came from and its source ID. Locket keeps the original bytes and SHA-256, the source system and ID, the original filename, who imported it and when, and reads DOCX text. The same bytes or the same source ID cannot be imported twice. Acceptance: downloading the stored file and comparing bytes and digest, and the refused duplicates (flow test 01).

INTAKE 1 clause

  1. INTAKE-001
    Capture a request A requester records title, request type, counterparty (existing or new), value, responsible person, needed-by and start dates, and whether it is restricted. Each type carries its default required attachments (US-001), and more can be added. A request cannot go to review while a required attachment is missing unless owner or counsel waives it with a reason. Amendments and order forms must name their parent agreement. Acceptance: the stored request and the refused submission until the attachment is present (flow test 02).

DRAFT 1 clause

  1. DRAFT-001
    Use an approved template Owner or counsel author versioned templates with fields and clause wordings, and approve a version for use. A requester can only populate an approved version; required fields must be filled; the chosen clause wording is recorded. A later template version never rewrites a version already produced. Acceptance: the refusal of a draft template, the populated text and the unchanged earlier version (flow test 03).

PLAY 1 clause

  1. PLAY-001
    Maintain the clause playbook Owner or counsel keep versioned rules: preferred wording, allowed alternatives and who decides exceptions (counsel or approver). One version is active; each review finding records the playbook version it used. Acceptance: activation superseding the earlier version and findings citing it (flow test 04).

NEG 1 clause

  1. NEG-001
    Negotiate in versions People add our revisions and counterparty markups (PDF or DOCX), compare any two versions line by line, and comment with quoted passages. Originals stay byte-for-byte. A version added against a stale view of the agreement is refused. Acceptance: the comparison of two DOCX versions and the untouched downloads (flow test 05).

REVIEW 1 clause

  1. REVIEW-001
    Record review findings A reviewer records, against a playbook rule, whether the rule is met, breached or cannot be determined, citing the exact passage by position and quote (checked against the version text), with proposed wording and open questions. Agents submit findings only as proposals. Acceptance: the refused mismatched quote and an agent's findings applied only after counsel's approval (flow test 06).

APPROVE 1 clause

  1. APPROVE-001
    Approve the exact version Every agreement needs commercial approval (owner or approver); each breached or undetermined finding needs an exception decision by the rule's authority. The requester cannot approve their own request unless they are the owner. Approvals pin version identity and decision context; a new version, a signing PDF or a value change withdraws them and the agreement returns to review. Acceptance: the route, the role refusals, and the withdrawal after a new version and after a value change (flow test 07).

SIGN 1 clause

  1. SIGN-001
    Prepare for signature with any provider From an approved version Locket produces the signature-ready PDF (the approved PDF itself; a text PDF for template versions; DOCX versions need the PDF they will be signed as, attached and approved first) and a routing manifest naming version identity, document SHA-256, approvals, provider and ordered recipients. A person can send it through Docusign, Adobe Acrobat Sign, Dropbox Sign, PandaDoc, Documenso, DocuSeal, paper or another route and record the envelope ID; this manual route stays available beside the live connections in SIGN-002 and SIGN-003. Acceptance: the downloaded PDF and manifest and the recorded handoff (flow test 08).

EXEC 1 clause

  1. EXEC-001
    Record and reconcile execution The signed PDF and the provider's certificate are recorded (uploaded by a person, or retrieved by EXEC-002). Locket reconciles the envelope ID with the handoff, the signers with the package's signers, the document (confirmation and page count) and the certificate's presence. A clean match marks the agreement executed; a mismatch stays unsigned until owner or counsel accepts it with a reason. The same signed file or envelope cannot be recorded twice. Acceptance: a reconciled execution, a mismatch held for review, and a refused duplicate (flow test 09).

TERMS 1 clause

  1. TERMS-001
    Confirm terms and obligations People propose effective and end dates, auto-renewal, renewal term, notice period, governing law and payment terms, each citing words from the executed text (or a signed-PDF page when there is no text). Owner, counsel or approver confirm or reject each. Correcting a confirmed term supersedes it and keeps the history. Obligations have an owner, due date and recurrence; they are confirmed and then marked done. The renewal type, renewals allowed and the term roll-forward built on these terms are RENEW-007. Acceptance: an agent's terms confirmed by an approver, a correction that keeps the superseded value, and an obligation through to done (flow test 10).

RENEW 1 clause

  1. RENEW-001
    Work the renewal queue Confirmed end date and notice period produce the notice deadline: the end of the deadline day (23:59:59) in the agreement's IANA time zone, including daylight-saving changes. Owner or approver decide renew, renegotiate or terminate; a notice is drafted (by a person or an agent proposal), approved for sending by owner or approver (not by its preparer unless owner), and then recorded as sent with method, time and optional evidence. RENEW-007 extends the deadline to auto-renewing agreements, computing it from the current term rather than an end date already past. Acceptance: deadlines on both sides of a daylight-saving change and a notice that stays "approved, not sent" until sending is recorded (flow test 11).

PORT 1 clause

  1. PORT-001
    Search, export and restore People search titles, counterparties, references and version text of the agreements they may access. The owner exports a complete archive of every record and every file's exact bytes and digest. rer export and rer import restore the whole installation into an empty one, after which the restored owner signs in afresh and continues work, including undoing a restored move-in. Acceptance: restricted results hidden from others, the archive's digests, and a fresh-install restore compared record by record and byte by byte (flow test 12 and tests/portable.mjs).

ROLE 1 clause

  1. ROLE-001
    Six roles enforced on the server Roles are owner (everything), counsel (library, legal exceptions, restricted agreements, execution mismatches), approver (commercial approval, renewal decisions, notice approval), requester (requests, versions, attachments, signature handoff), viewer (reads) and agent (reads and prepares proposals only). The installation's native owner is always owner; other operators are invited through Base sign-in and given a Locket role. REPO-007's personal saved-view preferences are available to every human role, including viewers; this never permits a business-record write, and agents remain read-only for preferences. Acceptance: signed-out and cross-site requests, viewers, agents and demoted approvers refused by the server (security test).

SEC 2 clauses

  1. SEC-001
    Writes recheck session, role and version atomically Every command re-reads the session and role and repeats the session, role and record-version checks inside the D1 batch that writes, so a revoked session, removed role or changed record saves nothing. Acceptance: a revoked session and a decision against a stale snapshot both refused with no write (security test).
  2. SEC-002
    Retried commands return their first outcome Every command carries a command identity. Retrying the same identity and content returns the first outcome; reusing it for different content is refused. Acceptance: a retried command returning its first result and a reused identity with new content refused (security test).

ACCESS 1 clause

  1. ACCESS-001
    Restricted agreements are invisible to others A restricted agreement and everything attached to it (versions, files, findings, approvals, terms, proposals, counterparty, search hits) is visible only to the owner, counsel, its requester, its responsible person and people explicitly granted access. To anyone else it does not exist. Acceptance: an agent-prepared restricted request, counterparty included, hidden from everyone outside it, and restricted search results hidden (security test and flow test 12).

FILE 1 clause

  1. FILE-001
    Originals keep their exact bytes Uploaded, signed, certificate and imported files are stored with their SHA-256 and served byte-for-byte with the digest in a response header; nothing rewrites an original. Acceptance: downloads compared byte for byte with their uploads (flow tests 01, 05 and 09).

PROPOSE 1 clause

  1. PROPOSE-001
    Agents prepare, people approve An agent is an invited operator with the agent role using the same HTTP API ([API.md](API.md)). It prepares proposals with evidence and assumptions: intake details, playbook findings, agreement-family links, extracted terms and renewal notice drafts. Approval runs the same checks as doing the work by hand, records who prepared and who decided, and links the result to the proposal. An agent never approves, signs, sends or confirms anything; nobody may decide a proposal they prepared unless they are the owner. Acceptance: agent findings and terms applied only after a person's approval, and agent writes refused (flow tests 06 and 10, security test).

MOVE 1 clause

  1. MOVE-001
    DocuSign archive move-in The DocuSign kit takes an Envelope Report CSV and the downloaded completed envelopes (one folder per envelope ID with the signed PDFs and Summary.pdf, the Certificate of Completion). A dry run shows every row's outcome (import, not completed, missing evidence, duplicate), missing certificates and files not in the report, and writes nothing. Applying the exact reviewed dry run creates imported agreements with the signed file and certificate kept byte-for-byte, an imported execution record (never a new signature event), and end date and notice period as proposed terms. The journal keeps the report and every supplied file. An unused batch can be undone; once an imported agreement is used, undo is refused and the history stays. Shape and limits: [IMPORT.md](IMPORT.md). Acceptance: dry run, apply with originals, repeated envelopes unchanged, undo, re-import and refused undo once used (move-in test).

View as agent

Everything on this page is in these files, copied unmodified from the release. An agent evaluating Locket can read them instead of the page.

seed.json
The manifest: capabilities, outside services, extension points, limits, operating cost and deployment needs.
CONTRACT.md
The requirements on this page, in source form.
AGENTS.md
Instructions for the coding agent that maintains an installation.
LICENSE
RELEASE.json
README.md
Source setup, available commands and implementation status.
OPERATIONS.md
How the project is set up, operated and deployed.
ACCEPTANCE.md
What the publisher accepts as a finished release.

Every project, with its availability, is in /agents/catalogue.json; the agents page describes the machine-readable files.