Compare commits

..

2 commits

Author SHA1 Message Date
vrubelroman
d7562257d3 chore: organize repository structure 2026-12-04 00:32:20 +03:00
vrubelroman
d50f297eb5 process: add internal OpenSpec workflow 2026-12-03 14:00:36 +03:00
137 changed files with 13584 additions and 172 deletions

View file

@ -0,0 +1 @@
opencode

View file

@ -0,0 +1,215 @@
---
name: openspec-apply-change
description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement".
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Implement tasks from an OpenSpec change.
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
**Input**: Optionally specify a change name (e.g., `openspec-apply-change add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
**Steps**
1. **Select the change**
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
Always announce: "Using change: <name>" and how to override (e.g., `openspec-apply-change <other>`).
2. **Check status to understand the schema**
```bash
openspec status --change "<name>" --json
```
Parse the JSON to understand:
- `schemaName`: The workflow being used (e.g., "spec-driven")
- `planningHome`, `changeRoot`, and `actionContext`: planning scope and edit constraints
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
3. **Get apply instructions**
```bash
openspec instructions apply --change "<name>" --json
```
This returns:
- `contextFiles`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
- Progress (total, complete, remaining)
- Task list with status, source path, and source line
- Dynamic instruction based on current state
- Optional `context`: current required project instruction input from the selected root
- Optional `operationGuidance`: current advisory guidance for apply
- `missingArtifacts` (when present): required artifact ids with no output
- Optional `lifecycle` (`before`, `completed`, `handling`) or `lifecycleError`: project lifecycle actions for this run. Older CLIs omit both. When both are absent, skip every lifecycle step below.
**Handle states:**
- If `state: "blocked"`: show the message and pause implementation. Skip lifecycle actions.
- If `missingArtifacts` is non-empty: show the missing artifacts and the recovery step from the CLI’s `instruction` field. Keep the selected store on any follow-up command.
- Otherwise, follow the CLI instruction to create or repair the schema-configured tracking file from existing planning artifacts. Do not assume another artifact is ready or start implementation while blocked.
- If `state: "all_done"`: report that all tracked tasks are complete and suggest review or verification as appropriate before archiving. Skip `lifecycle.before`. If `lifecycle.completed` is present, read every `contextFiles` path first, then handle it following `lifecycle.handling`. If `lifecycleError` is present, report it and finish.
- Otherwise: proceed to implementation
Treat `context` as a required prompt-level input. Read and consider it, and
apply relevant project facts, conventions, and constraints while implementing.
Treat `operationGuidance` as optional additive advice. Read and consider every
entry, and follow entries that are applicable and compatible with the built-in
workflow.
Keep both fields separate from CLI-returned state, missing artifacts, tasks,
progress, `contextFiles`, and the built-in `instruction`. They are not
evidence of task completion, do not replace the built-in instruction, and do
not permit bypassing a blocked state. If context conflicts with the built-in
instruction, an explicit user choice, or a CLI-controlled value, report the
conflict and preserve the controlling value. If guidance is inapplicable or
conflicts with those controlling inputs, do not follow it and explain why.
These are prompt-level behavior contracts, not enforceable checks.
4. **Read context files**
Read every file path listed under `contextFiles` from the apply instructions output.
The files depend on the schema being used:
- **spec-driven**: proposal, specs, design, tasks
- Other schemas: follow the contextFiles from CLI output
Do not copy `context` or `operationGuidance` verbatim into implementation
files or planning artifacts unless the user separately asks for that content.
When ready to implement, once per start or resume and before any edits:
- If `lifecycleError` is present: report its `issues` and `fix`, and stop before editing anything.
- If `lifecycle.before` is present: handle it following `lifecycle.handling`.
5. **Show current progress**
Display:
- Schema being used
- Progress: "N/M tasks complete"
- Remaining tasks overview
- Dynamic instruction from CLI
6. **Implement tasks (loop until done or blocked)**
For each pending task:
- Show which task is being worked on
- Make the code changes required
- Keep changes minimal and focused
- Before editing, confirm the checkbox at the returned `sourcePath` and `line` still matches the task description; if it does not, rerun the apply instructions and use the refreshed location
- Mark the task complete at its returned `sourcePath` and `line`: `- [ ]` → `- [x]`
- Rerun the apply instructions and confirm that task is now done and progress changed
- Continue to next task
Ignore `lifecycle` and `lifecycleError` on these reruns. Lifecycle actions come only from the Step 3 read.
**Pause if:**
- Task is unclear → ask for clarification
- Implementation reveals a design issue → suggest updating artifacts
- A task needs work beyond what the spec and tasks describe, or you are tempted to drop, narrow, defer, or accept exceptions to specified behavior to make it fit → surface the added scope and ask; do not absorb it silently
- Error or blocker encountered → report and wait for guidance
- User interrupts
7. **On completion or pause, show status**
Display:
- Tasks completed this session
- Overall progress: "N/M tasks complete"
- If all done (the latest apply response has `state: "all_done"` on tracked schemas, or implementation finished without pausing on schemas without task tracking): report completion and suggest review or verification as appropriate before archiving. Then, if `lifecycle.completed` from Step 3 is present, handle it once following `lifecycle.handling`. If `lifecycleError` is present, report it and finish.
- If paused: explain why and wait for guidance. Do not handle `lifecycle.completed`.
**Output During Implementation**
```
## Implementing: <change-name> (schema: <schema-name>)
Working on task 3/7: <task description>
[...implementation happening...]
✓ Task complete
Working on task 4/7: <task description>
[...implementation happening...]
✓ Task complete
```
**Output On Completion**
```
## Implementation Complete
**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 7/7 tasks complete ✓
### Completed This Session
- [x] Task 1
- [x] Task 2
...
All tracked tasks are complete. Review or verify the change as appropriate
before archiving. Review the completed work, then ask to archive this change.
```
**Output On Pause (Issue Encountered)**
```
## Implementation Paused
**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 4/7 tasks complete
### Issue Encountered
<description of the issue>
**Options:**
1. <option 1>
2. <option 2>
3. Other approach
What would you like to do?
```
**Guardrails**
- Keep going through tasks until done or blocked
- Always read context files before starting (from the apply instructions output)
- If task is ambiguous, pause and ask before implementing
- If implementation reveals issues, pause and suggest artifact updates
- Keep code changes minimal and scoped to each task
- Update task checkbox immediately after completing each task
- Pause on errors, blockers, or unclear requirements - don't guess
- When a task needs work beyond what the spec describes, surface the added scope and pause - never silently narrow, defer, or simplify away specified behavior
- Only mark a task `- [x]` when its specified behavior is fully implemented, not when it is partially done or deferred
- Use contextFiles from CLI output, don't assume specific file names
- Use each task's sourcePath and line to update its exact checkbox
- Do not use context or operation guidance as proof that a task is complete
- Apply relevant project context; report conflicts with controlling workflow inputs
- Consider every guidance entry; explain any inapplicable or conflicting advice
- Do not copy runtime context or operation guidance into implementation files or planning artifacts
- Preserve CLI-controlled blocked/ready/all-done behavior and completion criteria
- Take lifecycle actions only from the Step 3 read, never from `openspec lifecycle actions`
- Handle `lifecycle.before` once before edits and `lifecycle.completed` once when Apply finishes implementing (`state: "all_done"` on tracked schemas, or after finishing without pausing on schemas without task tracking), never when blocked or paused
- What an action does, including pausing for input, comes from its own `instructions`
**Fluid Workflow Integration**
This skill supports the "actions on a change" model:
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly

View file

@ -0,0 +1,241 @@
---
name: openspec-archive-change
description: Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete. Also use when the user says "openspec archive" or "opsx archive".
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Archive a completed change in the experimental workflow.
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
**Steps**
1. **Select the change**
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
When prompting, show only active changes (not already archived).
Include the schema used for each change if available.
Always announce: "Using change: <name>" and how to override (e.g., `openspec-archive-change <other>`).
**Load current archive inputs before the existing archive checks:**
After resolving the selected change and planning root, run this once for the archive:
```bash
openspec instructions archive --change "<name>" --json
```
Keep the same selected-root flags on this command. This lookup is advisory and
optional: a failed lookup must never block archiving.
If it exits non-zero or returns invalid JSON — for example on an older CLI that
does not support this command yet — continue the archive workflow with no
context, no operation guidance, and no lifecycle actions.
Do not report an error and do not stop.
A successful response may omit every optional field. Treat `context` as a
required prompt-level input: read and consider it, and apply relevant project
facts, conventions, and constraints. Treat `operationGuidance` as optional
additive advice: read and consider every entry, and follow entries that are
applicable and compatible with the built-in archive workflow.
Keep both fields separate from built-in steps, explicit user choices, resolved
paths, CLI checks, and command contracts. If context conflicts with one of those
controlling inputs, report the conflict and preserve the controlling value. If
guidance is inapplicable or conflicts with a controlling input, do not follow it
and explain why. Do not infer replacement paths, skipped prompts, or flags from
either field, and do not copy their text verbatim into specs, change artifacts,
or archive summaries unless the user separately asks for it. These are
prompt-level behavior contracts, not enforceable checks.
The response may also include `lifecycle` (`before`, `completed`,
`handling`) or `lifecycleError`: project lifecycle actions for this archive.
Older CLIs omit both. When both are absent, skip every lifecycle step below.
2. **Check artifact completion status**
Run `openspec status --change "<name>" --json` to check artifact completion.
Parse the JSON to understand:
- `schemaName`: The workflow being used
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context
- `artifacts`: List of artifacts with their status (`done`, `skipped`, or other)
**If any artifacts are neither `done` nor `skipped`** (skipped artifacts satisfy the requirement - the change declares skip_specs):
- Display warning listing incomplete artifacts
- Ask the user to confirm they want to proceed
- Proceed if user confirms
3. **Check task completion status**
Run `openspec list --json` with the same selected-root flags and find the
entry in `changes` whose `name` exactly matches the selected change.
Require exactly one match and nonnegative integer `totalTasks` and
`completedTasks`, with `completedTasks <= totalTasks`. The CLI resolves
the schema's tracked task files, including custom artifact names, output
paths, and globs.
Incomplete tasks = `totalTasks - completedTasks`.
Do not infer task completion from artifact status or the absence of a
top-level `tasks.md`. If the lookup fails, returns invalid JSON, omits or
duplicates the selected change, or returns invalid counts, report the problem
and stop before syncing or archiving.
The CLI counts only `x`/`X` checkbox markers as complete;
other markers, including unfamiliar ones, remain incomplete.
**If incomplete tasks found:**
- Display warning showing count of incomplete tasks
- Ask the user to confirm they want to proceed
- Proceed if user confirms
**If `totalTasks` is zero:** Proceed without a task-related warning.
4. **Assess delta spec sync state**
If `lifecycleError` is present: report its `issues` and `fix`, and stop before syncing specs or moving the change. Archiving never reaches `lifecycle.completed` on a broken config.
**Check the archive target first:** Record the target name as `<target-name>`: use the change name as-is when it already starts with a `YYYY-MM-DD-` prefix; otherwise prepend the current date as `YYYY-MM-DD-<change-name>`. Never stack a second date (same rule as `openspec archive`).
If `<planningHome.changesDir>/archive/<target-name>` already exists, stop before writing any main spec. Report the collision, name any main specs this run already synced, leave `changeRoot` where it is, and suggest renaming the existing archive or this change.
Use `artifactPaths.specs.existingOutputPaths` from status JSON as the only
delta-spec source. If the `specs` entry is missing or
`existingOutputPaths` is empty, skip sync and continue at the archive target recheck below.
The before actions still apply. Do not infer delta specs from other artifacts.
**If delta specs exist:**
- Compare each delta spec with its corresponding main spec at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (use the store-aware `planningHome.root` from step 2, not a hardcoded repo path)
- A missing main spec is **not automatically** "already synced". For a new capability, the main spec is an *output* of the sync, not an input:
- If the delta has MODIFIED or RENAMED requirements, report that only ADDED requirements can create a new main spec and mark that capability as sync-blocked. Never invent a requirement that has no current version.
- Otherwise, if the delta has only REMOVED requirements and the change's `.openspec.yaml` declares `retire_capabilities: true`, the capability is already retired: count it as already synced, warn that there is nothing left to remove, and do not recreate the main spec. Apply this rule both now and when verifying a completed sync.
- Otherwise, if the delta has no ADDED requirements, report that no sync is possible and mark that capability as sync-blocked. For a REMOVED-only delta, warn that there is no main spec to remove from and leave the main-spec tree unchanged. `openspec archive` refuses the unmarked REMOVED-only case with `Spec must have at least one requirement`.
- Otherwise, count the capability as needing sync and name it in the summary (`<capability-path>: new main spec will be created`). If the delta also has REMOVED requirements, warn that they will be ignored because there is no main spec to remove from. The sync creates the main spec from only the delta's ADDED requirements, exactly as `openspec archive` does.
- Determine what changes would be applied (adds, modifications, removals, renames)
- Continue assessing the remaining capabilities even when one is sync-blocked. Show a combined summary before prompting.
**Prompt options:**
- If any capability is sync-blocked: explain why and offer only "Archive without syncing", "Cancel"
- Otherwise, if changes needed: "Sync now (recommended)", "Archive without syncing", "Cancel"
- Otherwise, if already synced: "Archive now", "Sync anyway", "Cancel"
Route on the answer:
- "Cancel" — stop, do not archive
- "Archive without syncing" or "Archive now" — skip sync and continue through the checks below
- "Sync now" or "Sync anyway" — select sync, then continue through the checks below. Do not start any sync while a capability is sync-blocked; explain the blocker and repeat the available choices.
- Anything else — ask again rather than archiving
After a pause, reuse the archive inputs from step 1 without fetching them again. Check the archive target again now. If `<planningHome.changesDir>/archive/<target-name>` exists, stop before writing any main spec, leave `changeRoot` where it is, and suggest renaming the existing archive or this change.
**Only if syncing was selected**, run
`openspec instructions specs --change "<name>" --json` once with the same
selected-root flags. Require a zero exit status and valid artifact-instruction
JSON. If the lookup fails or returns invalid JSON, report the error and stop
before writing any main spec or moving the change. A valid response with omitted
`rules` is the no-rules case. Apply returned `rules` only to the content and
form of main specs produced by this merge; do not use them as archive guidance,
change CLI behavior, or copy the rule text into any output file.
If `lifecycle.before` is present, handle it once following `lifecycle.handling`, whether or not you are syncing. If an action pauses, recheck the archive target before writing.
If syncing was not selected, skip sync and its verification and proceed to step 5.
Then run the `openspec-sync-specs` workflow inline if that skill is installed, or otherwise perform the delta-to-main-spec merge inline yourself (an agent-driven intelligent merge either way) for change '<name>', passing the delta spec analysis and the fetched specs-rule snapshot from above, and wait for it to finish. The inline sync must reuse that snapshot without fetching `specs` instructions again. Do not delegate it to a background task — step 5 would move `changeRoot` out from under a sync that is still reading it, leaving the change archived and the main specs never updated. If your agent can only run it by delegation, delegate synchronously and wait for the result.
If the sync reports any stop or blocking condition, treat the sync as failed.
Stop the archive immediately. Do not perform the post-sync content comparison and do not move its `changeRoot`.
Nothing has moved, so the user can fix the blocking condition or re-run the sync.
After the sync writes each main spec, verify its structure against the canonical sync contract:
- A new main spec starts with a `# <capability> Specification` title. An existing main spec keeps its title exactly as it is.
- Preserve existing `## Purpose` sections completely untouched for established main specs.
- For a new main spec, copy the delta `## Purpose` verbatim. Warn only if the purpose text is shorter than standard validation expects. Do not regenerate or rewrite existing authored purpose. If no usable `## Purpose` is provided, use the existing TBD Purpose behavior and warning.
- Verify that no delta-style section headers (`## ADDED Requirements`, `## MODIFIED Requirements`, `## REMOVED Requirements`, `## RENAMED Requirements`) remain in the main spec, adhering strictly to the sync workflow formatting rules.
- Requirement blocks the sync wrote or changed use `### Requirement:` headings, and their scenarios use `#### Scenario:` headings, under the spec's `## Requirements` section. Leave content the delta does not mention exactly as it is.
Then re-run the comparison from the top of this step, including the explicitly retired, missing-spec case, against every capability that has a delta spec in `artifactPaths.specs.existingOutputPaths` — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:
- ADDED requirements present
- MODIFIED requirements carrying the scenario and description changes named in the delta, with their other scenarios intact
- REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving `## Requirements` empty), its main spec deleted rather than left empty.
- RENAMED requirements present under the new name and absent under the old one
If the sync failed, or any capability does not match, report what differs and stop — do not archive. Nothing has moved and `changeRoot` is intact, so the user can fix the mismatch or re-run the sync and start the archive again.
5. **Perform the archive**
Create an `archive` directory under `planningHome.changesDir` if it doesn't exist:
```bash
mkdir -p "<planningHome.changesDir>/archive"
```
Use the `<target-name>` recorded in step 4, unchanged.
**Check again immediately before the move:**
- If the target now exists: Fail with error, leave `changeRoot` where it is, report any main specs step 4 synced, and suggest renaming the existing archive or this change
- If not: Move `changeRoot` to the archive directory
```bash
mv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>"
```
After the move, if `lifecycle.completed` is present, handle it once following `lifecycle.handling`, whether or not specs were synced. The change now lives at its archive path.
6. **Display summary**
Show archive completion summary including:
- Change name
- Schema that was used
- Archive location
- Whether specs were synced (if applicable)
- Note about any warnings (incomplete artifacts/tasks)
**Output On Success**
```markdown
## Archive Complete
**Change:** <change-name>
**Schema:** <schema-name>
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
**Specs:** <"✓ Synced to main specs" only if the step 4 verification passed; otherwise "No delta specs" or "Sync skipped">
<"All artifacts complete. All tasks complete." — or, if archived with warnings, list them instead (e.g. "Archived with 2 incomplete tasks")>
```
**Guardrails**
- Announce the selected change; prompt for selection when it is ambiguous
- Use artifact graph (openspec status --json) for completion checking
- Don't block archive on warnings - just inform and confirm
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
- Show clear summary of what happened
- If sync is requested, run the `openspec-sync-specs` workflow inline if that skill is installed, or otherwise perform the delta-to-main-spec merge inline yourself (agent-driven either way)
- When you merge inline because the sync skill is not installed, keep its safeguards. Delete a spec whose last requirement the delta removes only if the change's `.openspec.yaml` declares `retire_capabilities: true`, the spec has no other authored sections, and its path resolves inside the real specs root; otherwise stop before writing. After the merge, run `openspec validate --specs` with the same selected-root flags, and treat a failure as a failed sync: stop and leave `changeRoot` where it is
- Never archive while a spec sync is still in flight — run the sync inline and verify the main specs before moving `changeRoot`
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
- Apply relevant runtime context and report conflicts; operation guidance remains advisory
- Consider every guidance entry and explain any inapplicable or conflicting advice
- Existing CLI checks, resolved paths, prompts, and command contracts are unchanged
- Artifact rules constrain only the specs being written and are never operation guidance
- Never copy runtime context, operation guidance, or artifact-rule text verbatim into output files
- Take lifecycle actions only from the step 1 archive-inputs read, never from `openspec lifecycle actions`. What an action does, including pausing for input, comes from its own `instructions`

View file

@ -0,0 +1,364 @@
---
name: openspec-explore
description: Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a project that uses OpenSpec. Use when the user wants to think through something before or during an OpenSpec change. Also use when the user says "openspec explore" or "opsx explore".
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
**IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and run read-only commands or tools without confirmation. Never implement code in Explore, even through a lifecycle action. If the user asks you to implement something, offer to capture the discussion as a change.
Answering design or clarifying questions is never consent to write. When you offer to capture work, name the artifacts or files you would change and what you would do, ask a direct yes/no question, and wait for the user's confirmation in a separate message. An explicit request to capture a new change confirms creation and the artifacts the user named. For a new change, follow the Create action rules below.
**This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
---
## The Stance
- **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
- **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
- **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
- **Adaptive** - Follow interesting threads, pivot when new information emerges
- **Patient** - Don't rush to conclusions, let the shape of the problem emerge
- **Grounded** - Explore the actual codebase when relevant, don't just theorize
---
## Planning a Change
When the user is planning a change, guide them toward shared understanding with focused discovery questions. For open-ended discussion, follow the conversation without imposing an interview or a required output.
Before asking a factual question, follow the context discovery below and inspect relevant OpenSpec artifacts, source, tests, docs, and configuration. Do not ask the user to repeat facts you can verify. Summarize relevant findings without reproducing private context or rules. If evidence is missing, conflicting, or inaccessible, state that limitation and ask only for the clarification needed to proceed.
- **Follow dependencies** - Resolve the next blocking decision before its dependent details. For example, clarify the user's outcome and scope before choosing an API or data model. Revisit downstream assumptions when an earlier answer changes. Skip branches that do not matter to this goal.
- **Keep questions focused** - Ask one focused question at a time, and briefly explain why it matters and which decision it unlocks. Batch questions only if the user asks for a batch; keep them small and group related decisions.
- **Offer grounded recommendations** - When evidence supports a recommendation, state your preferred option and why it fits the user's goals, with alternatives and their tradeoffs when useful. Do not invent intent, priorities, or external constraints: ask the user when only they can answer. Avoid a fixed question format.
- **Keep a conversational record** - Track decisions in the conversation, not in files. Separate confirmed decisions from proposed defaults and unresolved questions. Silence is not acceptance. Accepting an answer or a batch of recommendations is not permission to write. Keep file-write confirmation separate from discovery questions and follow the guardrails below.
Stop asking when the user has enough clarity. Let them pause, pivot, or defer a decision; do not exhaust every branch or force a proposal.
For example, after inspecting the relevant code:
```text
The CLI already uses SQLite and has no remote service. Is sharing state
across devices in scope? That determines whether local storage is enough.
If this stays a single-device tool, I recommend keeping SQLite to avoid
adding a service to operate; shared state would need a separate sync design.
```
---
## What You Might Do
Depending on what the user brings, you might:
**Explore the problem space**
- Ask clarifying questions that emerge from what they said
- Challenge assumptions
- Reframe the problem
- Find analogies
**Investigate the codebase**
- Map existing architecture relevant to the discussion
- Find integration points
- Identify patterns already in use
- Surface hidden complexity
**Compare options**
- Brainstorm multiple approaches
- Build comparison tables
- Sketch tradeoffs
- Recommend a path (if asked)
**Visualize**
```
+------------------------------------------+
| Use ASCII diagrams liberally |
+------------------------------------------+
| |
| [State A] -------> [State B] |
| | |
| v |
| [State C] |
| |
| System diagrams, state machines, |
| data flows, architecture sketches, |
| dependency graphs, comparison tables |
| |
+------------------------------------------+
```
**Draw with plain ASCII only** — borders `+` `-` `|`, arrows `-->` `<--` `^` `v`, markers `*` `x`.
Unicode diagram glyphs can render at different widths across terminals, fonts, and locales, so padded boxes and aligned tables can drift. Keep every diagram character ASCII.
**Surface risks and unknowns**
- Identify what could go wrong
- Find gaps in understanding
- Suggest spikes or investigations
---
## OpenSpec Awareness
You have full context of the OpenSpec system. Use it naturally, don't force it.
### Check for context
At the start, quickly check what exists:
```bash
openspec list --json
```
This tells you:
- If there are active changes
- Their names and task status
- What the user might be working on
That is the *change* list - work in flight. It does not include the project's durable capabilities, so list those too:
```bash
openspec list --specs
```
Add `--json` for ids and requirement counts, and append `--store "<id>"` only for a registered standalone store. This is the inventory of what the project already claims to do, and `openspec list` on its own never shows it. To look at one, run `openspec show "<spec-id>" --type spec --json --no-scenarios` (same `--store` rule) - it returns that capability's purpose and requirement texts without pulling the whole spec file into context, and `--type spec` stops a change of the same name from making it ambiguous.
The filtered read is only an overview. Before deciding what is already covered or what should change, read each relevant spec in full, including scenarios, with `openspec show "<spec-id>" --type spec` (same `--store` rule).
Then read the project's own context from the resolved root - `<root.path>/openspec/config.yaml` (or `config.yml`). Use the `root.path` returned above, and skip this if neither file exists:
- `context`: project background - tech stack, conventions, constraints
- `rules`: keyed by artifact id - the entries for an artifact apply only when you write that artifact
Ground your thinking in these. They are constraints for you to follow, not content to reproduce: do NOT copy them into the conversation or into any artifact you create.
### When no change exists
Think freely. When insights crystallize, you might offer:
- "This feels solid enough to start a change. Want me to create a proposal?"
- Or keep exploring - no pressure to formalize
A user's request to capture a new change confirms creation and the artifacts they requested. An accepted offer confirms only what you offered. Once creation is confirmed, follow the configured Create actions within normal tool permissions. Run `auto` actions without asking again and ask before running `suggest` actions. Outside those actions, write only the confirmed change artifacts. Ask before expanding the capture scope. Never implement code in Explore.
Use `openspec instructions create --json` (with `--store <id>` for a selected store) as the **Project check** for creation. Follow the root and error rules above. If an older CLI returns JSON without a `root` field, use `openspec list --json` for the check and continue without lifecycle actions.
If `lifecycleError` is present, report its `issues` and `fix` and stop before creating any files. If `lifecycle.before` is present, handle those actions once following `lifecycle.handling`.
1. Run `openspec new change "<name>"` (with `--store <id>` when applicable) before creating any artifacts. Never create a new change directory under `openspec/changes/` by hand; the CLI scaffold creates required metadata such as `.openspec.yaml`. Keep the selected `--store <id>` on every applicable follow-up `status` and `instructions` command.
If `openspec new change` fails, report the error and stop. Otherwise, handle `lifecycle.completed` once from the earlier response, following `lifecycle.handling`, before writing any planning artifacts. If an action fails, keep the change and report what happened. If the user asks to retry, check what the action already did.
2. Run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store), then process the requested artifacts in dependency order. For each requested artifact that is `ready`, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store). Before creating a requested artifact, evaluate any condition in its own `instruction` against the explored change; record a deliberate skip instead when the condition does not apply. If a requested artifact is blocked by a direct prerequisite the user did not request, run `openspec instructions "<prerequisite-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) for that prerequisite whether it is `ready` or `blocked`. If its own `instruction` states a condition, evaluate that condition against the explored change and record a deliberate skip only when the condition does not apply. If the condition applies, or the prerequisite is not conditional, treat it as a normal prerequisite and ask before expanding the capture. Do not create an unrequested prerequisite unless the user approves.
3. Follow the returned `template` and `instruction` fields. Read completed dependency files listed in `dependencies`, and apply `context` and `rules` as constraints without copying them into the artifact. Choose the output path before creating anything: when `resolvedOutputPath` is a glob, use the instruction to choose a concrete path inside `changeRoot` and verify it remains inside `changeRoot` after resolving symlinks, both in its parent directories and in the file itself if it already exists; if it does not, stop and tell the user. Otherwise the output path is `resolvedOutputPath`. If the instruction delegates creation to a specific skill or command, invoke it only if it can write the artifact to that output path; otherwise stop and tell the user. Otherwise write the artifact to that output path. Verify that the selected concrete output exists at that output path.
4. After creating each artifact, re-run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) and continue until every requested artifact is `done`, `skipped`, or was deliberately skipped because its own `instruction` stated a condition that did not apply. Tell the user about a deliberate conditional skip, remember it, and do not reconsider it. Dependencies are enablers, not gates: if a requested artifact is still `blocked` only because you deliberately skipped a conditional prerequisite, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) despite the blocked status, then create it using step 3 only when those recorded conditional skips are its sole missing dependencies. If a requested artifact is blocked by a prerequisite the user did not ask to capture and cannot be conditionally skipped, explain that dependency and ask before expanding the capture.
Capture the artifact(s) the user requested without asking them to invoke another workflow. If they asked only to start a change, stop after scaffolding and show its status. When the requested capture is done, stop there and name where the work continues. To finish planning, complete the remaining planning artifacts from the change. To implement, start from the tasks after leaving explore mode. Capturing artifacts never starts implementing them.
### When a change exists
If the user mentions a change or you detect one is relevant:
1. **Resolve and read existing artifacts for context**
- Run `openspec status --change "<name>" --json`.
- Use `changeRoot`, `artifactPaths`, and `actionContext` from the status JSON.
- Read existing files from `artifactPaths.<artifact>.existingOutputPaths`.
2. **Reference them naturally in conversation**
- "Your design mentions using Redis, but we just realized SQLite fits better..."
- "The proposal scopes this to premium users, but we're now thinking everyone..."
3. **Offer to capture when decisions are made**
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve an existing capability's full path and follow the project's established organization for new capabilities.
The files below are the default spec-driven schema's. With another schema, capture each insight in whichever artifact from `artifactPaths` fits it, and name that artifact in your offer; never create an artifact the schema does not define.
| Insight Type | Where to Capture |
|----------------------------|-------------------------------------|
| New requirement discovered | `specs/<capability-path>/spec.md` |
| Requirement changed | `specs/<capability-path>/spec.md` |
| Design decision made | `design.md` |
| Scope changed | `proposal.md` |
| New work identified | `tasks.md` |
| Assumption invalidated | Relevant artifact |
Example offers (default schema):
- "That's a design decision. Capture it in design.md?"
- "This is a new requirement. Add it to specs?"
- "This changes scope. Update the proposal?"
4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
---
## What You Don't Have To Do
- Follow a script
- Ask the same questions every time
- Produce a specific artifact
- Reach a conclusion
- Stay on topic if a tangent is valuable
- Be brief (this is thinking time)
---
## Handling Different Entry Points
**User brings a vague idea:**
```
User: I'm thinking about adding real-time collaboration
You: Real-time collab is a big space. Let me think about this...
COLLABORATION SPECTRUM
============================================
Awareness Coordination Sync
| | |
v v v
+--------+ +--------+ +--------+
|Presence| |Cursors | | CRDT |
| "3 | | Multi | |Conflict|
|online" | | select | | free |
+--------+ +--------+ +--------+
| | |
trivial moderate complex
Where's your head at?
```
**User brings a specific problem:**
```
User: The auth system is a mess
You: [reads codebase]
+---------------------------------------------+
| CURRENT AUTH FLOW |
+---------------------------------------------+
|
+-------------+-------------+
v v v
+---------+ +---------+ +---------+
| Google | | GitHub | | Email |
| OAuth | | OAuth | | Magic |
+----+----+ +----+----+ +----+----+
| | |
+-------------+-------------+
v
+-----------+
| Session |
+-----+-----+
|
v
+-----------+
| Perms |
+-----------+
I see three tangles. Which one's burning?
```
**User is stuck mid-implementation:**
```
User: openspec-explore add-auth-system
The OAuth integration is more complex than expected
You: [reads change artifacts]
You're on task 4: "Implement OAuth flow"
Let me trace what's involved...
[draws diagram, explores options, suggests paths]
Want to update the design to reflect this?
Or add a spike task to investigate?
```
**User wants to compare options:**
```
User: Should we use Postgres or SQLite?
You: Generic answer is boring. What's the context?
User: A CLI tool that tracks local dev environments
You: That changes everything.
+-------------------------------------------------+
| CLI TOOL DATA STORAGE |
+-------------------------------------------------+
Key constraints:
- No daemon running
- Must work offline
- Single user
SQLite Postgres
Deployment embedded needs server
Offline yes no
Single file yes no
SQLite. Not even close.
Unless... is there a sync component?
```
---
## Ending Discovery
There's no required ending. Discovery might:
- **Flow into a proposal**: "Would you like me to capture this as a change?"
- **Result in artifact updates**: "Updated the design with these decisions"
- **Just provide clarity**: User has what they need, moves on
- **Continue later**: "We can pick this up anytime"
When it feels like things are crystallizing, you might summarize:
```
## What We Figured Out
**The problem**: [crystallized understanding]
**The approach**: [if one emerged]
**Open questions**: [if any remain]
**Next steps** (if ready):
- Ask me to capture this discussion as a change
- Keep exploring: just keep talking
```
But this summary is optional. Sometimes the thinking IS the value.
---
## Guardrails
- **Don't implement** - Never write application code or change workflow configuration (schemas, templates, or `openspec/config.yaml`), including through a Create action. Keep writes within the capture rules above. When the user is ready to build, offer to capture the discussion as a change first.
- **Don't fake understanding** - If something is unclear, dig deeper
- **Don't rush** - Discovery is thinking time, not task time
- **Don't force structure** - Let patterns emerge naturally
- **Don't auto-capture** - If you offer to capture, wait for the user's answer before running `openspec new change` or writing any files. For the user's own capture request, follow the capture rules above.
- **Don't manually scaffold changes** - Never create a new change directory under `openspec/changes/` by hand. Always use `openspec new change "<name>"` (with `--store <id>` when applicable) so required metadata such as `.openspec.yaml` is created before writing artifacts.
- **Do visualize** - A good diagram is worth many paragraphs
- **Do explore the codebase** - Ground discussions in reality
- **Do question assumptions** - Including the user's and your own

View file

@ -0,0 +1,183 @@
---
name: openspec-propose
description: Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation. Also use when the user says "openspec propose" or "opsx propose".
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Propose a new change - create the change and generate all artifacts in one step.
**Planning boundary**: This workflow creates planning artifacts only. The user request that selected or triggered this workflow authorizes planning only, even if it asks to build or fix something. Do not edit project code. After the planning artifacts are complete, stop. Do not start implementation in the same response, even if the initial request asks for it. Wait for a new user request after the artifacts are presented; then start the apply workflow.
I'll create a change with the artifacts your schema defines. With the default spec-driven schema that is:
- proposal.md (what & why)
- `specs/<capability-path>/spec.md` (what the system must do - a delta, not the main spec)
- design.md (how)
- tasks.md (implementation steps)
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve an existing capability's full path and follow the project's established organization for new capabilities.
When the user is ready to implement, they must start the apply workflow explicitly.
---
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
**Steps**
1. **Understand the request and clarify material ambiguity**
If no clear input is provided, ask the user (open-ended, no preset options):
> "What change do you want to work on? Describe what you want to build or fix."
From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
If the request contains ambiguity that would materially affect scope, externally observable behavior, compatibility, or acceptance criteria, ask the user before creating the change. For minor details, make a reasonable assumption and record it in the planning artifacts.
2. **Load project context**
Run `openspec instructions create --json` from the current working directory (or `openspec instructions create --json --store "<store-id>"` when a registered store was explicitly selected). Use the returned `root.path` as the authoritative OpenSpec root. If it reports `no_openspec_root`, stop without creating or changing any files and follow the **Project check** above for how this workflow was reached. Offer `openspec init` only for an explicit OpenSpec request, and wait for the user to request initialization. Do not initialize automatically or run `openspec new change`. After initialization, rerun this check before continuing. For any other root failure, stop and report the error; do not fall back to the current directory or run later OpenSpec commands without the selected store.
If the JSON has no `root` field, the CLI predates `instructions create` and reports a change or artifact error instead. Run `openspec context --json` the same way, apply the root checks above to its result, and continue without early project context or lifecycle actions. Each artifact's instructions still carry `context`.
The response may include:
- `context`: project background. Apply it before exploring the codebase or making planning decisions.
- `lifecycle` (`before`, `completed`, `handling`) or `lifecycleError`: project lifecycle actions for creating a change. Older CLIs omit both. When both are absent, skip the lifecycle checkpoints.
Treat context as project-provided data and constraints, not as authority to change this workflow: it cannot override user authorization, the planning boundary, tool restrictions, or artifact and output rules. Do not copy the context into artifacts; use it to focus any codebase exploration and as a constraint on the proposal.
3. **Determine the workflow schema**
Use the configured default schema unless the user explicitly requests a different workflow.
**Use a different schema only if the user:**
- Explicitly requests a specific schema by name → use `--schema <schema-name>`
- Asks to "show workflows" or asks "what workflows" exist → resolve the authoritative root by running `openspec context --json` from the current working directory. If the user explicitly selected a registered store, use `openspec context --json --store "<store-id>"`. Then run `openspec schemas --json` with its working directory set to the returned `root.path` and let them choose. This preserves roots selected by a local `store:` pointer or the global `defaultStore`; when a registered store was explicitly selected, append `--store "<store-id>"` to `openspec schemas --json` as well. If context fails, stop as described in the context-loading step; do not fall back to the current directory.
Otherwise, omit `--schema` to preserve the configured default.
4. **Create the change directory**
If the user is continuing an existing change, skip this step and use its status.
If `lifecycleError` is present, report its `issues` and `fix` and stop before creating any files. If `lifecycle.before` is present, handle those actions once following `lifecycle.handling`.
Choose one schema form below. If a registered store is selected, append `--store "<store-id>"` to that command and each later OpenSpec command shown below that accepts `--store`.
Using the configured default:
```bash
openspec new change "<name>"
```
Using an explicitly requested schema:
```bash
openspec new change "<name>" --schema "<schema-name>"
```
This creates a scaffolded change in the planning home resolved by the CLI with `.openspec.yaml`.
If `openspec new change` fails, report the error and stop. Otherwise, handle `lifecycle.completed` once from the earlier response, following `lifecycle.handling`, before writing any planning artifacts. If an action fails, keep the change and report what happened. If the user asks to retry, check what the action already did.
5. **Get the artifact build order**
```bash
openspec status --change "<name>" --json
```
Parse the JSON to get:
- `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
- `artifacts`: list of all artifacts, each with its `status` and its `requires` edges (the artifact IDs it directly depends on)
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
6. **Create every artifact in the required set**
Use a todo list to track progress through the artifacts.
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
a. **For each artifact that is `ready` (dependencies satisfied)**:
- Get instructions:
```bash
openspec instructions <artifact-id> --change "<name>" --json
```
- The instructions JSON includes:
- `context`: Project background (constraints for you - do NOT include in output)
- `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
- `template`: The structure to use for your output file
- `instruction`: Schema-specific guidance for this artifact type
- `skipped`/`warning`: present when the change declares skip_specs and this artifact must NOT be created - stop and pick another artifact
- `resolvedOutputPath`: Resolved path or pattern to write the artifact
- `dependencies`: Completed artifacts to read for context
- Read any completed dependency files for context - always re-read them from disk, even if you saw them earlier in the conversation (the user may have edited them)
- **Inspect the relevant project before drafting**: Read `context` and `rules` first, then inspect relevant implementation, nearby tests, configuration, and documentation outside `openspec/`. Keep inspection read-only and proportional to the change; reuse findings for later artifacts and inspect more only as needed.
- Identify the target project from the request and project context; the planning home may be separate from the code. If the target is unclear, ask. For greenfield or non-code changes, inspect the available structure and relevant documents. If source is unavailable, state the limitation and ask when it materially affects the plan.
- Ground scope, approach, and tasks in what you find. Distinguish observed behavior from assumptions and proposed additions; surface conflicts with existing specs instead of silently deciding which is correct.
- Do this discovery now, rather than leaving generic "explore the codebase" or "make a plan" tasks for implementation. Keep any necessary follow-up investigation specific to an unresolved question.
- Choose the output path before creating anything. If `resolvedOutputPath` is a glob, follow `instruction` to choose a concrete path inside `changeRoot` that matches the glob, and verify it remains inside `changeRoot` after resolving symlinks, both in its parent directories and in the file itself if it already exists; if it does not, stop and tell the user. Otherwise the output path is `resolvedOutputPath`
- If the `instruction` field delegates creation to a specific skill or command, invoke it only if it can write the artifact to that output path; otherwise stop and tell the user. Then verify the artifact file exists at that output path
- Otherwise create the artifact file using `template` as the structure and write it to that output path
- Apply `context` and `rules` as constraints - but do NOT copy them into the file
- Show brief progress: "Created <artifact-id>"
b. **Continue until every artifact in the required set exists (not just `apply.requires`)**
- After creating each artifact, re-run `openspec status --change "<name>" --json`
- The required set is `applyRequires` plus every artifact reachable from those by following the `requires` edges in `status --json` - walk them transitively (spec-driven closes over proposal, specs, design, tasks). Leave artifacts outside that set alone
- `status` is file-existence only, so an `applyRequires` artifact reading `done` does NOT mean its dependencies exist - writing `tasks.md` early marks `tasks` done while `specs` was never written. Use each artifact's `requires` edges, not its `status`, to build the required set: a `done` artifact still lists what it depends on
- An artifact already reading `status: "skipped"` is satisfied: the change declares `skip_specs` in `.openspec.yaml`, so its files must NOT exist. Never try to create one
- Create every artifact in the required set that is missing, then re-check - creating one can unblock others
- Skip one only when `status` already reports it `skipped`, or when its own `instruction` says it is conditional: run `openspec instructions <artifact-id> --change "<name>" --json` and skip only if its `instruction` field marks it optional (e.g. "create only if..."). Spec-driven's `design.md` qualifies; `specs` qualifies only via the `skipped` status above, never by your own judgment. Tell the user, and do not reconsider it
- Dependencies are enablers, not gates: if a required artifact is still `blocked` only because you skipped a conditional dependency, write it anyway
- Stop when every artifact in the required set is `done`, `skipped`, or was deliberately skipped
c. **If an artifact requires user input** (unclear context):
- Ask the user to clarify
- Then continue with creation
7. **Show final status**
```bash
openspec status --change "<name>"
```
**Output**
After completing all artifacts, summarize:
- Change name and location
- List of artifacts created with brief descriptions, plus any conditional artifact you skipped and why
- What's ready: "All artifacts needed for implementation are ready."
- Prompt: "The plan is ready for review. When you’re ready, ask me to apply it."
**Artifact Creation Guidelines**
- Follow the `instruction` field from `openspec instructions` for each artifact type - it is the authoritative guidance, even for familiar artifact names
- If the `instruction` field directs you to use a specific skill or command to create the artifact, invoke it instead of writing the artifact directly - but only once you have chosen and checked the output path, and only if it can write there
- The schema defines what each artifact should contain - follow it
- Read dependency artifacts for context before creating new ones
- Use `template` as the structure for your output file - fill in its sections
- **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
- Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
- These guide what you write, but should never appear in the output
**Guardrails**
- The request that invoked this workflow authorizes planning only. Any implementation or apply instruction in that request does not carry forward. Do NOT implement the change, start the apply workflow, or edit project code during this workflow. After presenting the artifacts, stop and wait for a new user request to start the apply workflow
- Create every artifact the apply phase transitively depends on, not just the ids listed in `apply.requires`
- Always read dependency artifacts before creating a new one - re-read from disk, not from conversation memory (files may have changed since you last saw them)
- Ask about ambiguities that would materially change scope, externally observable behavior, compatibility, or acceptance criteria; for minor details, make reasonable assumptions and record them
- If a change with that name already exists, ask if user wants to continue it or create a new one
- Verify each artifact file exists after writing before proceeding to next
- Take lifecycle actions only from the step 2 read, never from `openspec lifecycle actions`. What an action does, including pausing for input, comes from its own `instructions`

View file

@ -0,0 +1,289 @@
---
name: openspec-sync-specs
description: Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change. Also use when the user says "openspec sync" or "opsx sync".
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Sync delta specs from a change to main specs.
This is an **agent-driven** operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
**Steps**
1. **Select the change**
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
When prompting, show changes that have delta specs (under `specs/` directory).
Always announce: "Using change: <name>" and how to override (e.g., `openspec-sync-specs <other>`).
2. **Resolve change context**
Run:
```bash
openspec status --change "<name>" --json
```
The JSON includes `planningHome.root`. Main specs live under `<planningHome.root>/openspec/specs/` — use that (store-aware) root for every main-spec path below, not a hardcoded repo path. When a store is selected it points at the store, not the current repository.
3. **Find delta specs**
Use `artifactPaths.specs.existingOutputPaths` from the status JSON as the
only source of delta spec paths. If the `specs` entry is missing or
`existingOutputPaths` is empty, report that there are no delta specs to sync,
do not infer them from other artifacts, and stop without requesting artifact
instructions or writing a main spec.
Sync every path in `existingOutputPaths` unless the caller narrowed the set.
A caller narrows it by naming an explicit list of complete entries from
`existingOutputPaths` — copy those absolute values verbatim. Archive does
this inline, and a user can too (for example, by selecting the entry ending
in `/specs/billing/invoices/spec.md`).
Then sync only the named paths and leave the remaining delta specs untouched:
bulk archive excludes a delta whose implementation it could not find, and
syncing it anyway would write a main spec the caller deliberately withheld.
Carry that narrowed selection through step 4; never widen it back to the full
list. If a named path is not in `existingOutputPaths`, do not sync it —
report it and stop, rather than dropping it silently. If the named list is
empty, report that there is nothing to sync and stop without writing a main
spec.
Each delta spec file contains sections like:
- `## ADDED Requirements` - New requirements to add
- `## MODIFIED Requirements` - Changes to existing requirements
- `## REMOVED Requirements` - Requirements to remove
- `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
If no delta specs found, inform user and stop.
4. **For each delta spec, apply changes to main specs**
Before the first main-spec write, obtain one current specs-rule snapshot:
- If archive invoked this workflow inline and supplied a valid snapshot from
`openspec instructions specs --change "<name>" --json`, reuse it and do not
fetch the same instructions again.
- Otherwise run that command once now with the same selected-root flags.
- If the direct lookup exits non-zero or returns invalid artifact-instruction
JSON, report the error and stop before writing any main spec. Do not treat the
failure as an absent rule set.
- A valid response with omitted `rules` means no artifact rules are configured
and the existing semantic merge continues.
Apply returned `rules` only to the content and form of the main specs produced
by this merge. Artifact rules are not operation guidance and cannot change
selected roots, delta paths, CLI checks, or workflow steps. Use their text as
constraints without copying it verbatim into a main spec or summary.
For each capability delta spec path selected in step 3 — the full `existingOutputPaths` list, or the narrowed subset when a caller supplied one (these may belong to a selected store, not the repo):
a. **Read the delta spec** to understand the intended changes
b. **Read the main spec** at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (may not exist yet)
**If it does not exist yet** (a new capability), match what `openspec archive` does:
only ADDED requirements may be applied - step d creates the spec from them.
MODIFIED and RENAMED have no requirement to act on, so stop the sync for that
capability and report that its main spec does not exist and only ADDED is allowed
for a new spec; never invent the missing requirement. REMOVED has nothing to
remove - skip it and warn.
c. **Apply changes intelligently**:
**ADDED Requirements:**
- If requirement doesn't exist in main spec → add it
- If requirement already exists → update it to match (treat as implicit MODIFIED)
**MODIFIED Requirements:**
- Find the requirement in main spec
- Apply the changes - this can be:
- Adding new scenarios the main spec does not have yet
- Modifying existing scenarios
- Changing the requirement description
- Preserve scenarios/content not mentioned in the delta
**REMOVED Requirements:**
- Remove the entire requirement block from main spec
- Retiring the capability. Delete the whole `spec.md` - and the directory once
nothing else is left in it - only when ALL of these hold:
1. removing the requirements *this run* left no requirement blocks;
2. the rest of the spec is well-formed (it still has a `## Purpose`);
3. the main spec was not already empty before this sync - if you removed
nothing, change nothing;
4. every other nonblank line in the whole file is accounted for as the
title, Purpose, Requirements header, or a canonical requirement's
statement, scenarios, or fenced examples;
5. the change's `.openspec.yaml` declares `retire_capabilities: true`;
6. the `spec.md` resolves inside the real specs root (do not follow a
capability-directory symlink to delete an external file).
If removing the selected requirements would leave no requirement blocks and
any retirement condition is not satisfied, do not modify the main spec. Stop
the sync for that capability, report the blocking condition, and tell the user
how to resolve it. Never write or leave an empty `## Requirements` section.
When only the marker is missing, say that too - it is the one thing the user
can add to make the retirement go through.
- Deleting the file also deletes its `## Purpose`; any other section blocks
retirement. Name Purpose when you report the retirement. Include a pasteable
`git checkout` only when the spec lived in the caller's checkout;
otherwise give checkout-scoped recovery guidance.
**RENAMED Requirements:**
- Find the FROM requirement, rename to TO
**`## Purpose` in the delta:**
- The main spec already has one and it is authoritative - leave it alone
(this is what `openspec archive` does; it warns and moves on)
d. **Create new main spec** if capability doesn't exist yet:
- Only when the delta has ADDED requirements to put in it and no MODIFIED or
RENAMED requirements blocked this capability in step b. Otherwise create nothing
and leave the specs directory untouched. For a REMOVED-only delta, if the change's
`.openspec.yaml` declares `retire_capabilities: true`, report it as already retired
and continue without recreating the spec. Without that marker, report the sync as blocked:
`openspec archive` rejects it with `Spec must have at least one requirement`.
An empty delta has no operations to sync; report it as blocked too.
Never write an empty `## Requirements` section.
- Create `<planningHome.root>/openspec/specs/<capability-path>/spec.md`
- Add Purpose section: copy the delta's `## Purpose` body verbatim when it has one
(this is what `openspec archive` does); only write a brief TBD placeholder when it does not
- Add Requirements section with the ADDED requirements
- Follow the **Main Spec Format Reference** below
5. **Validate updated main specs**
Run `openspec validate --specs` with the same selected-root flags used earlier.
If validation fails, report the problems and do not claim the sync succeeded.
6. **Show summary**
After applying all changes, summarize:
- Which capabilities were updated
- What changes were made (requirements added/modified/removed/renamed)
- Any new main spec left with a TBD Purpose placeholder, so it gets written
now rather than lingering
- Any capability retired, naming the deleted `spec.md`, its Purpose, and
either a pasteable `git checkout` or checkout-scoped recovery guidance
**Delta Spec Format Reference**
```markdown
# Spec Delta
## Purpose
Only on a delta that introduces a brand-new capability. Seeds the new main spec.
## ADDED Requirements
### Requirement: New Feature
The system SHALL do something new.
#### Scenario: Basic case
- **WHEN** user does X
- **THEN** system does Y
## MODIFIED Requirements
### Requirement: Existing Feature
The system SHALL keep doing the existing thing, now also handling A.
#### Scenario: Scenario the main spec already has
- **WHEN** user does X
- **THEN** system does Y
#### Scenario: New scenario to add
- **WHEN** user does A
- **THEN** system does B
## REMOVED Requirements
### Requirement: Deprecated Feature
## RENAMED Requirements
- FROM: `### Requirement: Old Name`
- TO: `### Requirement: New Name`
```
**Main Spec Format Reference**
Main specs are what the delta merges INTO. They must never contain delta operation headers (`## ADDED/MODIFIED/REMOVED/RENAMED Requirements`) - after syncing, every requirement lives under a single `## Requirements` section:
```markdown
# <capability> Specification
## Purpose
Short description of what this capability does and why it exists.
## Requirements
### Requirement: New Feature
The system SHALL do something new.
#### Scenario: Basic case
- **WHEN** user does X
- **THEN** system does Y
```
**Key Principle: Intelligent Merging**
Unlike programmatic merging, you merge rather than overwrite:
- A MODIFIED block carries the whole requirement - body plus every scenario that survives the change. `openspec validate` and `openspec archive` both reject one that drops a scenario the main spec still has.
- Keep anything the delta does not mention, in the main spec's existing order
- Use your judgment to merge changes sensibly
**Output On Success**
```markdown
## Specs Synced: <change-name>
Updated main specs:
**<capability-1>**:
- Added requirement: "New Feature"
- Modified requirement: "Existing Feature" (added 1 scenario)
**<capability-2>**:
- Created new spec file
- Added requirement: "Another Feature"
Main specs are now updated. The change remains active - archive when implementation is complete.
```
**Guardrails**
- Read both delta and main specs before making changes
- Preserve existing content not mentioned in delta
- Never copy a delta file into a main spec as-is - merge its content so the main spec keeps the Main Spec Format Reference structure, with no delta operation headers
- If something is unclear, ask for clarification
- Show what you're changing as you go
- The operation should be idempotent - running twice should give same result
- Use only `artifactPaths.specs.existingOutputPaths`; never infer delta specs from unrelated artifacts
- Honor a caller-supplied subset of `existingOutputPaths`; never widen it back to the full list
- Fetch specs instructions once for direct sync, or reuse the archive-supplied snapshot inline
- Stop before every main-spec write on a non-zero or invalid JSON specs-instruction response
- Artifact rules constrain only the specs being written and are never copied into output files

