## §OIP SYSTEM ARTICLE — CODE (4 operations)
A generated article for one OIP shelf. It lists every operation in this API/CLI/MCP/device/model/core subsystem, links each leaf article, and gives the ledger path for proof.

### Read Order
- scan operations
- open a leaf doc
- run via run_now or POST /api/dispatch
- open receipt
- repair/replay if needed

### Operations
- **CODE_AUDIT** — 
  doc: https://miscsubjects.com/api/dispatch?key=CODE_AUDIT&format=markdown
  run: https://miscsubjects.com/api/dispatch?invoke=CODE_AUDIT&body=%3Cyour%20request%20in%20plain%20words%3E&share=<TOKEN>
  history: https://miscsubjects.com/api/invocations?object_id=CODE_AUDIT
- **CODE_MODE** — 
  doc: https://miscsubjects.com/api/dispatch?key=CODE_MODE&format=markdown
  run: https://miscsubjects.com/api/dispatch?invoke=CODE_MODE&body=%3Cyour%20request%20in%20plain%20words%3E&share=<TOKEN>
  history: https://miscsubjects.com/api/invocations?object_id=CODE_MODE
- **CODE_LEASE_START** — Open a coding lease. You declare the files you are about to edit and the sha256 of each file's contents as you
  when: before your first edit of a session, always. A lease opened at commit time can only report a collision that already happened.
  args: $1 = your agent name. $2 = a JSON array [{"path":"functions/x.js","base_sha":"<sha256 of what you read>"},…]. $3 = one line saying what the work is.
  doc: https://miscsubjects.com/api/dispatch?key=CODE_LEASE_START&format=markdown
  run: https://miscsubjects.com/api/dispatch?invoke=CODE_LEASE_START&body=claude%3A7d88e44e%7C%5B%7B%22path%22%3A%22functions%2Fa%2F%5Bslug%5D.js%22%2C%22base_sha%22%3A%229f2c%E2%80%A6%22%7D%5D%7Cadd%20the%20ledger%20thread%20to%20every%20article&share=<TOKEN>
  history: https://miscsubjects.com/api/invocations?object_id=CODE_LEASE_START
- **CODE_LEASE_COMMIT** — Close a coding lease with the sha256 of every file as you are leaving it. Refused with 409 and the conflicting
  when: immediately before git commit, every time.
  args: $1 = lease id from CODE_LEASE_START. $2 = a JSON array [{"path":"…","new_sha":"…"},…].
  doc: https://miscsubjects.com/api/dispatch?key=CODE_LEASE_COMMIT&format=markdown
  run: https://miscsubjects.com/api/dispatch?invoke=CODE_LEASE_COMMIT&body=lease_ab12cd34%7C%5B%7B%22path%22%3A%22functions%2Fa%2F%5Bslug%5D.js%22%2C%22new_sha%22%3A%2271ba%E2%80%A6%22%7D%5D&share=<TOKEN>
  history: https://miscsubjects.com/api/invocations?object_id=CODE_LEASE_COMMIT

### Troubleshooting
- If a row's example has placeholders, replace only the placeholder values and preserve separators.
- If a call fails, open its receipt and repair it with POST /api/dispatch {key, body, repairs:'inv_ID'}.
- If token scope denies this system, ask the owner for a row:/rows:/pfx: token scoped to the exact operation set.

Back to the tree: https://miscsubjects.com/api/dispatch?map=1&format=markdown