create-vibe-maestro 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +4 -4
- package/dist/cli/context-run.js +3 -2
- package/dist/cli/upgrade-run.js +10 -2
- package/dist/core/archive/limits.js +8 -0
- package/dist/core/archive/plan.js +39 -2
- package/dist/core/context.js +23 -9
- package/dist/core/doctor/git.js +1 -1
- package/dist/core/doctor/index.js +2 -0
- package/dist/core/doctor/memory-lag.js +79 -0
- package/dist/core/upgrade/index.js +2 -0
- package/dist/core/upgrade/releases.js +46 -2
- package/docs/ROADMAP.md +20 -2
- package/docs/USER_GUIDE.md +20 -13
- package/package.json +1 -1
- package/registry/baseline/0.4.4/project/.claude/rules/maestro.md +41 -0
- package/registry/baseline/0.4.4/project/maestro/templates/audit.md +31 -0
- package/registry/baseline/0.4.4/project/maestro/templates/handoff.md +29 -0
- package/registry/baseline/0.4.4/project/protocols/audit.md +74 -0
- package/registry/baseline/0.4.4/project/protocols/build.md +120 -0
- package/registry/baseline/0.4.4/project/protocols/completion.md +23 -0
- package/registry/baseline/0.4.4/project/protocols/handoff.md +18 -0
- package/templates/project/.claude/rules/maestro.md +2 -2
- package/templates/project/maestro/templates/audit.md +3 -3
- package/templates/project/maestro/templates/handoff.md +10 -3
- package/templates/project/protocols/audit.md +11 -8
- package/templates/project/protocols/build.md +1 -1
- package/templates/project/protocols/completion.md +2 -2
- package/templates/project/protocols/handoff.md +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,40 @@ All notable changes to Vibe Coding Maestro are documented here.
|
|
|
4
4
|
|
|
5
5
|
The project follows Semantic Versioning while prerelease interfaces may still change between beta versions.
|
|
6
6
|
|
|
7
|
+
## 0.4.5 — 2026-11-04
|
|
8
|
+
|
|
9
|
+
The sixth part of 0.4: ready for a week of real work. `context` counts in tokens and is checked in the middle of a slice too; `archive` shows what looks open in a section; `doctor` sees memory falling behind the code; check reports carry only what matters and a handoff keeps the numbers; a handoff says honestly what was checked and what got in the way. The set of project files does not change, and the text of the rules does not grow.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`doctor` sees memory falling behind the code**, from git only, as `info`, which never fails `--strict` or `preflight`. Commits outside `wiki/` are counted after the last commit that added a handoff, or after the commit that added `.maestro/manifest.json` while there are no handoffs. `memory-hot-behind`: the plan has a `current_slice`, `wiki/hot.md` does not name it, and there are 3 or more such commits. `memory-handoff-behind`: 10 or more. No `.git`, no anchor, a shallow clone or a git refusal: silent. A handoff that is not committed yet and is newer than the last commit silences both: `doctor` runs before that commit. The numbers are a hypothesis.
|
|
14
|
+
- **`archive` warns about open marks in a section.** UNKNOWN, OPEN_QUESTION, HYPOTHESIS, «не проверено», «открыто»: whole word, any case, in the heading or the text, outside code blocks; a findings line with nothing open does not count. The warning shows up to three lines of 100 characters, then «ещё N», and says what to do: closed — move it; open — first write it to `wiki/hot.md` or `wiki/icebox.md`, because the archive is not copied back. A word alone does not mean open, so nothing is refused.
|
|
15
|
+
- **Handoff sample:** a table `| Пункт | Чем проверено | Результат |`, where what the agent did not check itself is marked «со слов: кого» and never «прошло» without it; the line `Находки: critical N, high N, medium N, low N; открыто N.`; a new section `## Что мешало в работе`, one line or «нет». `protocols/completion.md` uses the same table, and a customer document claims no more than the table says.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **`context` thresholds are in tokens: 400 000 and 600 000.** The size of the session sets the price of a step, not its share of the window. A smaller window keeps the smaller of the two: `min(400 000, 40 % of the window)` and `min(600 000, 70 %)`, so 80 000 and 140 000 at a window of 200 000; `--window` follows the same rule. The numbers are a hypothesis from replaying real sessions.
|
|
20
|
+
- **The session size is checked in the middle of a slice too:** after a commit the agent runs `context`, and «пора в новую сессию» means a handoff now, with the slice left open. Before, `context` ran only after a closed slice, and sessions grew to the end of the window.
|
|
21
|
+
- **Check reports carry only critical, high and open findings.** The reviewer still returns everything, and the fix check gets the findings from the reviewer, not from the report. The author writes the report after the fix check; a handoff in the middle of a round puts everything the fix check has not closed into the report at once, `status: open`. Closed medium and low stay as numbers in the handoff and as fix commits. What is already written is not cleaned up; a report from Cowork is imported whole. The findings of a plan audit go on the same line in the plan's «Утверждение».
|
|
22
|
+
- The line about how many server checks ran now lives only in `protocols/build.md`, for a project with a cloud copy.
|
|
23
|
+
- `upgrade` tells the truth when a rollback fails: the first line no longer promises that nothing changed, and neither does a repeated run that stops on the leftover staging folder.
|
|
24
|
+
- The `vibe-maestro` companion package (0.1.9) depends on exactly `create-vibe-maestro@0.4.5`.
|
|
25
|
+
- Upgrade tests use projects generated by the real published 0.4.4 package.
|
|
26
|
+
|
|
27
|
+
### For those who create projects with their own scripts
|
|
28
|
+
|
|
29
|
+
- **Handoff sample:** «Проверки» now has a table and the line `Находки: critical N, high N, medium N, low N; открыто N.`; there is a new section `## Что мешало в работе`. If you read handoffs by section: the section is new, the order of the old ones is the same.
|
|
30
|
+
- **There will be more handoffs:** they also happen in the middle of a slice. If you take your block from the last handoff, the final handoff must stay the last one and carry the block; if you search by the date a file was added to git, two handoffs must not share a commit.
|
|
31
|
+
- **Check reports:** only critical, high and open findings. No report no longer means no check: look at the findings line of the handoff.
|
|
32
|
+
- **`doctor`:** new `info` codes `memory-hot-behind`, `memory-handoff-behind`; they do not fail `--strict` or `preflight`. They need git.
|
|
33
|
+
- **`context --json`:** `level` now comes from tokens, not from a share of the window; `percent` and `budget` are as before; new fields `finishSliceTokens`, `newSessionTokens`; `reportVersion` stays 1. At a window of 200 000 the levels are the same.
|
|
34
|
+
- **`archive --json`:** `sections[].warnings` also carries lines about open marks; nothing is refused.
|
|
35
|
+
- **`upgrade --json`:** new field `partial`: `true` means a rollback failed and the project is changed in part.
|
|
36
|
+
- **Do not change:** the section names of `wiki/hot.md`; the place and names of handoffs; `create --yes`; the set of Maestro files; `.claude/settings.json` of the template; the parsing of check reports.
|
|
37
|
+
- The `vibe-maestro` companion 0.1.9 is exactly `create-vibe-maestro@0.4.5`. `upgrade` works from 0.2.0-beta.1, 0.3.0-beta.1 – 0.3.0-beta.4, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3 and 0.4.4.
|
|
38
|
+
- If you pin the version in your own settings, change it and your own equality test.
|
|
39
|
+
- A `.gitignore` with `maestro/inbox/*` also hides the Maestro file `maestro/inbox/.gitattributes`: add an exception.
|
|
40
|
+
|
|
7
41
|
## 0.4.4 — 2026-11-04
|
|
8
42
|
|
|
9
43
|
The fifth part of 0.4: project memory stops growing. A slice result goes to its handoff and the plan keeps one line; old log entries, closed check reports and closed plan edits move to an archive inside the project, and the agent reads the archive by search; `doctor` says when memory gets long. Nothing is deleted: the moved text stays byte for byte, only link addresses change.
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
> [!IMPORTANT]
|
|
28
|
-
> **0.4.
|
|
28
|
+
> **0.4.5 is published on npm.** Create a project with `npx create-vibe-maestro@latest`. Every generated project records the exact Maestro version in `.claude/rules/maestro.md`, so its checks do not change under it when a new version is published; `vibe-maestro upgrade` moves it forward when you decide. Interfaces may still change before 1.0. The CLI and generated project templates are Russian-first; English localization is planned before a global release.
|
|
29
29
|
|
|
30
30
|
When an AI-assisted project lasts longer than one chat, the same problems keep returning:
|
|
31
31
|
|
|
@@ -78,7 +78,7 @@ Vibe Coding Maestro doctor: всё сходится.
|
|
|
78
78
|
The second line is `info` (from local Git data only; it never fails `doctor`, `--strict` or `preflight`) and disappears once the project has a copy in the cloud. `@latest` above is the newest published Maestro. If it is newer than your project, `doctor` says so and prints the exact commands to check the project with its own version or to upgrade it.
|
|
79
79
|
|
|
80
80
|
> [!WARNING]
|
|
81
|
-
> **Core 0.3 creates new canonical projects only.** It can also re-check a complete project already created by the same canonical engine, and `vibe-maestro upgrade` can evolve a provably canonical project created by an earlier published version (0.2.0-beta.1, 0.3.0-beta.1 – 0.3.0-beta.4, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3). It refuses to modify a non-empty, non-canonical directory, and no flag overrides that refusal. Safe conversion of arbitrary existing projects belongs to a separate future Converter.
|
|
81
|
+
> **Core 0.3 creates new canonical projects only.** It can also re-check a complete project already created by the same canonical engine, and `vibe-maestro upgrade` can evolve a provably canonical project created by an earlier published version (0.2.0-beta.1, 0.3.0-beta.1 – 0.3.0-beta.4, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4). It refuses to modify a non-empty, non-canonical directory, and no flag overrides that refusal. Safe conversion of arbitrary existing projects belongs to a separate future Converter.
|
|
82
82
|
|
|
83
83
|
## Что дальше после создания проекта: Planning Gate
|
|
84
84
|
|
|
@@ -178,7 +178,7 @@ From there, `protocols/build.md` routes the agent through the relevant rules, pl
|
|
|
178
178
|
|
|
179
179
|
## A normal working cycle
|
|
180
180
|
|
|
181
|
-
The guided path above is the whole cycle: material in `maestro/inbox/` → `/start` (getting to know the task) → plan → human approval → one bounded build with tests and live evidence → `doctor` → handoff, then a new session for the next slice (`vibe-maestro context` tells the agent how large the session has grown). When the last slice is done, `protocols/completion.md` walks through delivery or closing: criteria checked, tests green, a delivery tag, a complete project passport (`wiki/passport.md`: where everything lives, names of environment variables but never their values), customer documents, a final handoff; `vibe-maestro pack` builds the customer archive from the delivery tag. Checks run once: the plan is always checked against the real situation, a plan audit before approval, one code review per slice, then only the fixes are re-checked; the agent runs tests and checks itself and asks the human only about what they understand and own. Independent audit findings are recorded with stable IDs on one `critical | high | medium | low` scale (sample: `maestro/templates/audit.md`); open `high` or `critical` findings block a green doctor result.
|
|
181
|
+
The guided path above is the whole cycle: material in `maestro/inbox/` → `/start` (getting to know the task) → plan → human approval → one bounded build with tests and live evidence → `doctor` → handoff, then a new session for the next slice (`vibe-maestro context` tells the agent how large the session has grown, at the end of a slice and after a commit in the middle of one). When the last slice is done, `protocols/completion.md` walks through delivery or closing: criteria checked, tests green, a delivery tag, a complete project passport (`wiki/passport.md`: where everything lives, names of environment variables but never their values), customer documents, a final handoff; `vibe-maestro pack` builds the customer archive from the delivery tag. Checks run once: the plan is always checked against the real situation, a plan audit before approval, one code review per slice, then only the fixes are re-checked; the agent runs tests and checks itself and asks the human only about what they understand and own. Independent audit findings are recorded with stable IDs on one `critical | high | medium | low` scale (sample: `maestro/templates/audit.md`); a report holds only `critical`, `high` and open findings, and the handoff keeps the numbers of all of them; open `high` or `critical` findings block a green doctor result. A handoff marks what the agent did not check itself, and `doctor` says when memory falls behind the code.
|
|
182
182
|
|
|
183
183
|
Claude Code projects receive six thin commands:
|
|
184
184
|
|
|
@@ -294,7 +294,7 @@ npx --package create-vibe-maestro@latest vibe-maestro archive --path .
|
|
|
294
294
|
|
|
295
295
|
`preflight` and `doctor` exit `0` when the check passes and `1` when it blocks; `sources`, `upgrade` and `archive` write nothing at all unless you add `--write` or `--apply`.
|
|
296
296
|
|
|
297
|
-
The repository release gate covers tests, type checking, build, audit, source acceptance, packed-tarball installation, all three depths, paths with spaces, deterministic doctor JSON, protocol drift, canonical identity forgery, incomplete canonical trees, forbidden audit waivers, symlink boundaries, and upgrades from projects created by the published 0.3 betas, 0.3.x, 0.4.0, 0.4.1, 0.4.2 and 0.4.
|
|
297
|
+
The repository release gate covers tests, type checking, build, audit, source acceptance, packed-tarball installation, all three depths, paths with spaces, deterministic doctor JSON, protocol drift, canonical identity forgery, incomplete canonical trees, forbidden audit waivers, symlink boundaries, and upgrades from projects created by the published 0.3 betas, 0.3.x, 0.4.0, 0.4.1, 0.4.2, 0.4.3 and 0.4.4. Pull requests and `main` run on Ubuntu, macOS, and Windows with Node.js 20 and 22; a branch push runs one quick Ubuntu job.
|
|
298
298
|
|
|
299
299
|
## Current scope
|
|
300
300
|
|
package/dist/cli/context-run.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { measureContext, thresholdsFor } from '../core/context.js';
|
|
2
2
|
import { EXIT_FAILED, EXIT_OK } from './io.js';
|
|
3
3
|
/** Тысячи через пробел, без зависимости от локали машины. */
|
|
4
4
|
export function formatTokens(value) {
|
|
@@ -43,6 +43,7 @@ export async function executeContextCommand(options, io) {
|
|
|
43
43
|
io.out(ADVICE[report.level]);
|
|
44
44
|
const total = report.totalInputTokens ?? 0;
|
|
45
45
|
io.out(`За сессию модель получила на вход ${formatTokens(total)} ${tokensWord(total)} (шагов модели: ${report.requests}): каждый шаг заново пересылает всю историю.`);
|
|
46
|
-
|
|
46
|
+
const { finishSliceTokens, newSessionTokens } = thresholdsFor(report.budget);
|
|
47
|
+
io.out(`Пороги ${formatTokens(finishSliceTokens)} и ${formatTokens(newSessionTokens)} ${tokensWord(newSessionTokens)} — гипотеза; их уточнит замер.`);
|
|
47
48
|
return EXIT_OK;
|
|
48
49
|
}
|
package/dist/cli/upgrade-run.js
CHANGED
|
@@ -19,13 +19,17 @@ const DIFF_TITLES = {
|
|
|
19
19
|
* а запись требует отдельного человеческого намерения.
|
|
20
20
|
*/
|
|
21
21
|
export async function executeUpgradeCommand(options, io) {
|
|
22
|
-
const result = await upgradeProject(options.path, {
|
|
22
|
+
const result = await upgradeProject(options.path, {
|
|
23
|
+
apply: options.apply === true,
|
|
24
|
+
...(options.hooks === undefined ? {} : { hooks: options.hooks }),
|
|
25
|
+
});
|
|
23
26
|
if (options.json) {
|
|
24
27
|
io.out(JSON.stringify({
|
|
25
28
|
reportVersion: 1,
|
|
26
29
|
ok: result.ok,
|
|
27
30
|
applied: result.applied,
|
|
28
31
|
rolledBack: result.rolledBack,
|
|
32
|
+
partial: result.partial,
|
|
29
33
|
...(result.error === undefined ? {} : { error: result.error }),
|
|
30
34
|
analysis: result.analysis,
|
|
31
35
|
}, null, 2));
|
|
@@ -33,7 +37,11 @@ export async function executeUpgradeCommand(options, io) {
|
|
|
33
37
|
}
|
|
34
38
|
const { analysis } = result;
|
|
35
39
|
if (analysis.status === 'blocked' || result.ok === false) {
|
|
36
|
-
|
|
40
|
+
// Осталась папка транзакции: прошлый запуск мог изменить проект, поэтому «изменений нет» здесь не обещается.
|
|
41
|
+
const staged = analysis.blockers.some((item) => item.code === 'upgrade-staging-present');
|
|
42
|
+
io.err(result.partial
|
|
43
|
+
? 'Vibe Coding Maestro upgrade: обновление прервано, и откатить удалось не всё: проект изменён частично.'
|
|
44
|
+
: `Vibe Coding Maestro upgrade: ${staged ? 'обновление не запущено.' : 'обновление не выполнено (изменений на диске нет).'}`);
|
|
37
45
|
if (result.error !== undefined)
|
|
38
46
|
io.err(`- ${result.error}`);
|
|
39
47
|
for (const item of analysis.blockers)
|
|
@@ -14,6 +14,14 @@ export const LOG_LIMIT = 20_000;
|
|
|
14
14
|
export const LOG_KEEP = 10_000;
|
|
15
15
|
/** Передача, с которой начнёт следующая сессия. */
|
|
16
16
|
export const HANDOFF_LIMIT = 6_000;
|
|
17
|
+
/**
|
|
18
|
+
* Коммиты кода после последней передачи. HYPOTHESIS 0.4.5: числа — из проигрыша
|
|
19
|
+
* истории трёх живых проектов; поэтому doctor только сообщает (`info`).
|
|
20
|
+
*/
|
|
21
|
+
/** Столько коммитов кода, а `wiki/hot.md` не называет текущую порцию. */
|
|
22
|
+
export const HOT_BEHIND_COMMITS = 3;
|
|
23
|
+
/** Столько коммитов кода без новой передачи. */
|
|
24
|
+
export const HANDOFF_COMMITS_LIMIT = 10;
|
|
17
25
|
/**
|
|
18
26
|
* Знаки — кодовые точки Unicode после замены CRLF на LF: так счёт одинаков
|
|
19
27
|
* на любой ОС и не зависит от того, как записан перенос строки.
|
|
@@ -61,6 +61,13 @@ const COLLECTIONS = ['Правки после утверждения', 'Изме
|
|
|
61
61
|
const APPROVAL = 'Утверждение';
|
|
62
62
|
const POINTER_RE = /^В архиве: \[[^\]]*\]\(archive\/[^)]*\)\.?$/;
|
|
63
63
|
const UNCHECKED_RE = /^[ \t]*(?:[-*+]|\d+[.)])[ \t]+\[ \]/gm;
|
|
64
|
+
/** Пометки незакрытого: целым словом, в любом регистре. Само слово не значит «открыто», поэтому только предупреждение. */
|
|
65
|
+
const OPEN_MARK_RE = /(?<![\p{L}\p{N}_])(?:UNKNOWN|OPEN_QUESTION|HYPOTHESIS|не\s+проверено|открыто)(?![\p{L}\p{N}_])/iu;
|
|
66
|
+
/** Строка находок с нулём открытых содержит «открыто», но пометкой не является. */
|
|
67
|
+
const CLOSED_FINDINGS_RE = /Находки:\s*critical\s+\d+,\s*high\s+\d+,\s*medium\s+\d+,\s*low\s+\d+;\s*открыто\s+0(?!\d)/;
|
|
68
|
+
/** Раздел бывает в десятки тысяч знаков: агент видит сами строки и не перечитывает его. */
|
|
69
|
+
const SHOWN_MARKS = 3;
|
|
70
|
+
const SHOWN_CHARS = 100;
|
|
64
71
|
/** Сколько заголовков показать в отказе: у живых планов их сотни. */
|
|
65
72
|
const LISTED = 30;
|
|
66
73
|
/** Заголовки и аргументы сравниваются без разметки и с одинарными пробелами. */
|
|
@@ -68,7 +75,7 @@ export function plainTitle(value) {
|
|
|
68
75
|
return value.replace(/`|\*\*|[«»]/g, '').replace(/\s+/g, ' ').trim();
|
|
69
76
|
}
|
|
70
77
|
const startsWithWord = (title, wanted) => title.startsWith(wanted) && !WORD_RE.test(title.slice(wanted.length));
|
|
71
|
-
function mentionsSlice(text, slice) {
|
|
78
|
+
export function mentionsSlice(text, slice) {
|
|
72
79
|
const escaped = slice.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
73
80
|
return new RegExp(`(?<![\\p{L}\\p{N}_])${escaped}(?![\\p{L}\\p{N}_])`, 'u').test(text);
|
|
74
81
|
}
|
|
@@ -125,7 +132,37 @@ function chooseSection(text, plan, argument, headings, collection) {
|
|
|
125
132
|
const unchecked = [...rest.matchAll(UNCHECKED_RE)].length;
|
|
126
133
|
if (unchecked > 0)
|
|
127
134
|
warnings.push(`в разделе ${title} неотмеченных пунктов [ ]: ${formatChars(unchecked)}.`);
|
|
128
|
-
|
|
135
|
+
const already = POINTER_RE.test(rest.trim());
|
|
136
|
+
const marks = already ? null : openMarksWarning(title, section);
|
|
137
|
+
if (marks !== null)
|
|
138
|
+
warnings.push(marks);
|
|
139
|
+
return { choice: { heading, nested, already, warnings } };
|
|
140
|
+
}
|
|
141
|
+
/** Строка с пометкой, не длиннее `SHOWN_CHARS` кодовых точек; слово остаётся видно и в длинной строке. */
|
|
142
|
+
function shownLine(line, mark) {
|
|
143
|
+
const points = [...line];
|
|
144
|
+
if (points.length <= SHOWN_CHARS)
|
|
145
|
+
return line;
|
|
146
|
+
const before = [...line.slice(0, mark)].length;
|
|
147
|
+
const start = before < SHOWN_CHARS / 2 ? 0 : Math.min(before - SHOWN_CHARS / 4, points.length - SHOWN_CHARS);
|
|
148
|
+
const shown = points.slice(start, start + SHOWN_CHARS).join('');
|
|
149
|
+
return `${start > 0 ? '…' : ''}${shown}${start + SHOWN_CHARS < points.length ? '…' : ''}`;
|
|
150
|
+
}
|
|
151
|
+
/** Предупреждение о пометках незакрытого в тексте раздела; блоки кода не считаются. */
|
|
152
|
+
function openMarksWarning(title, section) {
|
|
153
|
+
const found = [];
|
|
154
|
+
for (const { line, code } of markdownLines(section)) {
|
|
155
|
+
if (code)
|
|
156
|
+
continue;
|
|
157
|
+
const text = line.trim();
|
|
158
|
+
const mark = OPEN_MARK_RE.exec(text.replace(CLOSED_FINDINGS_RE, (found) => ' '.repeat(found.length)));
|
|
159
|
+
if (mark !== null)
|
|
160
|
+
found.push(`«${shownLine(text, mark.index)}»`);
|
|
161
|
+
}
|
|
162
|
+
if (found.length === 0)
|
|
163
|
+
return null;
|
|
164
|
+
const more = found.length > SHOWN_MARKS ? `; ещё ${formatChars(found.length - SHOWN_MARKS)}` : '';
|
|
165
|
+
return `в разделе ${title} есть пометки незакрытого: ${found.slice(0, SHOWN_MARKS).join('; ')}${more}. Закрыто — переносите; открыто — сначала запишите в wiki/hot.md или wiki/icebox.md: обратно архив не копируют.`;
|
|
129
166
|
}
|
|
130
167
|
/** `active_plan` из `wiki/hot.md`. */
|
|
131
168
|
export function declaredPlan(files) {
|
package/dist/core/context.js
CHANGED
|
@@ -41,9 +41,15 @@ export function windowForModel(model) {
|
|
|
41
41
|
return DEFAULT_BUDGET;
|
|
42
42
|
return LARGE_WINDOW;
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Пороги в токенах: цену шага задаёт размер сессии, а не доля окна.
|
|
46
|
+
* HYPOTHESIS: числа — из проигрыша настоящих сессий, уточняются повторным замером.
|
|
47
|
+
*/
|
|
48
|
+
export const FINISH_SLICE_TOKENS = 400_000;
|
|
49
|
+
export const NEW_SESSION_TOKENS = 600_000;
|
|
50
|
+
/** У модели с меньшим окном действует меньшее из двух: порог выше окна не сработал бы. */
|
|
51
|
+
const FINISH_SLICE_PERCENT = 40;
|
|
52
|
+
const NEW_SESSION_PERCENT = 70;
|
|
47
53
|
/** Имя папки журналов: Claude Code заменяет в пути проекта всё, кроме латиницы и цифр, на `-`. */
|
|
48
54
|
export function projectLogDirName(root) {
|
|
49
55
|
return resolve(root).replace(/[^a-zA-Z0-9]/g, '-');
|
|
@@ -124,10 +130,18 @@ export async function findTranscript(root, claudeDir, sessionId) {
|
|
|
124
130
|
return best?.path ?? null;
|
|
125
131
|
}
|
|
126
132
|
const count = (value) => (typeof value === 'number' && Number.isFinite(value) && value > 0 ? value : 0);
|
|
127
|
-
|
|
128
|
-
|
|
133
|
+
/** Пороги при этом окне. Токены — целые, поэтому округление вверх не сдвигает границу. */
|
|
134
|
+
export function thresholdsFor(budget) {
|
|
135
|
+
return {
|
|
136
|
+
finishSliceTokens: Math.min(FINISH_SLICE_TOKENS, Math.ceil((budget * FINISH_SLICE_PERCENT) / 100)),
|
|
137
|
+
newSessionTokens: Math.min(NEW_SESSION_TOKENS, Math.ceil((budget * NEW_SESSION_PERCENT) / 100)),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export function levelFor(tokens, budget) {
|
|
141
|
+
const { finishSliceTokens, newSessionTokens } = thresholdsFor(budget);
|
|
142
|
+
if (tokens >= newSessionTokens)
|
|
129
143
|
return 'new-session';
|
|
130
|
-
if (
|
|
144
|
+
if (tokens >= finishSliceTokens)
|
|
131
145
|
return 'finish-slice';
|
|
132
146
|
return 'continue';
|
|
133
147
|
}
|
|
@@ -196,7 +210,6 @@ export async function measureContext(options) {
|
|
|
196
210
|
if ((byModel === null ? largest : largestByModel.get(lastModel ?? '') ?? 0) > budget)
|
|
197
211
|
budget = LARGE_WINDOW;
|
|
198
212
|
}
|
|
199
|
-
const share = contextTokens / budget;
|
|
200
213
|
return {
|
|
201
214
|
reportVersion: 1,
|
|
202
215
|
ok: true,
|
|
@@ -206,8 +219,9 @@ export async function measureContext(options) {
|
|
|
206
219
|
budget,
|
|
207
220
|
...(lastModel === undefined ? {} : { model: lastModel }),
|
|
208
221
|
windowSource,
|
|
209
|
-
percent: Math.round(
|
|
210
|
-
level: levelFor(
|
|
222
|
+
percent: Math.round((contextTokens / budget) * 100),
|
|
223
|
+
level: levelFor(contextTokens, budget),
|
|
224
|
+
...thresholdsFor(budget),
|
|
211
225
|
totalInputTokens: totalInput,
|
|
212
226
|
requests: seen.size,
|
|
213
227
|
};
|
package/dist/core/doctor/git.js
CHANGED
|
@@ -50,7 +50,7 @@ export async function checkGit(root, managedDocs, findings, managedFiles = new S
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
/** Команда git, чей отказ — ответ «нет», а не сбой проверки. */
|
|
53
|
-
async function gitAnswer(root, args) {
|
|
53
|
+
export async function gitAnswer(root, args) {
|
|
54
54
|
try {
|
|
55
55
|
return (await execFileAsync('git', [...args], { cwd: root, encoding: 'utf8' })).stdout.trim();
|
|
56
56
|
}
|
|
@@ -11,6 +11,7 @@ import { checkGit } from './git.js';
|
|
|
11
11
|
import { checkInbox } from './inbox.js';
|
|
12
12
|
import { checkInventory, checkManagedFiles } from './managed.js';
|
|
13
13
|
import { checkMemory } from './memory.js';
|
|
14
|
+
import { checkMemoryLag } from './memory-lag.js';
|
|
14
15
|
import { checkPlans } from './plans.js';
|
|
15
16
|
import { checkProtocols } from './protocols.js';
|
|
16
17
|
import { checkSources } from './sources.js';
|
|
@@ -119,6 +120,7 @@ export async function doctorProject(rootInput, options = {}) {
|
|
|
119
120
|
checkPlans(root, wiki, findings);
|
|
120
121
|
checkMemory(rootInput, wiki, findings);
|
|
121
122
|
await checkGit(root, managedDocs, findings, managedFiles);
|
|
123
|
+
await checkMemoryLag(root, wiki, findings);
|
|
122
124
|
await checkInbox(root, findings);
|
|
123
125
|
await checkSources(root, findings);
|
|
124
126
|
await checkProjectEntries(root, manifest.product.version, findings);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
import { stat } from 'node:fs/promises';
|
|
4
|
+
import { join } from 'node:path';
|
|
5
|
+
import { promisify } from 'node:util';
|
|
6
|
+
import { HANDOFF_COMMITS_LIMIT, HOT_BEHIND_COMMITS } from '../archive/limits.js';
|
|
7
|
+
import { withoutBom } from '../archive/markdown.js';
|
|
8
|
+
import { declaredPlan, mentionsSlice } from '../archive/plan.js';
|
|
9
|
+
import { MANIFEST_PATH } from '../manifest.js';
|
|
10
|
+
import { ACTIVE_PLAN_NONE, isWikiRelativePlanRef, PLAN_NULL } from '../plan.js';
|
|
11
|
+
import { gitAnswer, parsePorcelainV1Z } from './git.js';
|
|
12
|
+
import { HOT_PATH } from './plans.js';
|
|
13
|
+
import { frontmatter } from './text.js';
|
|
14
|
+
import { info } from './types.js';
|
|
15
|
+
const execFileAsync = promisify(execFile);
|
|
16
|
+
/** `glob`: передача — плоская папка, вложенные файлы передачами не считаются. */
|
|
17
|
+
const HANDOFFS = ':(glob)wiki/handoffs/*.md';
|
|
18
|
+
const CHECK_LOG = 'Если работа идёт не в этой сессии — сверь `git log` и запиши передачу.';
|
|
19
|
+
/** Коммит, добавивший файл: передача считается добавленной один раз, поправленная ссылка в ней счёт не сбрасывает. */
|
|
20
|
+
const lastAdded = (root, path) => gitAnswer(root, ['log', '-1', '-M', '--diff-filter=A', '--format=%H', '--', path]);
|
|
21
|
+
/** Текст без шапки: `active_plan` в ней может совпасть с именем порции. */
|
|
22
|
+
const withoutFrontmatter = (text) => withoutBom(text).replace(/^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/, '');
|
|
23
|
+
/** Передача ещё не закоммичена и свежее последнего коммита: на шаге передачи doctor идёт до коммита. */
|
|
24
|
+
async function handoffInProgress(root) {
|
|
25
|
+
const committed = Number(await gitAnswer(root, ['log', '-1', '--format=%ct']));
|
|
26
|
+
try {
|
|
27
|
+
const { stdout } = await execFileAsync('git', ['status', '--porcelain=v1', '-z', '--untracked-files=all', '--', HANDOFFS], { cwd: root, encoding: 'utf8' });
|
|
28
|
+
for (const entry of parsePorcelainV1Z(stdout)) {
|
|
29
|
+
if (entry.status !== '??' && !entry.status.includes('A'))
|
|
30
|
+
continue;
|
|
31
|
+
if ((await stat(join(root, entry.path))).mtimeMs >= committed * 1000)
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** Текущая порция активного плана; null — порции нет. */
|
|
41
|
+
function currentSlice(wiki) {
|
|
42
|
+
const declared = declaredPlan(wiki);
|
|
43
|
+
if (declared === ACTIVE_PLAN_NONE || !isWikiRelativePlanRef(declared))
|
|
44
|
+
return null;
|
|
45
|
+
const plan = wiki.get(`wiki/${declared}`);
|
|
46
|
+
const slice = plan === undefined ? undefined : frontmatter(withoutBom(plan))?.current_slice;
|
|
47
|
+
return slice === undefined || slice === PLAN_NULL || slice === '' ? null : slice;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Отстала ли память от кода: только с доказательством из git. Опора — последняя
|
|
51
|
+
* добавленная передача, а пока передач нет — коммит с manifest, чтобы история до
|
|
52
|
+
* Maestro не считалась. Нет `.git`, нет опоры, мелкий клон, отказ git — молчит.
|
|
53
|
+
* Только `info`: посреди обычной порции это тоже срабатывает, а пороги — гипотеза.
|
|
54
|
+
*/
|
|
55
|
+
export async function checkMemoryLag(root, wiki, findings) {
|
|
56
|
+
if (!existsSync(join(root, '.git')))
|
|
57
|
+
return;
|
|
58
|
+
// В мелком клоне самый ранний коммит «добавляет» всё сразу: опора была бы ложной.
|
|
59
|
+
if (await gitAnswer(root, ['rev-parse', '--is-shallow-repository']) !== 'false')
|
|
60
|
+
return;
|
|
61
|
+
const handoff = await lastAdded(root, HANDOFFS);
|
|
62
|
+
const anchor = handoff === '' ? await lastAdded(root, MANIFEST_PATH) : handoff;
|
|
63
|
+
if (anchor === null || anchor === '')
|
|
64
|
+
return;
|
|
65
|
+
const answer = await gitAnswer(root, ['rev-list', '--count', `${anchor}..HEAD`, '--', '.', ':(exclude)wiki']);
|
|
66
|
+
const commits = answer === null ? Number.NaN : Number(answer);
|
|
67
|
+
if (!Number.isInteger(commits) || commits < HOT_BEHIND_COMMITS)
|
|
68
|
+
return;
|
|
69
|
+
if (await handoffInProgress(root))
|
|
70
|
+
return;
|
|
71
|
+
const counted = handoff === '' ? `передач ещё не было, а коммитов кода с подключения Maestro: ${commits}` : `после последней передачи коммитов кода: ${commits}`;
|
|
72
|
+
const slice = currentSlice(wiki);
|
|
73
|
+
if (slice !== null && !mentionsSlice(withoutFrontmatter(wiki.get(HOT_PATH) ?? ''), slice)) {
|
|
74
|
+
findings.push(info('memory-hot-behind', `wiki/hot.md не называет текущую порцию ${slice}, ${counted}. ${CHECK_LOG}`, HOT_PATH));
|
|
75
|
+
}
|
|
76
|
+
if (commits >= HANDOFF_COMMITS_LIMIT) {
|
|
77
|
+
findings.push(info('memory-handoff-behind', `Отстала передача: ${counted} при ориентире ${HANDOFF_COMMITS_LIMIT}. ${CHECK_LOG}`));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -13,6 +13,7 @@ const result = (plan, patch = {}) => ({
|
|
|
13
13
|
updatedFiles: [],
|
|
14
14
|
removedFiles: [],
|
|
15
15
|
rolledBack: false,
|
|
16
|
+
partial: false,
|
|
16
17
|
plan,
|
|
17
18
|
...patch,
|
|
18
19
|
});
|
|
@@ -60,6 +61,7 @@ export async function upgradeProject(rootInput, options = {}) {
|
|
|
60
61
|
return result(plan, {
|
|
61
62
|
ok: false,
|
|
62
63
|
rolledBack: false,
|
|
64
|
+
partial: true,
|
|
63
65
|
error: `Применение прервано (${outcome.reason}), и откатить удалось не всё: ${outcome.unrestored.join(', ')}. Прежние версии файлов оставлены в ${STAGING_DIR}/backup/ — верните их вручную, затем удалите ${STAGING_DIR}.`,
|
|
64
66
|
});
|
|
65
67
|
}
|
|
@@ -430,6 +430,37 @@ const V044_MANAGED_SHA256 = {
|
|
|
430
430
|
'wiki/plans/README.md': '74d17873f322197ec1126408b8817ee998ef02749a0e2644e264f45ae091574c',
|
|
431
431
|
'wiki/plans/TEMPLATE.md': 'a31964e24526d034579bda07789b7f3b4ea04b02f1324fdd1fe1b6bcab62870a',
|
|
432
432
|
};
|
|
433
|
+
/** Файлы Maestro, которые 0.4.5 изменил. */
|
|
434
|
+
const CHANGED_IN_045 = [
|
|
435
|
+
'.claude/rules/maestro.md',
|
|
436
|
+
'maestro/templates/audit.md',
|
|
437
|
+
'maestro/templates/handoff.md',
|
|
438
|
+
'protocols/audit.md',
|
|
439
|
+
'protocols/build.md',
|
|
440
|
+
'protocols/completion.md',
|
|
441
|
+
'protocols/handoff.md',
|
|
442
|
+
];
|
|
443
|
+
/** Копии шаблонов 0.4.4, изменённых в 0.4.5; одна копия служит всем версиям с тем же содержимым. */
|
|
444
|
+
const v044Copy = (path) => ({
|
|
445
|
+
path,
|
|
446
|
+
source: `registry/baseline/0.4.4/project/${path}`,
|
|
447
|
+
sha256: V044_MANAGED_SHA256[path],
|
|
448
|
+
});
|
|
449
|
+
/** Копии к изменениям 0.4.5 для прошлой версии: правило то же, что у `copiesFor043`. */
|
|
450
|
+
function copiesFor045(managedSha256) {
|
|
451
|
+
return CHANGED_IN_045.filter((path) => managedSha256[path] !== undefined && managedSha256[path] === V044_MANAGED_SHA256[path]).map(v044Copy);
|
|
452
|
+
}
|
|
453
|
+
/** Слепок `templates/project` 0.4.5: состав тот же, что в 0.4.3. */
|
|
454
|
+
const V045_MANAGED_SHA256 = {
|
|
455
|
+
...V044_MANAGED_SHA256,
|
|
456
|
+
'.claude/rules/maestro.md': '227893191aa8921d5b2171e769e26a7b1e6d40eb24401b53913311007d968402',
|
|
457
|
+
'maestro/templates/audit.md': 'd36a1ee2e2d4dc9c8964a92b28dd78602094ca94fb13ef4bcde6ea6fc9a3c2ab',
|
|
458
|
+
'maestro/templates/handoff.md': 'fbcd79d282ce44be2b0f9c29041294977700a3dc72ebc096fc01069647974754',
|
|
459
|
+
'protocols/audit.md': 'f812f9d85aab8a95c0f81b4a30f2d4ffa2820eb502553739b6a9f7d16faa211b',
|
|
460
|
+
'protocols/build.md': '9c587b9c4f89b1afbae9071c3f09864287644747a92902f9261f468f527892d1',
|
|
461
|
+
'protocols/completion.md': 'bc0a6fd2f237181991fe1e11b360b0528e59a9d99fadf30ea3e1a67e76df6c72',
|
|
462
|
+
'protocols/handoff.md': 'f3c95a4bf96a5958615105a889a83eb7225806650e7bbf9395a218c64c55a3ff',
|
|
463
|
+
};
|
|
433
464
|
/**
|
|
434
465
|
* Файлы Maestro, которые ушли из состава: путь → версия, в которой ушёл.
|
|
435
466
|
*
|
|
@@ -458,6 +489,7 @@ export const RELEASES = [
|
|
|
458
489
|
...CHANGED_IN_042_SAME_SINCE_BETA1.map(v041Copy),
|
|
459
490
|
...copiesFor043(V03_BETA_MANAGED_SHA256),
|
|
460
491
|
...copiesFor044(V03_BETA_MANAGED_SHA256),
|
|
492
|
+
...copiesFor045(V03_BETA_MANAGED_SHA256),
|
|
461
493
|
],
|
|
462
494
|
},
|
|
463
495
|
{
|
|
@@ -470,6 +502,7 @@ export const RELEASES = [
|
|
|
470
502
|
...CHANGED_IN_042_SAME_SINCE_BETA1.map(v041Copy),
|
|
471
503
|
...copiesFor043(V03_BETA4_MANAGED_SHA256),
|
|
472
504
|
...copiesFor044(V03_BETA4_MANAGED_SHA256),
|
|
505
|
+
...copiesFor045(V03_BETA4_MANAGED_SHA256),
|
|
473
506
|
],
|
|
474
507
|
},
|
|
475
508
|
{
|
|
@@ -487,6 +520,7 @@ export const RELEASES = [
|
|
|
487
520
|
...[...CHANGED_IN_042_SAME_SINCE_BETA1, ...CHANGED_IN_042_SAME_SINCE_030].map(v041Copy),
|
|
488
521
|
...copiesFor043(V030_MANAGED_SHA256),
|
|
489
522
|
...copiesFor044(V030_MANAGED_SHA256),
|
|
523
|
+
...copiesFor045(V030_MANAGED_SHA256),
|
|
490
524
|
],
|
|
491
525
|
},
|
|
492
526
|
{
|
|
@@ -499,6 +533,7 @@ export const RELEASES = [
|
|
|
499
533
|
...[...CHANGED_IN_042_SAME_SINCE_BETA1, ...CHANGED_IN_042_SAME_SINCE_030].map(v041Copy),
|
|
500
534
|
...copiesFor043(V031_MANAGED_SHA256),
|
|
501
535
|
...copiesFor044(V031_MANAGED_SHA256),
|
|
536
|
+
...copiesFor045(V031_MANAGED_SHA256),
|
|
502
537
|
],
|
|
503
538
|
},
|
|
504
539
|
{
|
|
@@ -511,6 +546,7 @@ export const RELEASES = [
|
|
|
511
546
|
...[...CHANGED_IN_042_SAME_SINCE_BETA1, ...CHANGED_IN_042_SAME_SINCE_030].map(v041Copy),
|
|
512
547
|
...copiesFor043(V040_MANAGED_SHA256),
|
|
513
548
|
...copiesFor044(V040_MANAGED_SHA256),
|
|
549
|
+
...copiesFor045(V040_MANAGED_SHA256),
|
|
514
550
|
],
|
|
515
551
|
},
|
|
516
552
|
{
|
|
@@ -522,6 +558,7 @@ export const RELEASES = [
|
|
|
522
558
|
...['.claude/rules/maestro.md', ...CHANGED_IN_042_SAME_SINCE_BETA1, ...CHANGED_IN_042_SAME_SINCE_030].map(v041Copy),
|
|
523
559
|
...copiesFor043(V041_MANAGED_SHA256),
|
|
524
560
|
...copiesFor044(V041_MANAGED_SHA256),
|
|
561
|
+
...copiesFor045(V041_MANAGED_SHA256),
|
|
525
562
|
],
|
|
526
563
|
},
|
|
527
564
|
{
|
|
@@ -529,20 +566,27 @@ export const RELEASES = [
|
|
|
529
566
|
versions: ['0.4.2'],
|
|
530
567
|
inventory: ownershipInventory(V042_TEMPLATE_FILES, V042_CONTENT_OWNED_FILES),
|
|
531
568
|
managedSha256: V042_MANAGED_SHA256,
|
|
532
|
-
templates: [...copiesFor043(V042_MANAGED_SHA256), ...copiesFor044(V042_MANAGED_SHA256)],
|
|
569
|
+
templates: [...copiesFor043(V042_MANAGED_SHA256), ...copiesFor044(V042_MANAGED_SHA256), ...copiesFor045(V042_MANAGED_SHA256)],
|
|
533
570
|
},
|
|
534
571
|
{
|
|
535
572
|
id: '0.4.3',
|
|
536
573
|
versions: ['0.4.3'],
|
|
537
574
|
inventory: ownershipInventory(V043_TEMPLATE_FILES, V043_CONTENT_OWNED_FILES),
|
|
538
575
|
managedSha256: V043_MANAGED_SHA256,
|
|
539
|
-
templates: copiesFor044(V043_MANAGED_SHA256),
|
|
576
|
+
templates: [...copiesFor044(V043_MANAGED_SHA256), ...copiesFor045(V043_MANAGED_SHA256)],
|
|
540
577
|
},
|
|
541
578
|
{
|
|
542
579
|
id: '0.4.4',
|
|
543
580
|
versions: ['0.4.4'],
|
|
544
581
|
inventory: ownershipInventory(V043_TEMPLATE_FILES, V043_CONTENT_OWNED_FILES),
|
|
545
582
|
managedSha256: V044_MANAGED_SHA256,
|
|
583
|
+
templates: copiesFor045(V044_MANAGED_SHA256),
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
id: '0.4.5',
|
|
587
|
+
versions: ['0.4.5'],
|
|
588
|
+
inventory: ownershipInventory(V043_TEMPLATE_FILES, V043_CONTENT_OWNED_FILES),
|
|
589
|
+
managedSha256: V045_MANAGED_SHA256,
|
|
546
590
|
templates: [],
|
|
547
591
|
},
|
|
548
592
|
];
|
package/docs/ROADMAP.md
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
- **0.4.2** (выпуск 01.11.2026): старт проекта — команда `/start`, один первый шаг, место для материалов байт в байт, копия в облаке с первого дня, страница восстановления, правила для всех.
|
|
47
47
|
- **0.4.3** (выпуск 01.11.2026): проверки без лишнего круга, одна шкала и образец отчёта, маленькая задача тем же путём, восемь протоколов вместо восемнадцати, `upgrade --diff` и удаление ушедших файлов, `pack --dry-run` с подсветкой, окно `context` по модели, правило экономии минут GitHub.
|
|
48
48
|
- **0.4.4** (выпуск 04.11.2026): память не разрастается — итог порции в передаче, команда `vibe-maestro archive`, `doctor` сообщает о длине памяти.
|
|
49
|
+
- **0.4.5** (выпуск 04.11.2026): неделя настоящей работы — пороги `context` в токенах и проверка посреди порции, предупреждение `archive` о незакрытом, `doctor` видит отставшую память, отчёты только о важном, честная таблица проверок, строка трений.
|
|
49
50
|
|
|
50
51
|
### Завершение проекта
|
|
51
52
|
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
### Напоминание о новой сессии
|
|
57
58
|
|
|
58
59
|
- **Правило текстом** в `.claude/rules/maestro.md`, `protocols/build.md` и `protocols/handoff.md`: закрыл порцию — передача дел и предложение начать новую сессию; вторую крупную порцию в той же сессии без согласия человека не начинать. Причина — замер на живом проекте: почти все токены уходят на повторную пересылку истории в длинных сессиях. *Вошло в 0.4.0.*
|
|
59
|
-
- **Счётчик `vibe-maestro context`** — размер текущей сессии по журналу Claude Code; агент
|
|
60
|
+
- **Счётчик `vibe-maestro context`** — размер текущей сессии по журналу Claude Code; агент простыми словами говорит, пора ли в новую сессию. *Вошло в 0.4.1; с 0.4.5 пороги в токенах и проверка посреди порции.*
|
|
60
61
|
|
|
61
62
|
### Защиты
|
|
62
63
|
|
|
@@ -131,10 +132,27 @@
|
|
|
131
132
|
- `doctor` предупреждает о длине `wiki/hot.md`, активного плана, журнала и передач;
|
|
132
133
|
- закрытые правки плана и старые аудиты уходят в архив и не читаются целиком.
|
|
133
134
|
|
|
135
|
+
### 0.4.5 — неделя настоящей работы
|
|
136
|
+
|
|
137
|
+
Причина — разбор заказа и журналов живых проектов: сессии доходили почти до конца окна, отчёты проверок писались редко и были длинными, статус «проверено» расходился с тем, что проверяли. Цель выпуска — поработать неделю и собрать статистику для 0.4.6.
|
|
138
|
+
|
|
139
|
+
- `context` считает пороги в токенах: 400 000 и 600 000; у модели с меньшим окном действует меньшее из двух;
|
|
140
|
+
- размер сессии проверяется и посреди порции, после коммита;
|
|
141
|
+
- `archive` предупреждает о словах незакрытого в разделе и показывает сами строки;
|
|
142
|
+
- `doctor` видит отставшую память по git: `memory-hot-behind`, `memory-handoff-behind`. Напоминание, что `wiki/hot.md` отстал от коммитов, раньше лежало в «Отложено»: настоящая причина появилась;
|
|
143
|
+
- в отчёт проверки идут только critical, high и открытые, остальное — числа в строке находок передачи;
|
|
144
|
+
- таблица проверок в передаче и в завершении: что не проверял сам, то «со слов»;
|
|
145
|
+
- раздел «Что мешало в работе» в образце передачи.
|
|
146
|
+
|
|
147
|
+
Вне пакета — скрипт недели `scripts/week-stats.mjs`: журналы только числами, git и файлы проектов только на чтение.
|
|
148
|
+
|
|
149
|
+
### Ждёт статистику (0.4.6)
|
|
150
|
+
|
|
151
|
+
Решаем по итогам недели, не раньше: уведомление о новой версии, глубина `light` в мастере, файлы заказчика и чистый клон, догон `settings.json`, модель угроз и устаревшие места в документах, чужие тексты как данные, код, ушедший от плана, Converter, подсказка `git add -A` в `upgrade`.
|
|
152
|
+
|
|
134
153
|
### Отложено — вернёмся, если появится настоящая проблема
|
|
135
154
|
|
|
136
155
|
- Команда `vibe-maestro handoff`: передачу делает агент по `protocols/handoff.md`, и это работает.
|
|
137
|
-
- Напоминание, что `wiki/hot.md` отстал от коммитов: передача после каждой порции обязательна с 0.4.0.
|
|
138
156
|
- Учёт закрытых порций списком для `preflight`.
|
|
139
157
|
- Рецепт крупной порции: отдельная рабочая копия, эталоны вывода «как было», побайтовая сверка, ревью только для чтения.
|
|
140
158
|
- Карта кода `wiki/map.md`.
|