{
  "_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://ops.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://ops.miscsubjects.com/api/coding-law/commit {\"lease_id\":\"lease_…\",\"files\":[{\"path\":\"functions/x.js\",\"new_sha\":\"<sha256 as you are leaving it>\"}]}",
  "the_fork": "COMMITTED_FORK names the lease that moved your file while you worked. Your commit is recorded as a fork of it, both rows stay in the chain, and you merge the bytes in git. Nothing here refuses and nothing here waits. The one refusal left is a forged base: a base_sha taken after your own edit records a version nobody ever read.",
  "chain": "https://ops.miscsubjects.com/api/coding-law/leases",
  "head": "https://ops.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",
    ".githooks/"
  ],
  "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://ops.miscsubjects.com/a/coding-law",
  "skill": "https://ops.miscsubjects.com/api/articles/coding-law/skill"
}