build-release
CommandBuild release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…
Rebuild the test infobase to the effective snapshot — optional DT data baseline, then the current cf + cfe sources from git
> /plugin marketplace add comol/ai_rules_1c> /plugin install 1c-rules@1c-rules
description: Rebuild the test infobase to the effective snapshot — optional DT data baseline, then the current cf + cfe sources from git argumentHint: "[<path-to-snapshot.dt>|nodata]"
Bring the test infobase defined in `.dev.env` to the **effective snapshot**: a data baseline from a `.dt` (optional) plus the current configuration sources from git — main configuration and every extension from `EXTENSION_NAMES`. Use it when the test base drifted (broken by experiments, stale data, wrong config state) and you want a reproducible state before the next develop-deploy cycle.
First resolve the project and full-snapshot inventory via `content/rules/extension-workspace.md`, including when `EXTENSION_NAMES` is empty. Preflight their source identities/completeness before a destructive data restore. A `.dt` may bring its own extension state: verify relevant installed/active extensions after restore and before claiming the requested runtime snapshot. Do not silently remove extras. Preserve `EXTENSION_NAME` as the ordinary single-target default; it cannot narrow this full restore.
Apply that rule's **Preserve extension identity** contract against the selected known revision/backup: restoring an existing extension does not authorize reinitializing it or regenerating metadata identifiers/borrowed links. Resolve unexpected identity differences before the affected load/apply. After restore, recheck source-root/target and graph-layer mappings and affected evidence; old load/apply/index results are not automatically evidence of the restored state.
Parameters, classes and defaults — `content/rules/dev-standards-env.md §1`; Defaulted keys are never asked for. Blocking keys: `PLATFORM_PATH`, `INFOBASE_PATH`. Also read: `INFOBASE_KIND`, `IB_USER` / `IB_PASSWORD`, `DT_SNAPSHOT_PATH`, `EXTENSION_NAMES`, `EXTENSIONS_PATH`, `EXPORT_PATH`, `LOG_PATH`, `IBCMD_CONFIG`.
**Dev/test only — hard requirement.** This command overwrites data and forcibly terminates sessions. The target must be an explicitly identified dev/test infobase: `.dev.env` `INFOBASE_ROLE=dev|test` identifies it (canon `content/rules/dev-standards-env.md → INFOBASE_ROLE`); if the role is empty and the current context does not establish it, stop and ask the user to confirm the target. Never run it against production — `INFOBASE_ROLE=prod` is a refusal.
Resolve the baseline: explicit `.dt` path argument → `DT_SNAPSHOT_PATH` from `.dev.env` → none. The `nodata` argument forces "none" even when `DT_SNAPSHOT_PATH` is filled.
When a baseline `.dt` is resolved:
1. **Offer a rollback point first**: dump the current base with the `db-ops` script `db-dump-dt.ps1` (canon — `content/skills/1c-metadata-manage/docs/db-manage.md §9`). The user may decline; record the decline in the report. 2. **Ask for explicit confirmation** — loading a `.dt` completely overwrites the base, configuration *and* data (irreversible; §10 of the same doc). 3. Load via `db-load-dt.ps1` (the 1C-infobase-operations hard gate — `AGENTS.md → Skills and Subagents`; no ad-hoc command lines). If the base is busy, follow §10 of the same doc (free the base / `-UnlockCode`), not blind retries.
When no baseline is resolved — skip this step and state in the report that only the configuration was refreshed.
Report in one line which git state is being deployed (`git rev-parse --short HEAD` + whether the working tree is dirty — deploying uncommitted changes is normal in development, but it must be visible in the report).
Then run the `/update1cbase` procedure (`content/commands/update1cbase.md` — single source of truth for the load / UpdateDBCfg command lines, tool selection, and the **Update retry loop**):
The retry loop (log-first, PID-scoped Configurator termination, fix-before-retry, 3 attempts) applies as written there. A `.dt` loaded in Step 1 already has its DB configuration in sync — the load in this step still runs, because the point of the command is to bring the base to the **git** state, which may be newer than the snapshot.
**Delta from a manifest.** When the `.dt` of Step 1 has a manifest beside it (`<dt>.manifest.json`, `content/skills/1c-ui-regression/docs/regression-stand.md`), its `sourceCommit` is an ancestor of `HEAD` and the main source root has no uncommitted changes, the main pass may use `/update1cbase git` over `<sourceCommit>..HEAD` instead of `full`; any other case stays `full`. Extensions are still loaded in full afterwards — a configuration load can reset their binding.
Extensions loaded from sources come up in safe mode, which silently disables their interception of object modules. When the checks that follow depend on it, set the properties per `content/rules/qa-testclient.md → Extensions under test: safe mode` and say so in the report.
Mandatory: the three-signal verdict of the `/update1cbase` procedure for the last launch of every pass — `{RESULT_PATH}` = `0`, exit code `0`, and a log whose success phrases are classified before error stems (`content/rules/designer-batch-checks.md → The verdict is three signals`); a bare "contains `Ошибка`" test is not a verdict.
Optional, only when already available in the session: one read-only `vcexecutecode` ping via `1c-data-mcp` to confirm the base opens and executes code (same read-only discipline as `verification-gates.md → Gate 3a`). Web-client login checks are UI testing —
Build release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…
Toggle the caveman communication style — set CAVEMAN (on|auto|off) in .dev.env for the whole project; on|off|auto persist,…
Check a 1C XML configuration dump for duplicate UUIDs, and optionally regenerate them
Check availability of 1C MCP servers and install/start the missing ones
Read-only check for available updates of the 1C MCP server images and of the 1c-rules ruleset, without pulling or installing…
Load the configuration into the test infobase from .dev.env and check the result in the 1C interface — QA MCP first, the web…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.