[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CA0RKF8XCWPWA5KDZH8NTY":3,"skill-same:01M7CA0RKF8XCWPWA5KDZH8NTY":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7CA0RKF8XCWPWA5KDZH8NTY","propose-observation",null,"Scaffold an observation of what code does, without making a decision. Leave its claim body for human authorship.","bionic-coding\u002Fcrux","bionic-coding","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301040008?v=4","01M7C9T2NA1V1V0EF1M552HRB3","Bionic Coding","01M7C9T2P72H1AQV5T5PTBFNHN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fpropose-observation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: propose-observation\ndescription: \"Scaffold an observation of what code does, without making a decision. Leave its claim body for human authorship.\"\nmetadata:\n  tags: \"observations, scaffolding, bronze, adr-less\"\n  bundles: \"crux-docs\"\n  risk_level: \"low\"\n  requires_access: \"write-tree\"\n  triggers: \"propose observation | record an observation | new OBS | observe this | record what the code does | this is observed not decided\"\n  routing_note: \"Writes status: observed only; body is human-authored.\"\n---\n\n# Propose Observation\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n## Overview\n\nThe scaffolding operation for an **observation** — a record of what the code already does, written by a human who read the code (see `docs\u002FAGENTS.md` §17). An observation describes; it does not decide. This is the **reconstructed on-ramp**: the human read the code and wants the fact recorded. The mined on-ramp is `transition-decision ratify --as observation`, which writes the same record shape from a `recover-decisions` candidate.\n\nEach call: allocates the next zero-padded `OBS-NNNN` from `docs\u002Fmanifest.yml`, computes the record's `anchor_id`, drops a templated file under `docs\u002Fobservations\u002F` with `status: observed` and `provenance: reconstructed`, adds the concern index row, bumps the `docs\u002Findex.md` rollup count, and logs the operation. The human writes the body — this skill provides the scaffolding only.\n\nThree principles:\n\n- **Numbers are precious and forever.** Once `observation.next_number` increments, that number belongs to this record — even if the user later deletes the file. Never reuse. Never decrement.\n- **This skill writes exactly one status: `observed`.** It cannot write `ratified`, `rejected`, `retired`, or `decided`. `transition-observation` is the only single-record route to those states, and the batch sign-off (`survey-signoff`) is the only batch route. Both are human-invoked.\n- **Scaffold, don't author.** The body is the human's account of what the code does and where the evidence is. A pre-filled body is wrong-but-shipped content.\n\n## When to use\n\n- User says: \"propose observation\", \"record an observation\", \"new OBS\", \"observe this\", \"record what the code does\", \"this is observed not decided\", \"write down that the code does X\".\n- After a human read code and learned a fact nobody decided — the common case in an inherited codebase.\n- When `propose-adr` is the wrong instrument because nobody made a decision: the code is the authority and the record describes it.\n\nDo **not** use this skill for:\n- Writing the body — the human authors it. Refuse to pre-fill the narrative.\n- Transitioning a record's status — that is `transition-observation`. Do NOT hand-edit the lifecycle frontmatter.\n- Recording a decision — that is `propose-adr`. An observation that later earns an ADR moves to `decided` through `transition-observation decide`, with `decided_by` naming the ADR.\n- Recording a candidate the miner found — that is `transition-decision ratify --as observation`, the mined on-ramp. Both ramps are human-invoked; no scan writes an observation file in any state.\n- Prescribing what must be true — that is an invariant (`recover-invariants` \u002F `transition-invariant`).\n\n## Inputs\n\n- `--title \"\u003Cdeclarative statement>\"` — required. Declarative present tense, stating what the code does, e.g. \"The summaries projection hashes governs blocks directly\". If omitted, prompt the user; confirm before allocation.\n- `--evidence \u003Ccomma-list>` — required. One or more repo-relative `path:line-range` references, e.g. `src\u002Fauth\u002Fsession.py:40-72`. Each path must resolve on disk. Never a code excerpt.\n- `--anchor-kind \u003Ckind>` and `--anchor \u003Ccanonical-anchor>` — required. The structural anchor the record binds to: the kind names the anchor's class and the canonical anchor names it fully qualified, the same form the miner uses. The pair yields the record's `anchor_id` (pipeline §3).\n- `--governs-domain \u003Cdomain>` and `--governs-rule \"\u003Crule>\"` — required. The domain and the one-sentence rule the record's `governs` entry carries. `--governs-scope \"\u003Cscope>\"` — optional; defaults to the evidence paths.\n- `--tags \u003Ccomma-list>` — optional.\n- `--related-invariants \u003Ccomma-list>` — optional. `INV-NNNN` ids. Default empty.\n\n## The pipeline\n\nExecute in order. Never reorder, never skip. Number allocation must be atomic.\n\n### 0. Resolve per-repo configuration\n\nRun `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` (compat: `crux-config.py`) from the repo root, or pass `--repo-root \u003Crepo-root>`. Confirm the returned `repo_root` is the repo you are operating in. On exit 1, **STOP** and surface the `{\"error\": ...}` payload — never fall back to defaults. Use the returned `docs_dir` wherever this skill says `docs\u002F` (per the `docs\u002FAGENTS.md` §14 normative definition clause). When `artifact_prefix` is non-empty, the prefixed string (e.g. `CRX-OBS-NNNN`) **IS** `${ID}` for every subsequent step — the filename, the frontmatter `id:`, the index row, wiki-links, and the operations log subject all carry it verbatim (§14.3); only the `NNNN` allocation is prefix-blind.\n\n### 1. Read `docs\u002Fmanifest.yml`\n\n- Verify the file exists. If not, **STOP** — `init-docs` was never run.\n- Verify `observations` is in `concerns_enabled`. If not, **STOP** and tell the user how to enable the additive concern by editing a current schema-5 manifest and creating its documented surfaces, or by running `init-docs` on a new tree. The concern needs no `schema_version` bump; `audit-docs --migrate` does not add it.\n- Parse YAML. Read `observation.next_number` (an integer ≥ 1).\n- Hold this value as `${N}` for the duration of this run.\n\n### 2. Compute the id, slug, and path\n\n- `${ID}` = `OBS-` + zero-padded 4-digit `${N}` (e.g. `${N}`=7 → `OBS-0007`), prefixed per §0.\n- `${SLUG}` = kebab-case of `${title}`, ASCII only, truncated to 50 chars. Trim trailing hyphens after truncation (`docs\u002FAGENTS.md` §9).\n- **The slug grammar is the two grammars intersected: `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`.** The value is the filename stem AND the slug half of the `governs` handle, so it must satisfy both — a lowercase letter, then lowercase letters, digits and single hyphens. A title opening with a number kebab-cases to a digit-led slug such as `3-way-merge`: the filename grammar admits it, the handle anchor refuses it, and the summaries projection then fails closed for the whole tree. If the derived slug is empty or digit-led, **STOP** and ask the user for one this grammar admits. Never repair it silently.\n- `${FILE}` = `docs\u002Fobservations\u002F${ID}-${SLUG}.md`.\n- **Collision scan:** glob `docs\u002Fobservations\u002F*.md` and match each filename against the dual-form regex `([A-Z][A-Z0-9]{1,9}-)?OBS-(\\d{4})`. Take the max over the digits capture across bare and prefixed spellings. If that max is ≥ `${N}`, **STOP** with a BROKEN error — the manifest counter is desynced from the directory. Tell the user to run `audit-docs` to reconcile.\n- **Slug collision check (different number, same slug): STOP.** The slug half of every live handle is unique across the whole resolver, and a retired slug is never reused either, because a citation of it must keep resolving to the rules that displaced it. Read `docs\u002Fadrs\u002Fsummaries\u002Fresolver.json` and refuse when `${SLUG}` is a key of its `slugs` map or of its `retired_slugs` map; when that file does not exist, read the `governs` handles under `docs\u002Fobservations\u002F*.md` and `docs\u002Fadrs\u002F*.md` directly. Name the holder and ask the user for a different slug. Proceeding writes a second live handle on a taken slug, and the projection then refuses to render for every record in the tree — `summarize-adrs` and `compile-doctrine` both stop, not this record alone. The batch sign-off refuses on the same conditions (`docs\u002FAGENTS.md` §17.5), and the single-record ramp is not the lenient one.\n\n### 3. Compute the `anchor_id`\n\nEvery observation carries an `anchor_id`, the reconstructed ramp included — it is what lets a re-mine recognize a fact already recorded and propose no duplicate candidate. The human names the anchor; the id hashes under the same function the mined ramp uses. Run from the plugin's `scripts\u002F` directory:\n\n```\ncd \"${CRUX_PLUGIN_ROOT}\u002Fscripts\" && CRUX_ANCHOR_KIND=\"${ANCHOR_KIND}\" CRUX_ANCHOR=\"${ANCHOR}\" python3 -c 'import os; from crux.arch.recover import candidate_id; print(candidate_id(os.environ[\"CRUX_ANCHOR_KIND\"], os.environ[\"CRUX_ANCHOR\"]))'\n```\n\n**The anchor text reaches this command through the environment, never through the program string, and that is not a style choice.** `${ANCHOR}` is repo-derived for the `api-contract`, `system-of-record`, and `cross-cutting-policy` kinds — it is scanned content, not something the human typed. Substituted into a `python3 -c` program it is executable code: a crafted anchor closes the quote, runs anything under your permissions, and still prints a plausible 16-hex id, so the run looks ordinary. That single substitution voids the entire writer boundary, because every control in §17.2 is prose you follow and injected code writes `status: ratified` straight into a record. Passed through the environment the same text is inert data. `crux\u002Fscripts\u002Ftests\u002Ftest_skill_prose_safety.py` fails any `SKILL.md` that interpolates a shell placeholder into an inline program string.\n\nHold the printed value as `${ANCHOR_ID}`. **Duplicate check:** the uniqueness rule and the `anchor_id` shape are stated in `docs\u002FAGENTS.md` §17.2\u002F§17.3 (CHK-OBS-ANCHOR) and checked by `check_observations.py`; read them there rather than from memory. Apply the rule here before writing: if any record under `docs\u002Fobservations\u002F` already carries this `anchor_id` in `observed` or `ratified`, **STOP** and name it — the fact is already recorded. A changed claim on the same anchor is a successor record, and the human ratifies the successor and retires its predecessor through `transition-observation`; it is never an edit of the existing record.\n\n### 4. Read the observation template\n\n- Read `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FOBS-template.md`. The template carries the full frontmatter shape — substitute into it; do not re-author the field list from memory.\n- **The canonical frontmatter contract — which fields exist, their types, and required\u002Foptional — lives in the tree's operational schema, `docs\u002FAGENTS.md` §17.1 \"Canonical observation frontmatter schema\"** (the single source of truth). This skill does NOT restate the field list (it would drift); read §17.1. The three constraints §17.1 places on the `governs` entries — provenance agreement, the id-namespaced handle, and the unused `anchor` sub-field — are enforced there; apply them by reading them, not from memory.\n- Substitute the values for the new record: `id` → `${ID}`, `title` → `${title}`, `status` → `observed`, `provenance` → `reconstructed`, `anchor_id` → `${ANCHOR_ID}`, `evidence` → the passed references, the `governs` entry from the passed domain\u002Frule\u002Fscope with its handle namespaced as `${ID}\u002F\u003Crule-slug>`, `date` and the first-written date → `${TODAY}`, and the passed tags and related invariants (default `[]`). Every lifecycle date that §17.1 marks as set on a later transition is `null`; `decided_by` is `null`. For the exact field set, defer to §17.1 and the template — they are authoritative.\n- Substitute the body heading `# OBS-NNNN — \u003CTitle>` → `# ${ID} — ${title}`.\n- Leave the body sections with their stub content from the template. The human fills them in. The body carries no code excerpt; a `path:line-range` in `evidence` is the pointer.\n\n### 5. Write the file\n\n- Write to `${FILE}` exactly the substituted template.\n- If the write fails, **STOP** — do not increment the counter. The number stays unallocated.\n\n### 6. Increment `observation.next_number` atomically\n\n- Re-read `docs\u002Fmanifest.yml` to confirm `observation.next_number` is still `${N}`. If it changed, another invocation raced us — STOP and tell the user to retry.\n- Set `observation.next_number = ${N} + 1`.\n- Write `manifest.yml` back. Preserve all other keys and formatting.\n\nStep 10 commits the counter bump with the record file it allocated, and only then runs the regenerators.\n\n### 7. Add the row to `docs\u002Fobservations\u002Findex.md`\n\n- Insert the record's row at the top of the table body (newest first), in the column order the index header carries. The index **visibly marks** the status: an `observed` record is survey debt and must be legible as such, never hidden.\n- If the index does not exist yet (first record), create it carrying the same header `init-docs` seeds — `| id | status | provenance | domain | evidence | anchor_id | related invariants |` — and one row. One header, seeded in one place and extended here; a second spelling would make the concern index unreadable across trees.\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 8. Update the `docs\u002Findex.md` rollup\n\n- Bump the count: `## Observations (N)` where `N` is the number of files matching `OBS-*.md` under `docs\u002Fobservations\u002F` (count files, not the index).\n- If no `## Observations` section exists yet, create it after the `## Invariants` section when one exists, else after `## Briefs` (see `docs\u002FAGENTS.md` §5).\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 9. Record the `observation` operation\n\nWrite the entry through the log writer (`docs\u002FAGENTS.md` §6),[^log-writer] using the `observation` op from the §6 canonical enum. Write the body below to a file outside the tree, then run:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op observation --subject '${ID}: created (observed)' --date ${TODAY} --body-file \u003Cpath>\n```\n\nThe entry it writes at the top of the current month's detail file `docs\u002Flog\u002FYYYY-MM.md`:\n\n```\n## [${TODAY}] observation | ${ID}: created (observed)\n```\n\nBody, 1–2 lines: the title, the file path, `provenance: reconstructed`, the `anchor_id`. Note the body is human-authored next.\n\nA refused append keeps this skill's other writes and adds no entry: fix the cause it names, then rerun the append alone (§6). Step 10 runs the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\n### 10. Commit, then regenerate the projections\n\nWhile a tester's window is open, commit nothing and run no regenerator. The window runs from the tester's dispatch until the tester returns; outside a run there is none.\n\nCommit this skill's own writes first: the record file, `manifest.yml`, `observations\u002Findex.md`, and `docs\u002Findex.md`, plus the append result's `commit_paths`, after `git restore --staged --quiet` on its `restore_paths` when that list is not empty (the commit step of §6). Run that step whatever the append's status, because a refused append can still have repaired the operations log. Never commit the counter bump without the file it allocated. Stage only these paths (`git add -- \u003Cpaths>`) and commit only them (`git commit -- \u003Cpaths>`), so no change already staged is included. If a regenerator still exits 2 with `migration-input-not-committed`, another uncommitted input is in the tree: stop and name it; never commit a file this skill did not write.\n\nThen regenerate the summaries projection, then the doctrine projection, because the new record and the bump change their input hash. The commit comes first because, in a tree whose projections declare migration inputs, a regenerator refuses an uncommitted input with exit 2 (`migration-input-not-committed`).\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fsummarize-adrs.py\" --repo-root \u003Crepo-root>\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcompile-doctrine.py\" --repo-root \u003Crepo-root>\n```\n\nConfirm `--dry-run` of each exits 0, then commit the regenerated projections so none stays uncommitted.\n\n### 11. Hand off to the user\n\n- Tell the user: observation id assigned, file path, status `observed`, `anchor_id`.\n- Explicitly instruct: the body is yours to write — what the code does, where the evidence is, and why this is observed rather than decided. Do NOT change the frontmatter.\n- Name `transition-observation` as the only single-record route out of `observed`: `ratify` when the record describes the code, `reject` when it does not. Name `survey-signoff` as the only batch route, for a human signing off many records under one receipt. A ratified record's claim is immutable from then on.\n\n## Verification checklist\n\n- [ ] `docs\u002Fobservations\u002F${ID}-${SLUG}.md` exists.\n- [ ] Frontmatter parses as YAML and its keyset matches the template's, which matches `docs\u002FAGENTS.md` §17.1.\n- [ ] `id:` matches the filename's `${ID}`.\n- [ ] `status: observed` and `provenance: reconstructed` — no other status was written.\n- [ ] `anchor_id` equals the value `candidate_id` printed in §3, and no other non-terminal record carries it.\n- [ ] Every `evidence` entry is a `path:line-range` whose path resolves; none is a code excerpt.\n- [ ] The `governs` entry's `provenance` equals the record's, and its handle is namespaced by `${ID}`.\n- [ ] `${SLUG}` matches `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$` and is a key of neither the `slugs` map nor the `retired_slugs` map in `docs\u002Fadrs\u002Fsummaries\u002Fresolver.json`.\n- [ ] The body is the template stub — NOT pre-filled narrative.\n- [ ] `docs\u002Fmanifest.yml` `observation.next_number` is `${N} + 1`.\n- [ ] `docs\u002Fobservations\u002Findex.md` has the row at the top, visibly marked `observed`.\n- [ ] `docs\u002Findex.md` `## Observations (N)` count matches the actual file count; `_Last updated:_` is `${TODAY}`.\n- [ ] The current month's detail file `docs\u002Flog\u002FYYYY-MM.md` has a new `## [${TODAY}] observation | ${ID}:` entry at the top, written by `operation-log.py append`.\n- [ ] The record, the counter bump and the index, docs-index and log writes are committed before any regenerator runs; `summarize-adrs.py --dry-run` and `compile-doctrine.py --dry-run` exit 0 afterwards, and the regenerated projections are committed.\n- [ ] No ADR was created or modified, and no existing observation was touched.\n\n## Red flags — STOP and reconsider\n\n- About to write the file before incrementing `observation.next_number`. Order matters: write first (so a failed write does not burn a number), then increment.\n- About to allocate a number the collision scan already found on disk. The manifest is out of sync with reality; refuse and tell the user to audit.\n- About to write `status: ratified` because the user said \"this is definitely true\". This skill writes `observed` only. Ratification is a separate human act through `transition-observation`, and a scan or a scaffold that ratifies is the failure the writer boundary exists to prevent.\n- About to proceed past a slug another record already holds because the number differs. The slug half of a handle is unique across the whole resolver, retired slugs included. A second live handle on one slug fails the summaries projection closed for every record in the tree, so `summarize-adrs` and `compile-doctrine` refuse to regenerate anything. Refuse and take a different slug.\n- About to publish a digit-led slug because the filename reads fine. `OBS-0007-3-way-merge.md` is a legal filename and `OBS-0007\u002F3-way-merge` is not a legal handle; the projection fails closed for the whole tree on the handle. Ask for a slug that starts with a lowercase letter.\n- About to omit `anchor_id` because \"this record was not mined\". Every record carries one. Without it a re-mine cannot recognize the fact and proposes a duplicate.\n- About to paste a code excerpt into `evidence` or the body. Evidence is a `path:line-range`, and the body carries no excerpt either.\n- About to edit an existing record whose `anchor_id` matches. A changed claim is a successor record; the existing one is retired through the gate, never rewritten.\n- About to list the frontmatter fields from memory because the template is missing. Refuse; tell the user to reinstall the plugin. §17.1 is the contract and the template carries it.\n- About to use the `adr`, `invariant`, or `journal` op for the log entry. Scaffolding an observation is an `observation` op.\n- About to substitute `${ANCHOR}` (or any other repo-derived value) into a `python3 -c` program string because it reads more simply. That is arbitrary code execution from scanned repository content, and the run still prints a plausible id, so nothing looks wrong. Pass the value through the environment or `argv`. Step 3 carries the only correct spelling.\n\n## Rationalization table\n\n| Excuse | Reality |\n|--------|---------|\n| \"The user read the code and is sure — I'll write it ratified to save a step.\" | This skill writes `observed` and nothing else. `ratified` is reachable only by an explicit, per-record human transition. That is the safety property. |\n| \"This wasn't mined, so `anchor_id` doesn't apply.\" | Every record carries an `anchor_id`, reconstructed ones included. The human names the anchor and it hashes under the miner's function, so one identity spans both on-ramps. |\n| \"Another record has this slug, but the number is different, so the file is unique.\" | The filename is unique and the handle is not. The slug half of every live handle is unique across the resolver, and a retired slug stays reserved for the rules that displaced it. Two live handles on one slug fail the summaries projection closed for the whole tree. |\n| \"An observation was deleted last week — I'll reuse its number.\" | Numbers are never reused. Allocate the next from `manifest.yml`, full stop. |\n| \"I'll fill in the body from what the user told me.\" | The body is the human's account. Provide the scaffolding; let them write. |\n| \"This is really a decision — I'll write it as an observation anyway to skip the ADR.\" | An observation describes; an ADR decides. If the human decided it, `propose-adr`. If the human wants the observation to become a decision later, `transition-observation decide` links the two. |\n| \"The evidence is a one-line function — I'll quote it, it's clearer.\" | Never a code excerpt. A `path:line-range` is the pointer; the code is the authority and stays where it is. |\n| \"I'll skip the index row and the rollup — it's bookkeeping.\" | The index visibly carries survey debt, and `audit-docs` reads the rollup count. Update on every write. |\n\n## Common mistakes\n\n- **Off-by-one on `observation.next_number`**: after `OBS-0007` is written, the manifest stores `8`. Increment after allocation.\n- **Reading `manifest.yml` once and writing back stale**: re-read immediately before the increment write to catch races.\n- **Scanning only the bare `OBS-NNNN` filenames** in a prefixed tree: the dual-form regex covers both spellings; take the max across them.\n- **Setting `provenance: recovered`** on this ramp: the human reconstructed the fact from reading; `recovered` is the mined ramp's value.\n- **Setting a transition date on first write**: only `date` and the first-written date are `${TODAY}`; every other lifecycle date is `null` until its transition.\n- **Slug ending in a hyphen** after truncation — trim it.\n- **Updating the `docs\u002Findex.md` count by incrementing the prior number**: count the actual files.\n\n## See also\n\n- `transition-observation` — the human gate; the only single-record route to `ratified`, `rejected`, `retired`, or `decided`.\n- `survey-signoff` — the human gate over a batch; the only batch route to those same states.\n- `transition-decision` — the mined on-ramp (`ratify --as observation`) that writes the same record shape from a `recover-decisions` candidate.\n- `recover-decisions` — the miner whose `anchor_id` function this skill reuses.\n- `propose-adr` — the decision artifact; an observation that earns one moves to `decided`.\n- `audit-docs` — the CHK-OBS rules (`docs\u002FAGENTS.md` §17.3) that read what this skill writes.\n- `docs\u002FAGENTS.md` §17 — the observations-concern contract (§17.1 frontmatter schema, §17.2 lifecycle and writer boundary, §17.3 audit rules).\n- The observation-record decision this implements (see the ADR log).\n- Template: `crux\u002Ftemplates\u002FOBS-template.md`.\n\n[^log-writer]: rule:log-entries-go-through-the-log-writer, rule:no-writer-writes-the-legacy-log-file\n","# Propose Observation\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n## Overview\n\nThe scaffolding operation for an **observation** — a record of what the code already does, written by a human who read the code (see `docs\u002FAGENTS.md` §17). An observation describes; it does not decide. This is the **reconstructed on-ramp**: the human read the code and wants the fact recorded. The mined on-ramp is `transition-decision ratify --as observation`, which writes the same record shape from a `recover-decisions` candidate.\n\nEach call: allocates the next zero-padded `OBS-NNNN` from `docs\u002Fmanifest.yml`, computes the record's `anchor_id`, drops a templated file under `docs\u002Fobservations\u002F` with `status: observed` and `provenance: reconstructed`, adds the concern index row, bumps the `docs\u002Findex.md` rollup count, and logs the operation. The human writes the body — this skill provides the scaffolding only.\n\nThree principles:\n\n- **Numbers are precious and forever.** Once `observation.next_number` increments, that number belongs to this record — even if the user later deletes the file. Never reuse. Never decrement.\n- **This skill writes exactly one status: `observed`.** It cannot write `ratified`, `rejected`, `retired`, or `decided`. `transition-observation` is the only single-record route to those states, and the batch sign-off (`survey-signoff`) is the only batch route. Both are human-invoked.\n- **Scaffold, don't author.** The body is the human's account of what the code does and where the evidence is. A pre-filled body is wrong-but-shipped content.\n\n## When to use\n\n- User says: \"propose observation\", \"record an observation\", \"new OBS\", \"observe this\", \"record what the code does\", \"this is observed not decided\", \"write down that the code does X\".\n- After a human read code and learned a fact nobody decided — the common case in an inherited codebase.\n- When `propose-adr` is the wrong instrument because nobody made a decision: the code is the authority and the record describes it.\n\nDo **not** use this skill for:\n- Writing the body — the human authors it. Refuse to pre-fill the narrative.\n- Transitioning a record's status — that is `transition-observation`. Do NOT hand-edit the lifecycle frontmatter.\n- Recording a decision — that is `propose-adr`. An observation that later earns an ADR moves to `decided` through `transition-observation decide`, with `decided_by` naming the ADR.\n- Recording a candidate the miner found — that is `transition-decision ratify --as observation`, the mined on-ramp. Both ramps are human-invoked; no scan writes an observation file in any state.\n- Prescribing what must be true — that is an invariant (`recover-invariants` \u002F `transition-invariant`).\n\n## Inputs\n\n- `--title \"\u003Cdeclarative statement>\"` — required. Declarative present tense, stating what the code does, e.g. \"The summaries projection hashes governs blocks directly\". If omitted, prompt the user; confirm before allocation.\n- `--evidence \u003Ccomma-list>` — required. One or more repo-relative `path:line-range` references, e.g. `src\u002Fauth\u002Fsession.py:40-72`. Each path must resolve on disk. Never a code excerpt.\n- `--anchor-kind \u003Ckind>` and `--anchor \u003Ccanonical-anchor>` — required. The structural anchor the record binds to: the kind names the anchor's class and the canonical anchor names it fully qualified, the same form the miner uses. The pair yields the record's `anchor_id` (pipeline §3).\n- `--governs-domain \u003Cdomain>` and `--governs-rule \"\u003Crule>\"` — required. The domain and the one-sentence rule the record's `governs` entry carries. `--governs-scope \"\u003Cscope>\"` — optional; defaults to the evidence paths.\n- `--tags \u003Ccomma-list>` — optional.\n- `--related-invariants \u003Ccomma-list>` — optional. `INV-NNNN` ids. Default empty.\n\n## The pipeline\n\nExecute in order. Never reorder, never skip. Number allocation must be atomic.\n\n### 0. Resolve per-repo configuration\n\nRun `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` (compat: `crux-config.py`) from the repo root, or pass `--repo-root \u003Crepo-root>`. Confirm the returned `repo_root` is the repo you are operating in. On exit 1, **STOP** and surface the `{\"error\": ...}` payload — never fall back to defaults. Use the returned `docs_dir` wherever this skill says `docs\u002F` (per the `docs\u002FAGENTS.md` §14 normative definition clause). When `artifact_prefix` is non-empty, the prefixed string (e.g. `CRX-OBS-NNNN`) **IS** `${ID}` for every subsequent step — the filename, the frontmatter `id:`, the index row, wiki-links, and the operations log subject all carry it verbatim (§14.3); only the `NNNN` allocation is prefix-blind.\n\n### 1. Read `docs\u002Fmanifest.yml`\n\n- Verify the file exists. If not, **STOP** — `init-docs` was never run.\n- Verify `observations` is in `concerns_enabled`. If not, **STOP** and tell the user how to enable the additive concern by editing a current schema-5 manifest and creating its documented surfaces, or by running `init-docs` on a new tree. The concern needs no `schema_version` bump; `audit-docs --migrate` does not add it.\n- Parse YAML. Read `observation.next_number` (an integer ≥ 1).\n- Hold this value as `${N}` for the duration of this run.\n\n### 2. Compute the id, slug, and path\n\n- `${ID}` = `OBS-` + zero-padded 4-digit `${N}` (e.g. `${N}`=7 → `OBS-0007`), prefixed per §0.\n- `${SLUG}` = kebab-case of `${title}`, ASCII only, truncated to 50 chars. Trim trailing hyphens after truncation (`docs\u002FAGENTS.md` §9).\n- **The slug grammar is the two grammars intersected: `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`.** The value is the filename stem AND the slug half of the `governs` handle, so it must satisfy both — a lowercase letter, then lowercase letters, digits and single hyphens. A title opening with a number kebab-cases to a digit-led slug such as `3-way-merge`: the filename grammar admits it, the handle anchor refuses it, and the summaries projection then fails closed for the whole tree. If the derived slug is empty or digit-led, **STOP** and ask the user for one this grammar admits. Never repair it silently.\n- `${FILE}` = `docs\u002Fobservations\u002F${ID}-${SLUG}.md`.\n- **Collision scan:** glob `docs\u002Fobservations\u002F*.md` and match each filename against the dual-form regex `([A-Z][A-Z0-9]{1,9}-)?OBS-(\\d{4})`. Take the max over the digits capture across bare and prefixed spellings. If that max is ≥ `${N}`, **STOP** with a BROKEN error — the manifest counter is desynced from the directory. Tell the user to run `audit-docs` to reconcile.\n- **Slug collision check (different number, same slug): STOP.** The slug half of every live handle is unique across the whole resolver, and a retired slug is never reused either, because a citation of it must keep resolving to the rules that displaced it. Read `docs\u002Fadrs\u002Fsummaries\u002Fresolver.json` and refuse when `${SLUG}` is a key of its `slugs` map or of its `retired_slugs` map; when that file does not exist, read the `governs` handles under `docs\u002Fobservations\u002F*.md` and `docs\u002Fadrs\u002F*.md` directly. Name the holder and ask the user for a different slug. Proceeding writes a second live handle on a taken slug, and the projection then refuses to render for every record in the tree — `summarize-adrs` and `compile-doctrine` both stop, not this record alone. The batch sign-off refuses on the same conditions (`docs\u002FAGENTS.md` §17.5), and the single-record ramp is not the lenient one.\n\n### 3. Compute the `anchor_id`\n\nEvery observation carries an `anchor_id`, the reconstructed ramp included — it is what lets a re-mine recognize a fact already recorded and propose no duplicate candidate. The human names the anchor; the id hashes under the same function the mined ramp uses. Run from the plugin's `scripts\u002F` directory:\n\n```\ncd \"${CRUX_PLUGIN_ROOT}\u002Fscripts\" && CRUX_ANCHOR_KIND=\"${ANCHOR_KIND}\" CRUX_ANCHOR=\"${ANCHOR}\" python3 -c 'import os; from crux.arch.recover import candidate_id; print(candidate_id(os.environ[\"CRUX_ANCHOR_KIND\"], os.environ[\"CRUX_ANCHOR\"]))'\n```\n\n**The anchor text reaches this command through the environment, never through the program string, and that is not a style choice.** `${ANCHOR}` is repo-derived for the `api-contract`, `system-of-record`, and `cross-cutting-policy` kinds — it is scanned content, not something the human typed. Substituted into a `python3 -c` program it is executable code: a crafted anchor closes the quote, runs anything under your permissions, and still prints a plausible 16-hex id, so the run looks ordinary. That single substitution voids the entire writer boundary, because every control in §17.2 is prose you follow and injected code writes `status: ratified` straight into a record. Passed through the environment the same text is inert data. `crux\u002Fscripts\u002Ftests\u002Ftest_skill_prose_safety.py` fails any `SKILL.md` that interpolates a shell placeholder into an inline program string.\n\nHold the printed value as `${ANCHOR_ID}`. **Duplicate check:** the uniqueness rule and the `anchor_id` shape are stated in `docs\u002FAGENTS.md` §17.2\u002F§17.3 (CHK-OBS-ANCHOR) and checked by `check_observations.py`; read them there rather than from memory. Apply the rule here before writing: if any record under `docs\u002Fobservations\u002F` already carries this `anchor_id` in `observed` or `ratified`, **STOP** and name it — the fact is already recorded. A changed claim on the same anchor is a successor record, and the human ratifies the successor and retires its predecessor through `transition-observation`; it is never an edit of the existing record.\n\n### 4. Read the observation template\n\n- Read `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FOBS-template.md`. The template carries the full frontmatter shape — substitute into it; do not re-author the field list from memory.\n- **The canonical frontmatter contract — which fields exist, their types, and required\u002Foptional — lives in the tree's operational schema, `docs\u002FAGENTS.md` §17.1 \"Canonical observation frontmatter schema\"** (the single source of truth). This skill does NOT restate the field list (it would drift); read §17.1. The three constraints §17.1 places on the `governs` entries — provenance agreement, the id-namespaced handle, and the unused `anchor` sub-field — are enforced there; apply them by reading them, not from memory.\n- Substitute the values for the new record: `id` → `${ID}`, `title` → `${title}`, `status` → `observed`, `provenance` → `reconstructed`, `anchor_id` → `${ANCHOR_ID}`, `evidence` → the passed references, the `governs` entry from the passed domain\u002Frule\u002Fscope with its handle namespaced as `${ID}\u002F\u003Crule-slug>`, `date` and the first-written date → `${TODAY}`, and the passed tags and related invariants (default `[]`). Every lifecycle date that §17.1 marks as set on a later transition is `null`; `decided_by` is `null`. For the exact field set, defer to §17.1 and the template — they are authoritative.\n- Substitute the body heading `# OBS-NNNN — \u003CTitle>` → `# ${ID} — ${title}`.\n- Leave the body sections with their stub content from the template. The human fills them in. The body carries no code excerpt; a `path:line-range` in `evidence` is the pointer.\n\n### 5. Write the file\n\n- Write to `${FILE}` exactly the substituted template.\n- If the write fails, **STOP** — do not increment the counter. The number stays unallocated.\n\n### 6. Increment `observation.next_number` atomically\n\n- Re-read `docs\u002Fmanifest.yml` to confirm `observation.next_number` is still `${N}`. If it changed, another invocation raced us — STOP and tell the user to retry.\n- Set `observation.next_number = ${N} + 1`.\n- Write `manifest.yml` back. Preserve all other keys and formatting.\n\nStep 10 commits the counter bump with the record file it allocated, and only then runs the regenerators.\n\n### 7. Add the row to `docs\u002Fobservations\u002Findex.md`\n\n- Insert the record's row at the top of the table body (newest first), in the column order the index header carries. The index **visibly marks** the status: an `observed` record is survey debt and must be legible as such, never hidden.\n- If the index does not exist yet (first record), create it carrying the same header `init-docs` seeds — `| id | status | provenance | domain | evidence | anchor_id | related invariants |` — and one row. One header, seeded in one place and extended here; a second spelling would make the concern index unreadable across trees.\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 8. Update the `docs\u002Findex.md` rollup\n\n- Bump the count: `## Observations (N)` where `N` is the number of files matching `OBS-*.md` under `docs\u002Fobservations\u002F` (count files, not the index).\n- If no `## Observations` section exists yet, create it after the `## Invariants` section when one exists, else after `## Briefs` (see `docs\u002FAGENTS.md` §5).\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 9. Record the `observation` operation\n\nWrite the entry through the log writer (`docs\u002FAGENTS.md` §6),[^log-writer] using the `observation` op from the §6 canonical enum. Write the body below to a file outside the tree, then run:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op observation --subject '${ID}: created (observed)' --date ${TODAY} --body-file \u003Cpath>\n```\n\nThe entry it writes at the top of the current month's detail file `docs\u002Flog\u002FYYYY-MM.md`:\n\n```\n## [${TODAY}] observation | ${ID}: created (observed)\n```\n\nBody, 1–2 lines: the title, the file path, `provenance: reconstructed`, the `anchor_id`. Note the body is human-authored next.\n\nA refused append keeps this skill's other writes and adds no entry: fix the cause it names, then rerun the append alone (§6). Step 10 runs the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\n### 10. Commit, then regenerate the projections\n\nWhile a tester's window is open, commit nothing and run no regenerator. The window runs from the tester's dispatch until the tester returns; outside a run there is none.\n\nCommit this skill's own writes first: the record file, `manifest.yml`, `observations\u002Findex.md`, and `docs\u002Findex.md`, plus the append result's `commit_paths`, after `git restore --staged --quiet` on its `restore_paths` when that list is not empty (the commit step of §6). Run that step whatever the append's status, because a refused append can still have repaired the operations log. Never commit the counter bump without the file it allocated. Stage only these paths (`git add -- \u003Cpaths>`) and commit only them (`git commit -- \u003Cpaths>`), so no change already staged is included. If a regenerator still exits 2 with `migration-input-not-committed`, another uncommitted input is in the tree: stop and name it; never commit a file this skill did not write.\n\nThen regenerate the summaries projection, then the doctrine projection, because the new record and the bump change their input hash. The commit comes first because, in a tree whose projections declare migration inputs, a regenerator refuses an uncommitted input with exit 2 (`migration-input-not-committed`).\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fsummarize-adrs.py\" --repo-root \u003Crepo-root>\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcompile-doctrine.py\" --repo-root \u003Crepo-root>\n```\n\nConfirm `--dry-run` of each exits 0, then commit the regenerated projections so none stays uncommitted.\n\n### 11. Hand off to the user\n\n- Tell the user: observation id assigned, file path, status `observed`, `anchor_id`.\n- Explicitly instruct: the body is yours to write — what the code does, where the evidence is, and why this is observed rather than decided. Do NOT change the frontmatter.\n- Name `transition-observation` as the only single-record route out of `observed`: `ratify` when the record describes the code, `reject` when it does not. Name `survey-signoff` as the only batch route, for a human signing off many records under one receipt. A ratified record's claim is immutable from then on.\n\n## Verification checklist\n\n- [ ] `docs\u002Fobservations\u002F${ID}-${SLUG}.md` exists.\n- [ ] Frontmatter parses as YAML and its keyset matches the template's, which matches `docs\u002FAGENTS.md` §17.1.\n- [ ] `id:` matches the filename's `${ID}`.\n- [ ] `status: observed` and `provenance: reconstructed` — no other status was written.\n- [ ] `anchor_id` equals the value `candidate_id` printed in §3, and no other non-terminal record carries it.\n- [ ] Every `evidence` entry is a `path:line-range` whose path resolves; none is a code excerpt.\n- [ ] The `governs` entry's `provenance` equals the record's, and its handle is namespaced by `${ID}`.\n- [ ] `${SLUG}` matches `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$` and is a key of neither the `slugs` map nor the `retired_slugs` map in `docs\u002Fadrs\u002Fsummaries\u002Fresolver.json`.\n- [ ] The body is the template stub — NOT pre-filled narrative.\n- [ ] `docs\u002Fmanifest.yml` `observation.next_number` is `${N} + 1`.\n- [ ] `docs\u002Fobservations\u002Findex.md` has the row at the top, visibly marked `observed`.\n- [ ] `docs\u002Findex.md` `## Observations (N)` count matches the actual file count; `_Last updated:_` is `${TODAY}`.\n- [ ] The current month's detail file `docs\u002Flog\u002FYYYY-MM.md` has a new `## [${TODAY}] observation | ${ID}:` entry at the top, written by `operation-log.py append`.\n- [ ] The record, the counter bump and the index, docs-index and log writes are committed before any regenerator runs; `summarize-adrs.py --dry-run` and `compile-doctrine.py --dry-run` exit 0 afterwards, and the regenerated projections are committed.\n- [ ] No ADR was created or modified, and no existing observation was touched.\n\n## Red flags — STOP and reconsider\n\n- About to write the file before incrementing `observation.next_number`. Order matters: write first (so a failed write does not burn a number), then increment.\n- About to allocate a number the collision scan already found on disk. The manifest is out of sync with reality; refuse and tell the user to audit.\n- About to write `status: ratified` because the user said \"this is definitely true\". This skill writes `observed` only. Ratification is a separate human act through `transition-observation`, and a scan or a scaffold that ratifies is the failure the writer boundary exists to prevent.\n- About to proceed past a slug another record already holds because the number differs. The slug half of a handle is unique across the whole resolver, retired slugs included. A second live handle on one slug fails the summaries projection closed for every record in the tree, so `summarize-adrs` and `compile-doctrine` refuse to regenerate anything. Refuse and take a different slug.\n- About to publish a digit-led slug because the filename reads fine. `OBS-0007-3-way-merge.md` is a legal filename and `OBS-0007\u002F3-way-merge` is not a legal handle; the projection fails closed for the whole tree on the handle. Ask for a slug that starts with a lowercase letter.\n- About to omit `anchor_id` because \"this record was not mined\". Every record carries one. Without it a re-mine cannot recognize the fact and proposes a duplicate.\n- About to paste a code excerpt into `evidence` or the body. Evidence is a `path:line-range`, and the body carries no excerpt either.\n- About to edit an existing record whose `anchor_id` matches. A changed claim is a successor record; the existing one is retired through the gate, never rewritten.\n- About to list the frontmatter fields from memory because the template is missing. Refuse; tell the user to reinstall the plugin. §17.1 is the contract and the template carries it.\n- About to use the `adr`, `invariant`, or `journal` op for the log entry. Scaffolding an observation is an `observation` op.\n- About to substitute `${ANCHOR}` (or any other repo-derived value) into a `python3 -c` program string because it reads more simply. That is arbitrary code execution from scanned repository content, and the run still prints a plausible id, so nothing looks wrong. Pass the value through the environment or `argv`. Step 3 carries the only correct spelling.\n\n## Rationalization table\n\n| Excuse | Reality |\n|--------|---------|\n| \"The user read the code and is sure — I'll write it ratified to save a step.\" | This skill writes `observed` and nothing else. `ratified` is reachable only by an explicit, per-record human transition. That is the safety property. |\n| \"This wasn't mined, so `anchor_id` doesn't apply.\" | Every record carries an `anchor_id`, reconstructed ones included. The human names the anchor and it hashes under the miner's function, so one identity spans both on-ramps. |\n| \"Another record has this slug, but the number is different, so the file is unique.\" | The filename is unique and the handle is not. The slug half of every live handle is unique across the resolver, and a retired slug stays reserved for the rules that displaced it. Two live handles on one slug fail the summaries projection closed for the whole tree. |\n| \"An observation was deleted last week — I'll reuse its number.\" | Numbers are never reused. Allocate the next from `manifest.yml`, full stop. |\n| \"I'll fill in the body from what the user told me.\" | The body is the human's account. Provide the scaffolding; let them write. |\n| \"This is really a decision — I'll write it as an observation anyway to skip the ADR.\" | An observation describes; an ADR decides. If the human decided it, `propose-adr`. If the human wants the observation to become a decision later, `transition-observation decide` links the two. |\n| \"The evidence is a one-line function — I'll quote it, it's clearer.\" | Never a code excerpt. A `path:line-range` is the pointer; the code is the authority and stays where it is. |\n| \"I'll skip the index row and the rollup — it's bookkeeping.\" | The index visibly carries survey debt, and `audit-docs` reads the rollup count. Update on every write. |\n\n## Common mistakes\n\n- **Off-by-one on `observation.next_number`**: after `OBS-0007` is written, the manifest stores `8`. Increment after allocation.\n- **Reading `manifest.yml` once and writing back stale**: re-read immediately before the increment write to catch races.\n- **Scanning only the bare `OBS-NNNN` filenames** in a prefixed tree: the dual-form regex covers both spellings; take the max across them.\n- **Setting `provenance: recovered`** on this ramp: the human reconstructed the fact from reading; `recovered` is the mined ramp's value.\n- **Setting a transition date on first write**: only `date` and the first-written date are `${TODAY}`; every other lifecycle date is `null` until its transition.\n- **Slug ending in a hyphen** after truncation — trim it.\n- **Updating the `docs\u002Findex.md` count by incrementing the prior number**: count the actual files.\n\n## See also\n\n- `transition-observation` — the human gate; the only single-record route to `ratified`, `rejected`, `retired`, or `decided`.\n- `survey-signoff` — the human gate over a batch; the only batch route to those same states.\n- `transition-decision` — the mined on-ramp (`ratify --as observation`) that writes the same record shape from a `recover-decisions` candidate.\n- `recover-decisions` — the miner whose `anchor_id` function this skill reuses.\n- `propose-adr` — the decision artifact; an observation that earns one moves to `decided`.\n- `audit-docs` — the CHK-OBS rules (`docs\u002FAGENTS.md` §17.3) that read what this skill writes.\n- `docs\u002FAGENTS.md` §17 — the observations-concern contract (§17.1 frontmatter schema, §17.2 lifecycle and writer boundary, §17.3 audit rules).\n- The observation-record decision this implements (see the ADR log).\n- Template: `crux\u002Ftemplates\u002FOBS-template.md`.\n\n[^log-writer]: rule:log-entries-go-through-the-log-writer, rule:no-writer-writes-the-legacy-log-file\n",{"name":5,"metadata":24,"description":7},{"tags":25,"bundles":26,"triggers":27,"risk_level":28,"routing_note":29,"requires_access":30},"observations, scaffolding, bronze, adr-less","crux-docs","propose observation | record an observation | new OBS | observe this | record what the code does | this is observed not decided","low","Writes status: observed only; body is human-authored.","write-tree","main","dd4f16e7ac12ff940790660ec897677284ae4b6d","crux\u002Fskills\u002Fpropose-observation","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux","https:\u002F\u002Fbionic-coding.com\u002Fcrux\u002F","https:\u002F\u002Fgithub.com\u002Fbionic-coding","https:\u002F\u002Fbionic-coding.com","Durable intent, disposable code.","2026-11-12 09:36:33",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add bionic-coding\u002Fcrux --skill propose-observation",{"tool":46,"command":47},"bunx","bunx skills add bionic-coding\u002Fcrux --skill propose-observation",{"tool":49,"command":50},"pnpm","pnpm dlx skills add bionic-coding\u002Fcrux --skill propose-observation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fpropose-observation\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CA5PH4JT2V5WBTA5ZPJNS8","whiteboarding","Explore an idea through docs-informed dialogue before committing to a design. Capture the exploration for later filing as a brief.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fwhiteboarding\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CA5GZPSVNJJZYQMF0JT3EH","verify-code-docs","Check generated code documentation against source and report drift without regenerating it.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fverify-code-docs\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CA5A4HA73VF91N8VY6SDBN","transition-observation","Apply a human disposition to an observation's lifecycle state without changing its claim or body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-observation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CA53X1ESGWKTPCEQ55JWEZ","transition-invariant","Ratify, reject, or retire an invariant on human direction. Update lifecycle metadata without changing the invariant's body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-invariant\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CA4Y2VC25NFZE0XJZ47VSX","transition-decision","Apply a human ratify, reject, or defer verdict to a recovered decision candidate; ratification creates a Proposed ADR or observation.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-decision\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CA4QD9RFDC379VD9DNK90D","transition-brief","Publish or abandon a draft brief, updating lifecycle metadata and indexes without changing its body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-brief\u002FSKILL.md",[],[]]