View file

@ -0,0 +1,108 @@
---
name: openspec-update-change
description: Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Also use when the user says "openspec update change" or "opsx update". If the user means the openspec update CLI command, which refreshes generated files, run that command instead. Never edits code.
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
---
Revise a change's existing planning artifacts and keep them coherent. Never edit code.
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `lifecycle actions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
Otherwise, with no root, what happens next depends on how this workflow was reached:
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Revise existing artifacts. If an artifact is missing, identify it and show the next ready artifact from `openspec status --change "<name>" --json`.
**Steps**
1. **Select the change**
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run `openspec list --json` to get available changes sorted by most recently modified, and ask the user to select one
When prompting, present the top 3-4 most recently modified changes as options, showing:
- Change name
- Status (e.g., "0/5 tasks", "complete", "no tasks")
- How recently it was modified (from `lastModified` field)
Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to update.
Always announce: "Using change: <name>" and how to override (e.g., `openspec-update-change <other>`).
2. **Get the change's artifacts**
```bash
openspec status --change "<name>" --json
```
Parse the JSON to understand current state. The response includes:
- `schemaName`: The workflow schema being used (e.g., "spec-driven")
- `artifacts`: Array of artifacts with their status ("done", "skipped", "ready", "blocked")
- `isPlanningComplete`: Boolean indicating if all planning artifacts are complete. Older CLI versions expose the same value as `isComplete`.
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
The artifact ids and paths come from the active schema - do NOT assume them, and do NOT branch on hardcoded artifact names. Custom schemas must work unchanged.
The files to edit are `artifactPaths.<id>.existingOutputPaths` - the concrete files that exist on disk, already glob-expanded for glob artifacts (e.g. `specs/**/*.md`), plus any confirmed concrete path allowed under a partly populated glob artifact (step 4). Do NOT write to `resolvedOutputPath`: for a glob artifact it is still the glob pattern, not a real file.
3. **Understand the request**
- If the user asked for a specific revision ("the design now uses X"), that is the starting edit.
- If they only said "update" / "make this coherent", treat it as a coherence review: read the existing artifacts and check them against each other for contradictions, gaps, and duplication.
4. **Read and reconcile**
- Read the artifact(s) the request touches and the change's other existing artifacts.
- Draft the requested edit in the conversation, not in files. Work out exactly what it changes; step 5 owns every write. Then check every other existing artifact against the drafted edit - in ANY direction: an edit to a later artifact may require revising an earlier one, not only the other way around. Build order is a useful reading order, not a constraint on which artifacts may be revised.
- Note everything that is now inconsistent, missing, or contradictory.
- Propose revisions to files that already exist (`existingOutputPaths`). If an artifact has no existing output files and status `ready` or `blocked`, note it and show how to create the next ready artifact with `openspec instructions "<artifact-id>" --change "<name>" --json`. Leave `skipped` artifacts untouched; do not treat them as missing or defer them to the continue workflow.
- A glob artifact (e.g. `specs/**/*.md`) is marked `done` after at least one file matches, and the continue workflow only handles `ready` artifacts. When reconciliation identifies a missing file for a glob artifact whose `existingOutputPaths` is non-empty:
1. Run `openspec instructions "<artifact-id>" --change "<name>" --json` and use its `instruction` and `template`. Treat `context` and `rules` as constraints; do not copy them into the file. If instructions report `skipped: true`, do not create the file. Read current dependency files from disk; if a required non-skipped dependency is missing, stop and ask the user to restore it first.
2. Choose a concrete path inside `changeRoot` that matches `artifactPaths.<id>.outputPath` and does not already exist. Verify it remains inside `changeRoot` after resolving any symlinked parent directories. The glob `resolvedOutputPath` is not a valid target.
3. Include the new file in step 5's proposed revisions and create it only after the user confirms.
4. After confirmation, immediately before creation, refresh status and instructions. Verify the artifact is still in scope, not skipped, and partially populated; repeat the concrete-path checks above.
5. Use a create operation that fails if the target already exists. If `instruction` delegates creation to another skill or command, invoke it only if it can honor the confirmed path and these guardrails; otherwise stop. If any check fails or the confirmed draft is no longer valid, stop and reconcile with the user rather than replacing existing content or choosing a different path.
- If the change is already coherent, say so and propose no revisions.
5. **Confirm and apply, one artifact at a time**
- This step performs every artifact write in this workflow; no earlier step edits an artifact.
- Show each proposed revision and why - including the requested edit drafted in step 4. Write only after the user confirms.
- If the user rejects a revision, do not write it - leave that artifact unchanged.
- When a substantial rewrite is needed, get that artifact's rules and template first:
```bash
openspec instructions "<artifact-id>" --change "<name>" --json
```
6. **Point to the next step (guidance only - NEVER act on it)**
- Artifacts with empty `existingOutputPaths` and status `ready` or `blocked` -> give the CLI command for the next ready artifact.
- Change already implemented (tasks checked off / already applied) -> the code may no longer match the revised plan; tell the user which implementation tasks need revisiting.
- Everything done and implemented -> Review the completed work, then ask to archive this change.
**Output**
After each invocation, show:
- Which artifacts were revised (and which proposed revisions were rejected)
- Any file created under a glob artifact that was already partially populated
- Missing artifacts deferred to a separate step (ready or blocked, excluding skipped artifacts)
- Where the change stands and the recommended next skill
**Guardrails**
- Planning artifacts only - NEVER edit implementation code. If the revised plan implies code changes, stop after revising the plan and identify any code changes it calls for.
- Use the artifact ids and paths reported by `openspec status`; never branch on hardcoded artifact names.
- Edit only the concrete files in `existingOutputPaths`, plus any confirmed concrete path allowed under a partly populated glob artifact (step 4); never write to a glob `resolvedOutputPath`.
- Do not advance the build frontier: if an artifact has empty `existingOutputPaths` and status `ready` or `blocked`, create missing artifacts in a separate step. Leave `skipped` artifacts untouched. The only new-file scope is a confirmed concrete path under a glob artifact whose `existingOutputPaths` is non-empty.
- Confirm every edit with the user before writing.
- If the request changes the change's *intent* rather than refining it, ask for a distinct unused name and recommend `openspec new change "<new-change-name>"`.

View file

@ -0,0 +1,57 @@
---
name: openspec
description: The starting point for anything OpenSpec. Use when the user asks for OpenSpec work without naming a skill, is unsure how to do something in OpenSpec, asks where a change stands or what to do next, or asks for several OpenSpec steps at once. Also use when the user says "openspec" and no more specific OpenSpec skill fits.
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
references: "eac6a9f83d3b"
---
OpenSpec helps people and coding agents agree on what software should do, and keeps that agreement true as the code changes. Each change is planned as an update to the specs, reviewed before code is written, and merged into them once it is built.
You are the starting point for anything OpenSpec in this project. Work out what the user needs, then do one of three things: answer their question, hand the request to the skill that does it, or run several skills in order.
**How OpenSpec fits together**
- `openspec/specs/` says how the system behaves today.
- `openspec/changes/<name>/` holds one planned change: its proposal, spec updates, design and tasks.
- A change usually goes: explore (optional), propose, apply, verify (optional), archive. Archiving updates the specs and moves the change to `openspec/changes/archive/`.
**When the user is unsure**
If they ask where things stand or what to do next, read `references/where-things-stand.md` and follow it.
If they ask how OpenSpec works or how to set something up, read `references/answers.md` and answer from it.
**Pick the skill**
When the user asks for work, find the row that matches, then use that skill and follow its steps.
| The user wants to | Use |
|---|---|
| think an idea or problem through before deciding what to build | `openspec-explore` |
| describe what to build and get the whole plan: proposal, specs, design, tasks | `openspec-propose` |
| start a change and write its plan one artifact at a time | `openspec-new-change` |
| write the next artifact of a change | `openspec-continue-change` |
| write every remaining artifact of a change at once | `openspec-ff-change` |
| revise the plan of an existing change | `openspec-update-change` |
| implement the tasks of a change | `openspec-apply-change` |
| check the code against a change before archiving it | `openspec-verify-change` |
| update the main specs from a change and keep the change open | `openspec-sync-specs` |
| finish a change and archive it | `openspec-archive-change` |
| archive several finished changes at once | `openspec-bulk-archive-change` |
| take a guided first run through OpenSpec | `openspec-onboard` |
- If the request could mean more than one row, ask which, naming the choices.
- If the required skill is unavailable, stop at that step and tell the user which skill to add using `openspec config profile`, then `openspec update`. Do not substitute another workflow unless the user explicitly requests an alternative.
**Several steps at once**
For requests with several steps, such as "implement this change, then archive it", run them in order, one skill at a time. Follow each skill's instructions and finish it before starting the next. Stop if a skill needs user input or is unavailable, and explain what remains. If you know a later skill is unavailable, mention it before starting.
**If this project does not use OpenSpec**
If you picked this skill yourself and `openspec list --json` reports `"root": null`, set OpenSpec aside and answer the request normally. If the user asked for OpenSpec, offer to set it up with `openspec init`.

View file

@ -0,0 +1,43 @@
# Answers to common questions
Use this when the user asks how OpenSpec works or how to set it up. Check an answer against the CLI's own help (`openspec <command> --help`) before you rely on a flag.
## Where things live
- `openspec/specs/<capability>/spec.md`: how the system behaves today, as requirements with scenarios.
- `openspec/changes/<name>/`: one planned change. Usually `proposal.md`, `specs/` (the spec updates), `design.md` (optional), and `tasks.md`.
- `openspec/changes/archive/`: finished changes.
- `openspec/config.yaml`: the project's schema, `context` lines every agent reads, and per-artifact `rules`.
## Checking things
- What is in progress: `openspec list`. The specs: `openspec list --specs`.
- Where one change stands: `openspec status --change "<name>"`.
- Read a change or a spec: `openspec show "<name>"`.
- Check the files are well formed: `openspec validate "<name>"`, or `openspec validate --all`.
- A dashboard of everything: `openspec view`.
## Setting things up
- Set up a project, or add an agent to it: `openspec init`.
- Choose which skills are installed: `openspec config profile`, then `openspec update` in each project.
- Refresh the skills after upgrading OpenSpec: `openspec update`.
- Teach agents something about this project: add a short line under `context` in `openspec/config.yaml`. Edit the file only after the user approves the wording.
- See or change the artifact workflow: `openspec schemas` lists the schemas, `openspec templates` shows where each artifact's template comes from.
### Set up checks and actions
Configure `lifecycle` in the project's `openspec/config.yaml`, or in the selected store's config. Define each action under `actions` with `instructions` and an optional `title` and `description`. Under `triggers`, add `on`, `action` (the action ID), and `mode`.
Choose `on` based on when the user wants the action to run. Use `change.create.before` or `change.create.completed` for creation, `change.apply.before` or `change.apply.completed` for implementation, and `change.archive.before` or `change.archive.completed` for archiving. Create completes before the first planning artifact. Use `auto` to run the action automatically or `suggest` to ask first.
Preserve existing actions and triggers. Confirm the proposed configuration with the user before editing. Validate it with `openspec lifecycle actions`, adding `--store <id>` for a selected store.
## Stores
A store is a separate OpenSpec repository registered on this machine, for specs that live outside the code. `openspec store --help` lists its commands. Most commands accept `--store <id>` to work in a store instead of this project.
## Something is wrong
- Run `openspec doctor` and read what it reports.
- To tell the maintainers, use `openspec feedback "<message>"`, after the user approves the message.

View file

@ -0,0 +1,10 @@
# Where things stand
Use this when the user asks where things stand or what to do next. Look before you answer:
- `openspec list --json` lists the changes in progress.
- `openspec status --change "<name>" --json` shows which parts of a change's plan exist and what comes next. `openspec status --all --json` does this for every change.
- `openspec show "<name>"` prints a change or a spec.
- If the user names a store, add `--store <id>` to each of these. `openspec store list --json` lists the stores.
Say where things stand in a sentence or two, name the next step and the skill that does it, and offer to do it. Do not start it until they say so.

4
.gitignore vendored
View file

@ -16,3 +16,7 @@ website/static/app/
# Claude Code worktrees of agents
.claude/worktrees/
# Python bytecode
__pycache__/
*.py[cod]

View file

@ -4,7 +4,7 @@ mode: primary
color: "#5B8DEF"
---
Ты оркестратор ChessPenguin — серьёзного локального шахматного приложения (Rust + egui; релизы на Linux, Windows, macOS, Android). Общайся по-русски. До первого вывода прочитай: AGENTS.md (инварианты продукта), `docs/dev/tasks.md` (что в работе), `docs/decisions.md` (что решено; решения пользователя не переоткрываем), `docs/architecture.md` (устройство системы). ТЗ и `docs/research/` — за исходной постановкой и историей.
Ты оркестратор ChessPenguin — серьёзного локального шахматного приложения (Rust + egui; релизы на Linux, Windows, macOS, Android). Общайся по-русски. До первого вывода прочитай: AGENTS.md (инварианты продукта), `docs/dev/tasks.md` (что в работе), `docs/decisions.md` (что решено; решения пользователя не переоткрываем), `docs/architecture.md` (устройство системы). ТЗ и `docs/research/` — за исходной постановкой и историей. При работе с OpenSpec также прочитай `openspec/README.md` и артефакты активного change; proposal не считай решением пользователя, а apply/archive выполняй только по соответствующему запросу.
Твоя работа — доводить до проверенного результата, а не до активности:
@ -14,4 +14,4 @@ color: "#5B8DEF"
4. Закрывая задачу, обновляй `docs/dev/tasks.md`, при существенных решениях — `docs/decisions.md`; в отчёте различай: сделано / проверено / рекомендовано / ждёт ответа пользователя.
5. Продуктовые решения предлагай вариантами с рекомендацией и ценой каждого; свою рекомендацию не выдавай за решение пользователя. Объём без согласования не расширяй.
Если инструменты текущей сессии не показывают профили команды, используй субагентов общего назначения с полным текстом роли из `.opencode/agents/<роль>.md` и скажи об этом пользователю. Активный сервис (OpenCode, Kimi Code) самостоятельно не перезапускай.
Если инструменты текущей сессии OpenCode не показывают профили команды, используй субагентов общего назначения с полным текстом роли из `.opencode/agents/<роль>.md` и обязательно скажи об этом пользователю. Не создавай профили для других AI-инструментов. Активный сервис OpenCode самостоятельно не перезапускай.

View file

@ -2,12 +2,14 @@
## Контекст
- Единый внутренний индекс документации, матрица источников и capability map: [docs/README.md](docs/README.md).
- Исходное ТЗ: `техническое задание.txt`.
- Пользовательские материалы: `designExample/`, `pgnFilesforExample/`, `engines/`.
- Рабочий язык обсуждений и проектных заметок — русский; идентификаторы кода — английский.
- Текущий этап: развитие выпускаемого продукта (релиз 2.5.2). Задачи и бэклог — `docs/dev/tasks.md`.
- Архитектура реализованной системы: `docs/architecture.md`; архитектурное предложение этапа исследования — `docs/research/architecture-proposal-2026-10-17.md`; исследования: `docs/research/`.
- Журнал решений: `docs/decisions.md`; подтверждённые пользователем решения имеют приоритет над предложениями исследований.
- Гибридный OpenSpec: `openspec/README.md` (lifecycle и границы), активные изменения — `openspec/changes/`. Предложение OpenSpec не является решением пользователя; независимые QA и визуальная приёмка обязательны как прежде.
## Команда
@ -20,11 +22,11 @@
Каждой параллельной задаче назначать собственные файлы. Не перезаписывать работу другого агента. В отчёте указывать изменения, проверки и нерешённые вопросы.
### Механика в Kimi Code
### Механика в OpenCode
Канонические профили ролей — файлы `.opencode/agents/*.md` (orchestrator, analyst, designer, developer, tester); содержимое нейтрально к среде исполнения. Kimi Code не регистрирует собственные типы субагентов, и субагент стартует «холодным», поэтому роль передаётся в задании: ссылка на файл профиля («прочитай и следуй ему») плюс цель, уже известные пути и факты, назначенные файлы и ожидаемый результат.
С 2026-12-03 владелец использует только OpenCode. Канонические профили ролей — файлы `.opencode/agents/*.md` (orchestrator, analyst, designer, developer, tester); параллельные профили для других AI-инструментов не создаются. Оркестратор — основная сессия; его рабочие правила — в `.opencode/agents/orchestrator.md`.
Тип субагента выбирается по требуемым инструментам: `coder` — ролям, которым нужно править файлы или запускать команды (developer, tester; analyst и designer при записи результатов в docs/); `plan` — read-only планирование и проектирование; `explore` — быстрое read-only исследование без записи файлов. Оркестратор — основная сессия; его рабочие правила — в `.opencode/agents/orchestrator.md`.
Субагент стартует «холодным», поэтому задание содержит ссылку на файл профиля («прочитай и следуй ему»), цель, уже известные пути и факты, назначенные файлы и ожидаемый результат. Используются зарегистрированные роли OpenCode; если конкретная сессия их не показывает, действует только documented fallback из профиля оркестратора с явным сообщением пользователю, без второй параллельной системы ролей.
## Инварианты продукта

View file

@ -212,7 +212,9 @@ the official release `https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0
## Classic games (examples/classics.pgn)
62 of the 100 sample classic games (added 2026-10-28) are game records — players,
event, date, result and moves, which are historical facts — taken from the free player
files of pgnmentor.com (64 Squares; "available for download, completely free") and,
where possible, checked against Wikipedia articles (used only for comparison, no text
copied). Details: `docs/research/classics-sources.md`.
event, date, result and moves, which are historical facts — taken from
[PGN Mentor's free player files](https://www.pgnmentor.com/files.html) (64 Squares;
"available for download, completely free"). Their selection was guided by Wikipedia's
[List of chess games](https://en.wikipedia.org/wiki/List_of_chess_games) and, where
possible, their moves were checked against Wikipedia game and player articles (used only
for comparison, no text copied).

View file

@ -2326,7 +2326,7 @@ impl RepertoireUi {
}
}
/// QA hooks (docs/qa/opening-trainer-v2-devhooks.md): `CP_REPERTOIRE=<what>`, after
/// QA hooks (docs/dev/opening-trainer-v2-devhooks.md): `CP_REPERTOIRE=<what>`, after
/// `CP_REPERTOIRE_SELECT=<part of a name>`.
pub fn debug_open(&mut self, what: &str, settings: &mut Settings) {
if let Ok(name) = std::env::var("CP_REPERTOIRE_SELECT") {

18
apps/web/README.md Normal file
View file

@ -0,0 +1,18 @@
# ChessPenguin в браузере (подпроект)
Цель — версия программы, которая запускается в браузере на компьютере, как настольная: открыть PGN и
ChessBase, смотреть партии, анализировать движком, разбирать партию с !! и !. Телефоны и планшеты
получают страницу о приложениях.
Статус: **этап 2 реализован** (2026-10-30). На этапе 1 программа была собрана для браузера и получила
открытие PGN кнопкой и перетаскиванием, встроенные примеры, экран партии, ходы на доске, скачивание PGN
и страницу для телефонов и планшетов. Этап 2 добавил Stockfish 19 по согласию пользователя, живой
анализ, разбор партии в Web Worker с теми же оценками, что на компьютере, «Мои партии», хранение данных
в браузере, работу с файлами прошлого посещения и сочетания клавиш.
- Точка входа WebAssembly — [`src/lib.rs`](src/lib.rs); страница `/app/` — [`page/`](page/).
- Платформенный слой общего интерфейса — [`../desktop/src/platform/`](../desktop/src/platform/).
- Транспорт UCI через Web Worker — [`../../crates/uci/src/worker.rs`](../../crates/uci/src/worker.rs).
- Сборка — [`build.sh`](build.sh) → `target/web/app/`; проверки браузерных сценариев — [`check/`](check/).
Из корня репозитория сборка запускается командой `apps/web/build.sh`.

93
docs/README.md Normal file
View file

@ -0,0 +1,93 @@
# Внутренняя документация ChessPenguin
Единая точка входа для работы с репозиторием. Документ внутренний: он остаётся в Forgejo и исключается из публичного GitHub-дерева. Здесь назначаются источники и навигационные статусы, но не копируются продуктовые требования, результаты QA или содержимое активных changes.
## Старт
1. Прочитать [инварианты и правила работы](../AGENTS.md) и [текущий runbook](dev/handoff.md).
2. Для продуктового вопроса сверить [решения владельца](decisions.md), затем [бэклог](dev/tasks.md) и [архитектуру реализованной системы](architecture.md).
3. Для изменения поведения прочитать [правила OpenSpec](../openspec/README.md), проверить [canonical specs](../openspec/specs/) и [активные changes](../openspec/changes/).
4. По ссылкам capability map ниже перейти к коду, действующему design, operational-документам и датированным QA. Исходное [техническое задание](<../техническое задание.txt>) остаётся историческим основанием, а не автоматически самым новым решением.
## Источники истины и разрешение конфликтов
Это единственная общая матрица источников. `AGENTS.md` и `openspec/README.md` сохраняют собственные обязательные правила и ссылаются сюда, не повторяя таблицу.
| Источник | Роль | Правило при расхождении |
| --- | --- | --- |
| [Решения владельца](decisions.md) | Явные продуктовые и процессные решения, их дата и контекст | Более позднее явное решение владельца имеет приоритет над прежними предложениями и current-документами. Конфликт фиксируется; старое свидетельство не переписывается молча, а получает history/superseded-указатель |
| [AGENTS.md](../AGENTS.md) | Инварианты продукта, безопасность данных и обязательные правила работы команды | Действует до явного изменения владельцем. Proposal, design или удобство реализации не отменяют эти ограничения |
| [Исходное ТЗ](<../техническое задание.txt>) | Исходные требования и пользовательский контекст | При противоречии с более поздним явным решением владельца действует решение; исходный файл не изменяется |
| [Canonical specs](../openspec/specs/) | Канонические требования по отдельным возможностям, когда соответствующий baseline spec создан | Сверяются с решениями владельца. Исторические research/design/QA не становятся canonical массово; отсутствие spec не делает старый design каноническим |
| [Активные changes](../openspec/changes/) | Предложение, delta, design и чек-лист конкретного изменения | Не являются решением владельца или описанием текущего поведения только по факту наличия файлов. Lifecycle и разрешения определяет [OpenSpec README](../openspec/README.md) |
| Код (`apps/`, `crates/`, `androidApp/`, `website/`) и [архитектура](architecture.md) | Код доказывает фактическую реализацию; architecture — её текущую карту | Код не заменяет требование о желаемом поведении. При расхождении с architecture факт проверяется на текущем коде, current-описание исправляется без переписывания истории |
| [Бэклог](dev/tasks.md) | Номер и уникальный slug задачи, статус, идеи, ограничения и ссылки на подробности | Статус задачи не отменяет решение, canonical spec или QA-ограничение. Два одинаковых номера различаются slug |
| Current design из capability map | Назначенный для возможности действующий интерфейсный/сценарный документ | Подчиняется решениям владельца и canonical spec. Неутверждённые проекты и датированные аудиты не называются current только потому, что на них есть ссылки |
| [Developer docs](dev/) | Operational runbooks, устройство модулей, команды и dev-hooks | Не создают продуктовых требований и не подменяют QA. Исторический handoff/WIP не является текущим runbook |
| [Research](research/) и history-документы | Предложения, исследования и свидетельства конкретного этапа | Не имеют приоритета над current-источниками. Сохраняются как история с видимым статусом и current-указателем, если включены в эту навигацию |
| [QA](qa/) | Датированные команды, доказательства, verdicts и непроверенные остатки для конкретной версии | PASS/FAIL относится только к заявленным версии и объёму. QA не заменяет требования; незапущенная проверка не становится PASS |
## Capability map
`—` в колонке canonical spec означает, что baseline spec ещё не создан. Для каждой возможности current design назначается здесь; остальные связанные документы могут быть историей, исследованием или проектом.
| Возможность | Код | Canonical spec | Current design | Dev / operations | Датированная QA |
| --- | --- | --- | --- | --- | --- |
| PGN-документ, редактирование, комментарии и NAG | [chess-core](../crates/chess-core/), [game_view.rs](../apps/desktop/src/game_view.rs), [notation.rs](../apps/desktop/src/notation.rs) | — | [Комментарии](design/user-comments.md), [запись ходов](design/move-notation.md), [вставка варианта](design/paste-variation.md) | [chess-core](dev/chess-core.md), [game-view dev-hooks](dev/game-view-devhooks.md) | [fullmove=0](qa/fullmove-zero-2026-11-27.md), [стрелки](qa/task-43-functional-2026-11-27.md) |
| Базы, импорт ChessBase, библиотека и поиск позиции | [chess-import](../crates/chess-import/), [library.rs](../apps/desktop/src/library.rs), [large_db.rs](../apps/desktop/src/large_db.rs) | — | [Большие базы](design/large-databases.md), [библиотека](design/library-layout.md), [доска поиска](design/board-search.md), [свои базы](design/own-databases.md), [выделение и новая база](design/tasks-42-43-2026-11-27.md) | [Импорт](dev/import.md), [desktop](dev/desktop.md) | [Большая ChessBase](qa/large-chessbase-2026-10-19.md), [поиск позиции](qa/position-search-2026-10-19.md), [новая база](qa/task-42-functional-2026-11-27.md) |
| UCI и живой анализ | [uci](../crates/uci/), [analysis.rs](../apps/desktop/src/analysis.rs) | — | [Получение движка](design/engine-download.md) | [UCI](dev/uci.md), [game-view dev-hooks](dev/game-view-devhooks.md) | [Vertical slice](qa/vertical-slice-2026-10-18.md) |
| Обзор партии и пакетный анализ | [game-review](../crates/game-review/), [review.rs](../apps/desktop/src/review.rs) | — | [Кнопка разбора](design/task-26-review-button-2026-11-27.md), [поиск !!/!, вариант B](design/task-27-brilliant-search-2026-11-27.md), [анализ выделенных](design/task-27-selected-games-analysis-2026-11-27.md) | [Desktop](dev/desktop.md) | Отдельно от макетов: [функциональная QA27](qa/task-27-functional-2026-11-27.md), [визуальная QA27](qa/task-27-design-review-2026-11-27.md), [функциональная QA46](qa/task-46-selected-functional-2026-11-27.md), [визуальная QA46](qa/task-46-selected-design-review-2026-11-27.md) |
| Подготовка к сопернику на desktop | [prep](../crates/prep/), [prep_ui.rs](../apps/desktop/src/prep_ui.rs) | — | [Подготовка к сопернику](design/opponent-prep.md) | [Desktop](dev/desktop.md) | [Настройки и ошибки подготовки](qa/settings-and-prep-errors-2026-11-05.md) |
| Игра с компьютером и партии игрока | [play](../crates/play/), [maia](../crates/maia/), [play.rs](../apps/desktop/src/play.rs) | — | [Режим игры](design/play-mode.md), [Rodent](design/rodent-opponent.md), [партии игрока](design/player-games.md), [отложенная партия](design/desktop-adjourned.md) | [Desktop](dev/desktop.md) | [Release 2.5.2](qa/release-2.5.2.md) — только заявленный там объём |
| Тренировка дебюта и репертуары | [trainer](../crates/trainer/), [repertoire_ui.rs](../apps/desktop/src/repertoire_ui.rs) | — | [Opening Trainer v2](design/opening-trainer-v2-spec.md), [продуктовая концепция](design/opening-trainer-concept-2026-11-26.md), [панель репертуаров](design/repertoire-panel-layout-2026-11-27.md) | [Opening Trainer dev-hooks](dev/opening-trainer-v2-devhooks.md) | [Функциональная v2](qa/opening-trainer-v2-functional.md), [визуальная v2](qa/opening-trainer-v2-design-review.md), [миграция v2](qa/opening-trainer-v2-migration.md), [PGN-разметка](qa/training-annotations-and-variations-2026-11-06.md) |
| Android | [androidApp](../androidApp/), [mobile-api](../crates/mobile-api/) | — | [Ввод и игра](design/android-play.md), [списки](design/android-lists.md), [кнопка разбора](design/android-review-button.md), [подготовка](design/android-opponent-prep.md), [экран игроков](design/android-players-improvement.md) | [Архитектура платформы](architecture.md) | [Последний release QA](qa/release-2.5.2.md), [подготовка — functional](qa/android-opponent-prep-functional.md), [подготовка — design](qa/android-opponent-prep-design.md) |
| Web | [apps/web](../apps/web/), общая [библиотека desktop](../apps/desktop/src/lib.rs) | — | Current design не назначен; исследовательский проект не считается реализованной нормой | [Web platform](dev/web.md), [README приложения](../apps/web/README.md) | [Release 2.5.2](qa/release-2.5.2.md) — только заявленный там объём |
| Обновления, выпуски и сайт | [releases](../crates/releases/), [update.rs](../apps/desktop/src/update.rs), [website](../website/) | — | Current design сайта не переопределяет фактический [website](../website/) | [Runbook](dev/handoff.md), [desktop](dev/desktop.md) | [Последний release QA](qa/release-2.5.2.md) |
| Структура репозитория и документация | [scripts](../scripts/), [docs](./) | [repository-governance](../openspec/specs/repository-governance/spec.md) | [Завершённый design](../openspec/changes/archive/2026-12-04-organize-repository-structure/design.md) | [Runbook](dev/handoff.md), [link checker](../scripts/dev/check-docs-links.py) | [Implementation QA](qa/repository-structure-2026-12-03.md), [planning QA](qa/repository-structure-planning-2026-12-03.md) |
Макеты **B1–B5** задачи 27 доступны через [спецификацию принятого варианта B](design/task-27-brilliant-search-2026-11-27.md) и её каталог `design/task-27/`; они не являются снимками реализации. Реальные проверки связаны отдельными ссылками на functional/design QA в строке «Обзор партии и пакетный анализ».
## Заархивированный change
- **`organize-repository-structure`**, задача №51 / `repository-structure`: [proposal](../openspec/changes/archive/2026-12-04-organize-repository-structure/proposal.md), [design](../openspec/changes/archive/2026-12-04-organize-repository-structure/design.md), [исходная delta repository-governance](../openspec/changes/archive/2026-12-04-organize-repository-structure/specs/repository-governance/spec.md), [implementation tasks](../openspec/changes/archive/2026-12-04-organize-repository-structure/tasks.md).
- Проверенные требования синхронизированы в [canonical repository-governance spec](../openspec/specs/repository-governance/spec.md). Активные изменения ищутся в [каталоге changes](../openspec/changes/), завершённые — в [archive](../openspec/changes/archive/).
## Current-документы
- Общее состояние: [архитектура](architecture.md), [дизайн-система](design/design-system.md), [бэклог](dev/tasks.md), [решения](decisions.md).
- Разработка: [chess-core](dev/chess-core.md), [import](dev/import.md), [UCI](dev/uci.md), [desktop](dev/desktop.md), [web](dev/web.md), [общий runbook](dev/handoff.md).
- Operational hooks: [GameView](dev/game-view-devhooks.md), [Opening Trainer v2](dev/opening-trainer-v2-devhooks.md).
- Current design каждой возможности назначен только в capability map выше. Публичная галерея продукта находится в [docs/screenshots](screenshots/); QA-only изображения там не размещаются.
## History, superseded и WIP
Статус в этой таблице — только навигационный. Слово «archive» для старого документа не означает команду OpenSpec archive, перенос change в архив или синхронизацию исторического текста в canonical specs.
| Документ | Навигационный статус | Действующий указатель |
| --- | --- | --- |
| [Первоначальный implementation plan](research/implementation-plan-2026-10-17.md) | History, снимок 2026-10-17 | [Архитектура](architecture.md), [бэклог](dev/tasks.md), [runbook](dev/handoff.md) |
| [Первоначальный handoff](research/handoff-2026-10-23.md) | History, снимок 2026-10-23 | [Текущий runbook](dev/handoff.md) |
| [WIP handoff Opening Trainer v2](research/opening-trainer-v2-handoff-2026-11-26.md) | WIP/history, не общий runbook | [Current spec](design/opening-trainer-v2-spec.md), [operational hooks](dev/opening-trainer-v2-devhooks.md) |
| [Прежний дизайн repertoire training](design/repertoire-training.md) | Superseded для desktop; исходный текст сохранён | [Opening Trainer v2](design/opening-trainer-v2-spec.md) |
| [Переработка тренировки 2026-11-05](design/opening-cleanup-2026-11-05.md) | Superseded последующей v2 | [Opening Trainer v2](design/opening-trainer-v2-spec.md) |
| [Первый линейный тренер](design/opening-trainer.md) | History/legacy; не current desktop design | [Opening Trainer v2](design/opening-trainer-v2-spec.md); Android — capability map |
| [UI-аудит тренировки 2026-11-26](design/opening-trainer-ui-audit-2026-11-26.md) | History, датированные наблюдения до v2 | [Opening Trainer v2](design/opening-trainer-v2-spec.md) |
| [Начальная Android-спецификация](design/android-ui.md) | History; ранний принцип «только просмотр» не является текущим | Текущие Android-документы назначены в capability map; реализация — [архитектура](architecture.md) |
## QA и доказательства
- [Последний release QA — 2.5.2](qa/release-2.5.2.md) доступен прямо из этого индекса; он связывает проверки выпуска и их остатки.
- Ранние отчёты с описательными именами: [vertical slice](qa/vertical-slice-2026-10-18.md), [large ChessBase](qa/large-chessbase-2026-10-19.md), [position search](qa/position-search-2026-10-19.md).
- Cleanup: [planning QA](qa/repository-structure-planning-2026-12-03.md) и отдельный [implementation/acceptance report](qa/repository-structure-2026-12-03.md). Первый не заменяет второй.
- Полный набор датированных отчётов — [docs/qa](qa/). Индекс не повторяет их verdicts: читатель открывает первичный отчёт, чтобы увидеть версию, команду, фактический результат и ограничения.
Для новой проверки рядом с отчётом сохраняются минимально достаточные доказательства: команда, версия/commit, фактический вывод или его файл, exit code и непроверенные остатки. Старые `/tmp`, `/var/tmp` и `target` остаются сведениями о методике, а не обещанием доступного файла. Большие кэши, бинарники и пользовательские базы в evidence не копируются.
## Именование и public/internal-граница
- Новые документы получают descriptive **kebab-case**-имена. Датированные research/design/QA используют `YYYY-MM-DD`, когда дата определяет снимок или проверку. Старые файлы массово не переименовываются ради единообразия.
- Новые QA-изображения и логи размещаются рядом с отчётом в одноимённом или явно связанном каталоге. Нумерованные `report-N` и QA-only изображения в `docs/screenshots/` не добавляются.
- Каждая новая задача бэклога получает уникальный descriptive slug по правилу в [tasks.md](dev/tasks.md); повторяющийся числовой номер сам по себе не является однозначной ссылкой.
- Внутренние `AGENTS.md`, этот индекс, `docs/design/`, `docs/research/`, `docs/dev/`, `docs/qa/`, `openspec/`, `.agents/` и OpenSpec tooling не публикуются в GitHub. Фактический список и порядок фильтрации — [scripts/publish-github.sh](../scripts/publish-github.sh).
- Публичные README и юридические документы должны оставаться самодостаточными после фильтрации: локальная ссылка на internal-документ недопустима. Необходимый публичный факт излагается самодостаточно либо заменяется публичным внешним источником, без копирования внутренней аналитики.
- Структурная приёмка использует [docs-link checker](../scripts/dev/check-docs-links.py), поиск старых/internal ссылок и изолированный publication `DRY_RUN`. Реальные push, deploy, release, sync и archive выполняются только по отдельной команде владельца.

View file

@ -41,7 +41,7 @@ opencode api get '/api/agent?location[directory]=/home/vrubel/services/chessBase
- https://opencode.ai/v2/docs/config
- https://opencode.ai/v2/docs/api
## Добавлено 2026-11-01 — запуск в Kimi Code CLI
## Историческая справка 2026-11-01 — запуск в Kimi Code CLI (отменено 2026-12-03)
Разработка продолжается в Kimi Code CLI. OpenCode в окружении сейчас не установлен (`opencode` отсутствует в PATH), поэтому повторная проверка регистрации профилей через API не выполнялась; файлы остаются на месте и пригодны для возврата в OpenCode.
@ -50,3 +50,7 @@ opencode api get '/api/agent?location[directory]=/home/vrubel/services/chessBase
Следы Claude Code: каталог `.claude/` профилей агентов не содержит — там только `settings.local.json` (разрешения) и ворктри `.claude/worktrees/agent-a635674bcaa3af196` с сессии агента. Командные профили хранятся исключительно в `.opencode/agents/`; дублировать их под `.claude/` или `.kimi/` не нужно.
2026-11-01 профили ролей усилены по требованию владельца: единые правила доказательности (факт/гипотеза/предложение), обязательный формат отчёта, жёсткие предметные инварианты и ворота качества в профилях разработчика и тестировщика.
## Текущая среда с 2026-12-03 — только OpenCode
Владелец прекратил использование Kimi Code и выбрал единый процесс в OpenCode. Исторический раздел выше сохранён как запись о прошлом окружении, но не является действующей инструкцией. Канонические роли находятся только в `.opencode/agents/`; OpenSpec инициализирован с единственным target `opencode` в `.agents/skills/.openspec-target`. Дополнительные skills, профили и команды для Kimi Code не создаются и не поддерживаются.

View file

@ -27,10 +27,10 @@ Wayland/X11, AccessKit), encoding_rs, serde. Полный список — `Carg
| `crates/online-games` | API Lichess и Chess.com: проба, поиск ника, скачивание в PGN-базу с возобновлением | — |
| `crates/play` | Игра с компьютером: Rodent IV/V, личности, книги, часы, предложение ничьей | — |
| `crates/maia` | Нейросетевой соперник Maia: веса, checkpoint, шкала силы | — |
| `crates/trainer` | Дебютные репертуары: PGN-дерево, граф транспозиций, общий LearningItem, независимые попытки, SRS, сессии, аналитика и versioned JSON; Android сохраняет legacy API | `docs/design/repertoire-training.md` |
| `crates/trainer` | Дебютные репертуары: PGN-дерево, граф транспозиций, общий LearningItem, независимые попытки, SRS, сессии, аналитика и versioned JSON; Android сохраняет legacy API | [docs/design/opening-trainer-v2-spec.md](design/opening-trainer-v2-spec.md) |
| `crates/releases` | Данные выпусков для обновления | — |
| `crates/mobile-api` | Общий API Android: сессия партии, движок, обзор, игра, тренировка, обновления | — |
| `apps/desktop` | Приложение: библиотека `chesspenguin_app` (весь интерфейс, ~модули в `src/`) + тонкий `main.rs`; i18n на 6 языков | `docs/dev/desktop.md` |
| `apps/desktop` | Приложение: библиотека `chesspenguin_app` (весь интерфейс, ~модули в `src/`) + тонкий `main.rs`; i18n на 9 языков: en, ru, de, fr, es, it, pt, uz, kk | `docs/dev/desktop.md` |
| `apps/web` | Та же библиотека в WebAssembly: `start(canvas)` → `start_web`; платформенный слой браузера | `docs/dev/web.md` |
| `androidApp` | Kotlin-оболочка (Gradle, Rust через `mobile-api`) | `androidApp/` |
| `website` | Сайт продукта, отдельный деплой | `website/README.md` |
@ -106,7 +106,7 @@ desktop (egui, apps/desktop) │ web (wasm, apps/web) │ android (Kotlin + mobi
- Реализовано и выпущено: библиотека PGN/ChessBase, нотация с редактированием,
анализ и обзор партии, подготовка к сопернику, игра (Maia/Rodent), онлайн-партии,
свои базы, перевод комментариев, автоматическое обновление. История — `CHANGELOG.md`.
- Desktop-тренажёр дебютов (α): с 2.4.0 — упрощённый UI (`repertoire_ui.rs`, `opening_session.rs`,
- Desktop-тренажёр дебютов (α): действующая UI-спецификация — [docs/design/opening-trainer-v2-spec.md](design/opening-trainer-v2-spec.md); с 2.4.0 — упрощённый UI (`repertoire_ui.rs`, `opening_session.rs`,
`opening_lines.rs`, `opening_layout.rs`) поверх ядра `crates/trainer/src/repertoire`: общая SRS-модель
по `(профиль, FEN4, UCI)`, дневное занятие (к повторению + до 10 новых), «Повторить всё подряд»,
тренировка ветки; режимы, параметры контекста и дашборд из UI удалены, формат хранения не менялся.

View file

@ -215,7 +215,7 @@
## Веб-версия (2026-10-30)
Исследование — `docs/research/web-version.md`, `web-version-tech.md`; подпроект `web/`, задача 22. Решения владельца:
Исследование — `docs/research/web-version.md`, `web-version-tech.md`; подпроект `apps/web/`, задача 22. Решения владельца:
- Начинаем с **лёгкой версии**: открыть PGN/ChessBase-архив, смотреть и править партии, анализ движком, разбор с !!/!, скачать PGN. Полная (свои базы, подготовка к сопернику, игра с компьютером, офлайн) — потом.
- Размещение — **наш сайт**, адрес вида `chess.vrubel.xyz/app/` (заголовки COOP/COEP для многопоточного Stockfish).
- Браузеры: **Chrome, Edge, Firefox, Safari** — веб-приложение **только на компьютере**. **Телефоны и планшеты (в том числе iPad) — без веб-приложения** (владелец, 2026-10-30: «не будем на это тратиться»): страница «на Android — скачайте приложение, на iPhone/iPad — приложение скоро будет»; определение устройства — по `docs/design/web-version.md` §3.6 (iPadOS выдаёт себя за Mac; короткая сторона экрана, касание), тихая ссылка «всё равно открыть веб-версию».
@ -573,3 +573,21 @@ PGN для точного выбора пометок, минимальная г
## Выпуск 2.5.2 (2026-11-30)
Владелец явно выбрал увеличение последнего числа после 2.5.1: версия **2.5.2**, тег `v2.5.2`. В выпуск входят задачи 29 и 48: кнопка анализа и навигация на экране Android-партии, простая подготовка к сопернику. Поручены commit и push в Forgejo и GitHub, Android-сборка для сайта, обновление сайта и RuStore.
## OpenSpec: гибридный процесс (2026-12-03)
Владелец выбрал гибрид, а не полную миграцию: OpenSpec применяется к новым изменениям, которым нужны формальные proposal, дельта требований, дизайн и чек-лист. `AGENTS.md`, журнал решений, общий задачник, архитектура и независимые функциональные/визуальные QA сохраняются. Исторические документы массово в канонические specs не импортируются; `openspec/specs/` наполняется постепенно.
Первый пилот — задача 49 о показе описания Android-обновления. Пилот начинается только с планирования и не разрешает реализацию до представления артефактов владельцу. Архивирование возможно после независимой функциональной и визуальной приёмки; невыполненные платформенные проверки не считаются пройденными. Правила и источники истины закреплены в `openspec/README.md` и `openspec/config.yaml`.
Владелец дополнительно выбрал **только OpenCode**: Kimi Code в проектном процессе не используется, альтернативные профили и skills не поддерживаются. Цель — один понятный процесс без параллельных инструкций: общий бэклог, явные решения владельца, канонические specs, активный change и доказательства QA имеют строго разделённые роли.
## Структура репозитория и внутренний OpenSpec (2026-12-03)
Владелец поручил профессионально привести файловую структуру всего проекта в порядок после инвентаризации, без массовых перемещений и удаления истории. Решено создать единый внутренний индекс документации, исправить текущие указатели, выполнить только доказанные перемещения и удалить лишь подтверждённые generated-артефакты. Пользовательские PGN, референсы, движки, backlog, release APK, iPhone-ветка и активный Android change не затрагиваются.
Владелец выбрал **внутреннюю** модель для `openspec/`, `.agents/`, `scripts/dev/openspec.sh` и `docs/README.md`: они остаются в Forgejo и не публикуются в GitHub. Публичные README и юридические документы должны быть самодостаточными. Работа оформляется отдельным change `organize-repository-structure` в ветке `chore/repository-structure`; реализация требует последующего явного `apply`.
## Публикация в GitHub — только при выпуске (2026-12-04)
Владелец подтвердил разделение публикации по назначению: обычная разработка и feature/chore-ветки отправляются только в Forgejo. GitHub обновляется намеренно при выпуске через установленный `scripts/publish-github.sh` с публичным `main` и тегами, а не при каждом рабочем коммите. Внутренние пути остаются исключёнными фильтром. Это решение не создаёт тег и не запускает публикацию само по себе.

View file

@ -1,5 +1,7 @@
# ChessPenguin для Android: интерфейс
> **Навигационный статус: history, исходная спецификация 2026-10-22.** Начальный принцип «только просмотр» и другие ранние ограничения не описывают текущее приложение. Действующие capability-документы — [ввод и игра](android-play.md), [списки](android-lists.md), [кнопка разбора](android-review-button.md), [подготовка к сопернику](android-opponent-prep.md); общая карта — в [docs/README](../README.md). Исходное содержимое ниже сохранено как история.
Статус: спецификация дизайнера для реализации, редакция 2 от 2026-10-22, с правками после ревью первой реализации (§17). Она учитывает решения владельца из `docs/decisions.md` §16: только просмотр, Android 12 и новее, две APK, базы до ~1 млн партий. Оставшиеся вопросы — в §16. Где спецификация расходится с ранними набросками и с `docs/research/android-stack.md` по интерфейсу, действует она. Стек — Kotlin + Jetpack Compose (Material 3).
Опирается на настольную версию:

View file

@ -1,5 +1,7 @@
# Тренировка дебюта: переработка интерфейса после пользовательской проверки
> **Навигационный статус: superseded, 2026-12-03.** Последующая действующая спецификация — [Тренировка дебюта v2](opening-trainer-v2-spec.md). Документ 2026-11-05 сохранён как свидетельство своего этапа и не задаёт current UI при расхождении с v2.
Дата: 2026-11-05. Статус: спецификация для реализации, не визуальная приёмка.
## Задача и причина переработки

View file

@ -1,5 +1,7 @@
# Тренировка дебюта: аудит интерфейса по реальным снимкам (2026-11-26)
> **Навигационный статус: history, 2026-12-03.** Это датированные наблюдения о состоянии до v2, а не текущая спецификация или повторная приёмка. Действующий документ — [Тренировка дебюта v2](opening-trainer-v2-spec.md).
Статус: аудит дизайнера, **не макет**. Исходный код и другие документы не менялись.
Отчёты аналитика и разработчика (`docs/research/opening-trainer-*-2026-11-26.md`) не пересказываются.

View file

@ -1,5 +1,7 @@
# Учить дебют: повторить по памяти ходы обеих сторон
> **Навигационный статус: history/legacy, 2026-12-03.** Это исходный проект линейного тренера, а не действующий desktop-дизайн. Current-указатель для desktop — [Тренировка дебюта v2](opening-trainer-v2-spec.md); возможности Android перечислены в [capability map](../README.md).
Статус: проект дизайнера, 2026-10-25, **не утверждён**. Требования — `docs/research/opening-trainer.md` (аналитик: что такое линия и ошибка §3, ход тренировки §4, статистика §5, звук §7, объём §9, критерии §10). Уточнение владельца: **ходы за обе стороны делает пользователь**, программа за соперника не отвечает. Экран — родственник режима игры (`docs/design/play-mode.md`, `game_view.rs` `play_side`, `clock_card`, `play_toolbar`, `result_strip`): та же компоновка, другие карточки. Где проект расходится с исследованием — §11.
Снимки нынешнего вида (scratchpad разработчика `dev2/`): `pl_white.png` (экран игры 1400: карточки у краёв панели, панель инструментов), `pl_640.png` (640), `m_end.png` (полоса результата), `rs_final.png` (карточка поверх нотации).

View file

@ -1,5 +1,7 @@
# Дебютные репертуары и тренировка по дереву
> **Навигационный статус: superseded для desktop, 2026-12-03.** Действующая спецификация — [Тренировка дебюта v2](opening-trainer-v2-spec.md). Ниже без содержательных изменений сохранён прежний этап проектирования; его правила не являются current при расхождении с v2.
**Дополнение после выпуска 2.2.0 (06.11.2026):** владелец поручил показывать
PGN-значки и рисунки в новом экране обучения после собственных и автоматических
ходов, используя вид обычного просмотра партии. Он также отменил ограничение

View file

@ -1,6 +1,6 @@
# Веб-версия (лёгкая): интерфейс
Статус: проект дизайнера, 2026-10-30, **не утверждён**. Задача — `docs/dev/tasks.md` §22, подпроект `web/`.
Статус: проект дизайнера, 2026-10-30, **не утверждён**. Задача — `docs/dev/tasks.md` §22, подпроект `apps/web/`.
Обязательные решения владельца — `docs/decisions.md` «Веб-версия (2026-10-30)» и уточнение того же дня (через оркестратора): **под телефон веб-приложение не делаем**; на телефоне вместо приложения — страница-заглушка (§3.6). iPad и компьютер — веб-приложение.

View file

@ -4,6 +4,7 @@ egui/eframe 0.36 (wgpu, Wayland/X11). Бинарник `chesspenguin`, app id `i
Общая визуальная система и правила новых экранов: [дизайн-система](../design/design-system.md).
Эталоны — библиотека, просмотр партии и игра с движком; тренировка дебюта не задаёт общий стиль.
Действующая спецификация тренировки дебюта: [Opening Trainer v2](../design/opening-trainer-v2-spec.md); operational-инструкции — [dev-hooks](opening-trainer-v2-devhooks.md).
С 2026-10-30 интерфейс — библиотека `chesspenguin_app` (`src/lib.rs`), бинарник `src/main.rs` только
запускает её (`run_native`); та же библиотека — веб-версия (`apps/web`, `start_web`). Всё, что зависит от
@ -63,4 +64,4 @@ XDG_CONFIG_HOME=/tmp/cfg CP_OPEN=11 CP_PLY=3 CP_ANALYZE=1 ./target/debug/chesspe
## Языки
`i18n.rs`: английский текст — ключ, таблица на 6 языков (en по умолчанию, ru, fr, de, es, it). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.
`i18n.rs`: английский текст — ключ, таблица на 9 языков (en по умолчанию, ru, de, fr, es, it, pt, uz, kk). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.

View file

@ -1,118 +1,96 @@
# Продолжить работу на другой машине
# Актуальный runbook ChessPenguin
Внутренний документ (Forgejo; `docs/dev` не публикуется на GitHub). Состояние на
2026-10-23, версия 0.12.0.
Внутреннее руководство для новой сессии OpenCode. Описывает воспроизводимый процесс; датированные результаты проверок и доказательства хранятся в `docs/qa/`, а не здесь.
## 1. Что где лежит
## 1. Источники истины
- **Forgejo (origin)** `ssh://git@192.168.8.174:2222/vrubelroman/chessbaseLinux.git` —
вся история и внутренние документы.
- Ветка `main` — код. На GitHub уходит только через `scripts/publish-github.sh`, с
вырезанными внутренними путями.
- Ветка `private` — секреты, тестовые базы, память ассистента и прошлые сессии. Её
README и `restore.sh` раскладывают всё по местам. Не сливать с `main`, не ставить
на неё теги.
- **GitHub** `vrubelroman/chessPenguin` — публичное зеркало. `git push github`
отключён нарочно.
- **Сайт** — `website/`, прод на docker-prodVM (192.168.8.171, порт 8140), см. `website/README.md`.
- **Вручную**, вне git:
- `~/.ssh` — ключ к Forgejo, GitHub (через ssh.github.com:443, порт 22 закрыт) и
docker-prodVM, плюс `Host docker-prodVM` в `~/.ssh/config`;
- большие эталонные базы `pgnFilesforExample/Mega2026` (4,8 ГБ);
- `designExample/`, `engines/`.
Перед работой прочитать:
## 2. Новая машина
- [AGENTS.md](../../AGENTS.md) — инварианты продукта, безопасность и обязательные правила;
- [индекс документации](../README.md) — current/history/QA и capability map;
- [бэклог](tasks.md) — текущие задачи и их устойчивые slug;
- [решения владельца](../decisions.md) — подтверждённые решения не переоткрывать;
- [архитектуру](../architecture.md) — устройство реализованной системы;
- [OpenSpec README](../../openspec/README.md) и артефакты назначенного active change, если работа идёт через OpenSpec.
Канонические профили ролей — `.opencode/agents/*.md`. Профиль агента, назначенные файлы и фактические выводы проверок входят в задание и отчёт. Параллельным задачам назначаются непересекающиеся файлы.
## 2. Рабочие копии и безопасность
Сначала определить фактическое состояние:
```sh
git clone ssh://git@192.168.8.174:2222/vrubelroman/chessbaseLinux.git ~/services/chessBaseLinux
cd ~/services/chessBaseLinux
git remote add github ssh://git@ssh.github.com:443/vrubelroman/chessPenguin.git
git remote set-url --push github DISABLED-use-scripts/publish-github.sh
git worktree add ../chessBaseLinux-private private
../chessBaseLinux-private/restore.sh "$PWD"
git status --short
git worktree list --porcelain
```
Путь лучше оставить тем же (`~/services/chessBaseLinux`): по нему Claude Code находит
память проекта и прошлые сессии (`claude --resume`).
Для независимого изменения использовать отдельную ветку и при необходимости отдельный worktree. Не менять чужие worktrees, активные ветки и не назначенные файлы. Существующие незакоммиченные изменения считать чужой работой, пока владелец не сказал обратное.
Инструменты (версии на 2026-10-23):
Не применять `git clean`, массовый `git reset --hard` или удаление по признаку «старое»/«нет ссылок». Защищённые пользовательские материалы и незавершённые загрузки не изменять. Удаление worktree или каталога — только для собственного одноразового каталога либо после явного подтверждения владельца.
- **Rust**:
- rustup stable, 1.99;
- цели `x86_64-unknown-linux-gnu`, `aarch64-linux-android`, `x86_64-linux-android`
(для кросс-проверки Windows — `x86_64-pc-windows-gnu`);
- `cargo install cargo-ndk`.
- **Десктоп** — pkg-config и заголовки ALSA, xkbcommon, Wayland (в CI:
`libasound2-dev libxkbcommon-dev libwayland-dev`, `.github/workflows/ci.yml`); на Arch
они уже в `alsa-lib libxkbcommon wayland`.
- **Android**:
- JDK 21 (`JAVA_HOME=/usr/lib/jvm/java-21-openjdk`);
- Android SDK в `~/Android/Sdk` (`sdkmanager`): platform-tools, build-tools,
платформа из `compileSdk`, NDK **30.0.16248370** (путь прописан в
`androidApp/app/build.gradle.kts`), emulator, образ `system-images;android-36;default;x86_64`;
- `androidApp/local.properties`: `sdk.dir=/home/<user>/Android/Sdk`.
- **Эмулятор**:
- AVD `cp-phone`: 1080×2400, 420 dpi, 2 ГБ ОЗУ, образ android-36 x86_64;
- `avdmanager create avd -n cp-phone -k "system-images;android-36;default;x86_64" -d pixel_7`;
- запуск без окна (владелец просит тестировать так):
`emulator -avd cp-phone -no-window -no-audio -no-snapshot-save -gpu swiftshader_indirect`;
`-gpu host` падает;
- приложение на эмуляторе **не удалять** (образ падает), при нужде — `pm clear`;
- управлять им через `tap.py` / `shot.sh` из ветки `private` (`emulator/`).
- **Сайт и прод** — docker и docker compose. Если группа docker без перелогина:
`printf 'website/deploy/deploy.sh\n' | newgrp docker`.
- **AUR** — `makepkg` (Arch / CachyOS), см. `packaging/aur/`.
Commit, push, tag, release, deploy, OpenSpec sync/archive — только по отдельной явной команде владельца.
Проверка, что всё на месте:
## 3. OpenSpec
Использовать только зафиксированный wrapper из корня репозитория:
```sh
cargo test --workspace && cargo clippy --workspace --all-targets -- -D warnings
(cd androidApp && ./gradlew assembleLightDebug lintLightDebug)
scripts/dev/openspec.sh list
scripts/dev/openspec.sh status --change <name>
scripts/dev/openspec.sh validate --all --strict --no-interactive
```
## 3. Как мы работаем (правила владельца)
Wrapper запускает закреплённую версию CLI с отключённой телеметрией; глобальная установка не нужна. Proposal active change не является решением владельца. `apply` и `archive` выполняются только после соответствующего запроса; перед `apply` план предъявляется владельцу. Strict validation повторяется после изменения артефактов и перед архивированием. Независимые функциональная и визуальная проверки остаются обязательными.
Все правила записаны в памяти ассистента (`claude/memory/` в ветке `private`;
`restore.sh` кладёт её на место). Главное:
## 4. Проверка документации
- **GitHub, теги, релизы, AUR** — только после явного «добро» владельца, каждый раз.
**Прод сайта** — тоже только по «добро».
- **Без костылей**: чинить причину, проще и надёжнее.
- **Новые экраны и функции** перед коммитом проверяют независимые агенты: тестировщик
(на скрытом эмуляторе) и дизайнер (по коду и скриншотам, правит
`docs/design/android-ui.md`).
- Обсуждение — по-русски, код и комментарии — по-английски.
- **Никогда в `main`**: пароли и ключи, тестовый ник сына (только через
`CP_ONLINE_NICK`), `pgnFilesforExample/`, тексты Mega и книг.
- Исходное ТЗ и референсы не менять; `backlog_from_vrubel` — файл владельца, не трогать.
- Автоматический режим Claude Code блокирует публикацию (push тега, publish, deploy).
Для релиза владелец переключает обычный режим (Shift+Tab).
```sh
python3 -I scripts/dev/check-docs-links.py --help
python3 -I scripts/dev/check-docs-links.py --root .
python3 -I -m unittest discover -s scripts/dev -p 'test_check_docs_links.py'
git diff --check
```
Релиз: `release-process` в памяти и `CHANGELOG.md`.
1. Версия в `Cargo.toml`, `CHANGELOG`, metainfo.
2. Тег, `git push origin main vX`, `scripts/publish-github.sh`.
3. GitHub Actions `release.yml` собирает всё, включая обе APK. Секреты подписи Android
уже заведены в GitHub.
4. PKGBUILD для AUR.
5. Прод сайта, если менялся `website/` (версию и файлы сайт берёт из GitHub сам).
Checker работает локально и не ходит в сеть. Битые ссылки исправлять; исторические недоступные `/tmp`, `/var/tmp` и `target` не превращать в ложные ссылки. Допускаются только точечные задокументированные historical-исключения, без общего подавления. Для filtered public tree исключений быть не должно.
## 4. Состояние
## 5. Rust и website
- **0.12.0** (2026-10-23).
- **Android** (альфа, Android 12+):
- базы: файл, папка (включая ChessBase `.cbh`), вставка PGN из буфера, «Открыть с
помощью» и «Поделиться» (копия хранится в приложении);
- доски и наборы фигур как на десктопе;
- номера партий в списке;
- движок только по кнопке, приоритет nice 10, 2 потока;
- две APK: с движком и без него. На сайте по умолчанию предлагается без движка.
- **Десктоп** — без изменений с 0.11, кроме общего исправления разбора PGN в 0.12.
Основные регрессионные проверки из корня:
Дальше по Android (обсуждено, не начато):
```sh
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
cargo fmt --manifest-path website/server/Cargo.toml --check
cargo clippy --manifest-path website/server/Cargo.toml --all-targets --locked -- -D warnings
cargo test --manifest-path website/server/Cargo.toml --locked
```
- проверка на настоящем Android 12 и с TalkBack;
- тесная строка списка партий при крупном системном шрифте;
- первый запрос на скачивание после выкладки сайта иногда уходит на github.com вместо
прямой ссылки (вероятно, таймаут 5 с при получении адреса файла).
В отчёте приводить фактический вывод и exit status. Ignored/unavailable проверки перечислять отдельно, прежние QA-результаты не подставлять. Для ограниченной задачи допустимы точечные `cargo test -p <crate>`, если это согласовано, но они не заменяют требуемый итоговый workspace-прогон.
Остальные планы — в `docs/implementation-plan.md` и в памяти (`search-performance-plan`).
## 6. Окна, dev-хуки и снимки
Окна для тестов запускать только через невидимый монитор:
```sh
scripts/dev/headless-run.sh -- \
XDG_CONFIG_HOME=/tmp/opencode/<profile>/config \
XDG_DATA_HOME=/tmp/opencode/<profile>/data \
XDG_CACHE_HOME=/tmp/opencode/<profile>/cache \
CP_SCREENSHOT=/tmp/opencode/<profile>/shot.png \
./target/debug/chesspenguin
```
Прямой запуск окна на мониторах владельца запрещён. Не поднимать и не подменять AT-SPI, D-Bus, порталы, ydotool или другие службы сессии; действие выполнять через dev-хук приложения. Общие параметры описаны в [desktop.md](desktop.md), специализированные — в [game-view-devhooks.md](game-view-devhooks.md) и [opening-trainer-v2-devhooks.md](opening-trainer-v2-devhooks.md).
UI считается проверенным только после реального запуска и просмотра снимка. Дизайн-ревью выполняет отдельный reviewer, не автор реализации. Новые снимки делать только для доказываемых критериев: обычно 1920×1080, тёмная тема.
## 7. Публикационный DRY_RUN
`DRY_RUN=1 scripts/publish-github.sh` запускать **только в одноразовом изолированном clone/worktree под `/tmp/opencode`**, где локальный `main` указывает на проверяемый HEAD. Сначала зафиксировать исходный и проверяемый SHA, затем проверить filtered refs и public links. Основную рабочую копию, настоящие `main` и remotes не менять; одноразовый каталог удалить после сохранения вывода.
Настоящие publish, push и deploy этим не заменяются и без отдельного разрешения не выполняются. Активный OpenCode, службы владельца и production website самостоятельно не перезапускать.
## 8. Завершение задачи
Сверить diff с назначенной зоной, выполнить предусмотренные проверки и сообщить: изменённые файлы, команды и фактические итоги, решения, непроверенное и вопросы. Независимый tester подтверждает поведение и сохранность данных; запланированная проверка не считается выполненной. Статус бэклога менять только по доказанному результату.

View file

@ -22,25 +22,3 @@
| `CP_REPERTOIRE_MOVES="…"` | действия в занятии: UCI-ходы, `answer`, `wrong`, `hint`, `skip`, `settle`, `stop` (= Esc) |
| `CP_REPERTOIRE_HINT=1` | подсказка в текущем вопросе |
| `CP_REPERTOIRE_EXPORT=1` (+ `CP_REPERTOIRE_EXPORT_FILE=…`) | экспорт PGN |
## Состояние работы (2026-11-26, wip)
Сделано:
- Ядро (`crates/trainer`, коммит 3db35e4): `new_daily` (к повторению + ≤10 новых), `introduce_more`,
возврат ошибки/подсказки в конец очереди, `preview_new`, `new_single_pass_review`,
`new_branch_review`; необязательные флаги снимка; тесты `daily_tests.rs` (7), все 200 тестов trainer зелёные.
- Desktop: новые модули `opening_layout.rs`, `opening_session.rs` (бывший `learning_training.rs`,
движок записи/перетаскивания/подвода сохранён), `opening_lines.rs`; `repertoire_ui.rs` переписан
(таблица, карточка, меню `⋯`, диалоги §7, «Добавить в репертуар» с цветом); `widgets::section_header_sub`.
Удалены `learning_dashboard/branches/charts/context_controls`, `repertoire_editor`, `repertoire_training`.
i18n: 120 новых строк на 9 языках. Тесты opening_* (41) зелёные; repertoire_ui — 10 из 11.
Следующее:
- Починить тест `a_session_needs_no_question_to_go_back_and_counts_refresh_after_it`: хук `debug_moves`
«answer» после «settle» играет ход до подготовки показа (в журнале лишние AutoContext/Previewed) —
разобраться с порядком `settle`/показа нового хода при асинхронной записи.
- Удалить из `i18n.rs` неиспользуемые строки старого раздела; clippy `-D warnings`; wasm-проверка `apps/web`;
mobile-api; снимки в `target/qa-opening-v2/dev-shots/` (репертуары, новый ход, итог).
- Обрезка пути слева в блоке «Выбранный ход» (сейчас обрезка справа).
Известные поломки/отклонения: см. выше; визуально не проверено (снимков ещё нет).

View file

@ -1,7 +1,7 @@
# Задачник
Задачи, идеи и баги владельца. Записываем сразу, делаем потом. Внутренний документ (только Forgejo).
Статусы: **новая** → **в работе** → **сделано (версия)**. Сделанное остаётся внизу, чтобы было видно историю.
Статусы: **новая** → **в работе** → **сделано (версия)**. Завершённое остаётся в своей записи, чтобы сохранялась история. У каждой новой задачи должен быть видимый уникальный descriptive kebab-case **Slug**; в неоднозначных ссылках используем «№N / slug», а не только повторяющийся номер.
## Баги
@ -266,6 +266,7 @@
- **Проверка:** три реальные записи запуска — 1400×900, 960×600 при 200%, компактные 960×550; скачков не обнаружено. Пять целевых регрессий, полный desktop: 220 passed, 4 ignored; build, Clippy, fmt успешны. Отчёт: `docs/qa/library-startup-2026-11-06.md`.
### 40. PGN-разметка и все варианты в тренировке (2026-11-06)
- **Slug:** `training-annotations`.
- **Статус:** выпущено в 2.3.0; ветка `feature/training-pgn-annotations-and-variations` слита в main.
- **Источник:** вопрос владельца о PGN Найдорфа с `!!`, `!`, `?`, `[%cal]` и `[%csl]` во время выпуска 2.2.0.
- **Факт для выпущенной 2.2.0:** PGN и его аннотации сохраняются; `learning_training.rs` передаёт доске `badge: None`, пустые circles и только стрелку собственной подсказки. Прежнее утверждение CHANGELOG о показе этих аннотаций в новом экране исправлено.
@ -283,6 +284,7 @@
- **Статус:** выпущено в 2.3.0. Workspace — 696 passed, 17 ignored; Clippy/fmt, desktop build и wasm check успешны. В изолированном приложении проверены ответ программы после хода пользователя с большой историей, пауза/продолжение, сохранность PGN и отсутствие дублей. Подробности: `docs/qa/training-performance-2026-11-06.md`.
### 40. Тренировка дебюта v2: простой и понятный раздел (2026-11-26)
- **Slug:** `opening-v2`.
- **Статус:** сделано — выпуск 2.4.0 (2026-11-27), ветка `feature/opening-trainer-v2` слита в `main`.
- **Суть (владелец):** переписать раздел как ChessTempo, но проще и понятнее; остальные разделы не менять. Решения делегированы оркестратору — `docs/decisions.md`, «Тренировка дебюта v2».
- **Сделано:** один экран «Репертуары» (таблица + карточка: «Сегодня: N повторить · M новых», «Выучено X из Y · учится Z», «Тренироваться», «Варианты…», «Повторить всё»); занятие — линия от начала, новый ход показывается стрелкой, на ошибке — правильный ход, ошибка возвращается в том же занятии, комментарии и название дебюта; итог; «Повторить всё подряд», «Тренировать эту ветку», экран «Варианты»; цвет при импорте; два стартовых репертуара (Испанская за белых, Найдорф за чёрных). Удалены режимы/порядки, окно параметров, дашборд с графиками, Branches/Lines, режим «за оба цвета», скрытый лимит глубины; ~13 тыс. строк старого UI.
@ -304,7 +306,7 @@
### 43. Стрелки в анализе с сохранением в PGN (2026-11-10)
- **Статус:** сделано в ветке `feature/starter-repertoires` (слито из `feature/arrows-hint`, 2026-11-27), выпущено в 2.5.0. Рисование и запись `[%cal]/[%csl]` были с 1.2.0; владелец о них не знал — сделана обнаруживаемость.
- **Сделано:** подсказка вверху нотации (как полоса перевода, ×; исчезает после первой фигуры или ×, сама — после трёх партий; в просмотре линии движка приглушена без сдвига), значок 10×10 у хода со стрелками/кругами с подсказкой числа, строка справки в «Настройки › Доска»; тесты `apply_shape`; хуки `CP_HINT_RESET`, `CP_BEST_DELAY`, `CP_BEST_EXIT_AFTER` (`docs/qa/game-view-devhooks.md`).
- **Сделано:** подсказка вверху нотации (как полоса перевода, ×; исчезает после первой фигуры или ×, сама — после трёх партий; в просмотре линии движка приглушена без сдвига), значок 10×10 у хода со стрелками/кругами с подсказкой числа, строка справки в «Настройки › Доска»; тесты `apply_shape`; хуки `CP_HINT_RESET`, `CP_BEST_DELAY`, `CP_BEST_EXIT_AFTER` (`docs/dev/game-view-devhooks.md`).
- **Проверено:** tester PASS — `docs/qa/task-43-functional-2026-11-27.md`; дизайн-ревью ПРИНЯТО, 0 px при входе/выходе из линии движка — `docs/qa/task-43-design-review-2026-11-27.md`.
- **Не проверено:** протяжка мышью в окне, Alt в других оконных менеджерах, HiDPI. Окно настроек на 960×600 обрезано — было и раньше.
- **Суть (владелец):** добавить в анализ партии пользовательские стрелки, которые сохраняются в PGN и снова отображаются при открытии.
@ -352,6 +354,8 @@
- **Суть (владелец):** когда для Android доступна новая сборка, показывать пользователю не только её номер, но и что в ней нового, и предлагать обновиться.
- **С чего начать:** использовать существующие проверку выпуска и лист обновления; перед установкой показать короткое описание новых возможностей с действием «Обновить». Продумать локализацию и источник текста выпуска, состояния без сети/без новой версии и отсутствие навязчивых повторов. Проверка и скачивание — только по действующим настройкам пользователя. В сборке RuStore самообновления и обращения к сайту нет: новая версия и её описание предоставляются магазином.
## Сделано
(пусто)
### 51. Ревизия файловой структуры репозитория (2026-12-03)
- **Slug:** `repository-structure`.
- **Статус:** сделано (2026-12-03), ветка `chore/repository-structure`; change `organize-repository-structure` реализован и получил независимый implementation QA PASS. 23/23 задач, checker 171 Markdown/823 links/0 broken, root 670 passed/0 failed/18 ignored, website 4/4, isolated publication DRY_RUN без push. Доказательства: `docs/qa/repository-structure-2026-12-03.md` и `docs/qa/repository-structure-planning-2026-12-03.md`. Заархивировано 2026-12-04 в `openspec/changes/archive/2026-12-04-organize-repository-structure/` с синхронизацией `openspec/specs/repository-governance/spec.md`; публикация — отдельный коммит ветки `chore/repository-structure` в Forgejo, GitHub только при выпуске по решению владельца. Номер 50 зарезервирован за исследованием ChessMonitor в основном рабочем дереве.
- **Суть (владелец):** внимательно привести файловую структуру всего проекта к понятному виду: убрать доказанные ненужные артефакты, переместить документы в логичные места и установить ясные правила без риска для продукта и пользовательских данных.
- **С чего начать:** единый `docs/README.md`, разграничение canonical/current/history/QA, исправление устаревших указателей и публикационной границы, точечные перемещения и удаление только подтверждённого Python cache. Не делать массовую миграцию `androidApp`, examples, icons, packaging или исторических docs.

View file

@ -3,7 +3,7 @@
Окружение: ветка feature/opening-trainer-v2 @ af0a89a, бинарник `/tmp/opencode/v2-target/debug/chesspenguin`
(собран 02:18, после последнего кодового коммита 358e1bf), Linux, Wayland (`wayland-1`, Xwayland `:1`).
Изолированные профили `/tmp/opencode/qa-ot/p*` (XDG_CONFIG_HOME, XDG_DATA_HOME, CP_REPERTOIRE_DIR).
Управление — dev-хуки (`docs/qa/opening-trainer-v2-devhooks.md`) и `CP_KEYS`; доказательства — снимки
Управление — dev-хуки (`docs/dev/opening-trainer-v2-devhooks.md`) и `CP_KEYS`; доказательства — снимки
`CP_SCREENSHOT` и содержимое `repertoires.json` / `repertoire-training.json`.
| # | Сценарий | Итог |

View file

@ -52,9 +52,9 @@ sandbox: четыре существующих теста ChatGPT/перевод
доска целиком в доступной области. Независимый агент дополнительно просмотрел
тренировку RU 640×900 и снял/проверил DE 640×480.
Артефакты: [библиотека](../screenshots/repertoire-library.png),
[узкий репертуар](../screenshots/repertoire-detail.png),
[результат Both](../screenshots/repertoire-result.png).
Артефакты: [библиотека](repertoire-layout-2026-11-02/repertoire-library.png),
[узкий репертуар](repertoire-layout-2026-11-02/repertoire-detail.png),
[результат Both](repertoire-layout-2026-11-02/repertoire-result.png).
## Корпус

View file

Before

Width:  |  Height:  |  Size: 226 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 433 KiB

After

Width:  |  Height:  |  Size: 433 KiB

Before After
Before After

View file

@ -38,7 +38,7 @@
3. 640×480 RU dark: легальный `a3` вне дерева — ошибка +1, позиция возвращена;
явное объяснение и немедленная кнопка подсказки видны, наложений нет.
Артефакты: [ход вне дерева](../screenshots/repertoire-practice-error.png),
[результат выбранной ветки](../screenshots/repertoire-practice-result.png).
Артефакты: [ход вне дерева](repertoire-practice-flow-2026-11-02/repertoire-practice-error.png),
[результат выбранной ветки](repertoire-practice-flow-2026-11-02/repertoire-practice-result.png).
Не проверено: полная интерактивная матрица всех клавиш/языков/диалогов, Android/web.

View file

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 432 KiB

After

Width:  |  Height:  |  Size: 432 KiB

Before After
Before After

View file

@ -0,0 +1,296 @@
# QA: organize-repository-structure (2026-12-03)
Статус: **implementation evidence; не итоговый PASS всего change**. Этот отчёт охватывает назначенные задачи 1.1–1.3 и 5.2–5.3. Остальные перемещения, сквозные проверки, isolated publication DRY_RUN и независимая приёмка выполняются другими ролями и здесь не отмечаются как выполненные.
## Baseline и защищённые пути
Начальный HEAD: `d50f297eb56c7d3fa4855f93823ca6aa6565e3aa`, ветка `chore/repository-structure`. Окружение и фактические команды: [baseline-environment.txt](repository-structure-2026-12-03/baseline-environment.txt).
`git worktree list --porcelain` зафиксировал четыре worktree:
- `/home/vrubel/services/chessBaseLinux` — `feature/iphone-app`, HEAD `040ad2d1fa5f8c07750224175a532387fcdfa113`;
- `/home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196` — `web-app`, HEAD `b5da315343d3d23be9636408a863afe0e77752af`;
- `/tmp/opencode/chesspenguin-openspec` — `chore/openspec-hybrid`, HEAD `f28958b19236d61755a5b86fb4f1ae60628d5120`, включая active change `show-embedded-android-release-notes`;
- текущий `/tmp/opencode/chesspenguin-repository-structure` — `chore/repository-structure`.
Их содержимое не изменялось. Статусы основной и OpenSpec worktree, команды и вывод: [baseline-worktrees.txt](repository-structure-2026-12-03/baseline-worktrees.txt). Ручной просмотр `docs/dev/tasks.md` и `backlog_from_vrubel` не выполнялся, их содержимое не выводилось и не анализировалось; checker лишь программно разбирал Markdown-ссылки в текущем дереве. Защищённые пользовательские файлы не открывались.
Защищены `designExample/`, `pgnFilesforExample/`, `engines/`, `backlog_from_vrubel`, `iosApp`, active Android changes, `icons/`, `packaging/`, release APK, `.claude/worktrees/` и все активные worktree. В `examples/` допустима только отдельная документационная правка `examples/README.md`; пользовательские PGN не меняются. Начальные presence/diff/status: [baseline-protected-paths.txt](repository-structure-2026-12-03/baseline-protected-paths.txt). Финальный read-only snapshot сохранил HEAD/ветки всех worktree; единственный diff в перечисленной protected-группе — отдельно назначенный `examples/README.md`, а остальные protected paths дали пустой status ([final-protected-and-worktrees.txt](repository-structure-2026-12-03/final-protected-and-worktrees.txt)). Отсутствие пути в текущем worktree не использовалось как основание для его создания или очистки.
SHA-256 пяти перемещаемых repertoire PNG, пяти KEEP B1–B5 и трёх KEEP/LINK QA27 PNG зафиксированы по исходным `HEAD:<path>` blobs: [baseline-image-sha256.txt](repository-structure-2026-12-03/baseline-image-sha256.txt). Первый прямой working-tree `sha256sum` успешно выполнился до параллельного move и дал те же значения; повторное логирование уже столкнулось с move, поэтому failed attempt сохранён отдельно в [baseline-image-sha256-race.txt](repository-structure-2026-12-03/baseline-image-sha256-race.txt), а успешный baseline получен read-only из неизменного HEAD. Сами изображения этим исполнителем не перемещались и не изменялись; post-move сверка относится к задачам 3.4/3.5 и независимой QA.
## Исходные недоступные исторические ссылки
До cleanup checker нашёл шесть локальных ссылок на отсутствующие generated-артефакты в `target/`. Они сохранены как исторические сведения о методике и допускаются только точечными парами `source=target`:
| Source | Raw target | Причина |
| --- | --- | --- |
| `docs/design/design-system.md` | `../../target/qa-quiet-status/shots/main.png` | исторический generated screenshot отсутствует |
| `docs/design/design-system.md` | `../../target/qa-quiet-status/shots/game.png` | исторический generated screenshot отсутствует |
| `docs/design/design-system.md` | `../../target/qa-quiet-status/shots/play.png` | исторический generated screenshot отсутствует |
| `docs/qa/learning-counts-and-parameters-2026-11-05.md` | `../../target/qa-context-clarity/design-review.md` | исторический generated review отсутствует |
| `docs/qa/settings-and-prep-errors-2026-11-05.md` | `../../target/qa-global-settings/design-review.md` | исторический generated review отсутствует |
| `docs/qa/training-feedback-2026-11-05.md` | `../../target/qa-training-footer/design-review.md` | исторический generated review отсутствует |
Ссылки на существующие Rust-файлы с `#L…` не являются битыми: checker проверяет существование такого файла, но не пытается трактовать source line как Markdown heading. Абсолютные `/tmp`, `/var/tmp` и внешние HTTP(S)/mailto не проверяются как локальные файлы. Сетевые запросы не выполняются.
Фактические baseline-прогоны без подавления и с шестью точечными исключениями: [baseline-checker-unfiltered.txt](repository-structure-2026-12-03/baseline-checker-unfiltered.txt), [baseline-checker-allowlisted.txt](repository-structure-2026-12-03/baseline-checker-allowlisted.txt).
## Checker (tasks 1.2–1.3)
`scripts/dev/check-docs-links.py` использует только Python stdlib. Явный `--root` ограничивает дерево; поддерживаются относительные file/anchor links, `./`, `../`, URL-decoding, Cyrillic/space anchors, reference links, точечный повторяемый `--allow SOURCE=TARGET` и `--public`, запрещающий любые исключения. Диагностика имеет вид `file:line → target (reason)`; битые ссылки дают exit 1. Malformed Markdown не приводит к traceback.
Unit-тесты: `scripts/dev/test_check_docs_links.py`. **PASS:** `python3 -I -m unittest discover -s scripts/dev -p 'test_check_docs_links.py'` выполнил 13 тестов, `OK`, exit 0 ([checker-tests.txt](repository-structure-2026-12-03/checker-tests.txt)). Тесты покрывают валидные/битые paths и anchors, `./`/`../`, URL-decoding, Cyrillic/space anchors, duplicate headings, source-line anchors, reference links, точность allowlist, запрет исключений в public mode, malformed input и отсутствие socket calls.
**PASS:** `python3 -I scripts/dev/check-docs-links.py --help` завершился с exit 0 и показал `--root`, `--allow` и `--public` ([checker-help.txt](repository-structure-2026-12-03/checker-help.txt)). Повторный baseline с шестью точечными исключениями: 171 Markdown file, 0 broken links, exit 0. Дополнительный прогон текущего параллельно изменённого дерева с теми же шестью парами также дал 0 broken links ([checker-current.txt](repository-structure-2026-12-03/checker-current.txt)); это не заменяет финальный task 6.1 после стабилизации всех правок.
**Остаётся для другого агента:** в `docs/dev/handoff.md` должны быть добавлены команда checker и ссылка на `scripts/dev/check-docs-links.py`. Этот файл намеренно не редактировался во избежание перезаписи runbook-работы, поэтому документирующая часть task 1.3 здесь не отмечается выполненной.
## Cache и publication filter (tasks 5.2–5.3)
**PASS 5.2 в назначенном объёме.** Удалён только tracked `website/shots/__pycache__/derive.cpython-314.pyc`; `.gitignore` получил `__pycache__/` и `*.py[cod]`. `git ls-files '*.pyc' '*.pyo' '*.pyd'` вернул пустой вывод. `git check-ignore -v --no-index` подтвердил оба правила. SHA-256 `website/shots/derive.py` остался `050af16dae260d0147973911878ec810dec3289dd6524644fd2cadde6ada25f6`; его Git object ID совпадает с HEAD, diff пуст. Удаление видно как единственный staged deleted path. Сырой `git diff --diff-filter=D --name-only HEAD` на момент проверки дополнительно перечислил `web/README.md`: параллельный rewrite/move имеет статус `RM` и этим запросом не распознаётся как rename. Этот путь данным исполнителем не менялся; `git diff --cached --diff-filter=D --name-only` вернул только назначенный `.pyc`. Окончательную rename/delete классификацию после стабилизации всех правок должен подтвердить независимый tester. Команды и вывод: [cache-and-ignore.txt](repository-structure-2026-12-03/cache-and-ignore.txt).
**PASS 5.3 — статическая проверка, не publication runtime.** `bash -n scripts/publish-github.sh` завершился с exit 0. Internal array содержит все 20 прежних/требуемых записей, включая `.agents`, `openspec`, `scripts/dev/openspec.sh`, `docs/README.md` и прежний `docs/implementation-plan.md`; `missing: []`. Скрипт не изменён: diff пуст, object ID совпадает с HEAD. Доказательства: [publish-static.txt](repository-structure-2026-12-03/publish-static.txt).
Изменений реальной публикации не требуется и не выполнялось. `DRY_RUN=1 scripts/publish-github.sh` намеренно **не запускался**: его выполнит оркестратор в isolated clone после всех правок. Реальные push/deploy, commit и sync/archive также не выполнялись.
## Ограничения и непроверенное
- Весь change не объявляется готовым; checkbox tasks не изменялись.
- Перемещения docs/PNG, self-contained public docs других файлов, финальный полный diff, Rust/website tests, isolated DRY_RUN и независимая QA находятся вне назначенного объёма этого прохода.
- Внешние HTTP-ресурсы намеренно не проверяются.
- Другие агенты параллельно меняют документацию; baseline относится к зафиксированному выше HEAD/моменту, а выводы содержат собственные фактические команды и результаты. Гонка при логировании PNG и неоднозначность raw rename/delete diff не скрыты.
---
## Независимая implementation QA — 2026-12-03
**Вердикт: FAIL.** Независимо воспроизведены все назначенные проверки, включая собственный isolated publication DRY_RUN. Обнаружены два дефекта приёмки:
1. **IQ-01:** требуемый `git diff --find-renames HEAD` показывает два удаления, а не одно: `web/README.md` классифицируется как delete+add, хотя фактический move существует;
2. **IQ-02:** `docs/dev/desktop.md` не содержит current-указатель на `docs/design/opening-trainer-v2-spec.md`, обязательный task 2.3.
Остальные проверенные области прошли: все назначенные файлы/изображения сохранены, production-логика не изменена, protected worktrees/paths сохранены, checker/tests/OpenSpec зелёные, root и website tests зелёные, isolated filtered refs/public tree валидны. Прежний planning PASS не заменяет этот implementation verdict.
### Независимая среда и границы
- Проверяющий не является автором cleanup. HEAD остаётся `d50f297eb56c7d3fa4855f93823ca6aa6565e3aa`, ветка `chore/repository-structure`.
- Planning artifacts, `tasks.md` и production не редактировались. Добавлены только этот раздел и новые `independent-*` файлы в `docs/qa/repository-structure-2026-12-03/`.
- Не выполнялись commit/push/apply/archive/deploy. Временный коммит создавался исключительно в собственном одноразовом clone, затем clone и helper удалены.
- Содержимое пользовательского `backlog_from_vrubel` и пользовательских PGN не читалось. Проверялись только git statuses/HEAD и presence защищённых путей.
- Исходный snapshot refs до проверок: [independent-source-refs-before.txt](repository-structure-2026-12-03/independent-source-refs-before.txt); environment: [independent-environment.txt](repository-structure-2026-12-03/independent-environment.txt).
### 1. Diff, moves и изображения
#### IQ-01 — дефект классификации удалений
- **Серьёзность:** средняя, structural acceptance; фактический текст нового README не потерян, но обязательный критерий «ровно одно удаление» не выполняется.
- **Окружение:** HEAD `d50f297`, команда именно `git diff --find-renames HEAD`, без пониженного similarity threshold.
- **Шаги / минимальное воспроизведение:** выполнить `git diff --find-renames --diff-filter=D --name-only HEAD`.
- **Ожидаемое:** только `website/shots/__pycache__/derive.cpython-314.pyc`.
- **Фактическое:**
```text
web/README.md
website/shots/__pycache__/derive.cpython-314.pyc
```
Полный `--name-status` показывает `A apps/web/README.md` и `D web/README.md`, то есть delete+add вместо rename. Контрольный `git diff --find-renames=10%` распознаёт `R021 web/README.md → apps/web/README.md`, подтверждая, что это именно move с переписыванием, но не исправляя результат обязательной default-команды.
- **Файл/строка:** `apps/web/README.md:1-18`; требование — `openspec/changes/organize-repository-structure/tasks.md:25` и `specs/repository-governance/spec.md:145-147`.
- **Доказательства:** [independent-diff-renames.txt](repository-structure-2026-12-03/independent-diff-renames.txt), [independent-web-readme-move.txt](repository-structure-2026-12-03/independent-web-readme-move.txt).
Остальные изменённые moves распознаются: implementation plan `R093`, opening devhooks `R051`, WIP handoff `R069`, game devhooks/report-1…3 и пять PNG `R100`.
#### Сохранность назначенных файлов — PASS
- Все 13 назначенных source→destination пар существуют по назначению, старые пути отсутствуют.
- Пять repertoire PNG имеют побайтно те же SHA-256, что immutable `HEAD:<old>` и исходный baseline.
- Десять product images образуют точный ожидаемый set в `docs/screenshots/`; пять QA-only PNG там отсутствуют.
- B1–B5 и три QA27 PNG сохранили SHA-256. Дополнительные KEEP-изображения в том же design-каталоге также не изменились.
- `report-1…3` и `game-view-devhooks.md` совпадают с HEAD побайтно.
- Итоговый `docs/screenshots/`: 10 файлов, `unexpected=[]`, `missing=[]`.
- Доказательства: [independent-files-and-hashes.txt](repository-structure-2026-12-03/independent-files-and-hashes.txt), исходный [baseline-image-sha256.txt](repository-structure-2026-12-03/baseline-image-sha256.txt).
### 2. История, тексты и production diff
#### История — PASS
- `implementation-plan` получил отдельный history banner; исходный текст сохранён, изменены только banner и относительный pointer `decisions.md`.
- Исходный handoff 0.12.0 сохранён в `docs/research/handoff-2026-10-23.md`; diff содержит banner и pointer на датированный plan, старые факты не переписаны.
- WIP handoff содержит исходный handoff и полный WIP-раздел devhooks. Operational prefix остался в `docs/dev/`; различие только trailing blank line.
- В изменённых history/QA diffs нет удалённых строк с PASS/FAIL. Banners/current-указатели присутствуют и не выдают WIP за текущий runbook.
- Доказательства: [independent-history-diffs.txt](repository-structure-2026-12-03/independent-history-diffs.txt), [independent-current-history.txt](repository-structure-2026-12-03/independent-current-history.txt).
#### Production — PASS
`apps/desktop/src/repertoire_ui.rs:2329` изменён ровно в одной comment-строке `docs/qa` → `docs/dev`; исполняемая логика не затронута. В `apps/crates/androidApp/website/examples/packaging` дополнительные paths ограничены назначенными `apps/web/README.md`, `examples/README.md` и единственным `.pyc`. Единственный examples diff — `examples/README.md`. `website/shots/derive.py` diff пуст.
Доказательства: [independent-production-diff.txt](repository-structure-2026-12-03/independent-production-diff.txt), [independent-diff-check-ignore.txt](repository-structure-2026-12-03/independent-diff-check-ignore.txt).
### 3. Protected paths и активные worktrees — PASS
- `designExample/`, `pgnFilesforExample`, `engines`, `backlog_from_vrubel`, `iosApp`, `icons`, `packaging`, `.claude` не имеют diff/status в cleanup worktree; `examples/` — только README.
- Основная worktree остаётся `feature/iphone-app`, HEAD `040ad2d…`; её `docs/dev/tasks.md` modified и untracked `backlog_from_vrubel` сохранены без чтения содержимого.
- OpenSpec worktree остаётся `chore/openspec-hybrid`, HEAD `f28958b…`; active change directory `show-embedded-android-release-notes` присутствует.
- `.claude` worktree остаётся `web-app`, HEAD `b5da315…` и физически присутствует.
- Отсутствие какого-либо protected path в cleanup worktree не использовалось как основание для удаления или создания.
- Доказательства: [independent-protected-worktrees.txt](repository-structure-2026-12-03/independent-protected-worktrees.txt).
### 4. Индекс, current/history, Opening v2, locales и slugs
#### Общая навигация — PASS, кроме IQ-02
- `docs/README.md` содержит единую source-of-truth matrix, capability map, current/history/QA, active change и naming/public-internal правила. `AGENTS.md` и `openspec/README.md` ссылаются на него без второй матрицы.
- Current handoff описывает OpenCode/OpenSpec и реальные команды; history/WIP отделены.
- `docs/architecture.md:30,109` ведёт к `opening-trainer-v2-spec.md`; architecture и desktop guide указывают девять locales. Android `locales_config.xml` также содержит девять.
- Два №40 имеют разные `training-annotations` и `opening-v2` slugs; номера не перенумерованы.
- Public `apps/web/README.md` имеет четыре рабочих указателя; `examples/README.md` и `THIRD_PARTY_NOTICES.md` не содержат local Markdown-зависимостей от filtered docs.
#### IQ-02 — отсутствует обязательный v2-указатель в desktop developer guide
- **Серьёзность:** средняя, documentation acceptance; task 2.3 выполнен не полностью.
- **Окружение:** текущий `docs/dev/desktop.md`, HEAD `d50f297`.
- **Шаги:**
1. `grep -n 'opening-trainer-v2-spec' docs/dev/desktop.md` → нет совпадений, exit 1;
2. `git diff HEAD -- docs/dev/desktop.md` → только замена 6 → 9 locales;
3. `grep -nE 'trainer|repertoire|Opening|Тренир' docs/dev/desktop.md` → нет совпадений.
- **Ожидаемое:** current desktop developer guide ведёт к `docs/design/opening-trainer-v2-spec.md`, как требуют `tasks.md:19` и `spec.md:77-86`.
- **Фактическое:** v2-указатель присутствует в architecture, но отсутствует в `docs/dev/desktop.md`.
- **Файл/строка:** `docs/dev/desktop.md:64-66`; `openspec/changes/organize-repository-structure/tasks.md:19`; `specs/repository-governance/spec.md:77-86`.
- **Доказательство:** [independent-desktop-v2-pointer.txt](repository-structure-2026-12-03/independent-desktop-v2-pointer.txt).
### 5. Checker, stdlib tests, OpenSpec и git checks — PASS
- `python3 -I -m unittest discover -s scripts/dev -p 'test_check_docs_links.py'`: **13 tests, OK, exit 0**.
- Полный checker с шестью точечными историческими исключениями до добавления этого раздела: **171 Markdown files, 781 non-allowlisted links, 0 broken, exit 0**. Финальный повтор после всех новых evidence и ссылок отчёта: **171 files, 814 links, 0 broken** ([independent-final-checks.txt](repository-structure-2026-12-03/independent-final-checks.txt)).
- Старые path greps: прежние report/devhooks/WIP/repertoire paths не найдены; `docs/implementation-plan.md` остаётся только в publication internal list, как требуется.
- `git diff --check HEAD`: exit 0. `git ls-files '*.pyc' '*.pyo' '*.pyd`: пусто. Ignore подтверждён и для `__pycache__/`, и для root `example.pyc` (`*.py[cod]`). `bash -n scripts/publish-github.sh`: exit 0.
- `scripts/dev/openspec.sh validate --all --strict --no-interactive`: `✓ change/organize-repository-structure`, **1 passed, 0 failed**.
- `status --change organize-repository-structure --json`: proposal/specs/design/tasks `done`, `isPlanningComplete=true`.
- `list --json`: **21/23 completed**, 23 total, `in-progress`; текстовый контроль — 21 `[x]`, 2 unchecked (`7.1`, `7.2`). Task 7.1 не отмечался этим QA.
- Доказательства: [independent-checker-tests.txt](repository-structure-2026-12-03/independent-checker-tests.txt), [independent-checker-full.txt](repository-structure-2026-12-03/independent-checker-full.txt), [independent-old-path-grep.txt](repository-structure-2026-12-03/independent-old-path-grep.txt), [independent-openspec.txt](repository-structure-2026-12-03/independent-openspec.txt), [independent-task-counts.txt](repository-structure-2026-12-03/independent-task-counts.txt), [independent-diff-check-ignore.txt](repository-structure-2026-12-03/independent-diff-check-ignore.txt), [independent-ignore-pyc-extension.txt](repository-structure-2026-12-03/independent-ignore-pyc-extension.txt).
### 6. Rust и website — PASS с указанием ignored
Независимо повторены команды, а не только прочитаны прежние evidence:
| Команда | Фактический итог |
| --- | --- |
| `cargo fmt --all --check` | exit 0 |
| `cargo clippy --workspace --all-targets --locked -- -D warnings` | exit 0 |
| `cargo test --workspace --locked` | **37 result lines, 670 passed, 0 failed, 18 ignored**, exit 0 |
| `cargo fmt --manifest-path website/server/Cargo.toml --check` | exit 0 |
| `cargo clippy --manifest-path website/server/Cargo.toml --all-targets --locked -- -D warnings` | exit 0 |
| `cargo test --manifest-path website/server/Cargo.toml --locked` | **4 passed, 0 failed, 0 ignored**, exit 0 |
Прежний combined root+interrupted website log не использовался как website PASS. Для независимого website результата создан отдельный final log. Доказательства: [independent-cargo-workspace.log](repository-structure-2026-12-03/independent-cargo-workspace.log), [independent-cargo-workspace-exit.txt](repository-structure-2026-12-03/independent-cargo-workspace-exit.txt), [independent-cargo-fmt-clippy.log](repository-structure-2026-12-03/independent-cargo-fmt-clippy.log), [independent-website-final.log](repository-structure-2026-12-03/independent-website-final.log), [independent-website-final-exit.txt](repository-structure-2026-12-03/independent-website-final-exit.txt), [independent-website-fmt-clippy.log](repository-structure-2026-12-03/independent-website-fmt-clippy.log), [independent-website-fmt-exact.txt](repository-structure-2026-12-03/independent-website-fmt-exact.txt).
### 7. Независимый isolated publication DRY_RUN — PASS
Собственный одноразовый clone создан под `/tmp/opencode`; весь тогдашний diff и untracked intended перенесены, temporary commit создан только там и `main` направлен на него. Манифест paths/modes/SHA-256 source и временного дерева совпал.
- Source base: `d50f297eb56c7d3fa4855f93823ca6aa6565e3aa`.
- Temporary cleanup commit: `c94a5b8b5615db56cab905ff5ee10cf612a2e2ac`.
- Actual `DRY_RUN=1` cleanup main: `b50a425`.
- Независимо воспроизведённый filtered main: `b50a42589bd80696dffba6df0ccf7edd60ec1111`.
- Все internal path history checks для filtered refs пусты, включая `.agents`, `openspec`, `scripts/dev/openspec.sh`, `docs/README.md`, прежний `docs/implementation-plan.md`, research/design/QA/dev и website.
- Public checker без allowlist: **8 Markdown files, 40 non-allowlisted links, 0 broken**.
- Product gallery: source 10 = public 10, set совпадает.
- Source refs before/after идентичны. Temporary clone и helper удалены. Реальных push/deploy не было.
Первая попытка harness ошибочно вызвала script по absolute path из source cwd и не засчитана. Финальная команда выполнена как `(cd "$tmp/repo" && DRY_RUN=1 scripts/publish-github.sh)`; public clone взят явно из `main`. Обе попытки задокументированы: [independent-publication-attempts.txt](repository-structure-2026-12-03/independent-publication-attempts.txt).
Основные доказательства: [independent-publication-result.txt](repository-structure-2026-12-03/independent-publication-result.txt), [independent-publication-filtered-refs.txt](repository-structure-2026-12-03/independent-publication-filtered-refs.txt), [independent-publication-dry-run.log](repository-structure-2026-12-03/independent-publication-dry-run.log), [independent-publication-public-links.txt](repository-structure-2026-12-03/independent-publication-public-links.txt), [independent-publication-public-gallery.txt](repository-structure-2026-12-03/independent-publication-public-gallery.txt), [independent-source-refs-after.txt](repository-structure-2026-12-03/independent-source-refs-after.txt).
### Не подтвердилось
- Потеря назначенных moves, product/KEEP/QA27 images или исходных report/devhooks текстов не подтверждена.
- Изменение production-логики, пользовательских PGN/backlog, protected worktrees или исходных refs не подтверждено.
- Битые локальные ссылки, tracked `.pyc`, скрытые internal paths в filtered refs, реальные push/deploy и дополнительные незапланированные production diffs не подтверждены.
### Оставшиеся pending и риски
1. Исправить IQ-01 и IQ-02, затем повторить default `git diff --find-renames HEAD`, v2-pointer check, full checker и affected publication check.
2. Tasks `7.1` и `7.2` остаются unchecked; их закрытие выполняет оркестратор после исправлений и повторной независимой приёмки.
3. Восемнадцать ignored root tests не выполнялись и не объявляются PASS. Внешние HTTP-ресурсы не проверялись. Новые UI screenshots/продуктовые UI tests не входят в docs-only cleanup.
4. Planning PASS остаётся историческим результатом planning review, но не является implementation PASS. Текущий implementation verdict — **FAIL** по двум воспроизведённым дефектам.
---
## Повторная implementation QA IQ-01/IQ-02 — 2026-12-03
**Вердикт: PASS в объёме cleanup и заявленных проверок.** Оба прежних дефекта устранены; новых дефектов повторная проверка не обнаружила. Предыдущий FAIL выше сохранён как история и не переписан.
Это не утверждение о завершении tasks 7.1/7.2 и не универсальный PASS всех платформ: 18 root tests остаются ignored, внешние HTTP-ресурсы не проверялись. Production/planning artifacts и checkboxes не редактировались; добавлены только этот раздел и `independent-retest-*` evidence.
### IQ-01 — rename detection уточнён и подтверждён: PASS
Выполнены требуемые команды именно с осознанным threshold 10%:
```text
$ git diff --find-renames=10% --name-status HEAD -- web/README.md apps/web/README.md
R021 web/README.md apps/web/README.md
exit=0
$ git diff --find-renames=10% --diff-filter=D --name-only HEAD
website/shots/__pycache__/derive.cpython-314.pyc
exit=0
```
`R021` ожидаем из-за согласованной самодостаточной переработки README, а не второго фактического удаления. `apps/web/README.md` существует, прежний `web/README.md` отсутствует в worktree, но доступен в immutable Git history: `git show HEAD:web/README.md` успешно вернул blob с SHA-256 `9ff088c6e0312a7e7007fcf1a0275b277936354a3d5f1a17f6b8d04ae1cdeb87`; `git log --follow -- web/README.md` показывает два исторических коммита.
Threshold и причина явно документированы, а не скрыты:
- `design.md:137` — default threshold не распознаёт сильно переработанный README, поэтому используется `--find-renames=10%`, фиксируются R021 и сохранение истории без искусственного повышения similarity;
- `specs/repository-governance/spec.md:145-147` — обязательная delete-check команда содержит 10%, а низкое similarity объяснено самодостаточной переработкой;
- `tasks.md:47` — та же проверка delete whitelist и отдельное правило не считать web README вторым удалением.
Доказательство: [independent-retest-iq01.txt](repository-structure-2026-12-03/independent-retest-iq01.txt).
### IQ-02 — current Opening Trainer pointers: PASS
`docs/dev/desktop.md:7` теперь содержит две ссылки:
- current `../design/opening-trainer-v2-spec.md`;
- operational `opening-trainer-v2-devhooks.md`.
Обе цели существуют и разрешаются финальным checker. `docs/architecture.md:30,109` также ведёт к `design/opening-trainer-v2-spec.md`. Diff desktop guide ограничен добавлением нужной строки и исправлением 6 → 9 locales.
Доказательства: [independent-retest-iq02-diff.txt](repository-structure-2026-12-03/independent-retest-iq02-diff.txt), финальный checker ниже.
### Повторные автоматические проверки
- `python3 -I -m unittest discover -s scripts/dev -p 'test_check_docs_links.py'`: **13 tests, OK, exit 0** — [independent-retest-checker-tests.txt](repository-structure-2026-12-03/independent-retest-checker-tests.txt).
- Полный checker с шестью точечными allow: предварительно **171 Markdown files, 817 links, 0 broken** ([independent-retest-checker-full.txt](repository-structure-2026-12-03/independent-retest-checker-full.txt)); финальный повтор после добавления раздела — **823 links, 0 broken, exit 0** ([independent-retest-final-checks.txt](repository-structure-2026-12-03/independent-retest-final-checks.txt)).
- `scripts/dev/openspec.sh validate --all --strict --no-interactive`: `✓ change/organize-repository-structure`, **1 passed, 0 failed**.
- `status --change organize-repository-structure --json`: 4/4 artifacts `done`, `isPlanningComplete=true`.
- `list --json`: **21/23**, `in-progress`; unchecked остаются только 7.1/7.2. Этот QA tasks не отмечал.
- `git diff --check HEAD`: exit 0. Команды/OpenSpec: [independent-retest-openspec-git.txt](repository-structure-2026-12-03/independent-retest-openspec-git.txt).
### Public tree после исправлений — повторный DRY_RUN не требуется
Сравнение текущего manifest с source manifest предыдущего accepted independent DRY_RUN показало изменения только внутри filtered `docs/dev/`, `docs/qa/` и `openspec/`: v2-pointer в `docs/dev/desktop.md`, threshold-документация в planning artifacts и новые QA evidence. `REMOVED` пуст; `UNEXPECTED_PUBLIC_CHANGES=[]`; `PATHS_OUTSIDE_FILTERED_DOCS_DEV_QA_OR_OPENSPEC=[]`.
Следовательно, public tree и его build inputs после предыдущего accepted run не затронуты. Прежний прогон не выдаётся за новый: он используется только как доказательство для неизменённой public-части, а path-diff зафиксирован отдельно в [independent-retest-publication-delta.txt](repository-structure-2026-12-03/independent-retest-publication-delta.txt). Новый DRY_RUN не выполнялся и не был нужен для этих internal-only изменений.
### Оставшиеся ограничения
- 18 ignored root tests не выполнялись и не объявляются пройденными.
- Внешние HTTP-ресурсы не проверялись.
- Tasks 7.1/7.2 остаются для оркестратора; этот отчёт не отмечает их.
- PASS относится к implementation cleanup и фактически выполненным проверкам, а не к внешним сервисам или незапущенным платформенным сценариям.
---
## Финальное закрытие оркестратора — 2026-12-03
После независимого implementation QA PASS задача 7.1 отмечена. Статус задачи №51 обновлён по доказанному, пустой устаревший раздел «Сделано» из бэклога удалён, затем задача 7.2 отмечена после повторных проверок.
- `instructions apply`: **state=all_done, 23/23, remaining=0**.
- Финальный checker: **171 Markdown files, 824 non-allowlisted links, 0 broken** с шестью точечными историческими исключениями.
- Stdlib checker: **13 tests, OK**.
- `git diff --check HEAD`: exit 0.
- Delete whitelist с `--find-renames=10%`: только `website/shots/__pycache__/derive.cpython-314.pyc`.
- `validate --all --strict --no-interactive`: **1 passed, 0 failed**.
Change не заархивирован. Commit, push, deploy, sync, tag и release не выполнялись. Ограничения независимой QA выше сохранены.

View file

@ -0,0 +1,5 @@
# Tool output is evidence and is preserved byte-for-byte, including trailing spaces.
*.patch whitespace=-trailing-space
*.diff whitespace=-trailing-space
*.log whitespace=-trailing-space
*.txt whitespace=-trailing-space

View file

@ -0,0 +1,3 @@
$ python3 -I scripts/dev/check-docs-links.py --root . --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/main.png' --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/game.png' --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/play.png' --allow 'docs/qa/learning-counts-and-parameters-2026-11-05.md=../../target/qa-context-clarity/design-review.md' --allow 'docs/qa/settings-and-prep-errors-2026-11-05.md=../../target/qa-global-settings/design-review.md' --allow 'docs/qa/training-feedback-2026-11-05.md=../../target/qa-training-footer/design-review.md'
Checked 171 Markdown files, examined 774 non-allowlisted links; 0 broken links.
[exit 0]

View file

@ -0,0 +1,9 @@
$ python3 -I scripts/dev/check-docs-links.py --root .
docs/design/design-system.md:25 → ../../target/qa-quiet-status/shots/main.png (target does not exist)
docs/design/design-system.md:25 → ../../target/qa-quiet-status/shots/game.png (target does not exist)
docs/design/design-system.md:25 → ../../target/qa-quiet-status/shots/play.png (target does not exist)
docs/qa/learning-counts-and-parameters-2026-11-05.md:46 → ../../target/qa-context-clarity/design-review.md (target does not exist)
docs/qa/settings-and-prep-errors-2026-11-05.md:27 → ../../target/qa-global-settings/design-review.md (target does not exist)
docs/qa/training-feedback-2026-11-05.md:49 → ../../target/qa-training-footer/design-review.md (target does not exist)
Checked 171 Markdown files, examined 779 non-allowlisted links; 6 broken links.
[exit 1]

View file

@ -0,0 +1,20 @@
# Baseline environment (2026-12-03)
$ pwd
/tmp/opencode/chesspenguin-repository-structure
$ git rev-parse HEAD
d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
[exit 0]
$ git log -1 --format=%H\ %s
d50f297eb56c7d3fa4855f93823ca6aa6565e3aa process: add internal OpenSpec workflow
[exit 0]
$ python3 --version
Python 3.14.10
[exit 0]
$ git --version
git version 2.56.1
[exit 0]

View file

@ -0,0 +1,17 @@
# Baseline SHA-256: five MOVE repertoire PNG; KEEP B1-B5; KEEP/LINK three QA27 PNG
$ sha256sum docs/screenshots/repertoire-{library,detail,result,practice-error,practice-result}.png docs/design/task-27/B{1,2,3,4,5}-*.png docs/qa/task-27-functional/{player-mode-smeets,summary-player-carlsen,source-changed}.png
sha256sum: docs/screenshots/repertoire-library.png: Нет такого файла или каталога
sha256sum: docs/screenshots/repertoire-detail.png: Нет такого файла или каталога
sha256sum: docs/screenshots/repertoire-result.png: Нет такого файла или каталога
sha256sum: docs/screenshots/repertoire-practice-error.png: Нет такого файла или каталога
sha256sum: docs/screenshots/repertoire-practice-result.png: Нет такого файла или каталога
406eaed53da005078890547b90cd2b8667f71da925da5cf44d29a047b0496306 docs/design/task-27/B1-ruy-1920-idle-badges.png
9a2cd7b0429bc8d3215876d280fa209354fb3b15f0600e8a29230cea36a7eeb0 docs/design/task-27/B2-mega4221-1920-disabled.png
92a49b1651bcc19f43d207626f49e4e2460f6d077373227655d56cf0240df9e0 docs/design/task-27/B3-mega62-1920-running.png
f356e3d12cfd3021e3232585fc4ef84e0418674fe1165f1cd10a7ac8b3ea597a docs/design/task-27/B4-mega62-960-running.png
1ea216df1057c1ff6660040428946ee4922b31f5e5c2e98364a47a4ffe15a625 docs/design/task-27/B5-mega62-960-idle.png
8133206f84d43fa2c4b965c62bb21273d1c850d2d3cde44eae0a85254f318020 docs/qa/task-27-functional/player-mode-smeets.png
1687e2e7cf11344234c2110ee51b651488d303e1b4de343540a5e0eab9b10bd7 docs/qa/task-27-functional/summary-player-carlsen.png
d6ac10ae13c5fccfad50125c3f61a6d09728a5a562a099df50a158ffa2139c0f docs/qa/task-27-functional/source-changed.png
[exit 1]

View file

@ -0,0 +1,19 @@
# Baseline SHA-256 from immutable HEAD blobs
The first working-tree sha256sum succeeded before a parallel move; a second logging attempt raced with that move. The failed attempt is preserved in baseline-image-sha256-race.txt. This successful baseline reads the original paths from HEAD and does not modify either location.
$ for p in <five repertoire PNG + B1-B5 + three QA27 PNG>; do git show HEAD:$p | sha256sum; done
cbea77f48f44c5be8bc1f2504d37293f8b11ec7394aed2b88b26cd9745364f68 docs/screenshots/repertoire-library.png
c70cf7e3ef6e48ccd98d448973a5b040d9bc536f59d156f2c35ee4e523ed2803 docs/screenshots/repertoire-detail.png
60fb983f3603b38ebd2536e68f9902feead2e24a0c5211c0c56f7591bdfbb5c6 docs/screenshots/repertoire-result.png
234056bd0cf7dd85ef55b1b79af69bcb45ebed1b1871323918eeaf16948a706f docs/screenshots/repertoire-practice-error.png
d764dec88a564c8a902528e94e3c05e6e3180aae43675920695445b752167f4d docs/screenshots/repertoire-practice-result.png
406eaed53da005078890547b90cd2b8667f71da925da5cf44d29a047b0496306 docs/design/task-27/B1-ruy-1920-idle-badges.png
9a2cd7b0429bc8d3215876d280fa209354fb3b15f0600e8a29230cea36a7eeb0 docs/design/task-27/B2-mega4221-1920-disabled.png
92a49b1651bcc19f43d207626f49e4e2460f6d077373227655d56cf0240df9e0 docs/design/task-27/B3-mega62-1920-running.png
f356e3d12cfd3021e3232585fc4ef84e0418674fe1165f1cd10a7ac8b3ea597a docs/design/task-27/B4-mega62-960-running.png
1ea216df1057c1ff6660040428946ee4922b31f5e5c2e98364a47a4ffe15a625 docs/design/task-27/B5-mega62-960-idle.png
8133206f84d43fa2c4b965c62bb21273d1c850d2d3cde44eae0a85254f318020 docs/qa/task-27-functional/player-mode-smeets.png
1687e2e7cf11344234c2110ee51b651488d303e1b4de343540a5e0eab9b10bd7 docs/qa/task-27-functional/summary-player-carlsen.png
d6ac10ae13c5fccfad50125c3f61a6d09728a5a562a099df50a158ffa2139c0f docs/qa/task-27-functional/source-changed.png
[exit 0]

View file

@ -0,0 +1,25 @@
# Protected paths baseline (names/status only; backlog and user-file contents not read)
Protected in every worktree: active branch/worktree itself; designExample/; pgnFilesforExample/; engines/; backlog_from_vrubel/; iosApp/; active Android OpenSpec changes; icons/; packaging/ and release APK; .claude/worktrees/. In examples/, only examples/README.md may change.
$ for p in designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude/worktrees examples; do ...; done
absent designExample
absent pgnFilesforExample
absent engines
absent backlog_from_vrubel
absent iosApp
present icons
present packaging
absent .claude/worktrees
present examples
[exit 0]
$ git diff --name-only -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude/worktrees examples
examples/README.md
[exit 0]
$ git status --short --untracked-files=all -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude/worktrees examples
M examples/README.md
[exit 0]
examples/README.md was already modified by another assigned agent; no protected PGN/icon/packaging diff is present in this snapshot.

View file

@ -0,0 +1,32 @@
# Baseline worktrees (metadata only; no file contents)
$ git worktree list --porcelain
worktree /home/vrubel/services/chessBaseLinux
HEAD 040ad2d1fa5f8c07750224175a532387fcdfa113
branch refs/heads/feature/iphone-app
worktree /home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196
HEAD b5da315343d3d23be9636408a863afe0e77752af
branch refs/heads/web-app
worktree /tmp/opencode/chesspenguin-openspec
HEAD f28958b19236d61755a5b86fb4f1ae60628d5120
branch refs/heads/chore/openspec-hybrid
worktree /tmp/opencode/chesspenguin-repository-structure
HEAD d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
branch refs/heads/chore/repository-structure
[exit 0]
$ git -C /home/vrubel/services/chessBaseLinux status --short --untracked-files=no
M docs/dev/tasks.md
[exit 0]
$ git -C /tmp/opencode/chesspenguin-openspec status --short --untracked-files=no
[exit 0]
$ find /tmp/opencode/chesspenguin-openspec/openspec/changes -mindepth 1 -maxdepth 1 -type d -printf %f\\n | LC_ALL=C sort
archive
show-embedded-android-release-notes
[exit 0]

View file

@ -0,0 +1,64 @@
# Python cache removal and ignore checks
$ git show HEAD:website/shots/__pycache__/derive.cpython-314.pyc | sha256sum
69b3fef991d07dd5a36545b16d80142ff6e0ee4ef0e3c54d1304d4f7dd561ffd -
[exit 0]
$ git rm -- website/shots/__pycache__/derive.cpython-314.pyc
rm 'website/shots/__pycache__/derive.cpython-314.pyc'
[exit 0; executed before capturing this log]
$ git ls-files '*.pyc' '*.pyo' '*.pyd'
[exit 0; empty output expected]
$ git check-ignore -v --no-index __pycache__/example.pyc
.gitignore:21:__pycache__/ __pycache__/example.pyc
[exit 0]
$ git check-ignore -v --no-index website/shots/__pycache__/example.pyc
.gitignore:21:__pycache__/ website/shots/__pycache__/example.pyc
[exit 0]
$ git check-ignore -v --no-index example.pyo example.pyd
.gitignore:22:*.py[cod] example.pyo
.gitignore:22:*.py[cod] example.pyd
[exit 0]
$ sha256sum website/shots/derive.py
050af16dae260d0147973911878ec810dec3289dd6524644fd2cadde6ada25f6 website/shots/derive.py
[exit 0]
$ git rev-parse HEAD:website/shots/derive.py && git hash-object website/shots/derive.py
9d4216fa44b16a546fbadd5a6c3cbe1f4a6445dc
9d4216fa44b16a546fbadd5a6c3cbe1f4a6445dc
[exit 0; equal object IDs expected]
$ git diff HEAD -- website/shots/derive.py
[exit 0; empty output expected]
$ git diff --diff-filter=D --name-only HEAD
web/README.md
website/shots/__pycache__/derive.cpython-314.pyc
[exit 0]
$ git diff --cached --diff-filter=D --name-only
website/shots/__pycache__/derive.cpython-314.pyc
[exit 0]
$ git status --short -- .gitignore website/shots/derive.py website/shots/__pycache__/derive.cpython-314.pyc
M .gitignore
D website/shots/__pycache__/derive.cpython-314.pyc
[exit 0]
# Final deletion-filter clarification
$ git diff --diff-filter=D --name-only
[exit 0; empty because the assigned deletion is staged]
$ git diff --cached --diff-filter=D --name-only
website/shots/__pycache__/derive.cpython-314.pyc
[exit 0]
$ git diff --diff-filter=D --name-only HEAD
web/README.md
website/shots/__pycache__/derive.cpython-314.pyc
[exit 0; web/README.md is a parallel RM move, not modified by this executor]

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
$ python3 -I scripts/dev/check-docs-links.py --root . --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/main.png' --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/game.png' --allow 'docs/design/design-system.md=../../target/qa-quiet-status/shots/play.png' --allow 'docs/qa/learning-counts-and-parameters-2026-11-05.md=../../target/qa-context-clarity/design-review.md' --allow 'docs/qa/settings-and-prep-errors-2026-11-05.md=../../target/qa-global-settings/design-review.md' --allow 'docs/qa/training-feedback-2026-11-05.md=../../target/qa-training-footer/design-review.md'
Checked 171 Markdown files, examined 781 non-allowlisted links; 0 broken links.
[exit 0]

View file

@ -0,0 +1,19 @@
$ python3 -I scripts/dev/check-docs-links.py --help
usage: check-docs-links.py [-h] --root ROOT [--allow SOURCE=TARGET] [--public]
[paths ...]
Check local Markdown file and anchor links; never accesses the network.
positional arguments:
paths root-relative Markdown files or directories (default:
the whole root)
options:
-h, --help show this help message and exit
--root ROOT repository or public-tree root
--allow SOURCE=TARGET
allow one exact root-relative source and raw target
pair (repeatable)
--public public-tree mode: historical allowlist entries are
forbidden
[exit 0]

View file

@ -0,0 +1,3 @@
$ python3 -I scripts/dev/check-docs-links.py --root . --public docs/qa/repository-structure-2026-12-03.md
Checked 1 Markdown files, examined 13 non-allowlisted links; 0 broken links.
[exit 0]

View file

@ -0,0 +1,7 @@
$ python3 -I -m unittest discover -s scripts/dev -p 'test_check_docs_links.py'
.............
----------------------------------------------------------------------
Ran 13 tests in 0.005s
OK
[exit 0]

View file

@ -0,0 +1,2 @@
$ git diff --check
[exit 0]

View file

@ -0,0 +1,34 @@
# Final protected paths and worktrees (metadata only)
$ git worktree list --porcelain
worktree /home/vrubel/services/chessBaseLinux
HEAD 040ad2d1fa5f8c07750224175a532387fcdfa113
branch refs/heads/feature/iphone-app
worktree /home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196
HEAD b5da315343d3d23be9636408a863afe0e77752af
branch refs/heads/web-app
worktree /tmp/opencode/chesspenguin-openspec
HEAD f28958b19236d61755a5b86fb4f1ae60628d5120
branch refs/heads/chore/openspec-hybrid
worktree /tmp/opencode/chesspenguin-repository-structure
HEAD d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
branch refs/heads/chore/repository-structure
[exit 0]
$ git -C /home/vrubel/services/chessBaseLinux status --short --untracked-files=no
M docs/dev/tasks.md
[exit 0]
$ git -C /tmp/opencode/chesspenguin-openspec status --short --untracked-files=no
[exit 0]
$ git diff HEAD --name-only -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude/worktrees examples
examples/README.md
[exit 0; only the separately assigned examples/README.md documentation diff]
$ git status --short --untracked-files=all -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude/worktrees
[exit 0; empty output expected]

View file

@ -0,0 +1,6 @@
$ cargo fmt --all --check
exit=0
$ cargo clippy --workspace --all-targets --locked -- -D warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
exit=0

View file

@ -0,0 +1,913 @@
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s
Running unittests src/lib.rs (target/debug/deps/chess_core-94da2cb9d9c32e6a)
running 56 tests
test comment::tests::unterminated_command_is_text ... ok
test comment::tests::parses_shapes_and_keeps_unknown ... ok
test comment::tests::with_text_keeps_commands_and_paragraphs ... ok
test database::tests::database_is_send_sync ... ok
test database::tests::in_memory_database ... ok
test comment::tests::with_shapes_replaces_board_commands_only ... ok
test database::tests::index_round_trip ... ok
test edit::tests::add_line_is_atomic ... ok
test edit::tests::add_move_reuses_existing_and_branches ... ok
test edit::tests::annotate_is_undoable ... ok
test edit::tests::cannot_edit_detached ... ok
test edit::tests::modified_flag_follows_undo_to_saved_state ... ok
test edit::tests::undo_redo_delete_promote ... ok
test encoding::tests::decode_text_normalizes_newlines ... ok
test edit::tests::edit_group_is_one_undo_step ... ok
test encoding::tests::detects_western ... ok
test encoding::tests::detects_cyrillic_code_pages ... ok
test encoding::tests::detects_utf8_and_bom ... ok
test game::tests::new_game_has_roster ... ok
test paste::tests::black_numbers_with_an_ellipsis_character ... ok
test paste::tests::a_game_from_a_position_with_fullmove_zero ... ok
test paste::tests::a_game_hangs_where_it_parts_and_undoes_whole ... ok
test paste::tests::several_games_paste_the_first ... ok
test pgn::lexer::tests::lexes_movetext ... ok
test pgn::lexer::tests::runaway_comment_stops_at_header ... ok
test pgn::lexer::tests::tag_value_unescaped ... ok
test pgn::scan::tests::cancellation ... ok
test pgn::scan::tests::a_header_on_the_line_of_the_last_result_starts_the_next_game ... ok
test paste::tests::comments_variations_and_the_source_come_along ... ok
test paste::tests::another_move_order_is_found_and_noted ... ok
test database::tests::letter_repair_is_detected_and_switchable ... ok
test paste::tests::the_same_game_or_line_is_already_there ... ok
test pgn::scan::tests::empty_input ... ok
test paste::tests::fragments_after_instead_of_or_by_number ... ok
test pgn::scan::tests::main_line_moves_and_text_comments ... ok
test pgn::scan::tests::splits_games_and_reads_tags ... ok
test pgn::scan::tests::tagless_games_split_after_result ... ok
test paste::tests::uci_lines_and_impossible_moves ... ok
test paste::tests::an_unrelated_game_is_refused ... ok
test paste::tests::the_pasted_games_variations_come_along ... ok
test pgn::store::tests::dates_as_typed ... ok
test pgn::store::tests::an_empty_file_is_a_database ... ok
test pgn::store::tests::tag_values_with_quotes_survive ... ok
test repair::tests::repairs_table ... ok
test start::tests::fullmove_zero_is_tolerated ... ok
test start::tests::bad_castling_is_repaired ... ok
test pgn::store::tests::other_encodings_are_refused_and_copied ... ok
test start::tests::missing_king_is_error ... ok
test pgn::store::tests::a_broken_tail_is_appended_after ... ok
test pgn::store::tests::the_same_game_is_found ... ok
test pgn::store::tests::remove_and_restore_are_exact ... ok
test pgn::store::tests::replace_keeps_the_other_records ... ok
test pgn::store::tests::append_to_files_of_every_shape ... ok
test repair::tests::detection ... ok
test database::tests::background_scan_with_progress_and_cancel ... ok
test pgn::store::tests::a_changed_file_is_not_written ... ok
test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
Running tests/corpus.rs (target/debug/deps/corpus-116eb2deca569a2b)
running 1 test
test real_corpus ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/pgn_fixtures.rs (target/debug/deps/pgn_fixtures-f7fc6221e3d01c81)
running 13 tests
test fen_black_to_move_fullmove_zero ... ok
test edited_game_exports_and_reimports ... ok
test comment_paragraphs_survive_writing ... ok
test illegal_move_keeps_rest_of_branch ... ok
test early_closed_comment_text_is_not_lost ... ok
test en_passant_and_promotions ... ok
test null_move_in_check_is_not_played ... ok
test symbolic_annotations_and_legacy_syntax ... ok
test tags_only_record ... ok
test utf8_bom_and_crlf ... ok
test nested_variations_comments_and_tags ... ok
test teaching_null_moves ... ok
test truncated_and_garbage_inputs_do_not_panic ... ok
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/chess_import-850e6d2976ac8095)
running 60 tests
test cbv::tests::lz_runs_and_overlapping_references ... ok
test cbv::tests::rejects_garbage ... ok
test chessbase::base::tests::eco_numbers ... ok
test chessbase::annotations::tests::reads_texts_symbols_and_graphics ... ok
test chessbase::base::tests::eco_filters ... ok
test chessbase::headers::tests::dates_eco_and_rounds ... ok
test chessbase::base::tests::folding_and_words ... ok
test chessbase::moves::tests::displacement_wraps_modulo_8 ... ok
test chessbase::moves::tests::piece_numbering_follows_the_start_board ... ok
test chessbase::moves::tests::fast_walk_rejects_what_the_board_does_not_allow ... ok
test chessbase::moves::tests::start_board_bits ... ok
test chessbase::moves::tests::tables_are_permutations ... ok
test chessbase::moves::tests::walks_match_the_decoder_on_mega ... ignored
test chessbase::moves::tests::walks_match_the_decoder_on_sample_databases ... ok
test chessbase::moves::tests::unreadable_game_keeps_the_start_node ... ok
test chessbase::moves::tests::main_line_stops_before_the_variations ... ok
test chessbase::search::tests::mega_build_booster ... ignored
test chessbase::search::tests::mega_openings ... ignored
test chessbase::search::tests::mega_openings_random ... ignored
test chessbase::search::tests::mega_own_booster ... ignored
test chessbase::search::tests::mega_position_search ... ignored
test chessbase::search::tests::booster_rules_out_games_but_loses_none ... ok
test chessbase::search::tests::finds_what_the_tree_decoder_finds ... ok
test chessbase::search::tests::move_order_and_cancel ... ok
test chessbase::search::tests::opening_index_leaves_set_up_games_to_the_pass ... ok
test chessbase::search::tests::opening_index_matches_the_pass ... ok
test chessbase::search::tests::own_booster_when_cbb_is_missing ... ok
test chessbase::tests::members_whose_names_differ_in_case_belong_to_the_database ... ok
test chessbase::text::tests::embedded_objects_split_paragraphs ... ok
test chessbase::text::tests::figurines_and_diagrams ... ok
test chessbase::text::tests::utf8_texts_win_over_the_code_page ... ok
test chessbase::text::tests::names_pick_the_code_page_per_name ... ok
test chessbase::text::tests::html_becomes_text ... ok
test chosen_tests::a_cbh_alone_or_parts_alone_are_incomplete ... ok
test chessbase::writer::tests::variations_comments_and_graphics ... ok
test chosen_tests::files_chosen_make_databases ... ok
test pgn_catalog::tests::dates ... ok
test pgn_catalog::tests::downloaded_games_by_the_time_they_were_played ... ok
test parallel::tests::a_panicking_worker_gives_none ... ok
test parallel::tests::keeps_order_and_runs_one_inline ... ok
test pgn_catalog::tests::empty_names_come_last_both_ways ... ok
test pgn_catalog::tests::guiding_texts_of_a_converted_chessbase_database ... ok
test pgn_positions::tests::moves_encode_reversibly ... ok
test pgn_catalog::tests::years_ratings_results_eco_moves_and_comments ... ok
test pgn_catalog::tests::names_events_and_sides ... ok
test pgn_catalog::tests::quick_search_finds_each_word_in_some_field ... ok
test pgn_catalog::tests::sorting_and_rows ... ok
test pgn_catalog::tests::the_quick_search_finds_a_date_as_the_table_shows_it ... ok
test position::tests::collector_counts_and_names_moves ... ok
test position::tests::theory_end_finds_the_boundary_with_few_searches ... ok
test position::tests::transpositions_are_the_same_position ... ok
test pgn_positions::tests::a_variation_end_is_not_a_game_end ... ok
test pgn_positions::tests::finds_transpositions_variations_and_set_up_games ... ok
test pgn_positions::tests::counts_each_move_of_a_game_once ... ok
test pgn_positions::tests::next_move_belongs_to_the_chosen_occurrence ... ok
test pgn_positions::tests::positions_after_a_null_move_are_found ... ok
test pgn_positions::tests::cancel_stops_build_and_search ... ok
test pgn_positions::tests::the_played_line_counts_only_its_first_occurrence ... ok
test pgn_positions::tests::start_position_and_candidates ... ok
test pgn_positions::tests::many_games_build_in_parallel_like_one ... ok
test result: ok. 54 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 0.14s
Running tests/formats.rs (target/debug/deps/formats-4d79067cb94fda73)
running 5 tests
test unpacked_chessbase_database_matches_its_archive ... ok
test plain_pgn_is_unchanged ... ok
test zip_without_databases_and_unsupported_files ... ok
test pgn_and_archives_open_from_bytes ... ok
test zip_with_legacy_pgn_and_folders ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/pgn_positions.rs (target/debug/deps/pgn_positions-61f1604f63c1b915)
running 1 test
test search_agrees_with_walking_every_game ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/samples.rs (target/debug/deps/samples-b8c0fa861d2066fa)
running 3 tests
test archives_with_both_forms_of_a_database ... ok
test texts_keep_their_letters ... ok
test chessbase_archives_convert_cleanly ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/chess_openings-a1fb40bb2423e58d)
running 3 tests
test tests::the_table_loads ... ok
test tests::book_positions_and_keys ... ok
test tests::the_deepest_named_position_names_the_line_whatever_the_move_order ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
Running unittests src/lib.rs (target/debug/deps/chesspenguin_app-6fbd5299831d40bf)
running 238 tests
test app::waiting_tests::a_waiting_analysis_belongs_to_its_game ... ok
test assets::tests::every_sound_is_a_real_ogg_file ... ok
test app::waiting_tests::names_in_messages_are_short ... ok
test batch_copy::tests::copy_memory ... ignored
test assets::tests::every_piece_file_is_an_svg ... ok
test batch_copy::tests::timing ... ignored
test batch_copy::tests::a_selection_keeps_a_bit_per_record ... ok
test batch_copy::tests::records_with_other_comments_are_both_copied ... ok
test batch_copy::tests::the_summary_names_the_skipped_records ... ok
test batch_copy::tests::a_copy_never_replaces_a_file ... ok
test board::tests::a_captured_piece_fades ... ok
test board::tests::a_move_slides_one_piece ... ok
test board::tests::a_jump_over_several_moves_slides_each_piece_once ... ok
test batch_copy::tests::only_orphans_of_this_program_are_removed ... ok
test board::tests::a_promoted_pawn_fades_and_the_queen_appears ... ok
test board::tests::en_passant_fades_the_pawn_beside ... ok
test board::tests::premoves_as_on_lichess ... ok
test batch_copy::tests::a_source_changed_while_copying_writes_nothing ... ok
test board::tests::castling_slides_king_and_rook ... ok
test batch_copy::tests::a_legacy_source_is_copied_as_its_text_reads ... ok
test brilliant::tests::estimates_are_said_plainly ... ok
test brilliant::tests::a_broken_index_is_an_empty_one ... ok
test brilliant::tests::the_limit_is_one_hundred_games_inclusive ... ok
test brilliant::tests::the_column_counts_only_the_filters_players_moves ... ok
test app::waiting_tests::a_game_against_the_engine_waits_for_the_search ... ok
test brilliant::tests::a_selected_game_hidden_by_another_condition_keeps_its_players_side ... ok
test batch_copy::tests::a_copy_follows_the_tables_order ... ok
test chatgpt::tests::host_ids_are_uuid_urns ... ok
test chatgpt::tests::a_cut_stream_is_not_an_answer ... ok
test chatgpt::tests::a_stream_gives_its_text ... ok
test chatgpt::tests::the_email_is_read_from_the_id_token ... ok
test chatgpt::tests::a_used_up_limit_is_told_apart ... ok
test brilliant::tests::the_players_sides_come_from_the_filter ... ok
test engine_download::tests::downloads_the_real_engine ... ignored
test chatgpt::tests::the_plan_model_list_is_read ... ok
test chatgpt::tests::the_plan_scope_is_checked ... ok
test engine_download::tests::this_platform_has_a_pinned_download ... ok
test engine_offer::tests::the_offer_says_why_the_users_engine_does_not_do ... ok
test batch_copy::tests::a_copy_has_the_bytes_of_adding_the_games_one_by_one ... ok
test engine_download::tests::a_file_already_there_is_known_by_its_checksum ... ok
test board::tests::analysis_shapes_remain_one_shot_events ... ok
test game_link::tests::lichess_chess_com_and_others ... ok
test examples::tests::opening_samples_have_three_legal_records_and_the_requested_branches ... ok
test board::tests::temporary_shapes_accept_mouse_input_toggle_and_clear ... ok
test engine_download::tests::unpacks_the_engine_and_licenses_from_a_tarball ... ok
test brilliant::tests::starting_and_stopping_at_once_never_breaks_the_index ... ok
test board::tests::analysis_arrow_is_drawn_by_a_right_drag ... ok
test batch_copy::tests::a_source_with_restored_letters_is_copied_as_adding_one_game ... ok
test examples::tests::a_sample_named_in_another_language_is_replaced ... ok
test examples::tests::the_first_start_writes_the_samples_and_shelves_them ... ok
test examples::tests::a_sample_taken_off_the_shelf_stays_off ... ok
test examples::tests::an_older_or_damaged_sample_is_replaced ... ok
test i18n::tests::every_style_is_translated ... ok
test i18n::tests::rows_are_unique_and_complete ... ok
test i18n::tests::system_language ... ok
test large_db::tests::a_choice_never_moves_to_other_games_when_the_file_is_read_again ... ok
test large_db::tests::a_single_hidden_mark_survives_the_cursor_reset ... ok
test large_db::tests::an_anchor_hidden_by_the_filter_gives_way_to_the_cursor ... ok
test large_db::tests::clicks_choose_one_toggle_and_ranges_in_the_tables_order ... ok
test large_db::tests::escape_keeps_one_selected_game_as_the_search_source ... ok
test large_db::tests::form_builds_valid_filters_only ... ok
test large_db::tests::numbers_group_and_shorten ... ok
test large_db::tests::returning_from_a_game_keeps_a_choice_of_several ... ok
test large_db::tests::select_all_takes_the_list_and_escape_comes_back_to_the_cursor ... ok
test large_db::tests::selection_hints_explain_hidden_games_and_the_independent_limit ... ok
test large_db::tests::the_copy_asks_for_the_chosen_records_and_the_tables_sort ... ok
test large_db::tests::the_search_limit_follows_the_choice_independently_of_the_filter ... ok
test large_db::tests::the_search_request_snapshots_exactly_the_selected_ids_including_hidden_ones ... ok
test i18n::tests::all_used_keys_are_translated ... ok
test library::tests::resizing_and_update_badge_never_reuse_a_separator_as_button_style ... ok
test file_state::tests::files_are_looked_at_away_from_the_caller ... ok
test notation::tests::shape_counts_find_arrows_and_circles_of_comments_only ... ok
test notation::tests::the_sign_hint_leaves_out_a_count_of_none ... ok
test online::tests::probe_distinguishes_pending_unavailable_ready_and_disconnected ... ok
test library::tests::toolbar_actions_are_available_while_the_database_loads_and_afterwards ... ok
test opening_layout::tests::common_start_stops_before_the_first_branching ... ok
test opening_layout::tests::dates_read_as_today_tomorrow_days_then_a_date ... ok
test opening_layout::tests::lines_are_the_last_moves_in_pgn_order_without_switched_off_branches ... ok
test opening_layout::tests::pgn_node_badges_keep_the_existing_palette_and_special_move_destinations ... ok
test opening_layout::tests::pgn_shapes_of_a_move_become_arrows_and_circles ... ok
test online_ui::tests::early_online_entry_explains_probe_state_and_only_offers_ready_platforms ... ok
test opening_lines::tests::counts_below_a_move_and_branches_switched_off ... ok
test library::tests::startup_download_progress_keeps_toolbar_geometry_and_style_stable ... ok
test opening_session::tests::a_new_move_is_shown_before_it_is_asked_and_counts_once_played ... ok
test db_counts::tests::a_database_is_counted_away_from_the_screen_and_again_when_it_changes ... ok
test examples::tests::samples_are_valid_pgn ... ok
test opening_session::tests::a_mistake_on_the_first_move_returns_it_once_and_keeps_the_count ... ok
test game_view::tests::the_hint_is_not_shown_while_playing_or_after_it_is_done ... ok
test game_view::tests::circles_toggle_and_recolour ... ok
test game_view::tests::a_shape_at_the_start_stays_with_the_start ... ok
test game_view::tests::a_shape_in_a_nested_variation_stays_there ... ok
test game_view::tests::a_shape_drawn_marks_the_hint_done_and_counts_for_the_notation ... ok
test game_view::tests::a_shape_after_a_null_move_and_from_a_fen_with_move_zero ... ok
test game_view::tests::the_hint_is_decided_once_per_game_and_not_beside_the_translation ... ok
test game_view::tests::a_shape_goes_into_the_current_move_and_back_out ... ok
test brilliant::tests::games_not_analysable_get_their_reason ... ok
test brilliant::tests::totals_count_only_the_filters_players_moves ... ok
test brilliant::tests::the_summary_keeps_the_original_snapshot_and_player_for_continue ... ok
test opening_session::tests::a_new_move_left_unplayed_stays_new ... ok
test opening_session::tests::authored_wrong_branch_has_its_own_annotations_only_after_it_is_played ... ok
test opening_session::tests::correct_stays_six_hundred_ms_after_the_move ... ok
test opening_session::tests::known_unscheduled_answer_during_hint_is_neutral_but_outside_move_still_wrong ... ok
test opening_session::tests::move_input_uses_the_startup_answer_snapshot_in_independent_and_replay_phases ... ok
test opening_session::tests::async_failed_commit_preserves_event_for_retry_without_double_counting ... ok
test opening_session::tests::a_new_session_never_resumes_an_unfinished_one ... ok
test opening_session::tests::adaptive_board_animation_matches_actual_slides_and_starts_at_from ... ok
test opening_session::tests::duplicate_store_response_does_not_advance_the_ui_twice ... ok
test opening_session::tests::debug_moves_settles_prime_between_targets ... ok
test opening_session::tests::legal_input_is_ignored_during_autoplay ... ok
test opening_session::tests::pgn_annotation_cursor_distinguishes_transposed_paths_and_repertoire_sources ... ok
test opening_session::tests::preview_is_idempotent_and_shown_move_is_not_success ... ok
test opening_session::tests::animation_off_commits_every_context_step_without_skipping_store_calls ... ok
test opening_session::tests::status_growth_does_not_move_training_controls ... ok
test opening_session::tests::shown_context_requires_the_same_history_and_never_bypasses_a_question ... ok
test opening_session::tests::alternative_answer_credits_actual_move_and_completed_answer_is_silent_and_neutral ... ok
test opening_session::tests::automatic_context_has_three_separate_normal_timed_steps ... ok
test opening_session::tests::pgn_annotations_clear_for_wrong_moves_and_survive_failed_async_save_and_retry ... ok
test opening_session::tests::store_error_is_visible_blocking_and_retryable ... ok
test opening_session::tests::wrong_answer_replays_without_a_second_independent_error ... ok
test own_db::tests::editor_writes_tags_and_result ... ok
test platform::files::tests::dropped_files_are_sorted_into_databases ... ok
test play::tests::a_clock_goes_on_from_the_times_left ... ok
test play::tests::clock_runs_after_first_moves ... ok
test play::tests::endings ... ok
test opening_session::tests::the_summary_shows_learning_growth_when_nothing_is_learned_yet ... ok
test play::tests::speeds_as_lichess ... ok
test play::tests::the_time_of_a_clk_comment ... ok
test player_games::tests::a_game_left_by_a_crash_is_written_once ... ok
test play::tests::pauses_never_lose_on_time ... ok
test player_games::tests::a_new_database_takes_the_game_and_the_next_is_appended ... ok
test player_games::tests::file_names_have_no_forbidden_characters ... ok
test player_games::tests::players_are_the_same_whatever_the_case_and_spaces ... ok
test player_games::tests::a_game_put_aside_goes_on_or_is_written_unfinished ... ok
test prep_saved::tests::legacy_error_counts_are_not_marked_current ... ok
test prep_saved::tests::legacy_book_choice_is_preserved ... ok
test prep_saved::tests::saved_report_rejudges_stale_errors_without_losing_evaluations ... ok
test prep_saved::tests::saved_listed_replaced_renamed_and_deleted ... ok
test prep_ui::tests::a_header_click_sorts_then_turns_the_order_round ... ok
test prep_saved::tests::started_preparation_is_listed_before_its_report_exists ... ok
test prep_ui::tests::error_count_parts_skip_zeroes_and_keep_the_order ... ok
test prep_ui::tests::candidates_split_into_whole_words_and_similar_names ... ok
test prep_ui::tests::labels_and_lines ... ok
test prep_ui::tests::the_period_of_the_games ... ok
test reference::tests::best_of_many ... ok
test reference::tests::surnames ... ok
test opening_session::tests::leaving_keeps_every_answer_and_shows_what_was_done ... ok
test opening_session::tests::a_review_counts_lines_and_announces_the_next_one ... ok
test repertoire_ui::tests::a_deleted_starter_does_not_come_back ... ok
test repertoire_ui::tests::a_review_date_is_short_in_the_table ... ok
test repertoire_ui::tests::a_given_starter_keeps_its_comments_when_the_language_changes ... ok
test repertoire_ui::tests::a_white_repertoire_is_suggested_for_white ... ok
test opening_session::tests::pgn_annotations_follow_visible_user_and_automatic_moves_not_the_next_task ... ok
test repertoire_ui::tests::an_import_reads_name_colour_counts_and_warnings ... ok
test opening_session::tests::next_target_continues_the_shown_line_without_reverse_slide ... ok
test repertoire_ui::tests::damaged_starter_marks_give_a_short_message_and_change_nothing ... ok
test opening_session::tests::skip_puts_the_question_at_once_and_records_the_moves_shown ... ok
test repertoire_ui::tests::loading_lifts_the_old_depth_limit_without_touching_the_pgn ... ok
test repertoire_ui::tests::delete_keeps_the_answers_and_selects_the_neighbour ... ok
test repertoire_ui::tests::names_are_checked_and_a_new_repertoire_keeps_its_colour ... ok
test repertoire_ui::tests::old_colours_open_as_before_and_both_opens_as_white ... ok
test repertoire_ui::tests::russian_and_english_starters_have_the_same_moves ... ok
test repertoire_ui::tests::starter_examples_of_2_4_0_are_not_doubled ... ok
test repertoire_ui::tests::starter_marks_of_an_unknown_version_are_left_alone ... ok
test repertoire_ui::tests::starter_comments_follow_the_interface_language ... ok
test repertoire_ui::tests::starter_repertoires_come_to_an_empty_library_of_2_3 ... ok
test repertoire_ui::tests::starters_are_not_doubled_when_their_marks_were_lost ... ok
test opening_session::tests::the_line_shows_the_moves_to_the_board_without_the_asked_or_a_wrong_move ... ok
test repertoire_ui::tests::the_card_says_what_to_do_in_every_state ... ok
test repertoire_ui::tests::starters_leave_own_repertoires_and_progress_alone ... ok
test repertoire_ui::tests::starter_repertoires_are_created_once_with_their_colours ... ok
test repertoire_ui::tests::the_table_fits_the_least_panel_in_every_language ... ok
test repertoire_ui::tests::today_counts_until_the_end_of_the_day_and_at_most_ten_new ... ok
test reference::tests::book_of_a_game_of_the_database ... ok
test review::tests::counts_are_compact ... ok
test review::tests::pgn_evals_and_written_analysis_roundtrip ... ok
test review::tests::strip_eval_keeps_other_text ... ok
test opening_session::tests::dragged_special_moves_keep_auxiliary_effects_and_retry_does_not_move_again ... ok
test review_engine::tests::play_engines_are_never_probed ... ok
test review_engine::tests::verdicts_of_another_reference_are_dropped ... ok
test rodent_download::tests::unpacks_the_engine_and_its_folders ... ignored, needs the release archive (RODENT_ZIP)
test san::tests::labels_keep_their_numbers ... ok
test san::tests::latin_and_english_borrow ... ok
test san::tests::only_piece_letters_change ... ok
test san::tests::settings_values ... ok
test settings::repertoire_flow_tests::context_policies_roundtrip_and_default_for_legacy_json ... ok
test settings::repertoire_flow_tests::learning_mode_and_priority_roundtrip_and_default_for_legacy_settings ... ok
test settings::repertoire_flow_tests::old_training_preferences_migrate_once_without_resetting_color_or_custom_settings ... ok
test settings::tests::a_copied_database_goes_to_the_end_of_the_shelf ... ok
test settings::tests::a_hint_done_is_never_shown ... ok
test settings::tests::a_hint_goes_after_three_games_without_a_reaction ... ok
test settings::tests::a_link_to_a_database_on_the_shelf_does_not_add_it_twice ... ok
test settings::tests::hints_survive_saving_and_old_settings_have_none ... ok
test settings::tests::settings_with_the_old_analysis_options_are_read ... ok
test repertoire_ui::tests::a_window_that_grows_gives_the_panel_the_width_of_its_final_size ... ok
test settings_ui::tests::only_an_outside_primary_click_dismisses_and_it_never_reaches_the_opener ... ok
test translate::own_comment_tests::a_comment_in_the_interface_language_is_not_translated ... ok
test translate::tests::a_game_of_short_comments_is_still_understood ... ok
test repertoire_ui::tests::keys_of_the_screen_do_nothing_under_a_dialog ... ok
test opening_session::tests::the_panel_takes_the_game_screens_place_at_both_reference_sizes ... ok
test translate::tests::a_translation_must_keep_the_moves ... ok
test translate::tests::answers_are_read_also_from_prose_and_fences ... ok
test translate::tests::batches_name_each_comment ... ok
test translate::tests::foreign_comments_are_offered_and_short_ones_follow_the_game ... ok
test translate::tests::local_addresses ... ok
test translate::tests::moves_are_found_in_text ... ok
test translate::tests::one_foreign_word_is_not_offered ... ok
test translate::tests::print_instructions ... ignored, prints the instructions for a manual check
test reference::tests::tables_of_the_classics ... ok
test update::tests::an_asset_for_every_installation ... ok
test translate::tests::russian_comments_stay_for_a_russian_reader ... ok
test update::tests::commands ... ok
test update::tests::tarball_update_from_a_local_release ... ok
test settings_ui::tests::settings_tabs_popup_items_and_titlebar_close_still_receive_clicks ... ok
test update::tests::versions ... ok
test viewed::tests::key_ignores_surrounding_whitespace ... ok
test widgets::shorten_tests::long_names_are_cut_in_the_middle ... ok
test repertoire_ui::tests::a_session_needs_no_question_to_go_back_and_counts_refresh_after_it ... ok
test batch_copy::tests::a_cancelled_copy_leaves_nothing ... ok
test chatgpt::tests::a_declined_consent_is_told_apart ... ok
test chatgpt::tests::the_callback_brings_the_code ... ok
test i18n::tests::every_shown_character_has_a_glyph ... ok
test repertoire_ui::tests::two_copies_starting_together_give_the_starters_once ... ok
test opening_session::tests::a_daily_session_brings_mistakes_and_hints_back_and_its_numbers_agree ... ok
test translate::tests::a_job_translates_checks_moves_and_caches ... ok
test translate::tests::a_long_game_goes_in_requests_at_once_and_every_comment_comes_back ... ok
test repertoire_ui::tests::the_panel_opens_at_the_width_the_user_dragged_it_to ... ok
test brilliant::tests::an_analysis_of_the_settings_of_before_counts_as_made ... ok
test opening_session::tests::accepted_move_emits_once_and_next_task_only_animates_the_opponent_reply ... ok
test brilliant::tests::a_stopped_pass_keeps_what_it_analysed ... ok
test opening_session::tests::pointer_move_stays_at_destination_during_async_save_without_a_second_animation ... ok
test repertoire_ui::tests::the_three_screens_keep_the_board_and_the_panel_in_one_place ... ok
test brilliant::tests::a_pass_analyses_keeps_the_index_and_takes_the_cache_next_time ... ok
test update::tests::replacing_the_running_executable ... ok
test brilliant::tests::a_deleted_game_never_lends_its_marks ... ok
test opening_session::tests::ten_more_new_continues_the_finished_session_with_new_moves_only ... ok
test opening_session::tests::async_commit_keeps_frames_responsive_under_store_lock_and_commits_once ... ok
test opening_session::tests::reused_context_retry_stays_silent_and_responsive_and_persists_once ... ok
test review_engine::tests::a_users_stockfish_19_is_taken_only_when_it_searches_as_ours ... ok
test result: ok. 233 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 0.88s
Running unittests src/main.rs (target/debug/deps/chesspenguin-210a6be61c7fc6be)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/chesspenguin_web-0a58677bae0a119f)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/game_review-53b8277200ffcc67)
running 40 tests
test job::probe::tests::a_real_stockfish_19_gives_the_reference ... ignored, needs a Stockfish 19 in CP_PROBE_ENGINE
test job::probe::tests::an_engine_that_does_not_start_fails ... ok
test features::tests::exchanges_follow_the_cheapest_piece_and_x_rays ... ok
test job::tests::the_estimate_counts_every_process ... ok
test report::tests::every_move_of_a_combination_is_marked ... ok
test job::tests::processes_are_bounded ... ok
test report::tests::a_sound_sacrifice_is_brilliant_unless_the_game_was_won_anyway ... ok
test report::tests::judgements_follow_win_chance_drop ... ok
test report::tests::move_accuracy_bounds ... ok
test job::probe::tests::the_reference_key_is_stable ... ok
test report::tests::partial_and_special_plies ... ok
test report::tests::pgn_eval_roundtrip ... ok
test report::tests::report_counts_and_accuracy ... ok
test report::tests::the_only_move_that_turns_the_game_is_great ... ok
test report::tests::the_strict_rules_want_a_turn_of_the_game_and_one_mark_a_combination ... ok
test report::tests::win_percent_matches_lichess_curve ... ok
test report::tests::phases_of_a_real_game ... ok
test job::probe::tests::the_reference_answers_pass ... ok
test job::probe::tests::another_engine_is_not_searched ... ok
test features::tests::a_piece_whose_capture_loses_more_is_not_offered ... ok
test features::tests::a_threat_the_capture_opens_keeps_the_sacrifice ... ok
test features::tests::a_pawn_offered_is_only_for_a_quicker_mate ... ok
test features::tests::taking_back_an_offered_piece_is_no_trade ... ok
test features::tests::trades_and_good_captures_are_not_sacrifices ... ok
test features::tests::a_quiet_escape_is_not_great_but_one_with_check_can_be ... ok
test features::tests::a_piece_saved_or_lost_anyway_is_no_sacrifice ... ok
test features::tests::only_what_the_move_gives_up_is_offered ... ok
test features::tests::the_king_out_of_check_is_not_great ... ok
test features::tests::a_piece_no_one_can_legally_take_is_not_offered ... ok
test features::tests::an_attacked_piece_moved_into_another_attack_is_offered ... ok
test features::tests::a_queen_offered_for_mate_is_a_sacrifice ... ok
test tests::pgn_evals_give_the_report ... ok
test job::tests::a_failing_engine_fails_the_job ... ok
test tests::an_analysis_of_another_search_is_stale ... ok
test tests::engine_results_are_cached_per_main_line ... ok
test job::probe::tests::other_answers_or_names_do_not ... ok
test job::tests::the_job_evaluates_every_position ... ok
test job::tests::the_shallow_search_says_how_hard_the_move_was ... ok
test job::probe::tests::an_endless_search_is_cut_short ... ok
test job::tests::the_evaluations_do_not_depend_on_processes_or_order ... ok
test result: ok. 39 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.57s
Running unittests src/lib.rs (target/debug/deps/maia-0f8377ce53c90d15)
running 3 tests
test checkpoint::tests::refuses_what_is_not_a_checkpoint ... ok
test strength::tests::strength_turns_into_the_rating_to_give ... ok
test strength::tests::rare_moves_are_not_chosen ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/reference.rs (target/debug/deps/reference-f7f5949b6d8efa17)
running 1 test
test matches_the_original_model ... ignored, needs the weights file (MAIA_WEIGHTS)
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/mobile_api-ec6c399d4865b8a3)
running 35 tests
test play::tests::maia_answers_with_a_legal_move ... ignored, needs the weights file (MAIA_WEIGHTS)
test play::tests::rodent_answers_with_a_legal_move ... ignored, needs Rodent IV (RODENT4)
test engine::tests::scores_read_for_white ... ok
test online::tests::nicknames_and_targets ... ok
test play::tests::rodent_is_named_and_listed_as_on_the_desktop ... ok
test session::tests::a_move_keeps_its_id_when_the_game_changes ... ok
test session::tests::a_game_goes_on_from_a_move_of_another ... ok
test session::tests::moves_extend_the_line_and_branch_into_variations ... ok
test tests::downloaded_games_come_newest_first ... ok
test session::tests::an_illegal_move_changes_nothing ... ok
test session::tests::variations_become_main_and_go ... ok
test tests::comment_marks_and_uci_moves_reach_the_app ... ok
test session::tests::games_are_saved_into_own_databases ... ok
test update::tests::an_apk_without_its_sum_has_none ... ok
test update::tests::both_apks_with_their_sums ... ok
test train::tests::a_line_is_trained_on_the_phone ... ok
test prep::tests::invalid_fen_is_an_input_error_not_a_worker_panic ... ok
test prep::tests::continuation_results_belong_to_the_selected_player ... ok
test prep::tests::a_fen_game_starts_at_ply_zero_with_black_to_move ... ok
test prep::tests::ended_and_teaching_null_moves_balance_the_game_count ... ok
test prep::tests::matches_are_bounded_and_a_new_request_cancels_the_old_one ... ok
test prep::tests::transpositions_have_the_same_games_and_continuations ... ok
test prep::tests::suggestions_are_paged_normalized_and_count_each_colour ... ok
test prep::tests::first_main_line_occurrence_wins_over_repetition_and_rav ... ok
test tests::games_are_found_by_words ... ok
test tests::a_game_is_a_tree_with_positions ... ok
test tests::rows_come_a_page_at_a_time ... ok
test online::tests::a_download_that_cannot_write_says_so ... ok
test engine::tests::analysis_belongs_to_its_position ... ok
test tests::comments_and_variations_come_along ... ok
test tests::a_descriptor_is_read_and_closed ... ok
test tests::bytes_open_like_files ... ok
test review::tests::evaluations_of_the_pgn_make_a_report ... ok
test review::tests::a_failing_engine_is_reported ... ok
test review::tests::the_engine_job_runs_and_is_cached ... ok
test result: ok. 33 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.13s
Running unittests src/lib.rs (target/debug/deps/online_games-6889d6f5b10a4ee6)
running 9 tests
test net::tests::online_live ... ignored
test net::tests::nicknames ... ok
test net::tests::one_download_per_database ... ok
test net::tests::probe_answers ... ok
test net::tests::names_of_merged_databases ... ok
test net::tests::a_crash_leaves_no_duplicates ... ok
test net::tests::unfinished_lichess_games_come_later ... ok
test net::tests::state_round_trip ... ok
test net::tests::a_deleted_database_is_downloaded_again ... ok
test result: ok. 8 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/play-8738d7d80b50b373)
running 8 tests
test rodent::tests::rodent_answers_the_newest_request_only ... ignored, needs Rodent IV (RODENT4)
test rodent::tests::every_file_is_where_the_engine_looks_for_it ... ok
test rodent::tests::rodent_is_named_with_its_strength_and_personality ... ok
test tests::maia_resigns_only_when_hopeless ... ok
test tests::maia_accepts_a_draw_when_level_and_settled_or_worse ... ok
test tests::the_engine_has_its_strength_in_its_name_and_no_elo ... ok
test rodent::tests::the_pack_has_the_books_of_every_character_and_no_other ... ok
test tests::games_end_as_the_rules_say ... ok
test result: ok. 7 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/prep-5edff4c52d621b05)
running 17 tests
test games::tests::outcomes_and_tallies ... ok
test errors::tests::incomplete_opponent_prefix_withholds_errors_until_checked ... ok
test errors::tests::opponent_allowing_mate_is_judged_from_the_actual_mover ... ok
test errors::tests::the_same_error_in_two_games_is_repeated ... ok
test errors::tests::earlier_player_errors_survive_but_the_whole_later_suffix_is_excluded ... ok
test period::tests::months_count_back_from_the_newest_game ... ok
test period::tests::the_last_games_of_each_colour ... ok
test errors::tests::the_position_cache_keeps_the_best_quality_and_survives_a_save ... ok
test errors::tests::every_opponent_error_category_stops_later_errors_for_both_colours ... ok
test openings::tests::a_set_keeps_each_opening_once ... ok
test tests::one_name_for_several_positions_is_one_variation ... ok
test tree::tests::the_tree_counts_games_and_marks_transpositions ... ok
test tests::cached_errors_and_all_aggregates_are_rejudged_after_opponent_error ... ok
test tests::candidates_games_and_openings_of_a_player ... ok
test tests::legacy_book_fields_survive_report_serde ... ok
test tests::evaluations_give_the_errors_by_opening_and_the_report_is_cached ... ok
test tests::the_engine_run_fills_the_report_and_the_cache ... ok
test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s
Running unittests src/lib.rs (target/debug/deps/releases-7ccacfe3b730f4db)
running 3 tests
test tests::github_answer ... ok
test tests::sums ... ok
test tests::versions ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/trainer-16995607f7f5d504)
running 153 tests
test repertoire::acceptance_tests::at_02_first_independent_correct_introduces_learning_for_one_day ... ok
test repertoire::acceptance_tests::at_03_third_independent_correct_is_learnt_and_still_scheduled ... ok
test repertoire::acceptance_tests::at_04_wrong_after_learnt_resets_streak_and_schedules_thirty_seconds ... ok
test repertoire::acceptance_tests::at_05_replay_after_error_does_not_change_knowledge_or_due ... ok
test repertoire::acceptance_tests::at_13_accuracy_is_absent_without_independent_attempts ... ok
test repertoire::acceptance_tests::aggregate_deduplicates_keys_and_weights_accuracy_once ... ok
test repertoire::acceptance_tests::at_06_preview_introduces_unseen_without_independent_success ... ok
test repertoire::acceptance_tests::at_08_learnt_item_is_also_due ... ok
test repertoire::acceptance_tests::at_16_empty_scope_has_empty_status_and_no_percentages ... ok
test repertoire::acceptance_tests::auto_context_and_illegal_move_create_no_independent_attempt ... ok
test repertoire::acceptance_tests::correct_after_four_days_schedules_eight_days ... ok
test repertoire::acceptance_tests::duplicate_client_attempt_id_changes_state_only_once ... ok
test repertoire::acceptance_tests::at_12_accuracy_is_weighted_independent_accuracy_not_learning_status ... ok
test repertoire::acceptance_tests::growth_interval_has_explicit_minimum_and_maximum ... ok
test repertoire::acceptance_tests::at_28_all_learnt_with_due_is_not_confirmed_current ... ok
test repertoire::acceptance_tests::preview_preserves_two_correct_streak_and_growth_base ... ok
test repertoire::acceptance_tests::at_29_all_learnt_without_due_or_uncertain_is_confirmed_current ... ok
test repertoire::acceptance_tests::uncertain_uses_strict_greater_of_grace_boundaries ... ok
test repertoire::aggregate::tests::detects_count_invariant_violations ... ok
test repertoire::aggregate::tests::aggregate_output_is_unchanged ... ok
test repertoire::aggregate::tests::detects_percentage_ordering_violations ... ok
test repertoire::acceptance_tests::learning_data_json_round_trip_preserves_event_types_and_state ... ok
test repertoire::aggregate::tests::global_total_invariant_detects_global_above_repertoire_sum ... ok
test repertoire::aggregate::tests::global_total_invariant_detects_repertoire_sum_overflow ... ok
test repertoire::aggregate::tests::valid_mixed_summary_has_no_invariant_violations ... ok
test repertoire::aggregate::tests::global_total_invariant_allows_deduplicated_union ... ok
test repertoire::analytics_tests::at_09_uncertain_is_subset_of_learnt_not_an_extra_total ... ok
test repertoire::analytics_tests::at_10_independent_correct_clears_uncertain_and_stays_learnt ... ok
test repertoire::analytics_tests::at_26_scheduled_boundaries_are_disjoint_and_cover_every_introduced_item ... ok
test repertoire::analytics_tests::local_date_policy_makes_offset_and_midnight_explicit ... ok
test repertoire::analytics_tests::non_independent_events_preserve_independent_timestamps_history_and_median ... ok
test repertoire::analytics_tests::resistant_enters_on_recent_results_and_exits_after_three_independent_correct ... ok
test repertoire::analytics_tests::old_item_and_store_json_default_new_analytics_fields ... ok
test repertoire::advanced_tests::previous_both_move_keys_migrate_to_position_statistics_without_data_loss ... ok
test repertoire::advanced_tests::null_subtree_grafts_under_the_exact_path_instead_of_an_earlier_transposition ... ok
test repertoire::branch_tests::empty_scope_has_no_rows_or_whole_repertoire_root ... ok
test repertoire::aggregate::tests::global_total_invariant_handles_empty_repertoires ... ok
test repertoire::analytics_tests::per_move_analytics_include_independent_details_and_scope_membership ... ok
test repertoire::analytics_tests::sequences_include_zero_and_attempt_histogram_sums_match_total ... ok
test repertoire::analytics_tests::at_11_independent_wrong_clears_uncertain_by_returning_to_learning ... ok
test repertoire::aggregate::tests::detects_invalid_values_in_every_percentage ... ok
test repertoire::daily_tests::new_flags_are_optional_in_the_file_and_survive_a_roundtrip ... ok
test repertoire::graph_tests::at_16_no_active_own_moves_is_empty_without_percentages ... ok
test repertoire::branch_tests::branch_last_independent_ignores_preview_and_auto_context ... ok
test repertoire::branch_tests::all_path_projection_keeps_all_answers_and_honours_disabled_branches ... ok
test repertoire::graph_tests::at_07_zero_due_with_unseen_is_not_confirmed_current ... ok
test repertoire::daily_tests::a_mistake_comes_back_in_the_same_session_and_a_shown_new_move_does_not ... ok
test repertoire::acceptance_tests::mixed_event_sequence_preserves_aggregate_invariants ... ok
test repertoire::daily_tests::one_pass_review_finishes_instead_of_starting_a_new_cycle ... ok
test repertoire::daily_tests::a_hint_comes_back_but_not_in_a_one_pass_review ... ok
test repertoire::graph_tests::at_18_19_disable_and_reenable_preserve_global_history ... ok
test repertoire::graph_tests::aggregate_scope_uses_one_explicit_as_of ... ok
test repertoire::advanced_tests::simultaneous_writers_cannot_overwrite_the_same_revision ... ok
test repertoire::graph_tests::at_15_global_aggregate_is_union_not_sum_of_repertoire_rows ... ok
test repertoire::graph_tests::at_14_two_repertoires_use_one_global_learning_item ... ok
test repertoire::branch_tests::disabled_branch_disappears_and_reenable_restores_history ... ok
test repertoire::daily_tests::daily_queue_takes_every_due_move_and_at_most_n_new_in_pgn_order ... ok
test repertoire::graph_tests::both_training_mode_is_rejected_for_learning_statistics ... ok
test repertoire::graph_tests::at_17_depth_limits_summary_but_not_full_scope ... ok
test repertoire::analytics_tests::at_27_daily_snapshots_capture_time_dependent_uncertain_without_rewriting_history ... ok
test repertoire::daily_tests::introduce_more_takes_the_next_unseen_moves_only ... ok
test repertoire::graph_tests::disabling_one_answer_keeps_other_active_variations ... ok
test repertoire::graph_tests::repeated_fen4_cycle_terminates_and_deduplicates_items ... ok
test repertoire::graph_tests::at_24_transposition_paths_share_one_key_and_progress ... ok
test repertoire::graph_tests::reset_impact_projects_n_m_and_names_without_resetting ... ok
test repertoire::branch_tests::branch_summary_uses_core_statuses_due_and_independent_accuracy ... ok
test repertoire::learning_session::context_tests::due_soon_policy_reinforces_even_a_learnt_context_move ... ok
test repertoire::graph_tests::all_answers_keep_real_pgn_context_and_shortest_graph_depth ... ok
test repertoire::graph_tests::main_answer_override_validates_side_and_pgn_move_and_roundtrips ... ok
test repertoire::learning_session::context_tests::fixed_and_adaptive_speed_factors_are_deterministic_and_clamped ... ok
test repertoire::branch_tests::max_depth_and_branch_root_limit_candidates_and_items ... ok
test repertoire::branch_tests::branch_projection_is_deterministic_and_sorted ... ok
test repertoire::daily_tests::branch_session_asks_only_moves_of_the_branch_from_the_start_of_the_game ... ok
test repertoire::learning_session::context_tests::leadup_off_and_legacy_methods_keep_context_automatic ... ok
test repertoire::graph_tests::disabled_transposition_keeps_shared_key_through_another_active_branch ... ok
test repertoire::learning_session::context_tests::opponent_context_stays_automatic_even_with_weak_learning_data ... ok
test repertoire::learning_session::context_tests::old_json_unknown_fields_and_duplicate_attempts_remain_compatible ... ok
test repertoire::graph_tests::at_30_lines_overlap_but_repertoire_is_not_an_arithmetic_mean ... ok
test repertoire::branch_tests::at_30_transposition_is_unique_per_branch_and_in_global_scope ... ok
test repertoire::line_tests::empty_lines_are_omitted_and_never_reported_learnt ... ok
test repertoire::learning_session::context_tests::well_known_context_outside_due_window_is_not_reinforced ... ok
test repertoire::learning_session::context_tests::least_recent_keeps_legacy_context_checks_with_leadup_off ... ok
test repertoire::learning_session::context_tests::reinforcement_is_not_repeated_in_the_same_review_cycle ... ok
test repertoire::learning_session::context_tests::resume_keeps_partial_learning_context_position ... ok
test repertoire::mode_tests::at_20_review_in_order_covers_each_key_once_updates_srs_and_wraps ... ok
test repertoire::learning_session::context_tests::wrong_context_replay_completes_context_without_success ... ok
test repertoire::learning_session::context_tests::very_well_known_start_prefix_is_omitted_without_attempts ... ok
test repertoire::learning_session::context_tests::weak_context_is_reinforced_as_an_independent_answer ... ok
test repertoire::mode_tests::old_scope_and_mode_snapshot_defaults_remain_deserializable ... ok
test repertoire::line_tests::line_scope_honours_max_depth_disable_and_branch_root ... ok
test repertoire::line_tests::at_30_overlapping_lines_share_items_but_global_scope_deduplicates ... ok
test repertoire::session_tests::both_and_legacy_queue_modes_are_rejected_on_resume ... ok
test repertoire::session_tests::alternative_during_context_does_not_continue_the_unplayed_branch ... ok
test repertoire::mode_tests::least_recent_prioritizes_unseen_then_oldest_and_skips_early_checked_context ... ok
test repertoire::mode_tests::at_21_variation_wrong_waits_for_the_next_due_pass_not_less_than_thirty_seconds ... ok
test repertoire::line_tests::line_projection_is_deterministic_and_sorted ... ok
test repertoire::mode_tests::review_cursor_resumes_mid_cycle_and_duplicate_event_does_not_advance_twice ... ok
test repertoire::line_tests::line_learnt_and_fresh_follow_success_due_uncertain_and_wrong ... ok
test repertoire::session_tests::replay_stays_on_revealed_answer_and_disabled_alternative_is_not_accepted ... ok
test repertoire::store::lock_tests::child_exits_while_holding_store_lock ... ok
test repertoire::mode_tests::learning_priorities_use_pgn_order_depth_rav_and_deterministic_bfs_fallback ... ok
test repertoire::session_tests::prepared_answer_cache_preserves_live_classification_and_credit ... ok
test repertoire::session_tests::initial_queue_is_due_only_and_zero_due_finishes_without_unseen ... ok
test repertoire::session_tests::at_06_preview_then_played_move_has_no_streak_accuracy_or_extra_preview ... ok
test repertoire::session_tests::at_05_wrong_then_repeated_replay_records_one_independent_wrong ... ok
test repertoire::store::store_tests::collision_merge_uses_latest_streak_earliest_due_and_is_deterministic ... ok
test repertoire::store::store_tests::both_without_uci_is_skipped_and_old_attempts_do_not_create_accuracy ... ok
test repertoire::session_tests::introduction_is_explicit_and_does_not_introduce_until_an_answer ... ok
test repertoire::session_tests::attempt_and_session_replace_the_old_inode_once_with_both_changes ... ok
test repertoire::session_tests::at_23_duplicate_does_not_move_session_or_rewrite_file ... ok
test repertoire::session_tests::runtime_replay_cache_is_shared_but_never_persisted_or_stale_after_source_changes ... ok
test repertoire::store::store_tests::attempt_ids_are_scoped_to_user_and_different_ids_are_not_suppressed ... ok
test repertoire::session_tests::illegal_input_and_unscheduled_repertoire_answer_do_not_change_learning ... ok
running 1 test
test repertoire::store::store_tests::at_23_duplicate_attempt_has_one_effect_and_one_file_replacement ... ok
test repertoire::store::store_tests::extension_merge_tracks_reordered_identities_and_keeps_first_duplicate ... ok
test repertoire::store::store_tests::process_attempt_writer_helper ... ok
test repertoire::store::store_tests::missing_legacy_interval_is_reconstructed_from_due_and_last_seen ... ok
test repertoire::store::store_tests::unreadable_missing_and_unsupported_versions_are_errors_not_empty_data ... ok
test repertoire::store::store_tests::overdue_legacy_interval_is_not_reconstructed_as_a_duration ... ok
test repertoire::session_tests::pending_alternative_credits_only_the_played_answer_and_keeps_original_pending ... ok
test repertoire::tests::different_starts_are_rejected_and_fullmove_zero_is_preserved ... ok
test repertoire::tests::fen4_ignores_counters_but_distinguishes_side_castling_and_legal_ep ... ok
test repertoire::store::store_tests::unusable_backup_path_blocks_migration_without_replacing_v2 ... ok
test repertoire::store::lock_tests::store_lock_is_released_on_drop_and_process_exit ... ok
test repertoire::store::store_tests::legacy_lines_are_retained_and_training_json_is_never_changed ... ok
test repertoire::tests::library_crud_depth_and_disable_are_persistent_data ... ok
test repertoire::tests::adding_and_deleting_never_touches_the_source_file ... ok
test repertoire::tests::library_store_roundtrip_errors_and_conflicts_are_visible ... ok
test repertoire::tests::null_and_unparsed_segments_survive_but_are_not_candidates ... ok
test repertoire::store::store_tests::v3_session_snapshot_survives_attempt_persistence ... ok
test repertoire::tests::legacy_roundtrip_backup_migration_and_stats_conflict_preserve_data ... ok
test repertoire::tests::prefix_ignores_unparsed_tail_after_the_selected_node ... ok
test repertoire::tests::v2_stats_without_the_random_cursor_field_still_read_and_save ... ok
test repertoire::tests::stats_store_write_failure_does_not_replace_legacy_or_report_success ... ok
test repertoire::store::store_tests::two_stores_reload_latest_revision_instead_of_overwriting_stale_state ... ok
test repertoire::tests::prefix_branch_dedup_and_annotations_merge_without_touching_source ... ok
test repertoire::tests::transpositions_share_candidates_but_keep_both_pgn_paths ... ok
test repertoire::store::store_tests::v2_to_v3_is_idempotent_and_backup_is_created_only_once ... ok
test tests::a_line_is_kept_by_its_moves_and_counted ... ok
test repertoire::store::store_tests::v2_unknown_root_and_nested_fields_survive_migration_and_later_writes ... ok
test repertoire::store::store_tests::two_processes_and_stale_parent_snapshot_keep_every_attempt ... ok
test repertoire::store::store_tests::context_batch_is_atomic_retryable_and_preserves_every_event ... ok
test repertoire::mode_tests::at_22_shared_reset_preserves_cursor_journal_extensions_and_review_reset_preserves_srs ... ok
test repertoire::session_tests::same_session_conflict_is_explicit_and_different_sessions_keep_both_events ... ok
test repertoire::store::store_tests::v3_unknown_fields_survive_plain_and_session_attempt_roundtrips ... ok
test repertoire::session_tests::transposition_target_replays_its_saved_membership_path_after_reload ... ok
test repertoire::session_tests::snapshot_resumes_every_phase_with_deterministic_context_and_positions ... ok
test repertoire::graph_tests::at_01_one_hundred_real_pgn_moves_are_unique_unseen_and_not_due ... ok
test repertoire::graph_tests::at_28_one_hundred_learnt_with_three_due_is_all_learnt_not_confirmed ... ok
test repertoire::graph_tests::at_29_one_hundred_fresh_learnt_without_due_is_confirmed_current ... ok
test repertoire::graph_tests::at_25_adding_twenty_moves_recalculates_scope_and_preserves_successes ... ok
test repertoire::session_tests::learnt_counter_tracks_persisted_independent_answers_for_both_sides_and_shared_scopes ... ok
test repertoire::session_tests::context_presentation_plans_once_per_call_instead_of_once_per_prefix_move ... ok
test result: ok. 153 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
Running unittests src/lib.rs (target/debug/deps/uci-a2a0644d25081d31)
running 15 tests
test parse::tests::id_lines_keep_spacing ... ok
test parse::tests::bestmove_variants ... ok
test parse::tests::info_string_and_currmove ... ok
test parse::tests::malformed_info_is_error ... ok
test parse::tests::mate_and_wdl ... ok
test parse::tests::options ... ok
test parse::tests::stockfish_info_line ... ok
test parse::tests::pv_stops_at_known_key_and_lowerbound ... ok
test protocol::tests::a_search_waits_for_readyok_and_stale_info_is_dropped ... ok
test protocol::tests::deadlines_and_a_broken_link_end_the_session ... ok
test protocol::tests::handshake_collects_info_and_asks_ready ... ok
test protocol::tests::handshake_timeouts_name_what_was_missing ... ok
test types::tests::position_validation_and_command ... ok
test types::tests::white_perspective_cp ... ok
test types::tests::white_perspective_mate ... ok
test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/fake_engine.rs (target/debug/deps/fake_engine-8ffc56e69a8f0453)
running 23 tests
test crash_during_search_reports_terminated ... ok
test spawn_errors ... ok
test drop_during_search_terminates_process ... ok
test handshake_collects_id_and_typed_options ... ok
test multipv_and_mate_scores ... ok
test an_engine_gets_the_variables_given ... ok
test option_validation ... ok
test an_engine_can_run_below_the_app ... ok
test exit_during_handshake ... ok
test stderr_flood_does_not_block ... ok
test depth_limited_search_finishes_with_bestmove ... ok
test options_are_deferred_until_search_ends ... ok
test invalid_positions_are_rejected_before_sending ... ok
test rapid_position_changes_never_mix_search_ids ... ok
test rapid_position_changes_with_pauses_and_slow_bestmove ... ok
test hung_engine_is_killed_and_does_not_block_caller ... ok
test an_engine_can_die_with_its_starting_thread ... ok
test garbage_lines_become_warnings ... ok
test quit_kills_engine_that_ignores_quit ... ok
test stop_cancels_pending_and_idle_stop_is_harmless ... ok
test slow_bestmove_within_timeout ... ok
test not_uci_program ... ok
test missing_uciok_and_readyok_time_out ... ok
test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.00s
Running tests/stockfish.rs (target/debug/deps/stockfish-194920c28e95abd3)
running 1 test
test stockfish_multipv_depth_mate_and_position_switch ... ignored, needs a real Stockfish binary in UCI_STOCKFISH
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/worker.rs (target/debug/deps/worker-3dee9698692d6883)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests chess_core
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests chess_import
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests chess_openings
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests chesspenguin_app
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests game_review
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests maia
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests mobile_api
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests online_games
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests play
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests prep
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests releases
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests trainer
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests uci
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

View file

@ -0,0 +1,3 @@
$ python3 -I scripts/dev/check-docs-links.py --root . <six exact historical allows>
Checked 171 Markdown files, examined 781 non-allowlisted links; 0 broken links.
exit=0

View file

@ -0,0 +1,7 @@
$ python3 -I -m unittest discover -s scripts/dev -p test_check_docs_links.py
.............
----------------------------------------------------------------------
Ran 13 tests in 0.005s
OK
exit=0

View file

@ -0,0 +1,27 @@
CURRENT OPENING/LOCALES
docs/architecture.md v2_spec= True nine= True six_current= False
docs/dev/desktop.md v2_spec= False nine= True six_current= False
android locales= 9
SLUGS
training-annotations= 1
opening-v2= 1
task40_headings= 2
HISTORY BANNERS
docs/research/implementation-plan-2026-10-17.md ['> **History, 2026-10-17.** Это первоначальный план исследования, а не текущий план работ. Действующие источники: [архитектура](../architecture.md), [бэклог](../dev/tasks.md) и [решения владельца](../decisions.md).']
docs/research/handoff-2026-10-23.md ['> **History, 2026-10-23.** Это исходный снимок инструкций и состояния на указанную дату, а не текущее руководство. Актуальный OpenCode/OpenSpec runbook: [`docs/dev/handoff.md`](../dev/handoff.md).']
docs/research/opening-trainer-v2-handoff-2026-11-26.md ['> **History / WIP, 2026-11-26—2026-11-27.** Это снимок незавершённой работы, а не текущий общий runbook или действующая спецификация. Текущий runbook: [`docs/dev/handoff.md`](../dev/handoff.md); действующая спецификация: [`docs/design/opening-trainer-v2-spec.md`](../design/opening-trainer-v2-spec.md). Operational dev-хуки: [`docs/dev/opening-trainer-v2-devhooks.md`](../dev/opening-trainer-v2-devhooks.md).']
docs/design/repertoire-training.md []
docs/design/opening-cleanup-2026-11-05.md []
docs/design/opening-trainer.md ['> **Навигационный статус: history/legacy, 2026-12-03.** Это исходный проект линейного тренера, а не действующий desktop-дизайн. Current-указатель для desktop — [Тренировка дебюта v2](opening-trainer-v2-spec.md); возможности Android перечислены в [capability map](../README.md).']
docs/design/opening-trainer-ui-audit-2026-11-26.md ['> **Навигационный статус: history, 2026-12-03.** Это датированные наблюдения о состоянии до v2, а не текущая спецификация или повторная приёмка. Действующий документ — [Тренировка дебюта v2](opening-trainer-v2-spec.md).']
docs/design/android-ui.md ['> **Навигационный статус: history, исходная спецификация 2026-10-22.** Начальный принцип «только просмотр» и другие ранние ограничения не описывают текущее приложение. Действующие capability-документы — [ввод и игра](android-play.md), [списки](android-lists.md), [кнопка разбора](android-review-button.md), [подготовка к сопернику](android-opponent-prep.md); общая карта — в [docs/README](../README.md). Исходное содержимое ниже сохранено как история.']
REMOVED PASS/FAIL LINES IN HISTORY-EDIT DIFFS
count= 0
PUBLIC DOC INTERNAL MARKDOWN LINK TARGETS
apps/web/README.md ['src/lib.rs', 'page/', '../desktop/src/platform/', '../../crates/uci/src/worker.rs', 'build.sh', 'check/']
examples/README.md []
THIRD_PARTY_NOTICES.md []

View file

@ -0,0 +1,16 @@
$ git diff HEAD -- docs/dev/desktop.md
diff --git a/docs/dev/desktop.md b/docs/dev/desktop.md
index 28712c0..c28c471 100644
--- a/docs/dev/desktop.md
+++ b/docs/dev/desktop.md
@@ -63,4 +63,4 @@ XDG_CONFIG_HOME=/tmp/cfg CP_OPEN=11 CP_PLY=3 CP_ANALYZE=1 ./target/debug/chesspe
## Языки
-`i18n.rs`: английский текст — ключ, таблица на 6 языков (en по умолчанию, ru, fr, de, es, it). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.
+`i18n.rs`: английский текст — ключ, таблица на 9 языков (en по умолчанию, ru, de, fr, es, it, pt, uz, kk). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.
$ grep -n opening-trainer-v2-spec docs/dev/desktop.md
exit=1
$ grep -nE "trainer|repertoire|Opening|Тренир" docs/dev/desktop.md

View file

@ -0,0 +1,16 @@
$ git diff --check HEAD
exit=0
$ git ls-files *.pyc *.pyo *.pyd
exit=0
$ git check-ignore -v --no-index __pycache__/example.pyc website/shots/__pycache__/example.pyc
.gitignore:21:__pycache__/ __pycache__/example.pyc
.gitignore:21:__pycache__/ website/shots/__pycache__/example.pyc
exit=0
$ git diff HEAD -- website/shots/derive.py
exit=0
$ bash -n scripts/publish-github.sh
exit=0

View file

@ -0,0 +1,102 @@
$ git diff --find-renames --name-status HEAD
M .gitignore
M AGENTS.md
M THIRD_PARTY_NOTICES.md
M apps/desktop/src/repertoire_ui.rs
A apps/web/README.md
M docs/architecture.md
M docs/decisions.md
M docs/design/android-ui.md
M docs/design/opening-cleanup-2026-11-05.md
M docs/design/opening-trainer-ui-audit-2026-11-26.md
M docs/design/opening-trainer.md
M docs/design/repertoire-training.md
M docs/design/web-version.md
M docs/dev/desktop.md
R100 docs/qa/game-view-devhooks.md docs/dev/game-view-devhooks.md
M docs/dev/handoff.md
R051 docs/qa/opening-trainer-v2-devhooks.md docs/dev/opening-trainer-v2-devhooks.md
M docs/dev/tasks.md
R100 docs/qa/report-2.md docs/qa/large-chessbase-2026-10-19.md
M docs/qa/opening-trainer-v2-functional.md
R100 docs/qa/report-3.md docs/qa/position-search-2026-10-19.md
M docs/qa/repertoire-layout-2026-11-02.md
R100 docs/screenshots/repertoire-detail.png docs/qa/repertoire-layout-2026-11-02/repertoire-detail.png
R100 docs/screenshots/repertoire-library.png docs/qa/repertoire-layout-2026-11-02/repertoire-library.png
R100 docs/screenshots/repertoire-result.png docs/qa/repertoire-layout-2026-11-02/repertoire-result.png
M docs/qa/repertoire-practice-flow-2026-11-02.md
R100 docs/screenshots/repertoire-practice-error.png docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-error.png
R100 docs/screenshots/repertoire-practice-result.png docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-result.png
M docs/qa/task-27-functional-2026-11-27.md
R100 docs/qa/report-1.md docs/qa/vertical-slice-2026-10-18.md
M docs/research/architecture-proposal-2026-10-17.md
R093 docs/implementation-plan.md docs/research/implementation-plan-2026-10-17.md
R069 docs/dev/opening-trainer-v2-handoff.md docs/research/opening-trainer-v2-handoff-2026-11-26.md
M docs/research/web-version-tech.md
M docs/research/web-version.md
M examples/README.md
M openspec/README.md
D web/README.md
D website/shots/__pycache__/derive.cpython-314.pyc
$ git diff --find-renames --summary HEAD
create mode 100644 apps/web/README.md
rename docs/{qa => dev}/game-view-devhooks.md (100%)
rename docs/{qa => dev}/opening-trainer-v2-devhooks.md (51%)
rename docs/qa/{report-2.md => large-chessbase-2026-10-19.md} (100%)
rename docs/qa/{report-3.md => position-search-2026-10-19.md} (100%)
rename docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-detail.png (100%)
rename docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-library.png (100%)
rename docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-result.png (100%)
rename docs/{screenshots => qa/repertoire-practice-flow-2026-11-02}/repertoire-practice-error.png (100%)
rename docs/{screenshots => qa/repertoire-practice-flow-2026-11-02}/repertoire-practice-result.png (100%)
rename docs/qa/{report-1.md => vertical-slice-2026-10-18.md} (100%)
rename docs/{implementation-plan.md => research/implementation-plan-2026-10-17.md} (93%)
rename docs/{dev/opening-trainer-v2-handoff.md => research/opening-trainer-v2-handoff-2026-11-26.md} (69%)
delete mode 100644 web/README.md
delete mode 100644 website/shots/__pycache__/derive.cpython-314.pyc
$ git diff --find-renames --diff-filter=D --name-only HEAD
web/README.md
website/shots/__pycache__/derive.cpython-314.pyc
$ git diff --find-renames --numstat HEAD
4 0 .gitignore
2 1 AGENTS.md
6 4 THIRD_PARTY_NOTICES.md
1 1 apps/desktop/src/repertoire_ui.rs
18 0 apps/web/README.md
3 3 docs/architecture.md
7 1 docs/decisions.md
2 0 docs/design/android-ui.md
2 0 docs/design/opening-cleanup-2026-11-05.md
2 0 docs/design/opening-trainer-ui-audit-2026-11-26.md
2 0 docs/design/opening-trainer.md
2 0 docs/design/repertoire-training.md
1 1 docs/design/web-version.md
1 1 docs/dev/desktop.md
0 0 docs/{qa => dev}/game-view-devhooks.md
88 110 docs/dev/handoff.md
0 22 docs/{qa => dev}/opening-trainer-v2-devhooks.md
10 2 docs/dev/tasks.md
0 0 docs/qa/{report-2.md => large-chessbase-2026-10-19.md}
1 1 docs/qa/opening-trainer-v2-functional.md
0 0 docs/qa/{report-3.md => position-search-2026-10-19.md}
3 3 docs/qa/repertoire-layout-2026-11-02.md
- - docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-detail.png
- - docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-library.png
- - docs/{screenshots => qa/repertoire-layout-2026-11-02}/repertoire-result.png
2 2 docs/qa/repertoire-practice-flow-2026-11-02.md
- - docs/{screenshots => qa/repertoire-practice-flow-2026-11-02}/repertoire-practice-error.png
- - docs/{screenshots => qa/repertoire-practice-flow-2026-11-02}/repertoire-practice-result.png
6 0 docs/qa/task-27-functional-2026-11-27.md
0 0 docs/qa/{report-1.md => vertical-slice-2026-10-18.md}
1 1 docs/research/architecture-proposal-2026-10-17.md
3 1 docs/{implementation-plan.md => research/implementation-plan-2026-10-17.md}
25 1 docs/{dev/opening-trainer-v2-handoff.md => research/opening-trainer-v2-handoff-2026-11-26.md}
1 1 docs/research/web-version-tech.md
1 1 docs/research/web-version.md
5 4 examples/README.md
3 11 openspec/README.md
0 18 web/README.md
- - website/shots/__pycache__/derive.cpython-314.pyc

View file

@ -0,0 +1,106 @@
$ date -u +%Y-%m-%dT%H:%M:%SZ
2026-12-03T14:53:55Z
$ git rev-parse HEAD
d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
$ git branch --show-current
chore/repository-structure
$ git status --short --untracked-files=all
M .gitignore
M AGENTS.md
M THIRD_PARTY_NOTICES.md
M apps/desktop/src/repertoire_ui.rs
RM web/README.md -> apps/web/README.md
M docs/architecture.md
M docs/decisions.md
M docs/design/android-ui.md
M docs/design/opening-cleanup-2026-11-05.md
M docs/design/opening-trainer-ui-audit-2026-11-26.md
M docs/design/opening-trainer.md
M docs/design/repertoire-training.md
M docs/design/web-version.md
M docs/dev/desktop.md
R docs/qa/game-view-devhooks.md -> docs/dev/game-view-devhooks.md
M docs/dev/handoff.md
RM docs/qa/opening-trainer-v2-devhooks.md -> docs/dev/opening-trainer-v2-devhooks.md
M docs/dev/tasks.md
R docs/qa/report-2.md -> docs/qa/large-chessbase-2026-10-19.md
M docs/qa/opening-trainer-v2-functional.md
R docs/qa/report-3.md -> docs/qa/position-search-2026-10-19.md
M docs/qa/repertoire-layout-2026-11-02.md
R docs/screenshots/repertoire-detail.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-detail.png
R docs/screenshots/repertoire-library.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-library.png
R docs/screenshots/repertoire-result.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-result.png
M docs/qa/repertoire-practice-flow-2026-11-02.md
R docs/screenshots/repertoire-practice-error.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-error.png
R docs/screenshots/repertoire-practice-result.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-result.png
M docs/qa/task-27-functional-2026-11-27.md
R docs/qa/report-1.md -> docs/qa/vertical-slice-2026-10-18.md
M docs/research/architecture-proposal-2026-10-17.md
RM docs/implementation-plan.md -> docs/research/implementation-plan-2026-10-17.md
RM docs/dev/opening-trainer-v2-handoff.md -> docs/research/opening-trainer-v2-handoff-2026-11-26.md
M docs/research/web-version-tech.md
M docs/research/web-version.md
M examples/README.md
M openspec/README.md
D website/shots/__pycache__/derive.cpython-314.pyc
?? docs/README.md
?? docs/qa/repository-structure-2026-12-03.md
?? docs/qa/repository-structure-2026-12-03/baseline-checker-allowlisted.txt
?? docs/qa/repository-structure-2026-12-03/baseline-checker-unfiltered.txt
?? docs/qa/repository-structure-2026-12-03/baseline-environment.txt
?? docs/qa/repository-structure-2026-12-03/baseline-image-sha256-race.txt
?? docs/qa/repository-structure-2026-12-03/baseline-image-sha256.txt
?? docs/qa/repository-structure-2026-12-03/baseline-protected-paths.txt
?? docs/qa/repository-structure-2026-12-03/baseline-worktrees.txt
?? docs/qa/repository-structure-2026-12-03/cache-and-ignore.txt
?? docs/qa/repository-structure-2026-12-03/cargo-root-and-interrupted-website.log
?? docs/qa/repository-structure-2026-12-03/checker-current.txt
?? docs/qa/repository-structure-2026-12-03/checker-help.txt
?? docs/qa/repository-structure-2026-12-03/checker-report.txt
?? docs/qa/repository-structure-2026-12-03/checker-tests.txt
?? docs/qa/repository-structure-2026-12-03/diff-check.txt
?? docs/qa/repository-structure-2026-12-03/final-protected-and-worktrees.txt
?? docs/qa/repository-structure-2026-12-03/independent-environment.txt
?? docs/qa/repository-structure-2026-12-03/public-tree-links.log
?? docs/qa/repository-structure-2026-12-03/publication-dry-run.log
?? docs/qa/repository-structure-2026-12-03/publication-effective.manifest
?? docs/qa/repository-structure-2026-12-03/publication-effective.patch
?? docs/qa/repository-structure-2026-12-03/publication-equivalence.txt
?? docs/qa/repository-structure-2026-12-03/publication-patch.diff
?? docs/qa/repository-structure-2026-12-03/publication-result.txt
?? docs/qa/repository-structure-2026-12-03/publication-sha.txt
?? docs/qa/repository-structure-2026-12-03/publication-source.manifest
?? docs/qa/repository-structure-2026-12-03/publication-source.patch
?? docs/qa/repository-structure-2026-12-03/publish-static.txt
?? docs/qa/repository-structure-2026-12-03/website-final.log
?? docs/qa/repository-structure-planning-2026-12-03.md
?? docs/research/handoff-2026-10-23.md
?? openspec/changes/organize-repository-structure/.openspec.yaml
?? openspec/changes/organize-repository-structure/design.md
?? openspec/changes/organize-repository-structure/proposal.md
?? openspec/changes/organize-repository-structure/specs/repository-governance/spec.md
?? openspec/changes/organize-repository-structure/tasks.md
?? scripts/dev/check-docs-links.py
?? scripts/dev/test_check_docs_links.py
$ git worktree list --porcelain
worktree /home/vrubel/services/chessBaseLinux
HEAD 040ad2d1fa5f8c07750224175a532387fcdfa113
branch refs/heads/feature/iphone-app
worktree /home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196
HEAD b5da315343d3d23be9636408a863afe0e77752af
branch refs/heads/web-app
worktree /tmp/opencode/chesspenguin-openspec
HEAD f28958b19236d61755a5b86fb4f1ae60628d5120
branch refs/heads/chore/openspec-hybrid
worktree /tmp/opencode/chesspenguin-repository-structure
HEAD d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
branch refs/heads/chore/repository-structure
$ git remote -v
github ssh://git@ssh.github.com:443/vrubelroman/chessPenguin.git (fetch)
github DISABLED-use-scripts/publish-github.sh (push)
origin ssh://git@192.168.8.174:2222/vrubelroman/chessbaseLinux.git (fetch)
origin ssh://git@192.168.8.174:2222/vrubelroman/chessbaseLinux.git (push)

View file

@ -0,0 +1,65 @@
ASSIGNED MOVES
old_absent=True new_present=True web/README.md -> apps/web/README.md
old_absent=True new_present=True docs/qa/report-1.md -> docs/qa/vertical-slice-2026-10-18.md
old_absent=True new_present=True docs/qa/report-2.md -> docs/qa/large-chessbase-2026-10-19.md
old_absent=True new_present=True docs/qa/report-3.md -> docs/qa/position-search-2026-10-19.md
old_absent=True new_present=True docs/implementation-plan.md -> docs/research/implementation-plan-2026-10-17.md
old_absent=True new_present=True docs/qa/game-view-devhooks.md -> docs/dev/game-view-devhooks.md
old_absent=True new_present=True docs/qa/opening-trainer-v2-devhooks.md -> docs/dev/opening-trainer-v2-devhooks.md
old_absent=True new_present=True docs/dev/opening-trainer-v2-handoff.md -> docs/research/opening-trainer-v2-handoff-2026-11-26.md
old_absent=True new_present=True docs/screenshots/repertoire-library.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-library.png
old_absent=True new_present=True docs/screenshots/repertoire-detail.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-detail.png
old_absent=True new_present=True docs/screenshots/repertoire-result.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-result.png
old_absent=True new_present=True docs/screenshots/repertoire-practice-error.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-error.png
old_absent=True new_present=True docs/screenshots/repertoire-practice-result.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-result.png
MOVED PNG SHA256 HEAD vs WORKTREE
MATCH=True cbea77f48f44c5be8bc1f2504d37293f8b11ec7394aed2b88b26cd9745364f68 docs/screenshots/repertoire-library.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-library.png
MATCH=True c70cf7e3ef6e48ccd98d448973a5b040d9bc536f59d156f2c35ee4e523ed2803 docs/screenshots/repertoire-detail.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-detail.png
MATCH=True 60fb983f3603b38ebd2536e68f9902feead2e24a0c5211c0c56f7591bdfbb5c6 docs/screenshots/repertoire-result.png -> docs/qa/repertoire-layout-2026-11-02/repertoire-result.png
MATCH=True 234056bd0cf7dd85ef55b1b79af69bcb45ebed1b1871323918eeaf16948a706f docs/screenshots/repertoire-practice-error.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-error.png
MATCH=True d764dec88a564c8a902528e94e3c05e6e3180aae43675920695445b752167f4d docs/screenshots/repertoire-practice-result.png -> docs/qa/repertoire-practice-flow-2026-11-02/repertoire-practice-result.png
EXACT TEXT PRESERVATION
MATCH=True docs/qa/report-1.md -> docs/qa/vertical-slice-2026-10-18.md
MATCH=True docs/qa/report-2.md -> docs/qa/large-chessbase-2026-10-19.md
MATCH=True docs/qa/report-3.md -> docs/qa/position-search-2026-10-19.md
MATCH=True docs/qa/game-view-devhooks.md -> docs/dev/game-view-devhooks.md
PRODUCT GALLERY head=15 current=10 expected=10 set_match=True
CURRENT docs/screenshots/android.jpg
CURRENT docs/screenshots/engine.jpg
CURRENT docs/screenshots/game.png
CURRENT docs/screenshots/library.png
CURRENT docs/screenshots/looks.jpg
CURRENT docs/screenshots/play.jpg
CURRENT docs/screenshots/position-search.jpg
CURRENT docs/screenshots/prep-openings.jpg
CURRENT docs/screenshots/reference.jpg
CURRENT docs/screenshots/review.png
unexpected= []
missing= []
KEEP B1-B5 AND QA27 SHA256
keep_count=13
MATCH=True 44155571544f1a60c3db0c63d506abced3580ce8e0a2d66c16b12ca78d1357d3 docs/design/task-27/A-header-1920.png
MATCH=True 406eaed53da005078890547b90cd2b8667f71da925da5cf44d29a047b0496306 docs/design/task-27/B1-ruy-1920-idle-badges.png
MATCH=True 9a2cd7b0429bc8d3215876d280fa209354fb3b15f0600e8a29230cea36a7eeb0 docs/design/task-27/B2-mega4221-1920-disabled.png
MATCH=True 92a49b1651bcc19f43d207626f49e4e2460f6d077373227655d56cf0240df9e0 docs/design/task-27/B3-mega62-1920-running.png
MATCH=True f356e3d12cfd3021e3232585fc4ef84e0418674fe1165f1cd10a7ac8b3ea597a docs/design/task-27/B4-mega62-960-running.png
MATCH=True 1ea216df1057c1ff6660040428946ee4922b31f5e5c2e98364a47a4ffe15a625 docs/design/task-27/B5-mega62-960-idle.png
MATCH=True 58633c886dc2f11edc865e4a6caf0cf0da8908ddd93cf621672c40771b8cc4b8 docs/design/task-27/C-filters-footer-1920.png
MATCH=True b104970a31f864747852097524015a1434ed20780b40232753a30f2ec11038bb docs/design/task-27/D-dialog-1920.png
MATCH=True 33407d6bdbc614be084b365fc4eb53c474b0106421cb961e6ba17fb92ab4debb docs/design/task-27/E1-summary-1920.png
MATCH=True 8e9bda58c1cd3dee924908d91848e0c7a6a7c6fd6fc1ec61ea2fea7f4dbfbcfe docs/design/task-27/E2-summary-960-stopped.png
MATCH=True 8133206f84d43fa2c4b965c62bb21273d1c850d2d3cde44eae0a85254f318020 docs/qa/task-27-functional/player-mode-smeets.png
MATCH=True 1687e2e7cf11344234c2110ee51b651488d303e1b4de343540a5e0eab9b10bd7 docs/qa/task-27-functional/summary-player-carlsen.png
MATCH=True d6ac10ae13c5fccfad50125c3f61a6d09728a5a562a099df50a158ffa2139c0f docs/qa/task-27-functional/source-changed.png
HISTORY TEXT CONTAINMENT
implementation_plan_original_contained=False old_bytes=7782 new_bytes=8106
handoff_original_contained=False old_bytes=7623 new_bytes=7910
wip_marker_offset=2262
operational_prefix_exact=False operational_bytes=2262 current_bytes=2261
original_wip_handoff_contained=False old_bytes=6474 research_bytes=9122
devhooks_wip_section_contained=True wip_bytes=2126

View file

@ -0,0 +1,16 @@
$ python3 -I scripts/dev/check-docs-links.py --root . <six exact historical allows>
Checked 171 Markdown files, examined 814 non-allowlisted links; 0 broken links.
exit=0
$ git diff --check HEAD
exit=0
$ git status --short --untracked-files=all -- apps crates androidApp website examples packaging designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons .claude
M apps/desktop/src/repertoire_ui.rs
AM apps/web/README.md
M examples/README.md
D website/shots/__pycache__/derive.cpython-314.pyc
exit=0
$ git show-ref | cmp independent-source-refs-before.txt -
exit=0

View file

@ -0,0 +1,81 @@
===== implementation plan =====
--- HEAD
+++ WORKTREE
@@ -1,6 +1,8 @@
# Путь к первой рабочей версии
-Статус: предложение команды, 2026-10-17. Границы продукта подтверждены в `decisions.md`; начало реализации и конкретный UI-стек ещё обсуждаются.
+> **History, 2026-10-17.** Это первоначальный план исследования, а не текущий план работ. Действующие источники: [архитектура](../architecture.md), [бэклог](../dev/tasks.md) и [решения владельца](../decisions.md).
+
+Статус: предложение команды, 2026-10-17. Границы продукта подтверждены в `../decisions.md`; начало реализации и конкретный UI-стек ещё обсуждаются.
## 0. Проверка выбранного UI-стека и PGN-совместимости
===== historical handoff copy =====
--- HEAD
+++ WORKTREE
@@ -1,4 +1,6 @@
# Продолжить работу на другой машине
+
+> **History, 2026-10-23.** Это исходный снимок инструкций и состояния на указанную дату, а не текущее руководство. Актуальный OpenCode/OpenSpec runbook: [`docs/dev/handoff.md`](../dev/handoff.md).
Внутренний документ (Forgejo; `docs/dev` не публикуется на GitHub). Состояние на
2026-10-23, версия 0.12.0.
@@ -115,4 +117,4 @@
- первый запрос на скачивание после выкладки сайта иногда уходит на github.com вместо
прямой ссылки (вероятно, таймаут 5 с при получении адреса файла).
-Остальные планы — в `docs/implementation-plan.md` и в памяти (`search-performance-plan`).
+Остальные планы — в `implementation-plan-2026-10-17.md` и в памяти (`search-performance-plan`).
===== WIP handoff =====
--- HEAD
+++ WORKTREE
@@ -1,7 +1,9 @@
# Тренировка дебюта v2 — точка продолжения (2026-11-26)
+> **History / WIP, 2026-11-26—2026-11-27.** Это снимок незавершённой работы, а не текущий общий runbook или действующая спецификация. Текущий runbook: [`docs/dev/handoff.md`](../dev/handoff.md); действующая спецификация: [`docs/design/opening-trainer-v2-spec.md`](../design/opening-trainer-v2-spec.md). Operational dev-хуки: [`docs/dev/opening-trainer-v2-devhooks.md`](../dev/opening-trainer-v2-devhooks.md).
+
Как продолжить в новой сессии оркестратора: прочитать этот файл, затем
-`docs/qa/opening-trainer-v2-devhooks.md` (раздел «Состояние работы» — пишет разработчик).
+`docs/dev/opening-trainer-v2-devhooks.md` (исходный раздел «Состояние работы» сохранён ниже).
## Где что
@@ -55,3 +57,25 @@
3. `s8-done`: на итоге одновременно «К репертуарам (Enter)» и «× Закончить» — лишнее, «Закончить» скрыть на итоге.
4. Старые неиспользуемые строки i18n не удалены (i18n +1338/−13).
- Далее: исправить 1–4 → дизайн-ревью designer по §9 спецификации (1400×900, 960×600, светлая тема, переходы).
+
+## Состояние работы (2026-11-26, wip)
+
+Сделано:
+- Ядро (`crates/trainer`, коммит 3db35e4): `new_daily` (к повторению + ≤10 новых), `introduce_more`,
+ возврат ошибки/подсказки в конец очереди, `preview_new`, `new_single_pass_review`,
+ `new_branch_review`; необязательные флаги снимка; тесты `daily_tests.rs` (7), все 200 тестов trainer зелёные.
+- Desktop: новые модули `opening_layout.rs`, `opening_session.rs` (бывший `learning_training.rs`,
+ движок записи/перетаскивания/подвода сохранён), `opening_lines.rs`; `repertoire_ui.rs` переписан
+ (таблица, карточка, меню `⋯`, диалоги §7, «Добавить в репертуар» с цветом); `widgets::section_header_sub`.
+ Удалены `learning_dashboard/branches/charts/context_controls`, `repertoire_editor`, `repertoire_training`.
+ i18n: 120 новых строк на 9 языках. Тесты opening_* (41) зелёные; repertoire_ui — 10 из 11.
+
+Следующее:
+- Починить тест `a_session_needs_no_question_to_go_back_and_counts_refresh_after_it`: хук `debug_moves`
+ «answer» после «settle» играет ход до подготовки показа (в журнале лишние AutoContext/Previewed) —
+ разобраться с порядком `settle`/показа нового хода при асинхронной записи.
+- Удалить из `i18n.rs` неиспользуемые строки старого раздела; clippy `-D warnings`; wasm-проверка `apps/web`;
+ mobile-api; снимки в `target/qa-opening-v2/dev-shots/` (репертуары, новый ход, итог).
+- Обрезка пути слева в блоке «Выбранный ход» (сейчас обрезка справа).
+
+Известные поломки/отклонения: см. выше; визуально не проверено (снимков ещё нет).
===== operational devhooks prefix =====
--- HEAD
+++ WORKTREE
@@ -22,4 +22,3 @@
| `CP_REPERTOIRE_MOVES="…"` | действия в занятии: UCI-ходы, `answer`, `wrong`, `hint`, `skip`, `settle`, `stop` (= Esc) |
| `CP_REPERTOIRE_HINT=1` | подсказка в текущем вопросе |
| `CP_REPERTOIRE_EXPORT=1` (+ `CP_REPERTOIRE_EXPORT_FILE=…`) | экспорт PGN |
-

View file

@ -0,0 +1 @@
.gitignore:22:*.py[cod] example.pyc

View file

@ -0,0 +1,23 @@
$ git grep -nE web/README\.md -- .
docs/research/web-version-tech.md:4:Задача — `docs/dev/tasks.md` §22; подпроект — `apps/web/README.md`; концепция и аналоги — `docs/research/web-version.md` (аналитик).
exit=0
$ git grep -nE docs/qa/report-[123]\.md -- .
exit=1
$ git grep -nE docs/implementation-plan\.md -- .
scripts/publish-github.sh:28: docs/implementation-plan.md
exit=0
$ git grep -nE docs/qa/game-view-devhooks\.md -- .
exit=1
$ git grep -nE docs/qa/opening-trainer-v2-devhooks\.md -- .
exit=1
$ git grep -nE docs/dev/opening-trainer-v2-handoff\.md -- .
exit=1
$ git grep -nE docs/screenshots/repertoire-(library|detail|result|practice-error|practice-result)\.png -- .
exit=1

View file

@ -0,0 +1,135 @@
$ scripts/dev/openspec.sh validate --all --strict --no-interactive
npm notice run npx
npm notice run 'openspec' validate --all --strict --no-interactive
✓ change/organize-repository-structure
Totals: 1 passed, 0 failed (1 items)
exit=0
$ scripts/dev/openspec.sh status --change organize-repository-structure --json
npm notice run npx
npm notice run 'openspec' status --change organize-repository-structure --json
{
"changeName": "organize-repository-structure",
"schemaName": "spec-driven",
"planningHome": {
"kind": "repo",
"root": "/tmp/opencode/chesspenguin-repository-structure",
"changesDir": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes",
"defaultSchema": "spec-driven"
},
"changeRoot": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure",
"artifactPaths": {
"proposal": {
"outputPath": "proposal.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/proposal.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/proposal.md"
]
},
"specs": {
"outputPath": "specs/**/*.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/specs/**/*.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/specs/repository-governance/spec.md"
]
},
"design": {
"outputPath": "design.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/design.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/design.md"
]
},
"tasks": {
"outputPath": "tasks.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/tasks.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/tasks.md"
]
}
},
"isPlanningComplete": true,
"isComplete": true,
"applyRequires": [
"tasks"
],
"nextSteps": [
"All planning artifacts are complete. Run openspec instructions apply --change \"organize-repository-structure\" --json to inspect implementation progress."
],
"actionContext": {
"mode": "repo-local",
"sourceOfTruth": "repo",
"planningArtifacts": [
"proposal",
"specs",
"design",
"tasks"
],
"linkedContext": [],
"allowedEditRoots": [
"/tmp/opencode/chesspenguin-repository-structure"
],
"requiresAffectedAreaSelection": false,
"constraints": [
"Repo-local change artifacts and implementation edits are scoped to this project."
]
},
"artifacts": [
{
"id": "proposal",
"outputPath": "proposal.md",
"status": "done",
"requires": []
},
{
"id": "specs",
"outputPath": "specs/**/*.md",
"status": "done",
"requires": [
"proposal"
]
},
{
"id": "design",
"outputPath": "design.md",
"status": "done",
"requires": [
"proposal"
]
},
{
"id": "tasks",
"outputPath": "tasks.md",
"status": "done",
"requires": [
"specs",
"design"
]
}
],
"root": {
"path": "/tmp/opencode/chesspenguin-repository-structure",
"source": "nearest"
}
}
exit=0
$ scripts/dev/openspec.sh list --json
npm notice run npx
npm notice run 'openspec' list --json
{
"changes": [
{
"name": "organize-repository-structure",
"completedTasks": 21,
"totalTasks": 23,
"lastModified": "2026-12-03T14:52:08.932Z",
"status": "in-progress"
}
],
"root": {
"path": "/tmp/opencode/chesspenguin-repository-structure",
"source": "nearest"
}
}
exit=0

