# Development Policies

> Revision 1 November 5, 2026

The woodger policies set out common principles for working with code, tests, documentation, and project maintenance. They help explain the reasons behind decisions and choose an approach suited to the current task. The documents are published here so that projects can refer to a shared source.

## How to use

The change policy is a useful starting point; the other documents can be selected according to the task. Examples for a particular language, framework, or application type illustrate the principles in that context. Their use in a project follows its needs and existing decisions.

| Change or Question | Politics |
| --- | --- |
| Do I need to make an edit and how can I limit the diff? | [Making changes](./change-policy.md) |
| Responsibilities and dependencies between parts of a project | [Architecture](./architecture.md) |
| Removing unused code | [Vitality of code](./code-liveness-policy.md) |
| Production comments | [Comments](./comment-style.md) |
| Comments in tests | [Comments in tests](./test-comment-style.md) |
| Visual code structure | [Code style](./code-style.md) |
| Names in code and runtime | [Naming](./naming-policy.md) |
| Scripts, build and test pipeline | [Scripts and assembly](./scripts-policy.md) |
| Reader tasks, document roles, and contract sources | [Documentation](./documentation-policy.md) |
| Observability and Instrumentation | [Metrics](./metrics-policy.md) |
| Reusable modules | [Isolation of abstractions](./abstraction-policy.md) |
| Selecting libraries | [Dependencies](./dependencies-policy.md) |
| Structure and sufficiency of tests | [Testing](./testing-policy.md) |

## Languages and platforms

Conventions for JavaScript, TypeScript, Node.js, Svelte, SvelteKit, and web interfaces are collected in [Languages and platforms](./languages-and-platforms.md). This document complements the shared principles with technology-specific guidance and explains their scope for Python projects.

## Standard limits

The policies set out working principles. A project's code, contracts, and documentation describe its particular architecture, APIs, data formats, URLs, configuration, infrastructure, and commands. Changes to those decisions are considered within a task for that project.

If there is a discrepancy, keep the current contract and report the conflict. The scope clarification is added to the overall standard rather than to a separate copy of the project policy. Explicit instructions from the owner regarding the current task take precedence.

## Justified exceptions

Exceptions to the standard's rules are allowed when justified. The justification must appear in a code comment next to the affected code. The comment must identify the rule and explain why an exception is justified at that location.

## Project connection

The project documentation uses the same link:

```md
Политики разработки: [единый стандарт woodger](https://woodger.org/development).
```

In the instructions for the agent, indicate the same entry point and the need to read the rules before work. Nearby there are links to the architecture and instructions of a specific repository. Local sections with copies of general policies are deleted after all project contracts have been migrated and incoming references have been corrected.

## Editions and sources

HTML pages and Markdown have the same source: the `content/development` files in the site repository. The Markdown of each page is available under the "Original Markdown" link. [Full standard](./all.md) allows you to read all policies in one request.

The change in normative meaning is accompanied by a new entry in [editorial histories](./revisions.md). Migrating documentation itself does not require massive renaming, formatting, or rewriting of working code.
