[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M723MDV2J67JAN8PHXM2J3Z1":3,"skill-same:01M723MDV2J67JAN8PHXM2J3Z1":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M723MDV2J67JAN8PHXM2J3Z1","context-creation",null,"Build source-backed project context through bounded inspection, optional agents, and record-level knowledge writes.","arbiterForge\u002FcodeArbiter","arbiterForge","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F292945970?v=4","01M723CJ1FZ9YBVA7XXT0NJESP","01M723CJ23SYBFFTGBA7Q63BKH",153,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fplugins\u002Fca-pi\u002Froutines\u002Fcontext-creation\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: context-creation\ndescription: Build source-backed project context through bounded inspection, optional agents, and record-level knowledge writes.\nargument-hint: (none)\n---\n\n# context-creation\n\n\u003C!-- catalog-compatibility-notice:start -->\n> Compatibility route. Prefer `\u002Fca-init --brownfield` for new usage. This installed route remains\n> functional under the command-route compatibility policy at \u003Cplugin-root>\u002Fincludes\u002Fcommand-compatibility.md;\n> continue with the unchanged brownfield workflow below.\n\u003C!-- catalog-compatibility-notice:end -->\n\nWrap an existing codebase in project state, without guessing. Routed to by `\u002Fcreate-context`, and by startup when `.codearbiter\u002FCONTEXT.md` exists but carries no `\u003C!--INITIALIZED-->` body marker and meaningful source code is present. When no meaningful source exists, this is the wrong skill — route to `decompose` instead.\n\nThis back-fills from existing source. It complements `\u002Fca-init`, which scaffolds an empty `.codearbiter\u002F` for a fresh project; here the context is derived from what is already on disk. Load `\u003Cplugin-root>\u002Fincludes\u002Fknowledge.md` for the record vocabulary and the `knowledge.py` verbs used below.\n\nAn initialized refresh is requested through `\u002Fca-status drift` and the\nexisting `context-check` owner after an explicit scoped or full selection. An\nexplicit initialized brownfield project-model request also uses the existing\n`decompose` owner for intended target, phases, and candidate work. This\ninitial-population route keeps its `\u003C!--INITIALIZED-->` lock; an initialized\nrepository never clears the marker or re-enters Phase 6 to refresh content.\n\n## Pre-flight\n\nRead these, or STOP and surface the gap — never guess project identity or a command:\n\n- `\u003Cproject-root>\u002F.codearbiter\u002FCONTEXT.md` — if it already carries `\u003C!--INITIALIZED-->`, context exists. Stop and route to normal operation.\n- `knowledge.py format`. A `markdown` scaffold is an older one: offer `knowledge.py convert` before writing. Read every returned Markdown section, add its meaning as records or notes, then map each section ID to its saved references (use `[]` only for `content=false`). Finish with `knowledge.py convert --finish \u003Ctoken> --coverage @checklist.json`. If the user keeps the Markdown format, load `\u003Cplugin-root>\u002Froutines\u002Fcontext-creation\u002Freferences\u002Fmarkdown-format.md` and follow that unchanged procedure instead of this one; never convert silently.\n- The repository root listing (one level deep) — the source surface this skill extracts from.\n\nThe excluded set (not \"meaningful source\"): `.git\u002F`, `.codearbiter\u002F`, `.claude\u002F`, `AGENTS.md`, `CLAUDE.md`, `README.md`, `LICENSE`, `.gitignore`, `.gitmodules`, and standard tooling dotfiles (`.editorconfig`, `.prettierrc`, etc.). Meaningful source MUST exist beyond it.\n\n## Resume after an interrupted initial population\n\nInventory the actual `.codearbiter\u002F` files first. If the scaffold stopped partway\nthrough, rerun `init-codearbiter.py --root \u003Cexact repository root>` only while the\nproject is uninitialized; it creates only absent files. Never clear the directory,\nreset a marker, or replace an existing task board, question board or append-only\naudit record to make a retry pass.\n\nRun `knowledge.py create-missing` and read each document's records: they are the\nprogress already saved. Every `knowledge.py` write is retry-safe — an identical\nrecord is reused and a lost response replays — so continue from what is there\ninstead of starting over. A refused write names a changed document; read it again\nbefore retrying.\n\n## Phase 1 — Pre-flight confirmation · gate: BLOCK\n\nConfirm the repository is a brownfield codebase ready for bounded source inspection:\n\n1. Confirm `\u003C!--INITIALIZED-->` is absent from `CONTEXT.md`.\n2. Confirm meaningful source code is present beyond the excluded set.\n3. Identify the primary source directories (`src\u002F`, `backend\u002F`, `frontend\u002F`, `lib\u002F`, `app\u002F`, or equivalent).\n\nState the finding to the user: existing source detected, beginning bounded source inspection.\n\nGate: `\u003C!--INITIALIZED-->` absent AND meaningful source present. If the marker is present, stop and route to normal operation. If no meaningful source exists, stop and route to `decompose`. Neither condition met → do not proceed.\n\n## Phase 2 — Bounded inspection\n\nUse direct bounded inspection or optional scoped agents, whichever reduces\nrepeated reading for this repository. Cover six logical categories for initial\nor explicitly full work; a scoped refresh inspects only the selected affected\ncategories and retains prior coverage separately. Six categories do not require\nsix agents or parallel execution. Start with paths and targeted searches, then\nread only the source needed to support the current claims. Keep actual host\npermissions, excluded paths and secret-handling rules in force. Do not run\nrepository scripts merely because a manifest declares them.\n\nWhen delegation helps, give each agent a finite path\u002Fcategory assignment,\ncurrent source identity, output limit and stopping condition. Respect the host's\nactual concurrency and tool limits. Retain failed, partial and conflicting\nreports; narrow an oversized assignment instead of truncating it or repeatedly\nrelaunching unchanged work. Direct inspection may resolve missing coverage or\ncheck a contested claim. A role label or a read-only instruction is not evidence\nof containment or independent verification. Describe the tools and boundaries\nactually observed, without claiming a trusted sandbox from an agent name.\nA separately required containment policy still applies to its own scope; a\nrepository-only profile fixture does not impose that policy on ordinary work.\n\nThe categories are:\n\n- **A — Tech stack.** Read `package.json`, lockfiles, `pyproject.toml`, `requirements.txt`, `go.mod`, `Cargo.toml`, `*.gemspec`, `Gemfile`. Report languages, runtime versions, frameworks, key dependencies, the dependency manager, license fields. Additionally report, at the repository root only: which of `package.json` \u002F `pyproject.toml` \u002F `Cargo.toml` \u002F `composer.json` carry a version field (candidate release manifests), which of `CHANGELOG.md` \u002F `CHANGES.md` \u002F `HISTORY.md` are present (candidate changelogs), and any existing tag naming convention visible in the repo (e.g. a `v*` tag) — the inputs Phase 3\u002F5 use to draft `.codearbiter\u002Frelease-targets.md`.\n- **B — Infrastructure.** Read CI\u002FCD config (`.github\u002Fworkflows\u002F`, `.gitlab-ci.yml`, `Jenkinsfile`, `.circleci\u002Fconfig.yml`), `Dockerfile*`, `docker-compose*.yml`, `Makefile`, `*.tf`, IaC. Report CI\u002FCD platform, build\u002Ftest\u002Flint commands, deployment targets, environment names, containerization, IaC tool.\n- **C — Architecture.** Read the source tree (names and structure only), entry points (`main.ts`, `index.ts`, `app.py`, `server.go`), and imports in entry points only. Report component list, entry points, module boundaries, architectural pattern, public interfaces.\n- **D — Security posture.** Read auth files (`auth*`, `middleware*`, `guard*`, `jwt*`, `session*`, `oauth*`), crypto import lines, secret-loading sites (`process.env`, `os.environ`, vault\u002FKMS call sites — paths and line numbers only, never values), `.env.example` (never `.env`). Report auth mechanism, crypto libraries, secret-loading patterns (paths + lines, no values), vault\u002FKMS integration, hardcoded-secret risk files (paths only).\n- **E — Testing.** Read test files and test config (`vitest.config.*`, `jest.config.*`, `pytest.ini`, Makefile test flags), coverage config. Report test framework, runner command, coverage tool, coverage thresholds in config, naming convention, approximate test count by type, fixtures.\n- **F — Data model.** Read migration files (`migrations\u002F`, `drizzle\u002F`, `alembic\u002F`, `db\u002Fmigrate\u002F`), schema definitions (`schema.ts`, `*.prisma`, `*.sql`, `models\u002F`), ORM config, DB connection config (keys only, never credentials). Report database type, ORM\u002Fquery builder, entity names, migration tool, approximate entity count, multi-tenancy patterns.\n\nKeep a source-bound evidence inventory: each claim tied to its category,\nsearched scope, path and line, and whether it was observed, inferred or unknown.\nA record's `source_refs` and the document baseline commit bind it to the source\nas it was; like any source hash binds bytes, that does not verify a claim's\nmeaning. Never forward secret values. Negative findings state where and how the search ran, not universal\nabsence.\n\n`_contextreportlib.admit_scout_attempt` and `join_scout_reports` remain useful\nfor bounded structured agent reports when that transport is used. They validate\nreport shape and declared coverage, not permission, containment or semantic\ntruth. A scoped join has `full_coverage: false`; do not relabel it as a full\nscan. Plain evidence from direct inspection needs the same truthful scope,\nwithout a synthetic scout envelope or delivery ticket.\n\nProceed with supported claims and explicit gaps. A full run accounts for all\nsix logical categories, including justified inapplicability and named unknowns;\nfailed or missing work never counts as inspected coverage. Recheck changed\nsources before a dependent write. Independent work can continue while a\nmaterial unresolved fact or actual decision is addressed.\n\n## Phase 3 — Synthesis · gate: BLOCK\n\nTurn the evidence into source-bound records across the five content documents.\nFor initial or explicitly full onboarding, account for all six logical domains; a\nscoped refresh changes only its declared affected domains and makes no new full-coverage claim. Map source to destination:\n\n| Evidence category | Destination document and record types |\n|---|---|\n| Stack, infrastructure, tests | `tech-stack`: `fact`, `dependency`, `command` |\n| Architecture, source ownership | `code-map`: `component`, `interface`; `coding-standards`: `convention` |\n| Security boundaries | `security-controls`: `constraint`, `observation` |\n| Stack\u002Frelease candidates | `.codearbiter\u002Frelease-targets.md` when supported |\n| All applicable domains | `project`: `identity`, `goal`, `scope`, `exclusion` |\n\nGive each record its actual `basis`. A record read from the repository is\n`source-observed` and cites its source in `source_refs` (add the file to the\ndocument's sources). Mark reasoned conclusions `inferred`. Scope a record to the\npaths it governs in `scope.paths`, so a task touching those paths receives it;\nleave repository-wide records unscoped. For each retained record, name its\npurpose, owning source and actual consumer (or a specific retention reason).\nKeep observed, inferred, proposed and approved content separate through `basis`;\nnothing a record says is approved unless the user decided it. Commands are\n`command` records with\ntheir real `cwd`, `run_state: unrun`, and the purpose (`test`, `lint`,\n`typecheck`, `build`, `format`, `secrets-scan`, `run`, `other`):\nnever convert a package script into a passed verification. Keep unsupported fields `unknown`;\nmake no blanket security claim from absence. Confidence describes evidence\nstrength, not governance: confidence never grants normative authority. A\nwell-supported observation may back a source-bound fact, but it cannot approve a\nrule, permission, scope change or publication. Mark indirect inferences\n`inferred`, naming their signal and recheck need.\n\nPreserve existing effective local instructions at their native precedence and\nhuman ownership. Cite an AGENTS or equivalent file without copying it into a new\nlocal rule. Treat an upstream instruction, README convention or accepted\nupstream ADR as source-scoped evidence; use a source-bound ADR reference in\n`related_refs` without manufacturing a local decision. If an upstream rule\nconflicts with a local constraint, keep both citations for Phase 4 and do not\nsilently displace either. There is no new task or ADR from an observed pattern.\n\nDistinguish evidence availability from category outcome. Record each category\nas `observed`, `not_applicable`, `not_found_in_scope`, `not_inspected` or\n`ambiguous` with its scope and reason (an `observation` record for outcomes\nother than `observed`); failed or oversized reports are gaps, not evidence of\nabsence. A `not_found_in_scope` records its searched scope and predicates; it\ndoes not prove universal absence. In a small static project with known tests and\njustified no-storage evidence, ask no database question for a scoped test\nchange. Keep partial-domain uncertainty visible, but ask the user only if a\nmissing decision affects the current output or selected task.\n\nUse `[CONFIRM-NN]` only for a material user-owned decision that evidence cannot\nsettle. Give each a sequential ID, the missing choice, why it matters now and\nwhat would resolve it; align IDs with `open-questions.md`. Other unknowns stay\n`unknown` records or become a bounded evidence reinspection, not an automatic\ninterview. Do not synthesize a user deferral.\n\n**`.codearbiter\u002Frelease-targets.md` is a candidate only when the stack report found exactly one candidate manifest and exactly one candidate changelog at the repository root.** Draft the row then, in the grammar `\u003Cplugin-root>\u002Fhooks\u002F_releaselib.py`'s module docstring declares — a single-target project needs only `prefix`, `manifest`, `changelog`, `payload`:\n\n```text\n\u003C!-- release-targets -->\n[app]\nprefix: v\nmanifest: package.json\nchangelog: CHANGELOG.md\npayload: .\nlatest-eligible: true\n\u003C!-- \u002Frelease-targets -->\n```\n\n(`prefix` defaults to `v` unless the report found a different existing tag convention; `payload` is `.` for a single-package repository.) Zero, or more than one, candidate manifest or changelog cannot produce a guessed row. Record the evidence gap; ask about a release target only when that choice is needed now. Otherwise leave this conditional draft absent.\n\n**`latest-eligible: true` is not cosmetic.** `\u002Frelease`'s own back-fill detector (`detect_candidate_target`) emits it for this exact single-target shape, so a project drafted here and one back-filled through `\u002Frelease` must agree — omitting it here would default the row's Phase-3 publish to `--latest=false`, and the same project would get different release behavior depending on which lane happened to declare it first.\n\nGate: every supported claim drafted as a record with its basis, and material\nunknowns kept as `unknown` records. No silent omission, invented approval or\ninvented verification.\n\n## Phase 4 — Gap interview\n\nFirst reconcile contradictory reports without picking the highest confidence:\nretain both conflicting citations and request the smallest independent reinspection\nof the disputed source, predicate and snapshot using direct inspection or an\nindependent agent when useful. A changed or missing source requires fresh\nevidence. If the conflict survives, expose both claims and the precise choice\nrequiring a user ruling; do not overwrite either source.\n\nBuild a bounded relevant question set for the current output and selected task.\nUse one concise interview to batch independent user-owned decisions by category;\nask each as one targeted choice with its evidence and consequence. Ask only\nmissing user-owned decisions, not facts already established by records or\nexisting effective instructions. In particular, do not re-ask an unchanged\nlocal test convention. A database gap unrelated to a documentation or test\nchange remains visible without blocking that work.\n\nRecord each answer as a `user-reported` record with the user's actual\nresolution. If the user explicitly defers, keep the question as an open entry on\n`open-questions.md` (as `CONFIRM-NN: \u003Cdescription>`, with its date and history).\nIf unclear, retain the question and ask a focused follow-up;\nno synthesized deferral. An explicitly deferred question is still unresolved:\nnever treat a deferral as approval. An unresolved permission, security, scope or approval\nprerequisite blocks dependent work and names the missing authority. Unrelated\nuncertainty does not block an expected-success task that has its bounded\nrelevant question set answered.\n\n## Phase 5 — Project-state write\n\nWrite the records with `knowledge.py add` (and `update` for corrections), one\ndocument at a time. Each write is checked and journaled by the native engine.\nNo document approval receipt or agent profile is required. Preserve existing human\ncontent: an imported note stays until a record replaces it, and is retired with a\nreason when it does.\n\n| Owner | Content |\n|---|---|\n| `project` | Project identity, purpose, scope, primary users, NOT-building. `CONTEXT.md` frontmatter keeps `arbiter: enabled` and one `stage:` number (default `1`); never edit it by hand. |\n| `tech-stack` | Languages, frameworks, and `command` records for test, lint, build, coverage and the issue-tracker command (e.g. `gh issue create`). |\n| `coding-standards` | Structural patterns, naming conventions, style rules. |\n| `security-controls` | Auth mechanism, banned crypto primitives, secret-loading stance. Operative scope blocks stay in `security-controls.md`. |\n| `code-map` | Coarse concern-to-path `component` records from supported architecture evidence, scoped by path. |\n| `open-questions.md` | Every deferred `CONFIRM-NN: \u003Cdescription>`. A valid empty question board remains empty. |\n| Work owner | Preserve existing work IDs, board bytes and history. Keep newly discovered gaps as decomposition `work_item` candidates until the user selects promotion. Then select the work owner through installed `hooks\u002Fwork.py list --limit 1`, check the candidate origin against active and archived work, and promote to that owner once. Native projects use the stable Work ID returned by `knowledge.py promote`; legacy projects use the board helper through that same promotion route. Never write task rows directly or treat an observed source gap as approval to publish it. If inspection found no backlog, leave the selected owner empty. |\n| `overrides.log` | Preserve its append-only audit header and every existing event. A zero-event header is valid; do not fabricate an override. |\n| `release-targets.md` | Conditional: written ONLY when Phase 3 drafted it (exactly one candidate manifest, exactly one candidate changelog) or Phase 4 resolved it to a concrete row. **This file is marker-gated protected state; it needs the authoring marker below, unlike every other row in this table.** |\n\n**Authoring marker — required for `release-targets.md` only.** That path is enrolled in the protected-state registry as `marker-gated` (hook `H-22`), so a Write against it is refused unless a fresh authoring marker exists. This lane is a sanctioned author of it, so it mints one immediately before the write and removes it immediately after — the same one-pass shape `\u002Frelease`'s back-fill lane uses:\n\n```bash\nmkdir -p \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\"\ntouch \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\u002Frelease-targets-authoring\"\n```\n\nWrite the file, then:\n\n```bash\nrm -f \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\u002Frelease-targets-authoring\"\n```\n\nSkip both commands when this run is not writing `release-targets.md`.\n\nIf inspection finds existing decision records (`docs\u002Fdecisions\u002F`, `adr\u002F`), reference their source and actual status. Do not create local ADRs or infer acceptance from their existence.\n\nDo NOT scaffold any cut doc — see `\u003Cplugin-root>\u002Fincludes\u002Fcut-docs.md` for the canonical never-scaffold list. Maturity lives in the `stage:` frontmatter of `CONTEXT.md`, not a separate file.\n\n## Phase 6 — Initialization lock · gate: BLOCK\n\nRun `knowledge.py initialize`. The engine checks that all five knowledge\ndocuments exist and parse. For a selected legacy owner it validates the task\nboard; for a new native owner it creates the portable project ID. It writes the\nstandalone `\u003C!--INITIALIZED-->` marker to `CONTEXT.md` in the same journaled\ntransaction as any new project identity.\nUnknown records and open questions do not prevent it. A refusal names the\ndocument or selected work owner to repair; never append the marker by hand.\n\nReport which categories were inspected, remaining unknowns, documents changed\nand actual checks. The marker records completed population; it is not a\ncertification of semantic truth, host enforcement or test success. Return to\nnormal authorized work. Existing initialized repositories use refresh; never\nremove their marker to repeat onboarding.\n\n## Hard rules\n\n- MUST NOT resolve a user-owned question by guessing — ask it, or keep it open.\n- Account for all six logical categories on initial or explicitly full work;\n  scoped refresh covers its selected categories without claiming a new full scan.\n- Do not claim host containment, independent review or verified semantics from\n  an agent label, report shape, source digest or artifact write.\n- MUST NOT record a finding that exposes a secret value — paths and line numbers only.\n- MUST NOT edit knowledge HTML or `CONTEXT.md` frontmatter by hand.\n- MUST NOT scaffold a cut doc — see `\u003Cplugin-root>\u002Fincludes\u002Fcut-docs.md` for the canonical never-scaffold list. Maturity is the `stage:` frontmatter number in `CONTEXT.md`.\n- MUST NOT run when `CONTEXT.md` already carries `\u003C!--INITIALIZED-->` — stop and route to normal operation.\n","# context-creation\n\n\u003C!-- catalog-compatibility-notice:start -->\n> Compatibility route. Prefer `\u002Fca-init --brownfield` for new usage. This installed route remains\n> functional under the command-route compatibility policy at \u003Cplugin-root>\u002Fincludes\u002Fcommand-compatibility.md;\n> continue with the unchanged brownfield workflow below.\n\u003C!-- catalog-compatibility-notice:end -->\n\nWrap an existing codebase in project state, without guessing. Routed to by `\u002Fcreate-context`, and by startup when `.codearbiter\u002FCONTEXT.md` exists but carries no `\u003C!--INITIALIZED-->` body marker and meaningful source code is present. When no meaningful source exists, this is the wrong skill — route to `decompose` instead.\n\nThis back-fills from existing source. It complements `\u002Fca-init`, which scaffolds an empty `.codearbiter\u002F` for a fresh project; here the context is derived from what is already on disk. Load `\u003Cplugin-root>\u002Fincludes\u002Fknowledge.md` for the record vocabulary and the `knowledge.py` verbs used below.\n\nAn initialized refresh is requested through `\u002Fca-status drift` and the\nexisting `context-check` owner after an explicit scoped or full selection. An\nexplicit initialized brownfield project-model request also uses the existing\n`decompose` owner for intended target, phases, and candidate work. This\ninitial-population route keeps its `\u003C!--INITIALIZED-->` lock; an initialized\nrepository never clears the marker or re-enters Phase 6 to refresh content.\n\n## Pre-flight\n\nRead these, or STOP and surface the gap — never guess project identity or a command:\n\n- `\u003Cproject-root>\u002F.codearbiter\u002FCONTEXT.md` — if it already carries `\u003C!--INITIALIZED-->`, context exists. Stop and route to normal operation.\n- `knowledge.py format`. A `markdown` scaffold is an older one: offer `knowledge.py convert` before writing. Read every returned Markdown section, add its meaning as records or notes, then map each section ID to its saved references (use `[]` only for `content=false`). Finish with `knowledge.py convert --finish \u003Ctoken> --coverage @checklist.json`. If the user keeps the Markdown format, load `\u003Cplugin-root>\u002Froutines\u002Fcontext-creation\u002Freferences\u002Fmarkdown-format.md` and follow that unchanged procedure instead of this one; never convert silently.\n- The repository root listing (one level deep) — the source surface this skill extracts from.\n\nThe excluded set (not \"meaningful source\"): `.git\u002F`, `.codearbiter\u002F`, `.claude\u002F`, `AGENTS.md`, `CLAUDE.md`, `README.md`, `LICENSE`, `.gitignore`, `.gitmodules`, and standard tooling dotfiles (`.editorconfig`, `.prettierrc`, etc.). Meaningful source MUST exist beyond it.\n\n## Resume after an interrupted initial population\n\nInventory the actual `.codearbiter\u002F` files first. If the scaffold stopped partway\nthrough, rerun `init-codearbiter.py --root \u003Cexact repository root>` only while the\nproject is uninitialized; it creates only absent files. Never clear the directory,\nreset a marker, or replace an existing task board, question board or append-only\naudit record to make a retry pass.\n\nRun `knowledge.py create-missing` and read each document's records: they are the\nprogress already saved. Every `knowledge.py` write is retry-safe — an identical\nrecord is reused and a lost response replays — so continue from what is there\ninstead of starting over. A refused write names a changed document; read it again\nbefore retrying.\n\n## Phase 1 — Pre-flight confirmation · gate: BLOCK\n\nConfirm the repository is a brownfield codebase ready for bounded source inspection:\n\n1. Confirm `\u003C!--INITIALIZED-->` is absent from `CONTEXT.md`.\n2. Confirm meaningful source code is present beyond the excluded set.\n3. Identify the primary source directories (`src\u002F`, `backend\u002F`, `frontend\u002F`, `lib\u002F`, `app\u002F`, or equivalent).\n\nState the finding to the user: existing source detected, beginning bounded source inspection.\n\nGate: `\u003C!--INITIALIZED-->` absent AND meaningful source present. If the marker is present, stop and route to normal operation. If no meaningful source exists, stop and route to `decompose`. Neither condition met → do not proceed.\n\n## Phase 2 — Bounded inspection\n\nUse direct bounded inspection or optional scoped agents, whichever reduces\nrepeated reading for this repository. Cover six logical categories for initial\nor explicitly full work; a scoped refresh inspects only the selected affected\ncategories and retains prior coverage separately. Six categories do not require\nsix agents or parallel execution. Start with paths and targeted searches, then\nread only the source needed to support the current claims. Keep actual host\npermissions, excluded paths and secret-handling rules in force. Do not run\nrepository scripts merely because a manifest declares them.\n\nWhen delegation helps, give each agent a finite path\u002Fcategory assignment,\ncurrent source identity, output limit and stopping condition. Respect the host's\nactual concurrency and tool limits. Retain failed, partial and conflicting\nreports; narrow an oversized assignment instead of truncating it or repeatedly\nrelaunching unchanged work. Direct inspection may resolve missing coverage or\ncheck a contested claim. A role label or a read-only instruction is not evidence\nof containment or independent verification. Describe the tools and boundaries\nactually observed, without claiming a trusted sandbox from an agent name.\nA separately required containment policy still applies to its own scope; a\nrepository-only profile fixture does not impose that policy on ordinary work.\n\nThe categories are:\n\n- **A — Tech stack.** Read `package.json`, lockfiles, `pyproject.toml`, `requirements.txt`, `go.mod`, `Cargo.toml`, `*.gemspec`, `Gemfile`. Report languages, runtime versions, frameworks, key dependencies, the dependency manager, license fields. Additionally report, at the repository root only: which of `package.json` \u002F `pyproject.toml` \u002F `Cargo.toml` \u002F `composer.json` carry a version field (candidate release manifests), which of `CHANGELOG.md` \u002F `CHANGES.md` \u002F `HISTORY.md` are present (candidate changelogs), and any existing tag naming convention visible in the repo (e.g. a `v*` tag) — the inputs Phase 3\u002F5 use to draft `.codearbiter\u002Frelease-targets.md`.\n- **B — Infrastructure.** Read CI\u002FCD config (`.github\u002Fworkflows\u002F`, `.gitlab-ci.yml`, `Jenkinsfile`, `.circleci\u002Fconfig.yml`), `Dockerfile*`, `docker-compose*.yml`, `Makefile`, `*.tf`, IaC. Report CI\u002FCD platform, build\u002Ftest\u002Flint commands, deployment targets, environment names, containerization, IaC tool.\n- **C — Architecture.** Read the source tree (names and structure only), entry points (`main.ts`, `index.ts`, `app.py`, `server.go`), and imports in entry points only. Report component list, entry points, module boundaries, architectural pattern, public interfaces.\n- **D — Security posture.** Read auth files (`auth*`, `middleware*`, `guard*`, `jwt*`, `session*`, `oauth*`), crypto import lines, secret-loading sites (`process.env`, `os.environ`, vault\u002FKMS call sites — paths and line numbers only, never values), `.env.example` (never `.env`). Report auth mechanism, crypto libraries, secret-loading patterns (paths + lines, no values), vault\u002FKMS integration, hardcoded-secret risk files (paths only).\n- **E — Testing.** Read test files and test config (`vitest.config.*`, `jest.config.*`, `pytest.ini`, Makefile test flags), coverage config. Report test framework, runner command, coverage tool, coverage thresholds in config, naming convention, approximate test count by type, fixtures.\n- **F — Data model.** Read migration files (`migrations\u002F`, `drizzle\u002F`, `alembic\u002F`, `db\u002Fmigrate\u002F`), schema definitions (`schema.ts`, `*.prisma`, `*.sql`, `models\u002F`), ORM config, DB connection config (keys only, never credentials). Report database type, ORM\u002Fquery builder, entity names, migration tool, approximate entity count, multi-tenancy patterns.\n\nKeep a source-bound evidence inventory: each claim tied to its category,\nsearched scope, path and line, and whether it was observed, inferred or unknown.\nA record's `source_refs` and the document baseline commit bind it to the source\nas it was; like any source hash binds bytes, that does not verify a claim's\nmeaning. Never forward secret values. Negative findings state where and how the search ran, not universal\nabsence.\n\n`_contextreportlib.admit_scout_attempt` and `join_scout_reports` remain useful\nfor bounded structured agent reports when that transport is used. They validate\nreport shape and declared coverage, not permission, containment or semantic\ntruth. A scoped join has `full_coverage: false`; do not relabel it as a full\nscan. Plain evidence from direct inspection needs the same truthful scope,\nwithout a synthetic scout envelope or delivery ticket.\n\nProceed with supported claims and explicit gaps. A full run accounts for all\nsix logical categories, including justified inapplicability and named unknowns;\nfailed or missing work never counts as inspected coverage. Recheck changed\nsources before a dependent write. Independent work can continue while a\nmaterial unresolved fact or actual decision is addressed.\n\n## Phase 3 — Synthesis · gate: BLOCK\n\nTurn the evidence into source-bound records across the five content documents.\nFor initial or explicitly full onboarding, account for all six logical domains; a\nscoped refresh changes only its declared affected domains and makes no new full-coverage claim. Map source to destination:\n\n| Evidence category | Destination document and record types |\n|---|---|\n| Stack, infrastructure, tests | `tech-stack`: `fact`, `dependency`, `command` |\n| Architecture, source ownership | `code-map`: `component`, `interface`; `coding-standards`: `convention` |\n| Security boundaries | `security-controls`: `constraint`, `observation` |\n| Stack\u002Frelease candidates | `.codearbiter\u002Frelease-targets.md` when supported |\n| All applicable domains | `project`: `identity`, `goal`, `scope`, `exclusion` |\n\nGive each record its actual `basis`. A record read from the repository is\n`source-observed` and cites its source in `source_refs` (add the file to the\ndocument's sources). Mark reasoned conclusions `inferred`. Scope a record to the\npaths it governs in `scope.paths`, so a task touching those paths receives it;\nleave repository-wide records unscoped. For each retained record, name its\npurpose, owning source and actual consumer (or a specific retention reason).\nKeep observed, inferred, proposed and approved content separate through `basis`;\nnothing a record says is approved unless the user decided it. Commands are\n`command` records with\ntheir real `cwd`, `run_state: unrun`, and the purpose (`test`, `lint`,\n`typecheck`, `build`, `format`, `secrets-scan`, `run`, `other`):\nnever convert a package script into a passed verification. Keep unsupported fields `unknown`;\nmake no blanket security claim from absence. Confidence describes evidence\nstrength, not governance: confidence never grants normative authority. A\nwell-supported observation may back a source-bound fact, but it cannot approve a\nrule, permission, scope change or publication. Mark indirect inferences\n`inferred`, naming their signal and recheck need.\n\nPreserve existing effective local instructions at their native precedence and\nhuman ownership. Cite an AGENTS or equivalent file without copying it into a new\nlocal rule. Treat an upstream instruction, README convention or accepted\nupstream ADR as source-scoped evidence; use a source-bound ADR reference in\n`related_refs` without manufacturing a local decision. If an upstream rule\nconflicts with a local constraint, keep both citations for Phase 4 and do not\nsilently displace either. There is no new task or ADR from an observed pattern.\n\nDistinguish evidence availability from category outcome. Record each category\nas `observed`, `not_applicable`, `not_found_in_scope`, `not_inspected` or\n`ambiguous` with its scope and reason (an `observation` record for outcomes\nother than `observed`); failed or oversized reports are gaps, not evidence of\nabsence. A `not_found_in_scope` records its searched scope and predicates; it\ndoes not prove universal absence. In a small static project with known tests and\njustified no-storage evidence, ask no database question for a scoped test\nchange. Keep partial-domain uncertainty visible, but ask the user only if a\nmissing decision affects the current output or selected task.\n\nUse `[CONFIRM-NN]` only for a material user-owned decision that evidence cannot\nsettle. Give each a sequential ID, the missing choice, why it matters now and\nwhat would resolve it; align IDs with `open-questions.md`. Other unknowns stay\n`unknown` records or become a bounded evidence reinspection, not an automatic\ninterview. Do not synthesize a user deferral.\n\n**`.codearbiter\u002Frelease-targets.md` is a candidate only when the stack report found exactly one candidate manifest and exactly one candidate changelog at the repository root.** Draft the row then, in the grammar `\u003Cplugin-root>\u002Fhooks\u002F_releaselib.py`'s module docstring declares — a single-target project needs only `prefix`, `manifest`, `changelog`, `payload`:\n\n```text\n\u003C!-- release-targets -->\n[app]\nprefix: v\nmanifest: package.json\nchangelog: CHANGELOG.md\npayload: .\nlatest-eligible: true\n\u003C!-- \u002Frelease-targets -->\n```\n\n(`prefix` defaults to `v` unless the report found a different existing tag convention; `payload` is `.` for a single-package repository.) Zero, or more than one, candidate manifest or changelog cannot produce a guessed row. Record the evidence gap; ask about a release target only when that choice is needed now. Otherwise leave this conditional draft absent.\n\n**`latest-eligible: true` is not cosmetic.** `\u002Frelease`'s own back-fill detector (`detect_candidate_target`) emits it for this exact single-target shape, so a project drafted here and one back-filled through `\u002Frelease` must agree — omitting it here would default the row's Phase-3 publish to `--latest=false`, and the same project would get different release behavior depending on which lane happened to declare it first.\n\nGate: every supported claim drafted as a record with its basis, and material\nunknowns kept as `unknown` records. No silent omission, invented approval or\ninvented verification.\n\n## Phase 4 — Gap interview\n\nFirst reconcile contradictory reports without picking the highest confidence:\nretain both conflicting citations and request the smallest independent reinspection\nof the disputed source, predicate and snapshot using direct inspection or an\nindependent agent when useful. A changed or missing source requires fresh\nevidence. If the conflict survives, expose both claims and the precise choice\nrequiring a user ruling; do not overwrite either source.\n\nBuild a bounded relevant question set for the current output and selected task.\nUse one concise interview to batch independent user-owned decisions by category;\nask each as one targeted choice with its evidence and consequence. Ask only\nmissing user-owned decisions, not facts already established by records or\nexisting effective instructions. In particular, do not re-ask an unchanged\nlocal test convention. A database gap unrelated to a documentation or test\nchange remains visible without blocking that work.\n\nRecord each answer as a `user-reported` record with the user's actual\nresolution. If the user explicitly defers, keep the question as an open entry on\n`open-questions.md` (as `CONFIRM-NN: \u003Cdescription>`, with its date and history).\nIf unclear, retain the question and ask a focused follow-up;\nno synthesized deferral. An explicitly deferred question is still unresolved:\nnever treat a deferral as approval. An unresolved permission, security, scope or approval\nprerequisite blocks dependent work and names the missing authority. Unrelated\nuncertainty does not block an expected-success task that has its bounded\nrelevant question set answered.\n\n## Phase 5 — Project-state write\n\nWrite the records with `knowledge.py add` (and `update` for corrections), one\ndocument at a time. Each write is checked and journaled by the native engine.\nNo document approval receipt or agent profile is required. Preserve existing human\ncontent: an imported note stays until a record replaces it, and is retired with a\nreason when it does.\n\n| Owner | Content |\n|---|---|\n| `project` | Project identity, purpose, scope, primary users, NOT-building. `CONTEXT.md` frontmatter keeps `arbiter: enabled` and one `stage:` number (default `1`); never edit it by hand. |\n| `tech-stack` | Languages, frameworks, and `command` records for test, lint, build, coverage and the issue-tracker command (e.g. `gh issue create`). |\n| `coding-standards` | Structural patterns, naming conventions, style rules. |\n| `security-controls` | Auth mechanism, banned crypto primitives, secret-loading stance. Operative scope blocks stay in `security-controls.md`. |\n| `code-map` | Coarse concern-to-path `component` records from supported architecture evidence, scoped by path. |\n| `open-questions.md` | Every deferred `CONFIRM-NN: \u003Cdescription>`. A valid empty question board remains empty. |\n| Work owner | Preserve existing work IDs, board bytes and history. Keep newly discovered gaps as decomposition `work_item` candidates until the user selects promotion. Then select the work owner through installed `hooks\u002Fwork.py list --limit 1`, check the candidate origin against active and archived work, and promote to that owner once. Native projects use the stable Work ID returned by `knowledge.py promote`; legacy projects use the board helper through that same promotion route. Never write task rows directly or treat an observed source gap as approval to publish it. If inspection found no backlog, leave the selected owner empty. |\n| `overrides.log` | Preserve its append-only audit header and every existing event. A zero-event header is valid; do not fabricate an override. |\n| `release-targets.md` | Conditional: written ONLY when Phase 3 drafted it (exactly one candidate manifest, exactly one candidate changelog) or Phase 4 resolved it to a concrete row. **This file is marker-gated protected state; it needs the authoring marker below, unlike every other row in this table.** |\n\n**Authoring marker — required for `release-targets.md` only.** That path is enrolled in the protected-state registry as `marker-gated` (hook `H-22`), so a Write against it is refused unless a fresh authoring marker exists. This lane is a sanctioned author of it, so it mints one immediately before the write and removes it immediately after — the same one-pass shape `\u002Frelease`'s back-fill lane uses:\n\n```bash\nmkdir -p \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\"\ntouch \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\u002Frelease-targets-authoring\"\n```\n\nWrite the file, then:\n\n```bash\nrm -f \"$(git rev-parse --show-toplevel)\u002F.codearbiter\u002F.markers\u002Frelease-targets-authoring\"\n```\n\nSkip both commands when this run is not writing `release-targets.md`.\n\nIf inspection finds existing decision records (`docs\u002Fdecisions\u002F`, `adr\u002F`), reference their source and actual status. Do not create local ADRs or infer acceptance from their existence.\n\nDo NOT scaffold any cut doc — see `\u003Cplugin-root>\u002Fincludes\u002Fcut-docs.md` for the canonical never-scaffold list. Maturity lives in the `stage:` frontmatter of `CONTEXT.md`, not a separate file.\n\n## Phase 6 — Initialization lock · gate: BLOCK\n\nRun `knowledge.py initialize`. The engine checks that all five knowledge\ndocuments exist and parse. For a selected legacy owner it validates the task\nboard; for a new native owner it creates the portable project ID. It writes the\nstandalone `\u003C!--INITIALIZED-->` marker to `CONTEXT.md` in the same journaled\ntransaction as any new project identity.\nUnknown records and open questions do not prevent it. A refusal names the\ndocument or selected work owner to repair; never append the marker by hand.\n\nReport which categories were inspected, remaining unknowns, documents changed\nand actual checks. The marker records completed population; it is not a\ncertification of semantic truth, host enforcement or test success. Return to\nnormal authorized work. Existing initialized repositories use refresh; never\nremove their marker to repeat onboarding.\n\n## Hard rules\n\n- MUST NOT resolve a user-owned question by guessing — ask it, or keep it open.\n- Account for all six logical categories on initial or explicitly full work;\n  scoped refresh covers its selected categories without claiming a new full scan.\n- Do not claim host containment, independent review or verified semantics from\n  an agent label, report shape, source digest or artifact write.\n- MUST NOT record a finding that exposes a secret value — paths and line numbers only.\n- MUST NOT edit knowledge HTML or `CONTEXT.md` frontmatter by hand.\n- MUST NOT scaffold a cut doc — see `\u003Cplugin-root>\u002Fincludes\u002Fcut-docs.md` for the canonical never-scaffold list. Maturity is the `stage:` frontmatter number in `CONTEXT.md`.\n- MUST NOT run when `CONTEXT.md` already carries `\u003C!--INITIALIZED-->` — stop and route to normal operation.\n",{"name":5,"description":7,"argument-hint":23},"(none)","main","fd7eb34b2da439551443d09526ab48fd1d1bb9bf","plugins\u002Fca-pi\u002Froutines\u002Fcontext-creation",9,"https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter","https:\u002F\u002Fcodearbiter.dev\u002F","https:\u002F\u002Fgithub.com\u002FarbiterForge","https:\u002F\u002FArbiterForge.com","2026-11-15 04:04:31",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add arbiterForge\u002FcodeArbiter --skill context-creation",{"tool":39,"command":40},"bunx","bunx skills add arbiterForge\u002FcodeArbiter --skill context-creation",{"tool":42,"command":43},"pnpm","pnpm dlx skills add arbiterForge\u002FcodeArbiter --skill context-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fplugins\u002Fca-pi\u002Froutines\u002Fcontext-creation\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fmarkdown-format.md","REFERENCE","参考文档",23808,"https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fplugins\u002Fca-pi\u002Froutines\u002Fcontext-creation\u002Freferences\u002Fmarkdown-format.md",[54,61,68,74,81,88],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M723VC2J3R1BJ20XW56WZG3K","myskill","A sample skill for fixtures — does one gated thing well.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fsite\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Fmyskill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M723VAQ3APJEW6G1ESJ7AGFN","dup","Second of two same-named skills, used to prove within-collection dedup still works.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fsite\u002Ftest\u002Ffixtures\u002Fplugin-collisions\u002Fskills\u002Fdupskill-b\u002FSKILL.md",[],[],{"skillNo":69,"name":63,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M723V963M5R77EQM2N36KRTK","First of two same-named skills, used to prove within-collection dedup still works.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fsite\u002Ftest\u002Ffixtures\u002Fplugin-collisions\u002Fskills\u002Fdupskill-a\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M723V7VKBK473J4WMKV758B5","debug","A fixture skill named debug, colliding with the debug command\u002Fagent.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fsite\u002Ftest\u002Ffixtures\u002Fplugin-collisions\u002Fskills\u002Fdebug\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M723V5PS7H5QY903F2WB8MJY","writing-plans","Turn the selected specification into a maintained implementation plan with clear outcomes, useful tasks, dependencies, and verification steps. Drafting uses the existing authorization and does not require artifact approval codes, reviewer receipts, or a frozen implementation script.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fplugins\u002Fca\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M723V22QK0R2VJ4HA74PRRW5","using-git-worktrees","OPTIONAL per-task isolation for autonomous parallel work. Routed to only on explicit opt-in by subagent-driven-development or dispatching-parallel-agents, so parallel units mutate files without colliding. Stands up one worktree per unit, works it in isolation, then integrates each unit back onto the caller's working branch for the caller's single commit-gate + finishing-a-development-branch exit. Never on the default path; it does not bypass a gate or finish per unit.","https:\u002F\u002Fgithub.com\u002FarbiterForge\u002FcodeArbiter\u002Fblob\u002Fmain\u002Fplugins\u002Fca\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[]]