[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M786W1ZH5DF53WCJD93W2GNZ":3,"skill-same:01M786W1ZH5DF53WCJD93W2GNZ":48},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M786W1ZH5DF53WCJD93W2GNZ","spec-kit-project-cognition-gate",null,"Use when changing, reviewing, planning against, or debugging an existing Spec Kit Plus codebase. Consult the agent-planned project cognition query bundle as advisory navigation, then prove technical claims from live evidence.","chenziyang110\u002Flaunchdeck","chenziyang110","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43693913?v=4","01M7863EBWK1D0P6A29YGEMAS4","Robin11","01M7863ECM1VB6RXDMHTW90D2T",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fspec-kit-project-cognition-gate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"spec-kit-project-cognition-gate\"\ndescription: \"Use when changing, reviewing, planning against, or debugging an existing Spec Kit Plus codebase. Consult the agent-planned project cognition query bundle as advisory navigation, then prove technical claims from live evidence.\"\ncompatibility: \"Requires spec-kit project structure with .specify\u002F directory\"\nmetadata:\n  author: \"github-spec-kit\"\n  source: \"templates\u002Fpassive-skills\u002Fspec-kit-project-cognition-gate\u002FSKILL.md\"\n---\n\n\n# Spec Kit Project Cognition Gate\n\nThis passive skill is the brownfield advisory navigation layer, not a hard workflow gate.\n\n## Complementary Passive Skills\n\n- `spec-kit-workflow-routing` owns route selection into the correct `sp-*` workflow\n  before implementation, planning, or debugging proceeds.\n- `spec-kit-project-learning` owns the shared memory capture layer after context is\n  loaded. Once this gate is satisfied, follow that skill's learning-start and\n  learning-capture expectations for the active workflow.\n\n## Advisory Navigation\n\nBefore code edits, investigation, planning against existing code, or architectural\njudgment in an established Spec Kit Plus repository:\n\n- Default project cognition intake is `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent \u003Cintent> --query=\"$ARGUMENTS\" --format json`.\n  Consume the packet in this order:\n  1. Read top-level `epistemic_contract` first. Require `graph_role=route_candidate_only`, `fact_source_of_truth=live_repository`, `live_verification_required=true`, `graph_only_claims_allowed=false`, and `unverified_claim_action=withhold`.\n  2. Read top-level `minimal_live_reads` and use those files as the bounded first live evidence route.\n  3. Then use lane-level `first_pass_paths` for reasons, evidence hints, verification hints, follow-up surfaces, and `before_fix_claim` checks.\n  4. Read lane-level `claim_refs` only as compact route candidates. `route_confidence` is scoped by `confidence_scope=route_candidate`; inspect `state`, `freshness`, and `stale`, and require live verification before using a claim as repository truth.\n  5. Treat `coverage_diagnostics` as confidence and closeout signals, never as route candidates.\n  6. Treat `expansion_ref` as a normal continuation path. Run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe expand --id \u003Cid> --section claim_evidence --format json` when an active claim needs bounded `source_path`\u002F`span` evidence; advanced `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query` may also return top-level `claim_signals` with bounded evidence refs.\n  7. Do not infer final edit scope from `minimal_live_reads`, `first_pass_paths`, `claim_refs`, `claim_signals`, or `claim_evidence`.\n  Compass applies graph claims only as a bounded rerank after repository-backed route eligibility is established. `match_score` remains the eligibility score; lane `claim_ranking.adjustment` may only move an already-matched candidate by `+1` for fresh `supported`\u002F`verified_in_graph_generation`, `-1` for stale, or `-2` for contradicted. Claims cannot create candidates and cannot replace live verification. When `coverage_diagnostics` contains `stale_claim_signal` or `contradicted_claim_signal`, treat the packet as `usable_with_review`, follow `reconcile_claims_with_minimal_live_reads`, and complete the lane-specific refresh or reconciliation action against the live repository.\n  For decisive claim-specific evidence, provide only reconciliation intent: workflow, stable `claim_id`, reason, repository-relative `source_path`, bounded line `span`, `supporting` or `contradicting` role, and optional claim-specific verification. Run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe claim-reconcile prepare --input \u003Cintent.json> --format json`; the runtime owns every integrity field and the prepared packet path. Execute the returned `apply_argv` exactly (`C:\\Users\\11034\\.specify\\bin\\project-cognition.exe claim-reconcile apply --input \u003Cprepared_packet_path> --format json`). Generic workflow verification is insufficient. On ready, rerun Compass once; on partial or blocked, withhold the claim.\n  The `epistemic_contract` cannot authorize source changes and cannot prove current behavior. Carry `epistemic_contract` forward, withhold unverified claims, and let contradictory live evidence override the route candidate.\n  Graph claims are indexed assertions. Even `verified_in_graph_generation` is only an active graph-generation state, not current repository truth; graph claims cannot authorize source changes and cannot set workflow `claim_ready=true`. Treat `candidate` and `supported` as navigation hypotheses, and `contradicted` or `stale` as negative-route or historical context until bounded live evidence is checked.\n  Readiness values are `query_ready`, `review`, `needs_rebuild`, `blocked`, and `unsupported_runtime`. Compass-specific advice is in `compass_state` and `recommended_next_action`.\n  Treat `recommended_next_action` as an object. Do not treat `recommended_next_action` as a string. Read `recommended_next_action.action_id` for every packet: `needs_rebuild` alone is not a rebuild route and can accompany a resumable action such as `complete_scan_packets`. Only for `action_id=project_cognition.rebuild`, inspect every entry in `rebuild_reasons[]`, preserve its stable `code`, human-readable `message`, and relevant `evidence`, then follow the canonical Classic sequence in `recommended_next_action.workflow_routes.classic.steps`. Project those canonical step names through this integration's invocation syntax instead of guessing from readiness or an internal action ID. Non-rebuild actions omit workflow routes and must be preserved by `action_id` alone.\n  If a non-workflow action includes `recommended_next_action.argv`, execute that exact argv through the project-pinned cognition launcher. `project_cognition.repair_status` owns the deterministic `repair-status` action; never patch graph-store metadata by hand.\n  When `compass_state=needs_semantic_intake`, the agent writes `semantic_intake` from project vocabulary and reruns compass with `--semantic-intake-file`, or uses the advanced `lexicon -> semantic_intake -> query` path when explicit concept decisions are needed.\n  Advanced routing remains available as `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe lexicon --mode catalog`, agent-authored `semantic_intake` and `concept_decisions`, then `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --query-plan`. Use it when the first compass packet is too draft-like, a workflow needs explicit concept decisions, or coverage cannot be resolved from the default packet.\n  The current query contract is `claim_retrieval_contract_version=2` and `candidate_universe_version=2`; carry the latter from lexicon into every explicit query plan. Never parse missing or non-current versions as legacy input; rerun lexicon or compass with the current binary and repair the install if needed.\n  The advanced path still requires `normalized_query`, `intent_facets`, `negative_constraints`, `alias_interpretations`, `selected_concepts`, `rejected_concepts`, `concept_decisions`, `covered_facets`, `missing_facets`, `match_sources`, `lexicon_generation_id`, `expanded_queries`, `repository_search_terms`, and facet coverage; do not trust top similarity alone.\n  If the query command reports query-plan diagnostics, preserve its `warnings`, `repair_hints`, normalized `query_plan`, structured `errors`, and `expected_shape` so the workflow can repair the plan instead of ending on a raw parser exception.\n  Agent-owned semantic normalization is mandatory for the advanced path. The raw lexicon ranking and `agent_normalization` are only bootstrap signals for retrieving the alias catalog and candidate universe; they are not route decisions. Raw lexicon ranking is only a bootstrap. Treat `agent_normalization.required=true` as a non-intelligent CLI reminder to write `semantic_intake` from the alias catalog (action: write_semantic_intake_from_alias_catalog). If `agent_normalization` is omitted, `omitted => required=false`: treat it as `required=false`; omission does not make raw lexical ranking authoritative. If raw `concept_candidates` are all `score=0`, or the prompt is localized, mixed-language, CJK, colloquial, symptom-first, or mixed-language or CJK text, do not stop at the raw score. CJK or mixed CJK\u002FASCII input still requires agent normalization even when positive raw lexical matches exist because embedded project tokens do not translate the surrounding user language. Extract embedded project terms such as command names, UI labels, file stems, state names, adapter names, and skill or package identifiers from the user's wording and the alias catalog. The agent still owns translation; `agent_normalization` is advisory guidance, not a route decision. Put those translated terms into `normalized_query`, `alias_interpretations`, `intent_facets`, `expanded_queries`, and `repository_search_terms`, then select or reject concepts by facet coverage.\n  Before source search, write project-language search terms derived from the alias catalog, `semantic_intake`, selected candidates, and route metadata. Write them as `repository_search_terms`; include component names, state names, file names, command names, UI labels, and route names when present. Do not search only the raw user words. Use these project-language search terms before broad repository search.\n- Treat `concept_candidates` as structured project concept candidates, not a\n  flat keyword list. Resolve broad, conflicting, or unknown candidates through\n  the returned readiness state; do not widen live repository reads beyond the\n  returned `route_pack` and `minimal_live_reads`.\n- For `sp-ask`, use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent ask --query=\"$ARGUMENTS\" --format json`\n  as the default advisory navigation command. Use\n  `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --intent ask` only after the agent builds a semantic\n  intake or query plan because the compass output or live evidence is ambiguous\n  or has incomplete coverage. Stale or localization-sensitive cases are examples\n  that still require that ambiguity or incomplete-coverage reason. Live evidence\n  is authoritative. The ask route is read-only: do not run tests, run builds,\n  execute project CLI commands, write files, create handoffs, or create ask\n  state.\n- For same-topic `sp-ask` follow-ups in the same chat, reuse the previous target\n  project root, evidence set, compass or query packet, semantic intake, and\n  proven facts when they still cover the new question; read only delta evidence\n  and rerun compass when the topic, target, boundary, or evidence family changes.\n- For localized, mixed-language, CJK, colloquial, or project-slang ask queries,\n  normalize terms through the alias catalog and write project-language search\n  terms before source search. For cross-boundary questions, include the protocol\n  view: client fields or callsites, interface URLs or payload\u002Fschema names, and\n  whether backend\u002Fserver\u002Fruntime code exists in the repository.\n- Treat the task-local project cognition compass packet as the task-local\n  project navigation bundle. Treat raw graph JSON artifacts as obsolete runtime surfaces;\n  use `.specify\u002Fproject-cognition\u002Fproject-cognition.db`, the compass packet,\n  and bounded live evidence instead.\n- Candidate selection must satisfy facet coverage for the active workflow. Each\n  `concept_decisions` item should include `covered_facets`, `missing_facets`,\n  `match_sources`, confidence, and risk. Do not trust top similarity alone:\n  lexical overlap, vector similarity, alias matches, path matches, and graph\n  neighbor expansion are signals, not route truth.\n- For `sp-discussion`, product framing may begin before the cognition gate. Before\n  technical options, affected-surface claims, testing strategy claims tied to\n  existing code, implementation-path recommendations, or source-grounded\n  recommendations, complete the workflow's Truth Pass with the active\n  launcher-backed project cognition query planning flow and bounded live evidence.\n  Use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent discussion --query=\"$ARGUMENTS\" --format json` and\n  preserve `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --intent discussion` as the advanced precision path for discussion grounding. Record\n  `verified_project_facts`, `open_assumptions`, `evidence_checked`, and\n  `advice_confidence`. Do not use `--intent plan` from `sp-discussion`.\n- Project cognition is project-scoped. Current project cognition proves only\n  current project facts.\n- In `sp-discussion`, if the implementation target is another repository or\n  external project, lock `target_project_root` before source-grounded technical\n  claims.\n- Reference project cognition is supplemental-only and cannot replace target\n  evidence.\n- If target root is unknown, block technical options and handoff readiness;\n  continue only with product framing and explicit unknowns.\n- If target root is known but target cognition is stale or missing, use target\n  cognition, minimal live reads in the target, user confirmation, or explicit\n  assumptions. Do not ask the user to rebuild current-project cognition for\n  target files.\n- Treat project cognition as advisory navigation and coverage metadata. Use it\n  to choose minimal live reads, ownership hints, consumers, state surfaces,\n  verification routes, and coverage gaps. Do not treat it as authoritative\n  evidence for current behavior; prove project facts from live repository files.\n- A project-cognition compass intake is not complete when it returns JSON. It is complete\n  only when readiness is interpreted as advisory navigation, `minimal_live_reads`\n  constrains inspection, lane-level `first_pass_paths` reasons are considered,\n  live evidence proves technical claims, and relevant facts are carried into the\n  next workflow artifact or execution state.\n- Extract and carry forward `selected_concepts`, `rejected_concepts`,\n  `selection_reason`, `semantic_intake`, `normalized_query`, `intent_facets`,\n  `negative_constraints`, `concept_decisions`, `covered_facets`,\n  `missing_facets`, `match_sources`, `lexicon_generation_id`, the matched\n  capability or symptom, affected nodes and subgraph, `route_pack`,\n  `minimal_live_reads`, `first_pass_paths`, `coverage_diagnostics`, missing coverage, evidence traces, verification routes,\n  ambiguity, conflicts, and weak coverage.\n- Treat project cognition under `.specify\u002Fproject-cognition\u002F` as an advisory navigation surface. Legacy project-map exports are not evidence for current project behavior and `.specify\u002Ftemplates\u002Fproject-map\u002F**` is historical compatibility\u002Fexport only.\n- Consume project rules and reusable Learning through `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify learning start --command '\u003Ccommand>' --format json`, then its returned list\u002Fshow actions; do not parse Learning storage as part of cognition intake.\n\n## Cross-Project Reference Directories\n\n- When inspecting or comparing another local directory, check whether that\n  directory or its children contain `.specify\u002F` first. A referenced directory may\n  be a downstream Spec Kit project even when it is outside the current repo.\n- Prefer `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe discover --root \u003Cpath> --format json` to enumerate nested\n  `.specify\u002F` candidates before broad live reads. Treat its `projects` entries as\n  C:\\Users\\11034\\.specify\\bin\\project-cognition.exe candidates and its `specify_candidates` entries as the\n  broader set of Spec Kit-shaped directories.\n- Use another project's cognition only when\n  `.specify\u002Fproject-cognition\u002Fstatus.json` exists,\n  `.specify\u002Fproject-cognition\u002Fproject-cognition.db` exists,\n  `reference_readiness` is `ready`, freshness is `fresh`, and `graph_ready` is\n  true.\n- For ready references, read only the fresh project cognition artifacts needed\n  for the comparison, then use the returned minimal read order before inspecting\n  more source files. Treat the reference map as supplemental navigation, not as\n  evidence by itself.\n- For blocked, stale, or incomplete references, do not treat legacy\n  `.specify\u002Fproject-map\u002F**` outputs as current truth. Fall back to minimal live\n  reads and recommend `$sp-map-update` for localized stale coverage, weak\n  reference coverage, external\u002Fmanual changed-path map maintenance, or ordinary\n  existing-baseline gaps after a usable reference baseline.\n- For brownfield missing or unusable reference baselines, recommend\n  `$sp-map-scan -> $sp-map-build`. Recommend scan\u002Fbuild for a\n  reference project only for brownfield first\u002Fmissing\u002Funusable baseline, schema\n  failure, zero active-generation `path_index` rows outside `greenfield_empty`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n\n## Command Surface Discipline\n\n- Treat the live `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify --help` output as the only authoritative CLI command surface.\n- Before suggesting or running a `specify \u003Csubcommand>` invocation while satisfying this gate, verify that it exists in `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify --help` or `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify '\u003Csubcommand>' --help`.\n- Do not invent, paraphrase, or \"normalize\" unsupported CLI names such as `specify create-feature`.\n- Feature creation remains `$sp-specify` plus the generated create-feature script at `.specify\u002Fscripts\u002Fbash\u002Fcreate-new-feature.sh` or `.specify\u002Fscripts\u002Fpowershell\u002Fcreate-new-feature.ps1`, not a separate branch-creation command. Default feature workspace names use `YYYY-MM-DD-\u003Cslug>`; numeric prefixes are legacy and require the script's explicit numeric option.\n\n## Missing Runtime Launcher Recovery\n\n- If an installed cognition command begins with the all-caps\n  `PROJECT_COGNITION_LAUNCHER_UNAVAILABLE` marker, treat the complete marked\n  command as non-executable. The suffix only preserves the intended cognition\n  subcommand so managed guidance can be rebound after repair.\n- Do not probe `specify cognition` or `specify project-cognition`. Run\n  `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify check` for project-pinned diagnostics, then run\n  `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify integration repair` as the deterministic recovery entry.\n  Re-open the active installed skill after repair; if the marker remains,\n  report cognition unavailable and continue from live repository evidence only\n  where the workflow's safety boundary permits degraded advisory navigation.\n\n## Freshness State Guidance\n\n- If the project cognition runtime is missing for a brownfield project, continue with live repository\n  evidence and recommend the canonical `sp-map-scan -> sp-map-build` workflow only as\n  external baseline maintenance. When giving the user an explicit command to type, write\n  `$sp-map-scan -> $sp-map-build`.\n- If `baseline_kind=greenfield_empty`, continue with workflow artifacts and live requirements. Do not recommend map-scan -> map-build solely because the graph has no paths.\n- If the project cognition runtime is stale for a localized touched area, continue\n  with live repository evidence and recommend `sp-map-update` first when map\n  maintenance is useful. When giving the user an explicit\n  command to type, write `$sp-map-update`.\n- If changed paths are missing from project cognition `path_index`, let\n  `sp-map-update` classify the gap first. Adoptable paths get provisional\n  `path_index` plus `alias_index` coverage, uncertain paths return\n  `minimal_live_reads`, and ordinary existing-baseline gaps stay in\n  `$sp-map-update`.\n- Treat repository boundary accounting as separate from graph evidence. `.cognitionignore` exclusions and automatic exclusions explain why a path is outside graph-facing coverage; they do not become project cognition evidence.\n- For `map-update`, changed-path accounting must explain every candidate path before readiness can be considered useful.\n- If the freshness state is `support_drift`, stop and tell the user to resolve\n  support-surface drift; do not reflexively route to `sp-map-update`.\n- If the freshness state is `partial_refresh`, tell the user the refresh was\n  recorded but readiness did not pass; follow the reported\n  `recommended_next_action` instead of implying success.\n- If `partial_refresh` follows `sp-map-update` and validation shows bounded\n  path-led `identity_reconciliation` debt, the next action is a focused\n  identity-repair pass inside `sp-map-update`, not an immediate user choice\n  between repair and full rebuild. Escalate to `sp-map-scan -> sp-map-build`\n  only when validation reports a reserved rebuild condition such as unusable\n  baseline, schema failure, zero active-generation path index rows outside\n  `greenfield_empty`, missing or invalid `alias_index`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n- If project cognition readiness is `blocked`, report the runtime issue as\n  degraded advisory map state. Ordinary discussion may continue with product\n  framing or bounded live evidence; recommend a map maintenance workflow only\n  when the user asks for map maintenance or handoff needs evidence that live\n  reads cannot provide.\n- Preserve the distinction between the machine freshness field and public state\n  guidance: `freshness` records factual state, while `recommended_next_action`\n  tells the operator what to do next.\n- Use `map-update` for ordinary existing-baseline gaps. Use `map-scan -> map-build`\n  only for brownfield first\u002Fmissing\u002Funusable baseline, schema failure, schema v1\n  or old broad-schema rebuild-required readiness, zero active-generation\n  path_index rows outside `greenfield_empty`, missing or invalid `alias_index`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n  Schema v5 is current-only. The runtime does not migrate schema v4 or older\n  databases and does not archive or replace them. Remove the incompatible project-cognition.db\n  explicitly before `sp-map-scan -> sp-map-build` with the current binary.\n  Uncertain closure can be recorded by `sp-map-update` as partial\u002Flow-confidence\n  facts, known unknowns, and `minimal_live_reads`.\n- Entry-time stale or weak cognition is still an advisory navigation concern unless the user explicitly requested map maintenance. A workflow may continue from live evidence when entry guidance allows it. That entry routing rule does not waive closeout ownership.\n- Workflow-owned mutation closeout is not an external map-maintenance handoff. If the active workflow changed project-related source, runtime, templates, generated assets, config, tests, state contracts, or behavior-bearing docs, closeout must run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe closeout-plan --workflow \"$ACTIVE_WORKFLOW\" --format json` before recording inline project cognition update data.\n- When `DELTA_SESSION_ID` exists, pass `--delta-session \"$DELTA_SESSION_ID\"` to `closeout-plan`. Fill fields listed in `required_agent_fields` from live evidence; optional payload\u002Fdelta fields such as `known_unknowns` and `boundary` are populated only when evidence supports them. Follow `update_mode=delta_session` by completing `delta_append_draft.argv_prefix` with evidence placeholders, appending the workflow closeout delta event, then running structured `update_argv`. Follow `update_mode=payload_file` by writing the completed `payload_draft`, then running structured `update_argv`. The display-only `update_command` and display-only `delta_append_command` placeholders are not execution strings.\n- Use `known_unknowns` only for blockers that make the cognition update unsafe to trust. If the working tree contains unrelated dirty\u002Funtracked paths and the workflow uses explicit workflow-owned paths, record that as `confidence_notes` or `boundary.initial_dirty_paths`, not as a blocking `known_unknowns` item.\n- Before update recording, resolve `unknown_path_dispositions` by setting `agent_disposition` to `adoptable`, `review_only`, `ignored`, or `blocking_known_unknown`. Verified `adoptable` paths do not become blocking `known_unknowns`. Only `blocking_known_unknown` dispositions become payload or delta known unknowns. `agent_disposition=adoptable` is an agent accounting decision, not proof that runtime indexing already succeeded; after `update_argv` runs, inspect `result_state`, `adopted_paths`, `review_paths`, `minimal_live_reads`, and `partial_refresh_reasons`.\n- Clean closeout keys on `result_state`, not `status=ok`, `update_id`, `last_update_id`, or freshness alone; `recorded` is legacy recorded-only partial\u002Fblocked output. If `partial_refresh_reasons` includes `missing_passing_verification_result`, repair the payload or delta evidence and rerun `update_argv` before final closeout instead of routing to `sp-map-update`. Never run the `complete-refresh` or `clear-dirty` helper after `result_state=partial_refresh`, `needs_rebuild`, `blocked`, or legacy `recorded`. Use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe mark-dirty --reason \"workflow-closeout-failed\" --format json` only when planner\u002Fupdate is unavailable, fails before recording useful update data, cannot safely identify workflow-owned scope, is blocked by runtime state, or verification\u002Fworkflow completion is not trustworthy.\n- `sp-map-update` is for manual\u002Fexternal maintenance and follow-up repair after user edits, interrupted workflows, or explicit operator map-maintenance requests. It is external map maintenance, not routine cleanup for changes this workflow just made. In shared routing summaries, sp-map-update is for manual\u002Fexternal maintenance.\n- Do not rely on generic framework instinct, chat memory, or prior sessions when the\n  project cognition runtime should be the source of truth.\n\n## Senior Consequence Analysis Relationship\n\nProject cognition is necessary but not sufficient. Use it first to identify ownership, consumers, state surfaces, verification routes, and coverage gaps. Then run the Senior Consequence Analysis Gate when lifecycle, running-state, destructive-operation, shared-state, downstream consumer, compatibility, or multiple-behavior semantics matter.\n\nThe gate output must name affected objects, state behavior, dependency impact, recovery and validation, and coverage gaps. Preserve the Affected Object Map, State-Behavior Matrix, Dependency Impact Table, Recovery And Validation Contract, and Coverage Gaps. If project cognition cannot decide product semantics, record the gap and route to the appropriate workflow instead of treating the graph as authoritative.\n\n## Scope Guard\n\n- This gate applies even if the user asks for a direct code change without mentioning\n  Spec Kit workflows.\n- Stand down only when the task is clearly greenfield and does not depend on any\n  existing project structure, conventions, or runtime surface.\n","# Spec Kit Project Cognition Gate\n\nThis passive skill is the brownfield advisory navigation layer, not a hard workflow gate.\n\n## Complementary Passive Skills\n\n- `spec-kit-workflow-routing` owns route selection into the correct `sp-*` workflow\n  before implementation, planning, or debugging proceeds.\n- `spec-kit-project-learning` owns the shared memory capture layer after context is\n  loaded. Once this gate is satisfied, follow that skill's learning-start and\n  learning-capture expectations for the active workflow.\n\n## Advisory Navigation\n\nBefore code edits, investigation, planning against existing code, or architectural\njudgment in an established Spec Kit Plus repository:\n\n- Default project cognition intake is `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent \u003Cintent> --query=\"$ARGUMENTS\" --format json`.\n  Consume the packet in this order:\n  1. Read top-level `epistemic_contract` first. Require `graph_role=route_candidate_only`, `fact_source_of_truth=live_repository`, `live_verification_required=true`, `graph_only_claims_allowed=false`, and `unverified_claim_action=withhold`.\n  2. Read top-level `minimal_live_reads` and use those files as the bounded first live evidence route.\n  3. Then use lane-level `first_pass_paths` for reasons, evidence hints, verification hints, follow-up surfaces, and `before_fix_claim` checks.\n  4. Read lane-level `claim_refs` only as compact route candidates. `route_confidence` is scoped by `confidence_scope=route_candidate`; inspect `state`, `freshness`, and `stale`, and require live verification before using a claim as repository truth.\n  5. Treat `coverage_diagnostics` as confidence and closeout signals, never as route candidates.\n  6. Treat `expansion_ref` as a normal continuation path. Run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe expand --id \u003Cid> --section claim_evidence --format json` when an active claim needs bounded `source_path`\u002F`span` evidence; advanced `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query` may also return top-level `claim_signals` with bounded evidence refs.\n  7. Do not infer final edit scope from `minimal_live_reads`, `first_pass_paths`, `claim_refs`, `claim_signals`, or `claim_evidence`.\n  Compass applies graph claims only as a bounded rerank after repository-backed route eligibility is established. `match_score` remains the eligibility score; lane `claim_ranking.adjustment` may only move an already-matched candidate by `+1` for fresh `supported`\u002F`verified_in_graph_generation`, `-1` for stale, or `-2` for contradicted. Claims cannot create candidates and cannot replace live verification. When `coverage_diagnostics` contains `stale_claim_signal` or `contradicted_claim_signal`, treat the packet as `usable_with_review`, follow `reconcile_claims_with_minimal_live_reads`, and complete the lane-specific refresh or reconciliation action against the live repository.\n  For decisive claim-specific evidence, provide only reconciliation intent: workflow, stable `claim_id`, reason, repository-relative `source_path`, bounded line `span`, `supporting` or `contradicting` role, and optional claim-specific verification. Run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe claim-reconcile prepare --input \u003Cintent.json> --format json`; the runtime owns every integrity field and the prepared packet path. Execute the returned `apply_argv` exactly (`C:\\Users\\11034\\.specify\\bin\\project-cognition.exe claim-reconcile apply --input \u003Cprepared_packet_path> --format json`). Generic workflow verification is insufficient. On ready, rerun Compass once; on partial or blocked, withhold the claim.\n  The `epistemic_contract` cannot authorize source changes and cannot prove current behavior. Carry `epistemic_contract` forward, withhold unverified claims, and let contradictory live evidence override the route candidate.\n  Graph claims are indexed assertions. Even `verified_in_graph_generation` is only an active graph-generation state, not current repository truth; graph claims cannot authorize source changes and cannot set workflow `claim_ready=true`. Treat `candidate` and `supported` as navigation hypotheses, and `contradicted` or `stale` as negative-route or historical context until bounded live evidence is checked.\n  Readiness values are `query_ready`, `review`, `needs_rebuild`, `blocked`, and `unsupported_runtime`. Compass-specific advice is in `compass_state` and `recommended_next_action`.\n  Treat `recommended_next_action` as an object. Do not treat `recommended_next_action` as a string. Read `recommended_next_action.action_id` for every packet: `needs_rebuild` alone is not a rebuild route and can accompany a resumable action such as `complete_scan_packets`. Only for `action_id=project_cognition.rebuild`, inspect every entry in `rebuild_reasons[]`, preserve its stable `code`, human-readable `message`, and relevant `evidence`, then follow the canonical Classic sequence in `recommended_next_action.workflow_routes.classic.steps`. Project those canonical step names through this integration's invocation syntax instead of guessing from readiness or an internal action ID. Non-rebuild actions omit workflow routes and must be preserved by `action_id` alone.\n  If a non-workflow action includes `recommended_next_action.argv`, execute that exact argv through the project-pinned cognition launcher. `project_cognition.repair_status` owns the deterministic `repair-status` action; never patch graph-store metadata by hand.\n  When `compass_state=needs_semantic_intake`, the agent writes `semantic_intake` from project vocabulary and reruns compass with `--semantic-intake-file`, or uses the advanced `lexicon -> semantic_intake -> query` path when explicit concept decisions are needed.\n  Advanced routing remains available as `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe lexicon --mode catalog`, agent-authored `semantic_intake` and `concept_decisions`, then `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --query-plan`. Use it when the first compass packet is too draft-like, a workflow needs explicit concept decisions, or coverage cannot be resolved from the default packet.\n  The current query contract is `claim_retrieval_contract_version=2` and `candidate_universe_version=2`; carry the latter from lexicon into every explicit query plan. Never parse missing or non-current versions as legacy input; rerun lexicon or compass with the current binary and repair the install if needed.\n  The advanced path still requires `normalized_query`, `intent_facets`, `negative_constraints`, `alias_interpretations`, `selected_concepts`, `rejected_concepts`, `concept_decisions`, `covered_facets`, `missing_facets`, `match_sources`, `lexicon_generation_id`, `expanded_queries`, `repository_search_terms`, and facet coverage; do not trust top similarity alone.\n  If the query command reports query-plan diagnostics, preserve its `warnings`, `repair_hints`, normalized `query_plan`, structured `errors`, and `expected_shape` so the workflow can repair the plan instead of ending on a raw parser exception.\n  Agent-owned semantic normalization is mandatory for the advanced path. The raw lexicon ranking and `agent_normalization` are only bootstrap signals for retrieving the alias catalog and candidate universe; they are not route decisions. Raw lexicon ranking is only a bootstrap. Treat `agent_normalization.required=true` as a non-intelligent CLI reminder to write `semantic_intake` from the alias catalog (action: write_semantic_intake_from_alias_catalog). If `agent_normalization` is omitted, `omitted => required=false`: treat it as `required=false`; omission does not make raw lexical ranking authoritative. If raw `concept_candidates` are all `score=0`, or the prompt is localized, mixed-language, CJK, colloquial, symptom-first, or mixed-language or CJK text, do not stop at the raw score. CJK or mixed CJK\u002FASCII input still requires agent normalization even when positive raw lexical matches exist because embedded project tokens do not translate the surrounding user language. Extract embedded project terms such as command names, UI labels, file stems, state names, adapter names, and skill or package identifiers from the user's wording and the alias catalog. The agent still owns translation; `agent_normalization` is advisory guidance, not a route decision. Put those translated terms into `normalized_query`, `alias_interpretations`, `intent_facets`, `expanded_queries`, and `repository_search_terms`, then select or reject concepts by facet coverage.\n  Before source search, write project-language search terms derived from the alias catalog, `semantic_intake`, selected candidates, and route metadata. Write them as `repository_search_terms`; include component names, state names, file names, command names, UI labels, and route names when present. Do not search only the raw user words. Use these project-language search terms before broad repository search.\n- Treat `concept_candidates` as structured project concept candidates, not a\n  flat keyword list. Resolve broad, conflicting, or unknown candidates through\n  the returned readiness state; do not widen live repository reads beyond the\n  returned `route_pack` and `minimal_live_reads`.\n- For `sp-ask`, use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent ask --query=\"$ARGUMENTS\" --format json`\n  as the default advisory navigation command. Use\n  `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --intent ask` only after the agent builds a semantic\n  intake or query plan because the compass output or live evidence is ambiguous\n  or has incomplete coverage. Stale or localization-sensitive cases are examples\n  that still require that ambiguity or incomplete-coverage reason. Live evidence\n  is authoritative. The ask route is read-only: do not run tests, run builds,\n  execute project CLI commands, write files, create handoffs, or create ask\n  state.\n- For same-topic `sp-ask` follow-ups in the same chat, reuse the previous target\n  project root, evidence set, compass or query packet, semantic intake, and\n  proven facts when they still cover the new question; read only delta evidence\n  and rerun compass when the topic, target, boundary, or evidence family changes.\n- For localized, mixed-language, CJK, colloquial, or project-slang ask queries,\n  normalize terms through the alias catalog and write project-language search\n  terms before source search. For cross-boundary questions, include the protocol\n  view: client fields or callsites, interface URLs or payload\u002Fschema names, and\n  whether backend\u002Fserver\u002Fruntime code exists in the repository.\n- Treat the task-local project cognition compass packet as the task-local\n  project navigation bundle. Treat raw graph JSON artifacts as obsolete runtime surfaces;\n  use `.specify\u002Fproject-cognition\u002Fproject-cognition.db`, the compass packet,\n  and bounded live evidence instead.\n- Candidate selection must satisfy facet coverage for the active workflow. Each\n  `concept_decisions` item should include `covered_facets`, `missing_facets`,\n  `match_sources`, confidence, and risk. Do not trust top similarity alone:\n  lexical overlap, vector similarity, alias matches, path matches, and graph\n  neighbor expansion are signals, not route truth.\n- For `sp-discussion`, product framing may begin before the cognition gate. Before\n  technical options, affected-surface claims, testing strategy claims tied to\n  existing code, implementation-path recommendations, or source-grounded\n  recommendations, complete the workflow's Truth Pass with the active\n  launcher-backed project cognition query planning flow and bounded live evidence.\n  Use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe compass --intent discussion --query=\"$ARGUMENTS\" --format json` and\n  preserve `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe query --intent discussion` as the advanced precision path for discussion grounding. Record\n  `verified_project_facts`, `open_assumptions`, `evidence_checked`, and\n  `advice_confidence`. Do not use `--intent plan` from `sp-discussion`.\n- Project cognition is project-scoped. Current project cognition proves only\n  current project facts.\n- In `sp-discussion`, if the implementation target is another repository or\n  external project, lock `target_project_root` before source-grounded technical\n  claims.\n- Reference project cognition is supplemental-only and cannot replace target\n  evidence.\n- If target root is unknown, block technical options and handoff readiness;\n  continue only with product framing and explicit unknowns.\n- If target root is known but target cognition is stale or missing, use target\n  cognition, minimal live reads in the target, user confirmation, or explicit\n  assumptions. Do not ask the user to rebuild current-project cognition for\n  target files.\n- Treat project cognition as advisory navigation and coverage metadata. Use it\n  to choose minimal live reads, ownership hints, consumers, state surfaces,\n  verification routes, and coverage gaps. Do not treat it as authoritative\n  evidence for current behavior; prove project facts from live repository files.\n- A project-cognition compass intake is not complete when it returns JSON. It is complete\n  only when readiness is interpreted as advisory navigation, `minimal_live_reads`\n  constrains inspection, lane-level `first_pass_paths` reasons are considered,\n  live evidence proves technical claims, and relevant facts are carried into the\n  next workflow artifact or execution state.\n- Extract and carry forward `selected_concepts`, `rejected_concepts`,\n  `selection_reason`, `semantic_intake`, `normalized_query`, `intent_facets`,\n  `negative_constraints`, `concept_decisions`, `covered_facets`,\n  `missing_facets`, `match_sources`, `lexicon_generation_id`, the matched\n  capability or symptom, affected nodes and subgraph, `route_pack`,\n  `minimal_live_reads`, `first_pass_paths`, `coverage_diagnostics`, missing coverage, evidence traces, verification routes,\n  ambiguity, conflicts, and weak coverage.\n- Treat project cognition under `.specify\u002Fproject-cognition\u002F` as an advisory navigation surface. Legacy project-map exports are not evidence for current project behavior and `.specify\u002Ftemplates\u002Fproject-map\u002F**` is historical compatibility\u002Fexport only.\n- Consume project rules and reusable Learning through `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify learning start --command '\u003Ccommand>' --format json`, then its returned list\u002Fshow actions; do not parse Learning storage as part of cognition intake.\n\n## Cross-Project Reference Directories\n\n- When inspecting or comparing another local directory, check whether that\n  directory or its children contain `.specify\u002F` first. A referenced directory may\n  be a downstream Spec Kit project even when it is outside the current repo.\n- Prefer `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe discover --root \u003Cpath> --format json` to enumerate nested\n  `.specify\u002F` candidates before broad live reads. Treat its `projects` entries as\n  C:\\Users\\11034\\.specify\\bin\\project-cognition.exe candidates and its `specify_candidates` entries as the\n  broader set of Spec Kit-shaped directories.\n- Use another project's cognition only when\n  `.specify\u002Fproject-cognition\u002Fstatus.json` exists,\n  `.specify\u002Fproject-cognition\u002Fproject-cognition.db` exists,\n  `reference_readiness` is `ready`, freshness is `fresh`, and `graph_ready` is\n  true.\n- For ready references, read only the fresh project cognition artifacts needed\n  for the comparison, then use the returned minimal read order before inspecting\n  more source files. Treat the reference map as supplemental navigation, not as\n  evidence by itself.\n- For blocked, stale, or incomplete references, do not treat legacy\n  `.specify\u002Fproject-map\u002F**` outputs as current truth. Fall back to minimal live\n  reads and recommend `$sp-map-update` for localized stale coverage, weak\n  reference coverage, external\u002Fmanual changed-path map maintenance, or ordinary\n  existing-baseline gaps after a usable reference baseline.\n- For brownfield missing or unusable reference baselines, recommend\n  `$sp-map-scan -> $sp-map-build`. Recommend scan\u002Fbuild for a\n  reference project only for brownfield first\u002Fmissing\u002Funusable baseline, schema\n  failure, zero active-generation `path_index` rows outside `greenfield_empty`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n\n## Command Surface Discipline\n\n- Treat the live `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify --help` output as the only authoritative CLI command surface.\n- Before suggesting or running a `specify \u003Csubcommand>` invocation while satisfying this gate, verify that it exists in `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify --help` or `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify '\u003Csubcommand>' --help`.\n- Do not invent, paraphrase, or \"normalize\" unsupported CLI names such as `specify create-feature`.\n- Feature creation remains `$sp-specify` plus the generated create-feature script at `.specify\u002Fscripts\u002Fbash\u002Fcreate-new-feature.sh` or `.specify\u002Fscripts\u002Fpowershell\u002Fcreate-new-feature.ps1`, not a separate branch-creation command. Default feature workspace names use `YYYY-MM-DD-\u003Cslug>`; numeric prefixes are legacy and require the script's explicit numeric option.\n\n## Missing Runtime Launcher Recovery\n\n- If an installed cognition command begins with the all-caps\n  `PROJECT_COGNITION_LAUNCHER_UNAVAILABLE` marker, treat the complete marked\n  command as non-executable. The suffix only preserves the intended cognition\n  subcommand so managed guidance can be rebound after repair.\n- Do not probe `specify cognition` or `specify project-cognition`. Run\n  `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify check` for project-pinned diagnostics, then run\n  `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@6fbbf08a0b6833bb783ec6b418d567776b197ae4 specify integration repair` as the deterministic recovery entry.\n  Re-open the active installed skill after repair; if the marker remains,\n  report cognition unavailable and continue from live repository evidence only\n  where the workflow's safety boundary permits degraded advisory navigation.\n\n## Freshness State Guidance\n\n- If the project cognition runtime is missing for a brownfield project, continue with live repository\n  evidence and recommend the canonical `sp-map-scan -> sp-map-build` workflow only as\n  external baseline maintenance. When giving the user an explicit command to type, write\n  `$sp-map-scan -> $sp-map-build`.\n- If `baseline_kind=greenfield_empty`, continue with workflow artifacts and live requirements. Do not recommend map-scan -> map-build solely because the graph has no paths.\n- If the project cognition runtime is stale for a localized touched area, continue\n  with live repository evidence and recommend `sp-map-update` first when map\n  maintenance is useful. When giving the user an explicit\n  command to type, write `$sp-map-update`.\n- If changed paths are missing from project cognition `path_index`, let\n  `sp-map-update` classify the gap first. Adoptable paths get provisional\n  `path_index` plus `alias_index` coverage, uncertain paths return\n  `minimal_live_reads`, and ordinary existing-baseline gaps stay in\n  `$sp-map-update`.\n- Treat repository boundary accounting as separate from graph evidence. `.cognitionignore` exclusions and automatic exclusions explain why a path is outside graph-facing coverage; they do not become project cognition evidence.\n- For `map-update`, changed-path accounting must explain every candidate path before readiness can be considered useful.\n- If the freshness state is `support_drift`, stop and tell the user to resolve\n  support-surface drift; do not reflexively route to `sp-map-update`.\n- If the freshness state is `partial_refresh`, tell the user the refresh was\n  recorded but readiness did not pass; follow the reported\n  `recommended_next_action` instead of implying success.\n- If `partial_refresh` follows `sp-map-update` and validation shows bounded\n  path-led `identity_reconciliation` debt, the next action is a focused\n  identity-repair pass inside `sp-map-update`, not an immediate user choice\n  between repair and full rebuild. Escalate to `sp-map-scan -> sp-map-build`\n  only when validation reports a reserved rebuild condition such as unusable\n  baseline, schema failure, zero active-generation path index rows outside\n  `greenfield_empty`, missing or invalid `alias_index`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n- If project cognition readiness is `blocked`, report the runtime issue as\n  degraded advisory map state. Ordinary discussion may continue with product\n  framing or bounded live evidence; recommend a map maintenance workflow only\n  when the user asks for map maintenance or handoff needs evidence that live\n  reads cannot provide.\n- Preserve the distinction between the machine freshness field and public state\n  guidance: `freshness` records factual state, while `recommended_next_action`\n  tells the operator what to do next.\n- Use `map-update` for ordinary existing-baseline gaps. Use `map-scan -> map-build`\n  only for brownfield first\u002Fmissing\u002Funusable baseline, schema failure, schema v1\n  or old broad-schema rebuild-required readiness, zero active-generation\n  path_index rows outside `greenfield_empty`, missing or invalid `alias_index`,\n  `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n  Schema v5 is current-only. The runtime does not migrate schema v4 or older\n  databases and does not archive or replace them. Remove the incompatible project-cognition.db\n  explicitly before `sp-map-scan -> sp-map-build` with the current binary.\n  Uncertain closure can be recorded by `sp-map-update` as partial\u002Flow-confidence\n  facts, known unknowns, and `minimal_live_reads`.\n- Entry-time stale or weak cognition is still an advisory navigation concern unless the user explicitly requested map maintenance. A workflow may continue from live evidence when entry guidance allows it. That entry routing rule does not waive closeout ownership.\n- Workflow-owned mutation closeout is not an external map-maintenance handoff. If the active workflow changed project-related source, runtime, templates, generated assets, config, tests, state contracts, or behavior-bearing docs, closeout must run `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe closeout-plan --workflow \"$ACTIVE_WORKFLOW\" --format json` before recording inline project cognition update data.\n- When `DELTA_SESSION_ID` exists, pass `--delta-session \"$DELTA_SESSION_ID\"` to `closeout-plan`. Fill fields listed in `required_agent_fields` from live evidence; optional payload\u002Fdelta fields such as `known_unknowns` and `boundary` are populated only when evidence supports them. Follow `update_mode=delta_session` by completing `delta_append_draft.argv_prefix` with evidence placeholders, appending the workflow closeout delta event, then running structured `update_argv`. Follow `update_mode=payload_file` by writing the completed `payload_draft`, then running structured `update_argv`. The display-only `update_command` and display-only `delta_append_command` placeholders are not execution strings.\n- Use `known_unknowns` only for blockers that make the cognition update unsafe to trust. If the working tree contains unrelated dirty\u002Funtracked paths and the workflow uses explicit workflow-owned paths, record that as `confidence_notes` or `boundary.initial_dirty_paths`, not as a blocking `known_unknowns` item.\n- Before update recording, resolve `unknown_path_dispositions` by setting `agent_disposition` to `adoptable`, `review_only`, `ignored`, or `blocking_known_unknown`. Verified `adoptable` paths do not become blocking `known_unknowns`. Only `blocking_known_unknown` dispositions become payload or delta known unknowns. `agent_disposition=adoptable` is an agent accounting decision, not proof that runtime indexing already succeeded; after `update_argv` runs, inspect `result_state`, `adopted_paths`, `review_paths`, `minimal_live_reads`, and `partial_refresh_reasons`.\n- Clean closeout keys on `result_state`, not `status=ok`, `update_id`, `last_update_id`, or freshness alone; `recorded` is legacy recorded-only partial\u002Fblocked output. If `partial_refresh_reasons` includes `missing_passing_verification_result`, repair the payload or delta evidence and rerun `update_argv` before final closeout instead of routing to `sp-map-update`. Never run the `complete-refresh` or `clear-dirty` helper after `result_state=partial_refresh`, `needs_rebuild`, `blocked`, or legacy `recorded`. Use `C:\\Users\\11034\\.specify\\bin\\project-cognition.exe mark-dirty --reason \"workflow-closeout-failed\" --format json` only when planner\u002Fupdate is unavailable, fails before recording useful update data, cannot safely identify workflow-owned scope, is blocked by runtime state, or verification\u002Fworkflow completion is not trustworthy.\n- `sp-map-update` is for manual\u002Fexternal maintenance and follow-up repair after user edits, interrupted workflows, or explicit operator map-maintenance requests. It is external map maintenance, not routine cleanup for changes this workflow just made. In shared routing summaries, sp-map-update is for manual\u002Fexternal maintenance.\n- Do not rely on generic framework instinct, chat memory, or prior sessions when the\n  project cognition runtime should be the source of truth.\n\n## Senior Consequence Analysis Relationship\n\nProject cognition is necessary but not sufficient. Use it first to identify ownership, consumers, state surfaces, verification routes, and coverage gaps. Then run the Senior Consequence Analysis Gate when lifecycle, running-state, destructive-operation, shared-state, downstream consumer, compatibility, or multiple-behavior semantics matter.\n\nThe gate output must name affected objects, state behavior, dependency impact, recovery and validation, and coverage gaps. Preserve the Affected Object Map, State-Behavior Matrix, Dependency Impact Table, Recovery And Validation Contract, and Coverage Gaps. If project cognition cannot decide product semantics, record the gap and route to the appropriate workflow instead of treating the graph as authoritative.\n\n## Scope Guard\n\n- This gate applies even if the user asks for a direct code change without mentioning\n  Spec Kit workflows.\n- Stand down only when the task is clearly greenfield and does not depend on any\n  existing project structure, conventions, or runtime surface.\n",{"name":5,"metadata":24,"description":7,"compatibility":27},{"author":25,"source":26},"github-spec-kit","templates\u002Fpassive-skills\u002Fspec-kit-project-cognition-gate\u002FSKILL.md","Requires spec-kit project structure with .specify\u002F directory","main","021f5cbe02157229460a577e9a585f2da6d78cb0",".codex\u002Fskills\u002Fspec-kit-project-cognition-gate","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck","https:\u002F\u002Fgithub.com\u002Fchenziyang110","2026-08-07 18:10:54",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add chenziyang110\u002Flaunchdeck --skill spec-kit-project-cognition-gate",{"tool":40,"command":41},"bunx","bunx skills add chenziyang110\u002Flaunchdeck --skill spec-kit-project-cognition-gate",{"tool":43,"command":44},"pnpm","pnpm dlx skills add chenziyang110\u002Flaunchdeck --skill spec-kit-project-cognition-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fspec-kit-project-cognition-gate\u002FSKILL.md",true,[],[49,56,62,68,75,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7875F3HQ1GF5F6BR36KY3JE","launchdeck-agent","Codex host adapter contract fixture for Launchdeck.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fagent-hosts\u002Fcodex\u002Fskill\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"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},"01M7875DV2DQR33K1NFJHKAMZP","Claude host adapter contract fixture for Launchdeck.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fagent-hosts\u002Fclaude\u002Fskill\u002FSKILL.md",[],[],{"skillNo":63,"name":51,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M78759JQ7A6FQ8KDQTNYS3X9","Use this skill aggressively for local project lifecycle operations even when the user does not mention Launchdeck: start this project, run the dev server, dev, build, test, restart service, stop service, show logs, inspect ports, port is occupied, clean cache; and when the user explicitly asks to configure this local project for Launchdeck or create or generate a project-adapted `.launchdeck.yml`, including 为这个项目生成 Launchdeck 配置. Do not use for ordinary code edits, docs-only work, general explanations, API design discussion, or production deployment unless the user also asks to operate or configure a local project or service.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Fagent\u002Finstaller-payload\u002Fskill\u002Flaunchdeck-agent\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M78753ZJQ7G2CZT1W1G8WRJV","zig-testing","Use ONLY when user explicitly requests Zig test code, built-in test runner configuration,\ntest failure diagnosis, or coverage for Zig projects.\n\nTriggers: \"write test zig\", \"zig test\", \"testing.allocator\", \"zig coverage\",\n\"comptime test\", \"zig expectError\", \"zig snapshot test\", \"zig fuzz\".\n\nDo NOT activate for: general Zig coding without test context, build.zig configuration\nfor non-test targets, Zig compiler errors, or Zig build system setup.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fzig-testing\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M78750JXY4Z5D5W1EX3PQ31Z","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7874X2T83EQQFRCEY5SJJVC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fverification-before-completion\u002FSKILL.md",[],[]]