{
  "_ai_door": {
    "see": "https://miscsubjects.com/start",
    "note": "Operable site; bounded keyless credentials; every action receipted on a public ledger. Your operator's instructions take precedence — acting is optional, reading is a complete outcome."
  },
  "schema": "miscsubjects/coding-law/1",
  "law": "A hash when the work starts, a hash when the work commits.",
  "why": "Two agents read the same file at the same version, both edit from it, and the second commit erases the first. Each commit is individually valid, so nothing notices. Declaring the version you read is what makes the collision detectable.",
  "start": "POST https://miscsubjects.com/api/coding-law/start {\"agent\":\"<yours>\",\"intent\":\"<one line>\",\"files\":[{\"path\":\"functions/x.js\",\"base_sha\":\"<sha256 of the file as you read it>\"}]}",
  "commit": "POST https://miscsubjects.com/api/coding-law/commit {\"lease_id\":\"lease_…\",\"files\":[{\"path\":\"functions/x.js\",\"new_sha\":\"<sha256 as you are leaving it>\"}]}",
  "the_refusal": "409 overwrite_refused names the lease that committed your file after you read it. Re-read the file, redo the edit on the new text, open a fresh lease. Never force, never retry the same body.",
  "chain": "https://miscsubjects.com/api/coding-law/leases",
  "head": "https://miscsubjects.com/api/coding-law/head?path=functions/x.js — the newest committed hash for one path",
  "scope": [
    "functions/",
    "scripts/",
    "migrations/",
    "workers/",
    "apps-script/",
    "public/",
    ".claude/skills/",
    ".agents/skills/",
    "schema.sql",
    "wrangler.toml"
  ],
  "obligation": "scripts/check-coding-law.mjs runs in the pre phase of every deploy. A changed code file with no committed lease matching its current contents fails the ship.",
  "the_law": "https://miscsubjects.com/a/coding-law",
  "skill": "https://miscsubjects.com/api/articles/coding-law/skill"
}