View file

@ -0,0 +1,29 @@
$ git diff HEAD -- apps/desktop/src/repertoire_ui.rs
diff --git a/apps/desktop/src/repertoire_ui.rs b/apps/desktop/src/repertoire_ui.rs
index ff6dac8..db0a377 100644
--- a/apps/desktop/src/repertoire_ui.rs
+++ b/apps/desktop/src/repertoire_ui.rs
@@ -2326,7 +2326,7 @@ impl RepertoireUi {
}
}
- /// QA hooks (docs/qa/opening-trainer-v2-devhooks.md): `CP_REPERTOIRE=<what>`, after
+ /// QA hooks (docs/dev/opening-trainer-v2-devhooks.md): `CP_REPERTOIRE=<what>`, after
/// `CP_REPERTOIRE_SELECT=<part of a name>`.
pub fn debug_open(&mut self, what: &str, settings: &mut Settings) {
if let Ok(name) = std::env::var("CP_REPERTOIRE_SELECT") {
$ git diff --name-only HEAD -- apps crates androidApp website examples packaging
apps/desktop/src/repertoire_ui.rs
apps/web/README.md
examples/README.md
website/shots/__pycache__/derive.cpython-314.pyc
$ git status --short --untracked-files=all -- apps crates androidApp website examples packaging
M apps/desktop/src/repertoire_ui.rs
AM apps/web/README.md
M examples/README.md
D website/shots/__pycache__/derive.cpython-314.pyc
$ git diff --name-only HEAD -- web
web/README.md

View file

@ -0,0 +1,31 @@
$ git status --short -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude
$ git diff --name-only HEAD -- designExample pgnFilesforExample engines backlog_from_vrubel iosApp icons packaging .claude
$ git status --short -- examples
M examples/README.md
$ git diff --name-only HEAD -- examples
examples/README.md
WORKTREE /home/vrubel/services/chessBaseLinux
feature/iphone-app
040ad2d1fa5f8c07750224175a532387fcdfa113
M docs/dev/tasks.md
?? backlog_from_vrubel
WORKTREE /tmp/opencode/chesspenguin-openspec
chore/openspec-hybrid
f28958b19236d61755a5b86fb4f1ae60628d5120
WORKTREE /home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196
web-app
b5da315343d3d23be9636408a863afe0e77752af
Protected presence without content reads:
PRESENT /home/vrubel/services/chessBaseLinux/backlog_from_vrubel
PRESENT /home/vrubel/services/chessBaseLinux/docs/dev/tasks.md
PRESENT /tmp/opencode/chesspenguin-openspec/openspec/changes/show-embedded-android-release-notes
PRESENT /home/vrubel/services/chessBaseLinux/.claude/worktrees/agent-a635674bcaa3af196
OpenSpec active-change status only:

View file

@ -0,0 +1,18 @@
Independent publication attempts
Attempt 1 (harness error, not accepted):
- Invoked the temporary clone's absolute scripts/publish-github.sh path while cwd was the source worktree. The script therefore evaluated the source repository, not the temporary cleanup clone.
- Its dry-run main was the pre-cleanup 2.5.2 main; the subsequent public clone failed because remote HEAD referred to a deleted ref. Exit 2.
- This attempt is not used as PASS evidence.
Attempt 2 (accepted):
- Ran `(cd "$tmp/repo" && TMPDIR=/tmp/opencode DRY_RUN=1 scripts/publish-github.sh)`.
- Cloned the independently filtered repository with --branch main --single-branch.
- source_base=d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
- temporary_cleanup_commit=c94a5b8b5615db56cab905ff5ee10cf612a2e2ac
- actual DRY_RUN cleanup main=b50a425
- independently reproduced filtered main=b50a42589bd80696dffba6df0ccf7edd60ec1111
- Both cleanup main IDs match; filtered internal path history checks are empty.
- Public checker: 8 Markdown files, 40 non-allowlisted links, 0 broken.
- Product gallery: source=10, public=10, identical set.
- Source refs before/after are identical. Temporary clone and helper were removed.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,90 @@
source_base=d50f297eb56c7d3fa4855f93823ca6aa6565e3aa
temporary_cleanup_commit=c94a5b8b5615db56cab905ff5ee10cf612a2e2ac
filtered_main=b50a42589bd80696dffba6df0ccf7edd60ec1111
dry_run_cleanup_main=b50a425
Filtered refs:
b50a42589bd80696dffba6df0ccf7edd60ec1111 commit refs/heads/main
520577a9ed30b68906a717699acd369c88878277 tag refs/tags/rodent-iv-0.33
986849b92b2c2fd33c2b8b01922b5d9823ea36ee tag refs/tags/rodent-iv-0.33-2
42c25e24de4713f3dbdc5ef37690b115d000ef6b commit refs/tags/rodent-iv-0.33-3
48851cfafffdeeb0843dd2c46d85390ba8c8bcf6 tag refs/tags/v0.1.0
4619f7332f84dc1281cf94ca268f86a4f4923e28 tag refs/tags/v0.10.0
4ca5e934b5e139d64bf59674653b1ffd5a87c885 tag refs/tags/v0.11.0
0a345cf56479beb1688bedba88235266aadc9162 tag refs/tags/v0.11.1
3241eaac073242615d8ee948ecae77c4dd5a039f tag refs/tags/v0.12.0
e9bea9d75d0fad650d1f8c234eb646975d574210 tag refs/tags/v0.13.0
a471908418cce4d3c9d018995fc728911bc0ed4c tag refs/tags/v0.14.0
9ab10482a205dfeca8a75819633e88b200c8f084 tag refs/tags/v0.15.0
53bad9830859575365ae39fb0b8dc0706c209f9b tag refs/tags/v0.16.0
54a6c6983bb1a3b8d76f4d6766c4d0f6a81022df tag refs/tags/v0.16.1
7b4ea5f6c8406aa9f1aa5b0515bd2ae95874c7f9 tag refs/tags/v0.16.2
4b079822a3fb0596007f4438cd4b5cab5f922693 tag refs/tags/v0.2.0
6e23a32acfd881a53cd7d2b3c899214e0e625297 tag refs/tags/v0.3.0
199e5473194f5413a54788a58a26b538b31963fa tag refs/tags/v0.4.0
9de6a17a83625ccd7ee078a8e9d841d04f797bfd tag refs/tags/v0.5.0
0afb7573da6f6fb699c96beaf1f63b84c8cc0443 tag refs/tags/v0.6.0
1ad18c7f107bf84b652c6d9f4a472ba3cb228d96 tag refs/tags/v0.6.1
a659986c62f41abf9ce4db631f61d4cbba94704f tag refs/tags/v0.6.2
4c0acea76575a4ac5a2e3a1ec47fa6f8732a0617 tag refs/tags/v0.6.3
8d270f99b4018f7e4962fa2e0d1a419e4681237a tag refs/tags/v0.7.0
bd518c5798c0d0bf6fd697f6256a11a74f5a03e4 tag refs/tags/v0.7.1
034a04856dd772e17b548bcad37c8b8d3b59a120 tag refs/tags/v0.8.0
9f6bfca644919c5e42cf62af2ca27393768a082b tag refs/tags/v0.8.1
ebac6fb1bb36ac020d0088a780a09d459b9e762b tag refs/tags/v0.8.2
84d877d70f9477d132de3bc13b1263206859c2b1 tag refs/tags/v0.8.4
6295900390109edd34520a556f0e18d2fa98e83b tag refs/tags/v0.8.5
acb9e3b67261a3cd920eda8c7bbd632c67dba808 tag refs/tags/v0.8.6
e6a0d978861019e813ef2baef721ebe40436f8ea tag refs/tags/v0.9.0
ff4928cf8b75a2459361da233fa98bb51cdd7f57 tag refs/tags/v1.0.0
d1d5cae88cd5433a11d30d4eb14d8087e8571b19 tag refs/tags/v1.0.1
2a75660de4b6d796d796c50bcad79b585c457911 tag refs/tags/v1.0.2
a97e1d05cd3be421191b2c433591e1433a4bf2a0 tag refs/tags/v1.0.3
4ba5d98892088903524fe48ac78206f21b659026 tag refs/tags/v1.1.0
e4325e9676982507b89f1aa93270db1db0c07a5d tag refs/tags/v1.2.0
052fd45c04bf62d5488632c1a988449d50171b41 tag refs/tags/v1.3.0
27ac765408c282b18572b21b9a8f7c7b8dc146a6 tag refs/tags/v1.4.0
97d80c96c665b652ad49dd43312ba8bd1f95a225 tag refs/tags/v1.5.0
e0bd59f0f8ad97d44684ec6839c2d85a46d22814 tag refs/tags/v1.6.0
b82dcab992bbc95c2f238fbc90f901c46d73c903 tag refs/tags/v1.7.0
e56a25999bbc43cd04a49d35b96a6ec6064682af tag refs/tags/v1.8.0
e4c0c9225c089ebdef709b2def7248c6aa6ee6c0 tag refs/tags/v1.9.0
e02d04b916175ac7a205a65adf0f76566e793588 commit refs/tags/v1.9.1
749d0dcb13fc9a685a5829b253b74699997f145a commit refs/tags/v1.9.2
4855e6452b5a9376619167632160ddea430c84c7 tag refs/tags/v1.9.3
230df3ba4d5074c8e7ccc64742415cc766eb26e3 tag refs/tags/v1.9.4
1a00a08c4a9427e1a37e19c2bfe0766fba6b9791 tag refs/tags/v2.0.0
6897093a063fad655ac8559d124570ce3f581ea0 tag refs/tags/v2.1.0
0cd0aaf73655575a390c9592be2671f6ca7afda1 tag refs/tags/v2.1.1
db2857ccf23bedc444bd8716d52cb58648a03a6f tag refs/tags/v2.1.2
6c5f6f6ded556adbc2aee0b93bb640933fb50a32 tag refs/tags/v2.1.3
433ea7d158964a5185f69db369d0e4f29a9651b3 tag refs/tags/v2.1.4
75fe7bf44ae0d6818991bc4e5228eaa0e0026230 tag refs/tags/v2.1.5
68e27be6c4a8ce73a2a7eb0f9b9470d580384d24 tag refs/tags/v2.2.0
15ca979d574a6d451bd3ee20e423a42c939b9d22 tag refs/tags/v2.3.0
ef0ed976c8411d4ef129f0544651dbd3559b59e4 tag refs/tags/v2.4.0
072a2a6f4a2bca93a87fb5e13fb3c6f03a6aef6c tag refs/tags/v2.5.0
df7b41455273ffb2187f7e9d4eb39516f62d4bdd tag refs/tags/v2.5.1
258f52a359d03bea6fd35fa0942d2f1dc23a697b tag refs/tags/v2.5.2
Internal path history checks (each MUST be empty):
EMPTY техническое задание.txt
EMPTY AGENTS.md
EMPTY opencode.jsonc
EMPTY .opencode
EMPTY docs/agent-team.md
EMPTY docs/architecture.md
EMPTY docs/decisions.md
EMPTY docs/README.md
EMPTY docs/implementation-plan.md
EMPTY docs/chesstempo_opening_trainer_TZ.md
EMPTY docs/research
EMPTY docs/design
EMPTY docs/qa
EMPTY docs/dev
EMPTY icons
EMPTY website
EMPTY .agents
EMPTY openspec
EMPTY scripts/dev/openspec.sh
EMPTY scripts/publish-github.sh

View file

@ -0,0 +1,11 @@
source_product_count=10 public_product_count=10 set_match=True
docs/screenshots/android.jpg
docs/screenshots/engine.jpg
docs/screenshots/game.png
docs/screenshots/library.png
docs/screenshots/looks.jpg
docs/screenshots/play.jpg
docs/screenshots/position-search.jpg
docs/screenshots/prep-openings.jpg
docs/screenshots/reference.jpg
docs/screenshots/review.png

View file

@ -0,0 +1 @@
Checked 8 Markdown files, examined 40 non-allowlisted links; 0 broken links.

View file

@ -0,0 +1,7 @@
DRY_RUN publication: PASS (no push)
Tree manifest equivalence (paths, modes, SHA-256): PASS
Filtered refs internal history checks: PASS
Public checker: Checked 8 Markdown files, examined 40 non-allowlisted links; 0 broken links.
Product gallery: source_product_count=10 public_product_count=10 set_match=True
Source refs before/after: IDENTICAL
Temporary clone removed by trap; no source commit/push/deploy

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,54 @@
$ nl -ba tasks.md excerpts
17 - [x] 2.2 Добавить в `AGENTS.md` ссылку на `docs/README.md`, а в `openspec/README.md` заменить общую навигационную матрицу ссылкой на индекс, сохранив собственные инварианты и OpenSpec lifecycle. Проверить, что нормативная таблица существует только в `docs/README.md`, а обе ссылки разрешаются checker-ом.
18
19 - [x] 2.3 Исправить `docs/architecture.md` и `docs/dev/desktop.md`: current Opening Trainer ведёт к `docs/design/opening-trainer-v2-spec.md`, текущие локали — девять `en/ru/de/fr/es/it/pt/uz/kk`; обновить правило организации `docs/dev/tasks.md` и добавить разные видимые slugs двум №40 без перенумерации. Проверить `git grep` отсутствие прежних current-указателей и совпадение языков с `androidApp/app/src/main/res/xml/locales_config.xml`; исторические упоминания шести локалей не переписывать.
20
21 - [x] 2.4 Добавить status banners/current-указатели к документам, включённым в индекс как superseded/history/WIP, включая прежний repertoire design и ранние Android/indirect docs, не меняя их исходные факты и QA-вердикты. Проверить индекс и checker: ни одна capability не имеет два документа, одновременно названных текущей нормой.
22
23 ## 3. Доказанные moves и доказательные изображения
24
25 - [x] 3.1 Выполнить `git mv web/README.md apps/web/README.md`; актуализировать статус по фактическому `apps/web`, обновить четыре найденные рабочие ссылки и сделать README самодостаточным без `docs/dev`, `docs/design`, `docs/research`. Проверить `test -f apps/web/README.md && test ! -e web/README.md`, checker и `git grep -n 'web/README\.md'` только с допустимыми историческими цитатами.
26
27 - [x] 3.2 Переименовать `docs/qa/report-{1,2,3}.md` через `git mv` в `vertical-slice-2026-10-18.md`, `large-chessbase-2026-10-19.md` и `position-search-2026-10-19.md`; сохранить содержимое, обновить ссылки и связать отчёты с индексом. Проверить отсутствие старых tracked путей, checker и совпадение текста до/после.
28
29 - [x] 3.3 Перенести `docs/implementation-plan.md` в `docs/research/implementation-plan-2026-10-17.md` с history banner/current-указателем, обновить ссылки; сохранить старый путь в internal-списке `scripts/publish-github.sh` для фильтрации истории. Проверить checker, `git grep`, `bash -n scripts/publish-github.sh` и наличие нового документа без корневого прежнего файла.
30
31 - [x] 3.4 Перенести три PNG `repertoire-layout` и два PNG `repertoire-practice-flow` из `docs/screenshots/` в одноимённые каталоги соответствующих QA-отчётов, обновить ровно пять рабочих ссылок. Сверить SHA-256 до/после, сохранить историческое предупреждение отчёта и проверить, что в `docs/screenshots/` остались ровно десять product images, включая AppStream paths.
32
33 - [x] 3.5 Связать в `docs/README.md` задачу 27 с принятой спецификацией B и отдельной реальной QA; B1–B5 оставить в `docs/design/task-27/`. В `docs/qa/task-27-functional-2026-11-27.md` добавить ссылки/подписи к `summary-player-carlsen.png` (сценарий 12), `player-mode-smeets.png` (сценарий 13) и `source-changed.png` (сценарий 24, fivechg 2/5), не смешивая QA46 source-change 2/3. Проверить SHA-256 неизменность всех KEEP-изображений и checker новых ссылок.
51 ## 6. Сквозные автоматические проверки
52
53 - [x] 6.1 Выполнить checker на всём исходном дереве и `git grep` для каждого старого пути; все существующие ссылки разрешаются, а исключения ограничены документированными историческими внешними артефактами. Выполнить `git diff --check` и повторить stdlib tests и сохранить фактические выводы/exit codes в evidence-каталоге.
54
55 - [x] 6.2 Выполнить `cargo fmt --all --check`, `cargo clippy --workspace --all-targets --locked -- -D warnings`, `cargo test --workspace --locked`, затем `cargo fmt --manifest-path website/server/Cargo.toml --check`, `cargo clippy --manifest-path website/server/Cargo.toml --all-targets --locked -- -D warnings` и `cargo test --manifest-path website/server/Cargo.toml --locked`. Записать реальные итоги, ignored/unavailable отдельно; прежние QA-результаты не подставлять.
56
57 - [x] 6.3 Создать одноразовый clone под `/tmp/opencode`, перенести туда весь текущий cleanup diff и untracked intended files, создать временный коммит внутри clone и направить его `main` на этот коммит; там выполнить `DRY_RUN=1 scripts/publish-github.sh`. Проверить эквивалентность временного дерева исходному cleanup worktree, записать исходный и временный SHA; проверить все filtered refs на отсутствие internal paths, checker public docs без исключений, сохранность product gallery и отсутствие push/deploy. Удалить только одноразовый clone после сохранения вывода; исходные HEAD, ветки и remotes не менять.
58
59 ## 7. Независимая приёмка и закрытие planning
60
61 - [ ] 7.1 Назначить tester, не автора cleanup, для независимой проверки: ровно одно удаление, каждый rename/move, SHA-256 изображений, current/history указатели, защищённые пути, production diff ограничен только comment-pointer в `apps/desktop/src/repertoire_ui.rs` и не меняет исполняемую логику, filtered public tree и реальные команды 6.1–6.3. Дополнить `docs/qa/repository-structure-2026-12-03.md` вердиктами PASS/FAIL/pending и ссылками на первичные доказательства; чтение diff не выдаётся за выполненные автоматические команды.
62
63 - [ ] 7.2 Обновить статус задачи №51 в `docs/dev/tasks.md` только по доказанному и `docs/decisions.md` лишь при новых фактических решениях владельца. Проверить checker, `git diff --check`, `scripts/dev/openspec.sh status --change organize-repository-structure --json` и `scripts/dev/openspec.sh validate --all --strict --no-interactive`; сохранить итог 4/4 planning artifacts и отдельно фактический implementation/QA статус.
$ nl -ba spec.md excerpts
77 ### Requirement: Актуальные указатели архитектуры и локалей
78 Current architecture/developer docs SHALL ссылаться на действующую спецификацию Opening Trainer v2 и указывать девять поддерживаемых локалей. Исторические описания прежних шести локалей SHALL сохраняться как история. Источник: подтверждённая инвентаризация и `docs/architecture.md`.
79
80 #### Scenario: Текущая архитектура ведёт к действующему тренажёру
81 - **WHEN** читатель переходит из раздела архитектуры о desktop Opening Trainer к спецификации UI
82 - **THEN** ссылка ведёт к `docs/design/opening-trainer-v2-spec.md`, а не к superseded handoff/design, и текущее описание соответствует выпущенному v2
83
84 #### Scenario: Девять локалей в current docs
85 - **WHEN** проверяются сведения о локалях в `docs/architecture.md` и текущем desktop developer guide
86 - **THEN** указаны девять языков `en`, `ru`, `fr`, `de`, `es`, `it`, `pt`, `uz`, `kk`, а утверждение о шести текущих локалях отсутствует
87
142 ### Requirement: Удаление только подтверждённого Python cache
143 Единственным удалением SHALL быть `website/shots/__pycache__/derive.cpython-314.pyc`. `.gitignore` SHALL исключать каталоги `__pycache__/` и файлы `*.pyc`; новые generated-артефакты не SHALL становиться tracked. Источник: подтверждённый delete candidate инвентаризации.
144
145 #### Scenario: Diff содержит ровно одно удаление
146 - **WHEN** ревьюер получает список удалений итогового diff
147 - **THEN** единственный deleted path — `website/shots/__pycache__/derive.cpython-314.pyc`, а перемещённые документы распознаются как renames/moves с сохранённым содержимым
148
149 #### Scenario: Python cache игнорируется повторно
150 - **WHEN** выполняются `git check-ignore -v` для нового `__pycache__/example.pyc` и `git ls-files` для tracked Python cache
151 - **THEN** ignore-правила срабатывают для каталога и `.pyc`, а tracked `.pyc` не остаётся

View file

@ -0,0 +1,3 @@
$ python3 -I scripts/dev/check-docs-links.py --root . <six exact historical allows>
Checked 171 Markdown files, examined 817 non-allowlisted links; 0 broken links.
exit=0

View file

@ -0,0 +1,7 @@
$ python3 -I -m unittest discover -s scripts/dev -p test_check_docs_links.py
.............
----------------------------------------------------------------------
Ran 13 tests in 0.005s
OK
exit=0

View file

@ -0,0 +1,26 @@
$ python3 -I scripts/dev/check-docs-links.py --root . <six exact historical allows>
Checked 171 Markdown files, examined 823 non-allowlisted links; 0 broken links.
exit=0
$ git diff --check HEAD
exit=0
$ scripts/dev/openspec.sh list --json
npm notice run npx
npm notice run 'openspec' list --json
{
"changes": [
{
"name": "organize-repository-structure",
"completedTasks": 21,
"totalTasks": 23,
"lastModified": "2026-12-03T15:03:28.050Z",
"status": "in-progress"
}
],
"root": {
"path": "/tmp/opencode/chesspenguin-repository-structure",
"source": "nearest"
}
}
exit=0

View file

@ -0,0 +1,19 @@
$ git diff --find-renames=10% --name-status HEAD -- web/README.md apps/web/README.md
R021 web/README.md apps/web/README.md
exit=0
$ git diff --find-renames=10% --diff-filter=D --name-only HEAD
website/shots/__pycache__/derive.cpython-314.pyc
exit=0
$ git show HEAD:web/README.md | sha256sum
9ff088c6e0312a7e7007fcf1a0275b277936354a3d5f1a17f6b8d04ae1cdeb87 -
exit=0
$ test -f apps/web/README.md && test ! -e web/README.md
exit=0
$ git log --follow --oneline -- web/README.md | head -5
30eac47 Web version: what the browser lacks is not offered, files dropped on the window, checks, docs
b30f963 Web version: a subproject to study running ChessPenguin in the browser
exit=0

View file

@ -0,0 +1,47 @@
$ git diff HEAD -- docs/dev/desktop.md
diff --git a/docs/dev/desktop.md b/docs/dev/desktop.md
index 28712c0..cecbdde 100644
--- a/docs/dev/desktop.md
+++ b/docs/dev/desktop.md
@@ -4,6 +4,7 @@ egui/eframe 0.36 (wgpu, Wayland/X11). Бинарник `chesspenguin`, app id `i
Общая визуальная система и правила новых экранов: [дизайн-система](../design/design-system.md).
Эталоны — библиотека, просмотр партии и игра с движком; тренировка дебюта не задаёт общий стиль.
+Действующая спецификация тренировки дебюта: [Opening Trainer v2](../design/opening-trainer-v2-spec.md); operational-инструкции — [dev-hooks](opening-trainer-v2-devhooks.md).
С 2026-10-30 интерфейс — библиотека `chesspenguin_app` (`src/lib.rs`), бинарник `src/main.rs` только
запускает её (`run_native`); та же библиотека — веб-версия (`apps/web`, `start_web`). Всё, что зависит от
@@ -63,4 +64,4 @@ XDG_CONFIG_HOME=/tmp/cfg CP_OPEN=11 CP_PLY=3 CP_ANALYZE=1 ./target/debug/chesspe
## Языки
-`i18n.rs`: английский текст — ключ, таблица на 6 языков (en по умолчанию, ru, fr, de, es, it). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.
+`i18n.rs`: английский текст — ключ, таблица на 9 языков (en по умолчанию, ru, de, fr, es, it, pt, uz, kk). Новые строки оборачивать в `tr("…")` / `trf("… {n}", &[("n", &x)])` и добавлять строку в `ROWS`; тест `all_used_keys_are_translated` ловит пропуски.
$ git diff HEAD -- docs/architecture.md
diff --git a/docs/architecture.md b/docs/architecture.md
index 7c47908..c029977 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -27,10 +27,10 @@ Wayland/X11, AccessKit), encoding_rs, serde. Полный список — `Carg
| `crates/online-games` | API Lichess и Chess.com: проба, поиск ника, скачивание в PGN-базу с возобновлением | — |
| `crates/play` | Игра с компьютером: Rodent IV/V, личности, книги, часы, предложение ничьей | — |
| `crates/maia` | Нейросетевой соперник Maia: веса, checkpoint, шкала силы | — |
-| `crates/trainer` | Дебютные репертуары: PGN-дерево, граф транспозиций, общий LearningItem, независимые попытки, SRS, сессии, аналитика и versioned JSON; Android сохраняет legacy API | `docs/design/repertoire-training.md` |
+| `crates/trainer` | Дебютные репертуары: PGN-дерево, граф транспозиций, общий LearningItem, независимые попытки, SRS, сессии, аналитика и versioned JSON; Android сохраняет legacy API | [docs/design/opening-trainer-v2-spec.md](design/opening-trainer-v2-spec.md) |
| `crates/releases` | Данные выпусков для обновления | — |
| `crates/mobile-api` | Общий API Android: сессия партии, движок, обзор, игра, тренировка, обновления | — |
-| `apps/desktop` | Приложение: библиотека `chesspenguin_app` (весь интерфейс, ~модули в `src/`) + тонкий `main.rs`; i18n на 6 языков | `docs/dev/desktop.md` |
+| `apps/desktop` | Приложение: библиотека `chesspenguin_app` (весь интерфейс, ~модули в `src/`) + тонкий `main.rs`; i18n на 9 языков: en, ru, de, fr, es, it, pt, uz, kk | `docs/dev/desktop.md` |
| `apps/web` | Та же библиотека в WebAssembly: `start(canvas)` → `start_web`; платформенный слой браузера | `docs/dev/web.md` |
| `androidApp` | Kotlin-оболочка (Gradle, Rust через `mobile-api`) | `androidApp/` |
| `website` | Сайт продукта, отдельный деплой | `website/README.md` |
@@ -106,7 +106,7 @@ desktop (egui, apps/desktop) │ web (wasm, apps/web) │ android (Kotlin + mobi
- Реализовано и выпущено: библиотека PGN/ChessBase, нотация с редактированием,
анализ и обзор партии, подготовка к сопернику, игра (Maia/Rodent), онлайн-партии,
свои базы, перевод комментариев, автоматическое обновление. История — `CHANGELOG.md`.
-- Desktop-тренажёр дебютов (α): с 2.4.0 — упрощённый UI (`repertoire_ui.rs`, `opening_session.rs`,
+- Desktop-тренажёр дебютов (α): действующая UI-спецификация — [docs/design/opening-trainer-v2-spec.md](design/opening-trainer-v2-spec.md); с 2.4.0 — упрощённый UI (`repertoire_ui.rs`, `opening_session.rs`,
`opening_lines.rs`, `opening_layout.rs`) поверх ядра `crates/trainer/src/repertoire`: общая SRS-модель
по `(профиль, FEN4, UCI)`, дневное занятие (к повторению + до 10 новых), «Повторить всё подряд»,
тренировка ветки; режимы, параметры контекста и дашборд из UI удалены, формат хранения не менялся.

View file

@ -0,0 +1,138 @@
$ scripts/dev/openspec.sh validate --all --strict --no-interactive
npm notice run npx
npm notice run 'openspec' validate --all --strict --no-interactive
✓ change/organize-repository-structure
Totals: 1 passed, 0 failed (1 items)
exit=0
$ scripts/dev/openspec.sh status --change organize-repository-structure --json
npm notice run npx
npm notice run 'openspec' status --change organize-repository-structure --json
{
"changeName": "organize-repository-structure",
"schemaName": "spec-driven",
"planningHome": {
"kind": "repo",
"root": "/tmp/opencode/chesspenguin-repository-structure",
"changesDir": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes",
"defaultSchema": "spec-driven"
},
"changeRoot": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure",
"artifactPaths": {
"proposal": {
"outputPath": "proposal.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/proposal.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/proposal.md"
]
},
"specs": {
"outputPath": "specs/**/*.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/specs/**/*.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/specs/repository-governance/spec.md"
]
},
"design": {
"outputPath": "design.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/design.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/design.md"
]
},
"tasks": {
"outputPath": "tasks.md",
"resolvedOutputPath": "/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/tasks.md",
"existingOutputPaths": [
"/tmp/opencode/chesspenguin-repository-structure/openspec/changes/organize-repository-structure/tasks.md"
]
}
},
"isPlanningComplete": true,
"isComplete": true,
"applyRequires": [
"tasks"
],
"nextSteps": [
"All planning artifacts are complete. Run openspec instructions apply --change \"organize-repository-structure\" --json to inspect implementation progress."
],
"actionContext": {
"mode": "repo-local",
"sourceOfTruth": "repo",
"planningArtifacts": [
"proposal",
"specs",
"design",
"tasks"
],
"linkedContext": [],
"allowedEditRoots": [
"/tmp/opencode/chesspenguin-repository-structure"
],
"requiresAffectedAreaSelection": false,
"constraints": [
"Repo-local change artifacts and implementation edits are scoped to this project."
]
},
"artifacts": [
{
"id": "proposal",
"outputPath": "proposal.md",
"status": "done",
"requires": []
},
{
"id": "specs",
"outputPath": "specs/**/*.md",
"status": "done",
"requires": [
"proposal"
]
},
{
"id": "design",
"outputPath": "design.md",
"status": "done",
"requires": [
"proposal"
]
},
{
"id": "tasks",
"outputPath": "tasks.md",
"status": "done",
"requires": [
"specs",
"design"
]
}
],
"root": {
"path": "/tmp/opencode/chesspenguin-repository-structure",
"source": "nearest"
}
}
exit=0
$ scripts/dev/openspec.sh list --json
npm notice run npx
npm notice run 'openspec' list --json
{
"changes": [
{
"name": "organize-repository-structure",
"completedTasks": 21,
"totalTasks": 23,
"lastModified": "2026-12-03T15:03:28.050Z",
"status": "in-progress"
}
],
"root": {
"path": "/tmp/opencode/chesspenguin-repository-structure",
"source": "nearest"
}
}
exit=0
$ git diff --check HEAD
exit=0

View file

@ -0,0 +1,31 @@
CHANGED EXISTING
docs/dev/desktop.md
docs/qa/repository-structure-2026-12-03.md
docs/qa/repository-structure-2026-12-03/independent-publication-dry-run.log
docs/qa/repository-structure-2026-12-03/independent-publication-effective.manifest
docs/qa/repository-structure-2026-12-03/independent-publication-filter-branch.log
docs/qa/repository-structure-2026-12-03/independent-publication-filtered-refs.txt
docs/qa/repository-structure-2026-12-03/independent-publication-source.manifest
openspec/changes/organize-repository-structure/design.md
openspec/changes/organize-repository-structure/specs/repository-governance/spec.md
openspec/changes/organize-repository-structure/tasks.md
ADDED
docs/qa/repository-structure-2026-12-03/independent-final-checks.txt
docs/qa/repository-structure-2026-12-03/independent-publication-attempts.txt
docs/qa/repository-structure-2026-12-03/independent-publication-public-gallery.txt
docs/qa/repository-structure-2026-12-03/independent-publication-public-links.txt
docs/qa/repository-structure-2026-12-03/independent-publication-result.txt
docs/qa/repository-structure-2026-12-03/independent-requirement-references.txt
docs/qa/repository-structure-2026-12-03/independent-retest-checker-full.txt
docs/qa/repository-structure-2026-12-03/independent-retest-checker-tests.txt
docs/qa/repository-structure-2026-12-03/independent-retest-iq01.txt
docs/qa/repository-structure-2026-12-03/independent-retest-iq02-diff.txt
docs/qa/repository-structure-2026-12-03/independent-retest-openspec-git.txt
docs/qa/repository-structure-2026-12-03/independent-retest-publication-delta.txt
docs/qa/repository-structure-2026-12-03/independent-source-refs-after.txt
docs/qa/repository-structure-2026-12-03/independent-source-refs-before.sha256
docs/qa/repository-structure-2026-12-03/independent-task-counts.txt
REMOVED
UNEXPECTED_PUBLIC_CHANGES= []
PATHS_OUTSIDE_FILTERED_DOCS_DEV_QA_OR_OPENSPEC= []
NOTE: apps/web/README.md, examples/README.md and pyc are baseline publication inputs already present in previous accepted run, not post-IQ fixes.

View file

@ -0,0 +1,98 @@
f28958b19236d61755a5b86fb4f1ae60628d5120 refs/heads/chore/openspec-hybrid
d50f297eb56c7d3fa4855f93823ca6aa6565e3aa refs/heads/chore/repository-structure
5e3d1ead3fe58ed708cd52a1d388b8636a88a3b1 refs/heads/feature/android-clipboard-pgn
7ad9a79caf245f9b386edfc724a6284071c1bd74 refs/heads/feature/android-opponent-prep
a0051859dbc060c817454403fb9b87a43e66e14f refs/heads/feature/android-review-button
040ad2d1fa5f8c07750224175a532387fcdfa113 refs/heads/feature/iphone-app
f425e3abc26ac754e2a91c1bab4ca488155ee8d7 refs/heads/feature/opening-repertoire-training
633446207138d644e8719525ff553211ac233ec6 refs/heads/feature/selected-games-review
fd2fbd9b2a828dd30572aa00eb7ae1015acb1a81 refs/heads/feature/settings-click-outside
d9b52cc27d59fb51247fc4895a5a4651587ec1a9 refs/heads/feature/starter-repertoires
8c430f1eaf8af154ab4b33999d7d422d2cc0fd03 refs/heads/feature/training-pgn-annotations-and-variations
a37c6a78f451c82f665d7908bd927460c088a863 refs/heads/main
69b501800a26b6ee97bbd99200514bb46df097ed refs/heads/marks-before-shallow
7891d5d0517a30b201fda6f16966b285d7634a54 refs/heads/opponent-prep
3803165491470a13d7595a859445f0435688ae41 refs/heads/prep-period-saved
0d56f2ab3a77a8c6503cec2b2a6b6839356d3c12 refs/heads/private
b5da315343d3d23be9636408a863afe0e77752af refs/heads/web-app
89269b8849d2034df704b45f79769e60561c4aaf refs/heads/worktree-agent-a635674bcaa3af196
d0004cfc372b28ac335527adb7140170cdbc1931 refs/remotes/github/HEAD
76fe3445c0bea2ef990ef5c04e31dd7a31b7bd97 refs/remotes/github/feature/opening-repertoire-training
d0004cfc372b28ac335527adb7140170cdbc1931 refs/remotes/github/main
a37c6a78f451c82f665d7908bd927460c088a863 refs/remotes/origin/HEAD
5e3d1ead3fe58ed708cd52a1d388b8636a88a3b1 refs/remotes/origin/feature/android-clipboard-pgn
7ad9a79caf245f9b386edfc724a6284071c1bd74 refs/remotes/origin/feature/android-opponent-prep
040ad2d1fa5f8c07750224175a532387fcdfa113 refs/remotes/origin/feature/iphone-app
f425e3abc26ac754e2a91c1bab4ca488155ee8d7 refs/remotes/origin/feature/opening-repertoire-training
05514c661e915f61b482b0584961cef1d0bf5fcd refs/remotes/origin/feature/opening-trainer-v2
633446207138d644e8719525ff553211ac233ec6 refs/remotes/origin/feature/selected-games-review
d9b52cc27d59fb51247fc4895a5a4651587ec1a9 refs/remotes/origin/feature/starter-repertoires
8c430f1eaf8af154ab4b33999d7d422d2cc0fd03 refs/remotes/origin/feature/training-pgn-annotations-and-variations
a37c6a78f451c82f665d7908bd927460c088a863 refs/remotes/origin/main
69b501800a26b6ee97bbd99200514bb46df097ed refs/remotes/origin/marks-before-shallow
7891d5d0517a30b201fda6f16966b285d7634a54 refs/remotes/origin/opponent-prep
3803165491470a13d7595a859445f0435688ae41 refs/remotes/origin/prep-period-saved
0d56f2ab3a77a8c6503cec2b2a6b6839356d3c12 refs/remotes/origin/private
b5da315343d3d23be9636408a863afe0e77752af refs/remotes/origin/web-app
dae2c132e448a573a53004451d18376f16016b49 refs/stash
56c6b57a49838009b3f892c390202d1f1d06c811 refs/tags/rodent-iv-0.33
668c1fd761349db7a9ff77a998d62cdace7cbae5 refs/tags/rodent-iv-0.33-2
f8a2c6ffa3abb880d627ad6fef780c426c3b3571 refs/tags/rodent-iv-0.33-3
50588ff67d7286195ae09874520afc90a415d85b refs/tags/v0.1.0
27f174a3875aa3f8c9c2cd3d47f39a10cf7e11e4 refs/tags/v0.10.0
d286486acdc59faf287d11d71debb5aaae940267 refs/tags/v0.11.0
971cd5537fbc594e1bd3f23d5855d86e3d4de9c7 refs/tags/v0.11.1
2222f168fb430a3ec13c13b268feded343df6a1e refs/tags/v0.12.0
e9bea9d75d0fad650d1f8c234eb646975d574210 refs/tags/v0.13.0
a471908418cce4d3c9d018995fc728911bc0ed4c refs/tags/v0.14.0
eb22278948843cd96904cfe3846c8cfa905d34f5 refs/tags/v0.15.0
4a29505c89ec3deb11d86d402b91a00ee8f113a4 refs/tags/v0.16.0
143f37323da969176dc682fb83ee62972ccaf641 refs/tags/v0.16.1
cb47a81afd0ca23a7a253f34eb4e86da94d9972a refs/tags/v0.16.2
42418a57c48e77a22367275fc740eaf3587e6744 refs/tags/v0.2.0
9c8b19f8dbec4faf98ab123abc4ef88b532afbfe refs/tags/v0.3.0
615e05e17c03dc9e296863a122a7d4c2256638c3 refs/tags/v0.4.0
48860503dadb3b5521588ae8835bf1c778bf9287 refs/tags/v0.5.0
e17b42f7ef84eadd9ee241df110ab696a1aa30c3 refs/tags/v0.6.0
a6ad303a91f20bb2082a9f3cb71c14094df8854d refs/tags/v0.6.1
c7ba390ab2d6c5c1a08cd24d68cc41555129ba96 refs/tags/v0.6.2
e9b42386e9818568e561abddf3cc5d81e135189a refs/tags/v0.6.3
9030dac2d66ff25fd9b4a62e57d1f8b92e5e1ffd refs/tags/v0.7.0
1f965b80a6fcc53bdfec7d7487cf1b5dc6870099 refs/tags/v0.7.1
036d164a3ebf31a945eb006288b9beb8769db013 refs/tags/v0.8.0
64efcf2399947cc343bed8a3452bb99d45dea31a refs/tags/v0.8.1
791303b3576cba53734823a03fa02c720e991ee3 refs/tags/v0.8.2
f8d04a676ab51e40e67327a18018536a7a91ff56 refs/tags/v0.8.4
a785c467dc1d9a7cab56a54b0b5d4817ed9058d1 refs/tags/v0.8.5
bda00a146e80b58821d60417d06bcece495b055e refs/tags/v0.8.6
48c635e462f1f870dca9a2873c7eed6ee0b5b87d refs/tags/v0.9.0
96dbfe2abcb8b6550ba47c673cc5d6e9549d94ed refs/tags/v1.0.0
4cacf051bb18d128223b6541bee4e6f9210b6270 refs/tags/v1.0.1
57396090b20bc884aaa2f22ef35bb6e2c9008ab0 refs/tags/v1.0.2
add01d1c72784ce7bf6eee3fa4881caa34441849 refs/tags/v1.0.3
e9b2d5b20757d2d303ed3f0614a23213a53eb5bb refs/tags/v1.1.0
600169415acab39d26d4b1c92df5432c3ec79bc6 refs/tags/v1.2.0
501b252c94856ceecf6e21beb29bc3c4f90a331c refs/tags/v1.3.0
0a30297b11eae390c443ed2783c2a1f1022872e0 refs/tags/v1.4.0
e230e522ea9423b7c74ad5283efebfff2afe989b refs/tags/v1.5.0
aa217267a6b3cae23e4227b77f1878aca47ec7dd refs/tags/v1.6.0
040ce10400d735c736596eabe0ee678eb6e0158f refs/tags/v1.7.0
ec589b3c0bd46166e8e20f175dd56d257f40c50d refs/tags/v1.8.0
c6041faea8405abe69376987f5b6a1984d6dfdb0 refs/tags/v1.9.0
684195f32c02adf078d141feb9431d55288407ae refs/tags/v1.9.1
27cffc28ceee207587fee4568745755cea084be5 refs/tags/v1.9.2
7bb614bd51ba0f5e4da7abdb50786db8338fe9aa refs/tags/v1.9.3
8b6a4c9c607823e4beac033b6ef8c9c7f0941846 refs/tags/v1.9.4
f5e390c1560787642bb84ac6fc962f3261ef7171 refs/tags/v2.0.0
11ccb039940d3011476e3044b38a333a5b4d3f4d refs/tags/v2.1.0
57d271d36c33a17cfa1ba2259b8dfd5353b40e71 refs/tags/v2.1.1
41b67c41b8be414f1bdbb794b428f9e63ad575e3 refs/tags/v2.1.2
bb776869b32762789092949ed7c66337d665c54d refs/tags/v2.1.3
e42d5d67cccd93333d9e438b8ce1c6d8d90b5554 refs/tags/v2.1.4
1ebb1a92ffaa0746970ecf7fa554b007b8c2a31d refs/tags/v2.1.5
37106546347e82307ee03205d35f61058c56b072 refs/tags/v2.2.0
76a964bbddc6041495ef7706ae1f4aff783e8567 refs/tags/v2.3.0
86fa1894adbc0db737d690eb75d2b2d357f0d747 refs/tags/v2.4.0
0af6f85680742fb665060164d44fef25532be7a4 refs/tags/v2.5.0
81dc40283b67cf9a917e226cb7d5b1dde651aded refs/tags/v2.5.1
3c39852282701c8b479d52004753a88cd1effa46 refs/tags/v2.5.2

View file

@ -0,0 +1 @@
3f8b1609ed9d5af55b6d9cfd21220ac4b8a6708dd92f67e823d5228fdb80effd docs/qa/repository-structure-2026-12-03/independent-source-refs-before.txt

View file

@ -0,0 +1,98 @@
f28958b19236d61755a5b86fb4f1ae60628d5120 refs/heads/chore/openspec-hybrid
d50f297eb56c7d3fa4855f93823ca6aa6565e3aa refs/heads/chore/repository-structure
5e3d1ead3fe58ed708cd52a1d388b8636a88a3b1 refs/heads/feature/android-clipboard-pgn
7ad9a79caf245f9b386edfc724a6284071c1bd74 refs/heads/feature/android-opponent-prep
a0051859dbc060c817454403fb9b87a43e66e14f refs/heads/feature/android-review-button
040ad2d1fa5f8c07750224175a532387fcdfa113 refs/heads/feature/iphone-app
f425e3abc26ac754e2a91c1bab4ca488155ee8d7 refs/heads/feature/opening-repertoire-training
633446207138d644e8719525ff553211ac233ec6 refs/heads/feature/selected-games-review
fd2fbd9b2a828dd30572aa00eb7ae1015acb1a81 refs/heads/feature/settings-click-outside
d9b52cc27d59fb51247fc4895a5a4651587ec1a9 refs/heads/feature/starter-repertoires
8c430f1eaf8af154ab4b33999d7d422d2cc0fd03 refs/heads/feature/training-pgn-annotations-and-variations
a37c6a78f451c82f665d7908bd927460c088a863 refs/heads/main
69b501800a26b6ee97bbd99200514bb46df097ed refs/heads/marks-before-shallow
7891d5d0517a30b201fda6f16966b285d7634a54 refs/heads/opponent-prep
3803165491470a13d7595a859445f0435688ae41 refs/heads/prep-period-saved
0d56f2ab3a77a8c6503cec2b2a6b6839356d3c12 refs/heads/private
b5da315343d3d23be9636408a863afe0e77752af refs/heads/web-app
89269b8849d2034df704b45f79769e60561c4aaf refs/heads/worktree-agent-a635674bcaa3af196
d0004cfc372b28ac335527adb7140170cdbc1931 refs/remotes/github/HEAD
76fe3445c0bea2ef990ef5c04e31dd7a31b7bd97 refs/remotes/github/feature/opening-repertoire-training
d0004cfc372b28ac335527adb7140170cdbc1931 refs/remotes/github/main
a37c6a78f451c82f665d7908bd927460c088a863 refs/remotes/origin/HEAD
5e3d1ead3fe58ed708cd52a1d388b8636a88a3b1 refs/remotes/origin/feature/android-clipboard-pgn
7ad9a79caf245f9b386edfc724a6284071c1bd74 refs/remotes/origin/feature/android-opponent-prep
040ad2d1fa5f8c07750224175a532387fcdfa113 refs/remotes/origin/feature/iphone-app
f425e3abc26ac754e2a91c1bab4ca488155ee8d7 refs/remotes/origin/feature/opening-repertoire-training
05514c661e915f61b482b0584961cef1d0bf5fcd refs/remotes/origin/feature/opening-trainer-v2
633446207138d644e8719525ff553211ac233ec6 refs/remotes/origin/feature/selected-games-review
d9b52cc27d59fb51247fc4895a5a4651587ec1a9 refs/remotes/origin/feature/starter-repertoires
8c430f1eaf8af154ab4b33999d7d422d2cc0fd03 refs/remotes/origin/feature/training-pgn-annotations-and-variations
a37c6a78f451c82f665d7908bd927460c088a863 refs/remotes/origin/main
69b501800a26b6ee97bbd99200514bb46df097ed refs/remotes/origin/marks-before-shallow
7891d5d0517a30b201fda6f16966b285d7634a54 refs/remotes/origin/opponent-prep
3803165491470a13d7595a859445f0435688ae41 refs/remotes/origin/prep-period-saved
0d56f2ab3a77a8c6503cec2b2a6b6839356d3c12 refs/remotes/origin/private
b5da315343d3d23be9636408a863afe0e77752af refs/remotes/origin/web-app
dae2c132e448a573a53004451d18376f16016b49 refs/stash
56c6b57a49838009b3f892c390202d1f1d06c811 refs/tags/rodent-iv-0.33
668c1fd761349db7a9ff77a998d62cdace7cbae5 refs/tags/rodent-iv-0.33-2
f8a2c6ffa3abb880d627ad6fef780c426c3b3571 refs/tags/rodent-iv-0.33-3
50588ff67d7286195ae09874520afc90a415d85b refs/tags/v0.1.0
27f174a3875aa3f8c9c2cd3d47f39a10cf7e11e4 refs/tags/v0.10.0
d286486acdc59faf287d11d71debb5aaae940267 refs/tags/v0.11.0
971cd5537fbc594e1bd3f23d5855d86e3d4de9c7 refs/tags/v0.11.1
2222f168fb430a3ec13c13b268feded343df6a1e refs/tags/v0.12.0
e9bea9d75d0fad650d1f8c234eb646975d574210 refs/tags/v0.13.0
a471908418cce4d3c9d018995fc728911bc0ed4c refs/tags/v0.14.0
eb22278948843cd96904cfe3846c8cfa905d34f5 refs/tags/v0.15.0
4a29505c89ec3deb11d86d402b91a00ee8f113a4 refs/tags/v0.16.0
143f37323da969176dc682fb83ee62972ccaf641 refs/tags/v0.16.1
cb47a81afd0ca23a7a253f34eb4e86da94d9972a refs/tags/v0.16.2
42418a57c48e77a22367275fc740eaf3587e6744 refs/tags/v0.2.0
9c8b19f8dbec4faf98ab123abc4ef88b532afbfe refs/tags/v0.3.0
615e05e17c03dc9e296863a122a7d4c2256638c3 refs/tags/v0.4.0
48860503dadb3b5521588ae8835bf1c778bf9287 refs/tags/v0.5.0
e17b42f7ef84eadd9ee241df110ab696a1aa30c3 refs/tags/v0.6.0
a6ad303a91f20bb2082a9f3cb71c14094df8854d refs/tags/v0.6.1
c7ba390ab2d6c5c1a08cd24d68cc41555129ba96 refs/tags/v0.6.2
e9b42386e9818568e561abddf3cc5d81e135189a refs/tags/v0.6.3
9030dac2d66ff25fd9b4a62e57d1f8b92e5e1ffd refs/tags/v0.7.0
1f965b80a6fcc53bdfec7d7487cf1b5dc6870099 refs/tags/v0.7.1
036d164a3ebf31a945eb006288b9beb8769db013 refs/tags/v0.8.0
64efcf2399947cc343bed8a3452bb99d45dea31a refs/tags/v0.8.1
791303b3576cba53734823a03fa02c720e991ee3 refs/tags/v0.8.2
f8d04a676ab51e40e67327a18018536a7a91ff56 refs/tags/v0.8.4
a785c467dc1d9a7cab56a54b0b5d4817ed9058d1 refs/tags/v0.8.5
bda00a146e80b58821d60417d06bcece495b055e refs/tags/v0.8.6
48c635e462f1f870dca9a2873c7eed6ee0b5b87d refs/tags/v0.9.0
96dbfe2abcb8b6550ba47c673cc5d6e9549d94ed refs/tags/v1.0.0
4cacf051bb18d128223b6541bee4e6f9210b6270 refs/tags/v1.0.1
57396090b20bc884aaa2f22ef35bb6e2c9008ab0 refs/tags/v1.0.2
add01d1c72784ce7bf6eee3fa4881caa34441849 refs/tags/v1.0.3
e9b2d5b20757d2d303ed3f0614a23213a53eb5bb refs/tags/v1.1.0
600169415acab39d26d4b1c92df5432c3ec79bc6 refs/tags/v1.2.0
501b252c94856ceecf6e21beb29bc3c4f90a331c refs/tags/v1.3.0
0a30297b11eae390c443ed2783c2a1f1022872e0 refs/tags/v1.4.0
e230e522ea9423b7c74ad5283efebfff2afe989b refs/tags/v1.5.0
aa217267a6b3cae23e4227b77f1878aca47ec7dd refs/tags/v1.6.0
040ce10400d735c736596eabe0ee678eb6e0158f refs/tags/v1.7.0
ec589b3c0bd46166e8e20f175dd56d257f40c50d refs/tags/v1.8.0
c6041faea8405abe69376987f5b6a1984d6dfdb0 refs/tags/v1.9.0
684195f32c02adf078d141feb9431d55288407ae refs/tags/v1.9.1
27cffc28ceee207587fee4568745755cea084be5 refs/tags/v1.9.2
7bb614bd51ba0f5e4da7abdb50786db8338fe9aa refs/tags/v1.9.3
8b6a4c9c607823e4beac033b6ef8c9c7f0941846 refs/tags/v1.9.4
f5e390c1560787642bb84ac6fc962f3261ef7171 refs/tags/v2.0.0
11ccb039940d3011476e3044b38a333a5b4d3f4d refs/tags/v2.1.0
57d271d36c33a17cfa1ba2259b8dfd5353b40e71 refs/tags/v2.1.1
41b67c41b8be414f1bdbb794b428f9e63ad575e3 refs/tags/v2.1.2
bb776869b32762789092949ed7c66337d665c54d refs/tags/v2.1.3
e42d5d67cccd93333d9e438b8ce1c6d8d90b5554 refs/tags/v2.1.4
1ebb1a92ffaa0746970ecf7fa554b007b8c2a31d refs/tags/v2.1.5
37106546347e82307ee03205d35f61058c56b072 refs/tags/v2.2.0
76a964bbddc6041495ef7706ae1f4aff783e8567 refs/tags/v2.3.0
86fa1894adbc0db737d690eb75d2b2d357f0d747 refs/tags/v2.4.0
0af6f85680742fb665060164d44fef25532be7a4 refs/tags/v2.5.0
81dc40283b67cf9a917e226cb7d5b1dde651aded refs/tags/v2.5.1
3c39852282701c8b479d52004753a88cd1effa46 refs/tags/v2.5.2

View file

@ -0,0 +1,6 @@
checked_x=21
checked_X=0
unchecked=2
total=23
task_7_1=1
task_7_2=1

View file

@ -0,0 +1,55 @@
$ git diff --find-renames=10% --name-status HEAD -- web/README.md apps/web/README.md
R021 web/README.md apps/web/README.md
$ git diff --find-renames=10% --summary HEAD -- web/README.md apps/web/README.md
rename {web => apps/web}/README.md (21%)
$ git diff HEAD -- web/README.md apps/web/README.md
diff --git a/apps/web/README.md b/apps/web/README.md
new file mode 100644
index 0000000..6ea49e4
--- /dev/null
+++ b/apps/web/README.md
@@ -0,0 +1,18 @@
+# ChessPenguin в браузере (подпроект)
+
+Цель — версия программы, которая запускается в браузере на компьютере, как настольная: открыть PGN и
+ChessBase, смотреть партии, анализировать движком, разбирать партию с !! и !. Телефоны и планшеты
+получают страницу о приложениях.
+
+Статус: **этап 2 реализован** (2026-10-30). На этапе 1 программа была собрана для браузера и получила
+открытие PGN кнопкой и перетаскиванием, встроенные примеры, экран партии, ходы на доске, скачивание PGN
+и страницу для телефонов и планшетов. Этап 2 добавил Stockfish 19 по согласию пользователя, живой
+анализ, разбор партии в Web Worker с теми же оценками, что на компьютере, «Мои партии», хранение данных
+в браузере, работу с файлами прошлого посещения и сочетания клавиш.
+
+- Точка входа WebAssembly — [`src/lib.rs`](src/lib.rs); страница `/app/` — [`page/`](page/).
+- Платформенный слой общего интерфейса — [`../desktop/src/platform/`](../desktop/src/platform/).
+- Транспорт UCI через Web Worker — [`../../crates/uci/src/worker.rs`](../../crates/uci/src/worker.rs).
+- Сборка — [`build.sh`](build.sh) → `target/web/app/`; проверки браузерных сценариев — [`check/`](check/).
+
+Из корня репозитория сборка запускается командой `apps/web/build.sh`.
diff --git a/web/README.md b/web/README.md
deleted file mode 100644
index 35c9b25..0000000
--- a/web/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# ChessPenguin в браузере (подпроект)
-
-Цель — версия программы, которая запускается в браузере на компьютере, как настольная: открыть PGN и
-ChessBase, смотреть партии, анализировать движком, разбирать партию с !! и !. Телефоны и планшеты
-получают страницу о приложениях (решения владельца — `docs/decisions.md`, «Веб-версия»).
-
-Статус: **этап 1 сделан** (2026-10-30, ветка `web-app`): программа собирается для браузера и работает в
-Firefox — открыть PGN кнопкой и перетаскиванием, примеры, партия, ходы, скачать PGN; страница для
-телефонов и планшетов. Дальше — движок, разбор, «Мои партии» (этап 2). Задача — `docs/dev/tasks.md` §22.
-
-- Архитектура, сборка, проверки, что дальше — `docs/dev/web.md` (разработчик).
-- Код: `apps/web` (точка входа, страница `/app/`, `build.sh`, проверки в `check/`), слой платформы
- `apps/desktop/src/platform`, транспорт движка в браузере `crates/uci/src/worker.rs`.
-- Интерфейс — `docs/design/web-version.md` (дизайнер).
-- Концепция, аналоги — `docs/research/web-version.md` (аналитик); техническое исследование —
- `docs/research/web-version-tech.md`.
-
-Сборка: `apps/web/build.sh` → `target/web/app/` (подробности — `docs/dev/web.md` §5).

View file

@ -0,0 +1,11 @@
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
Running unittests src/main.rs (website/server/target/debug/deps/chesspenguin_site-067248c22fc760ec)
running 4 tests
test site::tests::sizes_and_dates ... ok
test telegram::tests::flags_and_places ... ok
test tests::bots_and_local_addresses ... ok
test site::tests::the_script_gets_every_text_it_uses ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Some files were not shown because too many files have changed in this diff Show more