{"slug":"survey-3","title":"survey","summary":"Assess a project that has no Cruxible instance or vocabulary yet, report what in it is worth holding as shared state, then set up the instance and a first small vocabulary. Use before create-state when starting without a kit.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-01T19:09:49.381556Z","repo":{"url":"https://github.com/cruxible-ai/cruxible","stars":17,"forks":2,"license":"Apache-2.0","updatedAt":"2026-12-01T11:17:19Z"},"bodyHtml":"<hr>\n<h2>name: survey\ndescription: Assess a project that has no Cruxible instance or vocabulary yet, report what in it is worth holding as shared state, then set up the instance and a first small vocabulary. Use before create-state when starting without a kit.</h2>\n<h1>Survey a project</h1>\n<blockquote>\n<p>Requires the <code>cruxible</code> CLI or MCP server (<code>uv tool install cruxible</code> or <code>pip install cruxible</code>).</p>\n</blockquote>\n<p>A survey answers two questions before anything is written:</p>\n<ol>\n<li><strong>What should later sessions read as accepted state instead of working out\nagain?</strong></li>\n<li><strong>How should that state stay aligned with reality as code, data, or external\nconditions move?</strong></li>\n</ol>\n<p>Its result is a short assessment the user can agree to or change, and only then\nan instance and a first small vocabulary (Gear 1). If <code>cruxible orient</code> already\nanswers with kinds and fields, the project has been surveyed: <code>create-state</code>\nextends what exists, and <code>automate-state</code> wires reality checks.</p>\n<p>Read the project the way a returning agent would: its notes, decision\nrecords, issue lists, configuration and the documents people consult to\nremember what was settled. Three things mark material worth holding as state:</p>\n<ul>\n<li>a conclusion that took work to reach and that later sessions would\notherwise derive again (a verdict, a ruling, a triage result, a mapping);</li>\n<li>a fact that changes, where the current value and its earlier values both\nmatter (a status, an owner, a due date);</li>\n<li>a fact other work depends on, so that a change to it should be noticed.</li>\n</ul>\n<p>Everything else stays where it is. Prose, source files and reference\nmaterial are cited as evidence or linked as governed Documents; they are not\ncopied into Claims. The <a href=\"references/copy-in.md\">copy-in rule</a>\ndecides the borderline cases. A small state that is read often is worth more\nthan a complete mirror nobody queries.</p>\n<p>The assessment names, in the project's own words:</p>\n<ul>\n<li><strong>Kinds and fields:</strong> the few kinds of thing that recur (what each one is and\nwhat identifies it across sessions) and the handful of fields per kind that\ncarry the conclusions and changing facts above.</li>\n<li><strong>Normative vs. observation:</strong> which fields are normative (decisions,\nhypotheses, baselines, acceptance criteria, or triage verdicts: human or agent\nauthority backed by cited prose and hardened through review and signed\nattestation) and which facts come from reality (test or benchmark runs,\nexperiments, APIs, scanners, telemetry, analyzers, or custom Python/ML\nmodels).</li>\n<li><strong>Keeping state aligned with reality (Gear 2 candidates):</strong> which\nobservations should eventually be fed by a Procedure and Line via\n<code>automate-state</code> (as simple or as complex as the domain needs), and which\nnormative beliefs should pin <code>based_on</code> those observations so <code>cruxible next</code>\nwakes only what reality contradicts or shifts.</li>\n<li><strong>Boundaries:</strong> the documents that stay documents, and what was left out on\npurpose.</li>\n</ul>\n<p>On pass 1, keep setup fast and safe: a value read off one of the project's own\nfiles starts as an ordinary field that cites the file line. Reserve the\nobservation-only captured evidence rule for fields a Procedure or Line actually\nkeeps current, and move a field there when that automation is added; otherwise\nmanual writes land <code>uncovered</code>. Where a published kit already models the domain\n(including automated kits such as <code>security</code> or <code>iot-fleet</code>, or <code>project-state</code>\nfor tracking the project's own roadmap, decisions, and rulings), say so:\n<code>adopt-kit</code> starts from it, and its vocabulary can be revised like any\ndefinition (<code>cruxible kit add REFERENCE</code> previews a kit without writing\nanything).</p>\n<p>Setting up follows the user's agreement. <code>cruxible init</code> attaches the project\nand installs the base kit under a single owner (<code>self_approval_allowed</code>) by\ndefault. For independent review, <code>cruxible init --require-independent-approval</code> also\ncreates a second principal, <code>reviewer</code>, with its key in the per-user config\npath (<code>--reviewer-key-dir DIR</code> to choose another, outside the repository), or\nuse <code>cruxible_init</code> with <code>reviewer_id=\"reviewer\"</code> and\n<code>require_independent_approval=true</code>: nothing its author proposed activates\nuntil the reviewer, normally a separate agent session, approves it. Which one\nis the user's choice; <code>cruxible next</code> shows what waits for whom. The first\nvocabulary goes in <code>.cruxible/vocabulary.yaml</code> (<code>cruxible vocabulary export</code>,\n<code>plan</code>, <code>apply</code>);\nthe bundled <a href=\"references/evolving-your-vocabulary.md\">vocabulary reference</a>\ngives its format and what each later change costs. Start with what the\nassessment named and no more: adding a field or a kind later costs nothing,\nwhile narrowing one means re-authoring its Claims. Each field's description\nsays what its value means; a later session reads it with <code>cruxible get ClaimType:NAME</code>, so a meaning left out of the description is lost.</p>\n<p>Then offer one opt-in seed pass, run only if the user says yes: 5-10 real,\nlinked starter Subjects from the project (existing architecture decisions, key\ninvariants, active tasks or components), each value citing the Markdown section\n(<code>SectionEvidence</code>, by heading path) or code line (<code>FileEvidence</code>,\n<code>PATH#TEXT</code> where the text occurs once in the file) it rests on, and each\nbelief that depends on another pinned with <code>based_on</code>. Use the kinds and fields\nthe vocabulary just created, through <code>cruxible python</code> and the typed <code>World</code>:</p>\n<pre><code>from typing import TYPE_CHECKING, cast\n\nfrom cruxible_client import Cruxible, FileEvidence, SectionEvidence\n\nif TYPE_CHECKING:\n    from world import World  # .cruxible/world.pyi, as `cruxible python --check` provides it\n\nwith Cruxible.connect() as cx:\n    w = cast(\"World\", cx.world())\n    db = w.app.decision.define(slug=\"primary-database\").set(\n        ruling=\"PostgreSQL 16 for concurrent writers\",\n        evidence=SectionEvidence(file=\"docs/ARCHITECTURE.md\", section=(\"Architecture\", \"Database\")),\n    )\n    pool = w.app.invariant.define(slug=\"pool-ceiling\").set(\n        statement=\"At most 20 pooled connections per worker\",\n        evidence=FileEvidence(file=\"src/db/pool.py#MAX_POOL = 20\"),\n        based_on=[db.pin(\"ruling\")],\n    )\n    print(w.write(db, pool, because=\"Seed: first cited decisions\", dry_run=True))\n</code></pre>\n<p>Check it first with <code>cruxible python --check seed.py</code> (the cast is what lets it\ncatch a kind, field or enum value the vocabulary does not have), run it with\n<code>dry_run=True</code>, then again without, or use\n<code>cruxible write FILE</code> when working shell-only. Read the result back with\n<code>cruxible get</code> and <code>cruxible orient</code>. <code>create-state</code> covers writes, evidence,\nand vocabulary changes from there; <a href=\"references/governance-flow.md\">governance</a>\ncovers proposals that wait for review. Report the assessment as agreed, the\naccepted references and coordinate, and any proposal still awaiting approval.\nThen point the user to <code>cruxible console</code> (State graph) to see their repo as\nlive state, and suggest editing one cited section or line and running\n<code>cruxible next</code>: the citation shows as <code>citation_drifted</code>, and once the belief\nit backs is revised, everything pinned <code>based_on</code> that belief wakes as\n<code>claim_dependency_stale</code>.</p>\n<p>Once the initial vocabulary is accepted, hand the reality-alignment candidates\nto <code>automate-state</code> (or an automated kit via <code>adopt-kit</code>) to wire Procedures,\nLines, and providers, and add projection pages where summaries need to stay in\nstep.</p>\n","files":[{"path":"references/copy-in.md","sizeBytes":1331,"isText":true},{"path":"references/evolving-your-vocabulary.md","sizeBytes":35007,"isText":true},{"path":"references/governance-flow.md","sizeBytes":3882,"isText":true},{"path":"SKILL.md","sizeBytes":7324,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-01T19:09:58.992763Z","sha256":"63A2B56428356F8FF95AE7004D5DFE3D19A63BEF905D3243852720D309AB07E3","sizeBytes":18537},"review":null,"source":{"repositoryUrl":"https://github.com/cruxible-ai/cruxible","path":"skills/survey","license":"Apache-2.0","commit":"351bbda6a339f1b0cc1986c0df2fdc0d90283cc1","subtreeSha":"849DCEBAD1B2302324BA2FF5AE289C02C4C8FD11006E3E7BA87188B17558EB1F","lastSyncedAt":"2026-12-01T19:09:47.821188Z"},"reviewedAt":"2026-12-01T19:10:35.153224Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/cruxible-ai/cruxible/tree/main/skills/survey"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install cruxible-ai-cruxible@llmmart"},{"target":"git","command":"git clone https://github.com/cruxible-ai/cruxible.git"}]}