diff --git a/.agents/skills/conexus-review/SKILL.md b/.agents/skills/conexus-review/SKILL.md index c465f684b..4bd89bd44 100644 --- a/.agents/skills/conexus-review/SKILL.md +++ b/.agents/skills/conexus-review/SKILL.md @@ -1,15 +1,15 @@ --- name: conexus-review -description: "Reviews a Conexus roadmap step at its exact commit, as the one Opus reviewer that did not build it: reads the rules from main, reads every file of a unit's diff and compares each built piece with the reference's own code; for the whole step, reads only the card's reference table row by row and the seams between pull requests, never an approved diff again; tries to break every acceptance criterion, runs the refusal criteria, asks of every line whether it exists only because the old code had it, labels each finding Bloqueia, Fechamento or Issue futura, and gives one verdict with file and line. Also checks a fix's delta. Use when instructions name a step to review." +description: "Reviews a Conexus roadmap step at its exact commit, as the one Opus reviewer that did not build it: reads the rules from main, reads every file of a unit's diff and compares each built piece with the reference's own code; checks the diff against the vision and that no piece of main stays without the founder's decision or a reference behind it; for the whole step, reads only the card's reference table row by row and the seams between pull requests, never an approved diff again; tries to break every acceptance criterion, runs the refusal criteria, asks of every line whether it exists only because the old code had it, labels each finding Bloqueia, Fechamento or Issue futura, and gives one verdict with file and line. Also checks a fix's delta. Use when instructions name a step to review." --- # Review ## When to use -Pass 1, once per step, by [delivery L9](../../../docs/guides/delivery.md)'s one reviewer, beside -QA, at `main` once the last unit is merged. It reviews each unit commit by commit from the pull -request's opening, beside CI. Later passes are a delta check (step 9). +Each unit commit by commit from its pull request's opening, and the whole step once beside QA, by +[delivery L9](../../../docs/guides/delivery.md)'s reviewer. Later passes are a delta check +(step 10). ## What it receives @@ -17,35 +17,37 @@ The pull request, its head commit and the card; nothing from the builders' conve ## Steps -1. Read the rules from `main`: `AGENTS.md`, this skill, [the +1. Read the rules from `main`: `AGENTS.md`, [the vision](../../../VISION.md), this skill, [the checklist](../../../docs/reference/checklist.md), the card, [code](../../../docs/guides/code.md) and the card's guides; load pstack `poteto-mode` and, for code, `typescript-best-practices`. An unloaded skill is read from its `stack.md` docs column. -2. A unit review reads every file of its commit against its section. The step review - ([delivery L9](../../../docs/guides/delivery.md)) reads only the whole reference table and the - seams between pull requests, its diff in steps 5 and 6; never an approved one. +2. A unit review reads every file of its commit against its section; the step review reads only + what L9 names, in steps 5 and 6. 3. Try a counterexample to each acceptance criterion. 4. Run the refusal criteria against the published step or a real database, saying what you ran (a claim not run is "read"), and read every CI job's log; when the change touches the test selector, its inputs or a dependency, confirm the plan ran everything. Drive the browser in - doubt; read QA's report if posted. Read the CI quality job; never run - Stryker locally. Hand-mutate the key lines, listed under Ran - ([T27](../../../docs/guides/testing.md)); one no test kills is a finding (L12). + doubt; read QA's report if posted. Never run Stryker locally. Hand-mutate the key lines, listed + under Ran ([T27](../../../docs/guides/testing.md)); one no test kills is a finding (L12). 5. Walk the card's reference table against the diff ([code C75](../../../docs/guides/code.md)): a nativo row uses the named API; an embrulhado row adds only its line; a remendo row's native candidate runs at the installed version, listed in Ran, and one that serves is a Bloqueia. A changed file no row or contract explains is a Bloqueia (C75), outside the card's folders unless the build report declares it (L7). A row on a reference not **mesma situação** in the study's - [verification pass](../conexus-study/references/sources.md) is a finding. A defect fix walks its - report's rows. Then compare each built piece with the reference's code + [verification pass](../conexus-study/references/sources.md), or keeping a piece of `main` the + [study rule](../conexus-study/SKILL.md) takes out, is a finding. A defect fix walks its report's + rows. Then compare each built piece with the reference's code ([compare](references/compare.md)). Two findings on one mechanism: should it exist, or does a library hold it? -6. Walk the checklist across the diff; fill its sweep table. A - screen: [screen](references/screen.md), with [design V62](../../../docs/guides/design.md). +6. Fill the checklist's sweep table. A screen: [screen](references/screen.md), with + [design V62](../../../docs/guides/design.md). 7. Label every finding by [delivery L12](../../../docs/guides/delivery.md). Each code-shape Fechamento goes on the closing list, checked as done. -8. Write one verdict; an unfinished step is no verdict. -9. A delta check reads one front's `git diff ..` and its earlier Bloqueia findings: +8. **The vision.** Per vision section the diff touches: alinha, deve ser recusada (L12) or não + toca. Only its lines count, never the roadmap's; a refusal its text does not carry goes to the + founder as a change to it. +9. Write one verdict; an unfinished step is no verdict. +10. A delta check reads one front's `git diff ..` and its earlier Bloqueia findings: is each closed, did the fix create one; the pull request body counts it ("conferência 1 de no máximo 3"). @@ -60,8 +62,7 @@ Rules read: at
. Reviewed: . ## Comparação com as referências - + ## Ran @@ -69,10 +70,12 @@ records it, or the finding)> ## Sweep table +## Visão + + ## Findings 1. . Evidence: . Breaks: - . Cost (Bloqueia only): Se for assim para produção, perde - quando . + . Cost (Bloqueia only): L12's sentence. ## Verdict approve | request changes: diff --git a/.agents/skills/conexus-scope/SKILL.md b/.agents/skills/conexus-scope/SKILL.md index b7b6460a4..9c1cfa000 100644 --- a/.agents/skills/conexus-scope/SKILL.md +++ b/.agents/skills/conexus-scope/SKILL.md @@ -12,8 +12,9 @@ planning session, never the builder's. ## What it receives -The step's line in [the roadmap](../../../docs/roadmap.md), the study's answers and reference -table, [architecture](../../../docs/architecture.md), and the guide each unit will need. +The step's line in [the roadmap](../../../docs/roadmap.md), [the vision](../../../VISION.md), the +study's answers and reference table, [architecture](../../../docs/architecture.md), and the guide +each unit will need. ## Steps @@ -42,8 +43,8 @@ table, [architecture](../../../docs/architecture.md), and the guide each unit wi skills come from the `docs/reference/stack.md` rows for its folders, and the reference lines it follows. 7. Write the founder's page in Portuguese, as [the template](references/card.md) says: what he - will do at the end and only his real decisions. An amendment rewrites the page, listing what - changed; his words go to the card's file in `docs/approvals/`. + will do at the end, the vision's lines it serves and only his real decisions. An amendment + rewrites the page, listing what changed; his words go to the card's file in `docs/approvals/`. 7a. Write each unit's section as its build spec ([card](references/card.md)): its builder reads only its unit's top-table rows and that section, so the section lists its reference table rows and holds every file, reference line, shape and recording the unit needs, with its order of the work @@ -52,7 +53,7 @@ table, [architecture](../../../docs/architecture.md), and the guide each unit wi 8. Give the card, at the exact commit the founder will approve, to a reader of another model who did not write it, with [the template](references/card.md)'s questions. The reader reads the whole card once before any build, opening every reference table cell and cited line at the - installed version; a later commit, as its diff only. + installed version. ## What it produces diff --git a/.agents/skills/conexus-scope/references/card.md b/.agents/skills/conexus-scope/references/card.md index 1beb6e942..573a5896a 100644 --- a/.agents/skills/conexus-scope/references/card.md +++ b/.agents/skills/conexus-scope/references/card.md @@ -3,8 +3,8 @@ The card's founder's page, in Portuguese, is the only part the founder approves. The rest may be in Portuguese or English, one language per card. -The card never carries whole files. A unit's section is its build spec, what its builder reads. -The reader opens every cited line; the closing deletes the card; then the code is the only source. +The card never carries whole files. A unit's section is its build spec. +The closing deletes the card; then the code is the only source. ```markdown # Etapa : @@ -20,6 +20,9 @@ The reader opens every cited line; the closing deletes the card; then the code i **O que você faz, e quando.** Antes: . No começo: aprova esta página. No fim: faz o roteiro, diz o que viu e aprova os textos das telas. +**A visão.** + **Fica de fora.** **As decisões suas nesta etapa.** +as linhas da referência que a unidade segue (`arquivo:linha`)> ### O raio da mudança diff --git a/.agents/skills/conexus-study/SKILL.md b/.agents/skills/conexus-study/SKILL.md index c33594681..7c7a92cd0 100644 --- a/.agents/skills/conexus-study/SKILL.md +++ b/.agents/skills/conexus-study/SKILL.md @@ -1,6 +1,6 @@ --- name: conexus-study -description: "Studies a Conexus roadmap step before its card: writes the reference table, one row per piece the use script touches, with main's file, how the references do it at the versions Conexus installs, and a verdict nativo, embrulhado or remendo; runs the references and records their native shapes; tests the repository's own decisions against them; recommends what they converge on. Use at the start of every step, including one that brings code." +description: "Studies a Conexus roadmap step before its card: reads the vision and the founder's recorded decisions before main; writes the reference table, one row per piece the use script touches, with what the founder already decided, main's file, how the references do it at the versions Conexus installs, and a verdict nativo, embrulhado or remendo; runs the references and records their native shapes; tests the repository's own decisions against them; recommends what they converge on. Use at the start of every step, including one that brings code." --- # Study @@ -12,22 +12,21 @@ decisions and today's code are input to test. ## What it receives -The step's line in [the roadmap](../../../docs/roadmap.md), the founder's words, the base commit; -for brought code, the entry sheets and the old code at its frozen commit. +The step's line in [the roadmap](../../../docs/roadmap.md), [the vision](../../../VISION.md), the +founder's words and his decisions on the subject ([delivery L6](../../../docs/guides/delivery.md)), +the base commit; for brought code, the entry sheets and the old code at its frozen commit. ## Steps 1. Write each question as what a person sees, one sentence, with its premise. 2. **The reference table** ([report](references/report.md), section 3; verdicts by [code C75](../../../docs/guides/code.md)). One row per piece the use script touches. Fill - "Hoje no main": every file of `main` the use script runs through, inherited ones included. + "O que o fundador já decidiu" first, from the vision and his decisions, read before `main`; + then "Hoje no main": every file of `main` the use script runs through, inherited ones included. Then "Referência": three to six closest analogs (for the AI build flow, AI app builders first), the library's own products, the native feature and the old product, read at the installed - version, each with its situation and match label ([sources](references/sources.md)), the options - a guarantee rests on, their defaults, and the errors the library handles itself (code C50). Name - where you searched. **Trace** each built row in the closest reference's source, - `file:line`, **lido**; Mastra rows also in Mastra Code and Factory - ([sources](references/sources.md)). + version, each with its situation and match label ([sources](references/sources.md)). Name where + you searched. **Trace** each built row in the closest reference's source, `file:line`, **lido**. 3. **Run** the old product for anything it did, and one reference wherever the step changes what a person sees; a screen follows [screens](references/screens.md). A one-way door gets a [proof](references/proof.md). For every library stream, stored row or tool result the step's @@ -45,22 +44,21 @@ for brought code, the entry sheets and the old code at its frozen commit. 6. **Recommend** what you would write from zero (pstack `poteto-mode`), and list what of `main` it deletes. Where references diverge, the options are theirs, each with its how ([report](references/report.md), section 4); without it, it is not brought. -7. **Reopen.** Every reader line, or label it relay; every cell reaching the founder's page or an - option table, by the author. -8. **The verification pass** ([sources](references/sources.md)), by a reader that wrote none of - the report, before it is final. +7. **Reopen** every reader line, or label it relay; never relay on the founder's page. +8. **The verification pass** ([sources](references/sources.md)). **The study rule**: a decision whose only basis is "implemented so", -"only tested so" or "decided before" is dropped, or defended in writing with a reason of its own. A -part is brought only if it would be written that way from nothing. Its measure: lines brought and -changed until the criteria pass, old tests passing unchanged through the public door, session hours. +"only tested so" or "decided before" is dropped, or defended in writing with a reason of its own. +A piece of `main` stays in the design only citing the founder's decision or reference that +justifies it, else it leaves. A part is brought only if it would be written that way from nothing. +Its measure: lines brought and changed until the criteria pass, old tests passing unchanged through +the public door, session hours. Past a third of its brought lines changed, it is written new. ## What it produces -The report ([template](references/report.md)), outside the repository ([delivery -L21](../../../docs/guides/delivery.md)), whose reference table the card copies; for a one-way door, -a decision record "proposed" with its Criterion. +The report ([template](references/report.md)), whose reference table the card copies; for a +one-way door, a decision record "proposed" with its Criterion. ## Stop and ask diff --git a/.agents/skills/conexus-study/references/report.md b/.agents/skills/conexus-study/references/report.md index 709023b32..a5528beb5 100644 --- a/.agents/skills/conexus-study/references/report.md +++ b/.agents/skills/conexus-study/references/report.md @@ -65,12 +65,13 @@ Only for a step with a screen: old and new side by side, per state, with the cap The one artifact from study to review. The study fills every column but "Unidade" and "Arquivo novo", which the card adds; the verdicts are [code C75](../../../../docs/guides/code.md)'s. -| Peça | Unidade | Hoje no main | Referência | Como a referência faz | Veredito | Prova, se não for nativo | Decisão | Arquivo novo | -| --- | --- | --- | --- | --- | --- | --- | --- | --- | -| What a person sees, or the mechanism | U<k>, or "fica de fora" and why | `file:symbol`, or "nenhum" | `package@installed` or `repo@commit`, `file:line`, the situation it solves and its match label ([sources](sources.md)); "nenhuma faz" when none does | The traced flow in one line (entry, shape, state, pieces, errors), each hop `file:line` **lido**; for a Mastra row, Mastra Code or Factory beside `node_modules` | nativo, embrulhado (and what ours adds) or remendo | Script output, test or measurement, and the boundaries entry | His words and date, firstmate's with how to undo it (delivery L6), or "não precisa" | Path | +| Peça | Unidade | O que o fundador já decidiu | Hoje no main | Referência | Como a referência faz | Veredito | Prova, se não for nativo | Decisão | Arquivo novo | +| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | +| What a person sees, or the mechanism | U<k>, or "fica de fora" and why | The [vision](../../../../VISION.md)'s line, by section and sentence, and his decisions on the piece ([delivery L6](../../../../docs/guides/delivery.md)), each with its words, date and file; or "nada registrado" | `file:symbol`, or "nenhum" | `package@installed` or `repo@commit`, `file:line`, the situation it solves and its match label ([sources](sources.md)); "nenhuma faz" when none does | The traced flow in one line (entry, shape, state, pieces, errors), each hop `file:line` **lido**; for a Mastra row, Mastra Code or Factory beside `node_modules` | nativo, embrulhado (and what ours adds) or remendo | Script output, test or measurement, and the boundaries entry | His words and date, firstmate's with how to undo it (delivery L6), or "não precisa" | Path | -Never one row for "o resto". A product piece no library has (our Git, the accounts queue) is a -remendo row that cites its decision record. +A piece of `main` that keeps its place cites this row's founder decision or reference; **herdado** +alone ([sources](sources.md)) takes it out. Never one row for "o resto". A product piece no library +has (our Git, the accounts queue) is a remendo row that cites its decision record. ## The coverage list diff --git a/.agents/skills/conexus-study/references/sources.md b/.agents/skills/conexus-study/references/sources.md index 435f9175e..a02c1db54 100644 --- a/.agents/skills/conexus-study/references/sources.md +++ b/.agents/skills/conexus-study/references/sources.md @@ -5,7 +5,9 @@ instead of its frozen commit; lines cited from clones that vanished with a workt taken as a reference; a warning that sat on an option's reference page, never in the overview. Also a reference read in another situation and cited as if it were ours: Airbyte's database discover cited for every connector kind, and sync schedules, data-health checks and token renewal cited as -the limits of a different check. +the limits of a different check. And a study that started from `main`: the Lago 2 card kept the +Vendas model because the kit already offered it, against the founder's decisions of 2026-11-19 +(founder, 2026-11-23: "tem que ser desfeito para entrar o novo jeito"). ## Where each source is read @@ -75,7 +77,8 @@ enter the report, or carried as **relay**. Its notes stay beside the report. Before the report is final, a reader that wrote none of it (another agent) gets the rows that ground a verdict, an option or the founder's page, and nothing else from the author. For each it reopens -every cited `file:line` or docs quote and answers two questions: does the source say what the cell -claims, and is the situation label right. A row that fails either is fixed and checked again, or +every cited `file:line` or docs quote and answers three questions: does the source say what the +cell claims, is the situation label right, and is there a founder's decision, or a reference line +in the same situation, that this row ignores? A row that fails one is fixed and checked again, or dropped with what rested on it. The report records the pass: the reader, the rows checked, fixed and dropped. diff --git a/AGENTS.md b/AGENTS.md index 06921a298..1f16feb7e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,8 @@ # Conexus: instructions for agents -Conexus lets a person in a company ask an agent, the Builder, for a business app in Portuguese, and -runs that app for the company. This repository holds the server program (Hub and Builder), the -Hub's screens, the Cloudflare edge and the shared contracts. The design is +Conexus joins a company's systems and know-how into one context that its agents and apps read; +[VISION.md](VISION.md) says what it is and refuses. This repository holds the server program (Hub +and Builder), the Hub's screens, the Cloudflare edge and the shared contracts. The design is [docs/architecture.md](docs/architecture.md); the map of every document and the subject it owns is [docs/index.md](docs/index.md). diff --git a/docs/approvals/metodo.md b/docs/approvals/metodo.md index ded424a50..c5a1ff3c9 100644 --- a/docs/approvals/metodo.md +++ b/docs/approvals/metodo.md @@ -112,3 +112,13 @@ Em 2026-11-22, à noite, ao firstmate perguntar se preparava o PR de método enq A L17 nova, publicar pelo merge da nota, não entra aqui: à decisão E do cartão publicar-pelo-merge-da-nota, o fundador respondeu, em 2026-11-22, "1. E1", e ela entra com a construção do release pelo merge. O pull request esperou o fechamento do Registro e da Fundação do front-end, porque o `method-freeze` recusa mudar guia ou skill com um cartão deles em `docs/steps/`; os dois fecharam no https://github.com/developmentconexus-ops/conexus/pull/1238. + +## Mudança de método: a visão e as decisões do fundador antes do `main` + +Em 2026-11-23, como mudança de método (L20), depois da `VISION.md` (https://github.com/developmentconexus-ops/conexus/pull/1274), entram, num pull request só de documentos, duas mudanças pedidas pelo fundador ao firstmate: + +- A leitura da visão, como recomendou a avaliação do `vision` (seções 4 e 6.1, item 3): o `conexus-review` lê a `VISION.md` e dá, por seção que o diff toca, alinha, deve ser recusada pela linha citada, ou não toca (passo 8 e a seção `## Visão` do veredito); a L12 põe a mudança que a visão recusa entre as Bloqueia; o `conexus-scope` cita na página do fundador as linhas que a etapa serve (`references/card.md`); a L24 dá à `VISION.md` o teto de 1.600 palavras, que o `check-docs` confere; o `AGENTS.md` aponta para ela. Contra a recusa falsa (risco 1 da seção 6.3), só as linhas da visão contam, nunca a ordem ou os cortes do roteiro, e a leitura que o texto não traz vai ao fundador como mudança do texto, nunca num segundo arquivo de regras. +- A lição do Lago 2. Em 2026-11-23, o fundador: "isso do Lago 2 ficou muito genérico [...] não dá para a gente querer implementar o Lago querendo continuar o que a gente tem atualmente [...] tem que ser desfeito para entrar o novo jeito". O estudo e o cartão partiram do código de hoje: o modelo Vendas entrou porque o kit já o oferecia, contra a `D1`, a `D4` e a `K2` de 2026-11-19. O `conexus-study` passa a ler a visão e as decisões do fundador sobre o assunto antes do `main`; uma peça do `main` só fica no desenho citando a decisão ou a referência que a justifica, senão sai; o `conexus-review` confere isso no passo 5. +- As três propostas da seção 1.8 do estudo do conector no estilo novo, pedidas pelo firstmate ao mesmo pull request: toda decisão do fundador de uma trilha entra no mesmo dia na página da trilha ou em `fora-de-uma-etapa.md` (L6); a tabela de referência ganha, antes de "Hoje no main", a coluna "O que o fundador já decidiu" (`references/report.md`); e a passada de verificação ganha a terceira pergunta, se há uma decisão do fundador ou uma linha de referência na mesma situação que a linha ignora (`references/sources.md`). + +Para caber nos tetos (L24), saem repetições cujo dono é outro arquivo: o formato da comparação (dono, `compare.md`), a frase de custo da Bloqueia (L12), o quando da revisão (L9), as fontes do Mastra (`sources.md`) e a frase da L26 que repetia o L13 e o L14. diff --git a/docs/guides/delivery.md b/docs/guides/delivery.md index 5a396a255..4bc6e34cf 100644 --- a/docs/guides/delivery.md +++ b/docs/guides/delivery.md @@ -25,7 +25,7 @@ product decision, security boundary or operational prohibition. previous step's use, fixes and closing run beside them. A small change that [AGENTS.md](../../AGENTS.md) exempts from a card is not a step. [review] - **L2.** A step **should** be usable within a few days, with about 4,000 changed code lines excluding - tests/generated files, calibrated at step 5; split before build when it exceeds that budget. + tests/generated files; split before build past that budget. [review] - **L4.** A production defect **should** become an explicit fix at the queue's front rather than hide in the next scope. [review] @@ -40,7 +40,9 @@ product decision, security boundary or operational prohibition. amendments, his mid-step decisions (no new approval) and the use line. Firstmate decides a reversible technical call on every track, except L28, with its evidence and how to undo it; the founder keeps product, spend, security, table permissions, live use, merge words and his own - decisions. [processo, review] + decisions. Firstmate **must** write his other decisions on a track the same day, with words and + date, on the track's page in `docs/steps/trilhas/` or `docs/approvals/fora-de-uma-etapa.md`. + [processo, review] - **L7.** A unit **should** follow its card's folders and contract owners, declaring direct consequences of an approved contract/guard in the build report rather than stopping for a missing path. A change to visible behavior or scope returns to the card and founder. @@ -74,8 +76,8 @@ product decision, security boundary or operational prohibition. merge and says "Se for assim para produção, perde quando "; without that, the finding is **Fechamento**. Bloqueia includes a security failure; lost data; a limit hit at the card's scale; a break of the card's contract; a hand-made piece on an undocumented API; a "must" - test that cannot fail; two owners of one rule; red CI. Fechamento (wording, name, citation, - guide amendment) goes on the pull request's closing list. **Issue futura** (outside scope, future + test that cannot fail; two owners of one rule; a change `VISION.md` refuses, by its quoted line; + red CI. Fechamento (wording, name, citation, guide amendment) goes on the pull request's closing list. **Issue futura** (outside scope, future scale with a written trigger, development tool) goes to a next-card or method issue. A trigger that the step's use script or its first live turn reaches is not future: that finding is Bloqueia unless the step proves it does not happen. With neither broken rule nor shown defect, start with @@ -95,8 +97,8 @@ product decision, security boundary or operational prohibition. exact commit. After the opening commit nobody **may** push to `main` directly. [firstmate's merge script, review] - **L15.** CI **must** have one check, `ci`, that fails when any job of the code fails, is skipped or is cancelled. A second check, `processo`, always present, holds the gates of L5, L6 and L20; a merge needs both green. - Before waiting on CI, the pull request **must not** be CONFLICTING: a conflicting pull request - starts no `pull_request` run. [CI, review] + A pull request **must not** wait on CI while CONFLICTING: it starts no `pull_request` run. + [CI, review] - **L16.** CI **must** list every new dependency in the pull request, and the review asks whether one is on the list of expensive choices. [CI, review] - **L17.** After the merge, the step **must** be published on the cloud installation, checked live by @@ -143,12 +145,14 @@ product decision, security boundary or operational prohibition. under its ceiling below, when it has one; links **must** resolve; rule identifiers **must** be unique and every cited one exist; a rule **must** live in one file; retired process names **must not** appear. They are: wave, N0 to N5, receipts, Factory as the old review robot, Codex review, - `conexus-spec`, `conexus-prove`, `conexus-development`, dossier; they appear nowhere else. A step - card has 2,500 words per unit: its words outside the founder's page, divided by its units. L21 guards it and `docs/approvals/`: keep only what changes what the next agent does. [check-docs, review] + `conexus-spec`, `conexus-prove`, `conexus-development`, dossier; they appear nowhere else. A card's + words outside the founder's page, divided by its units, stay under 2,500; L21 guards the page and + `docs/approvals/`. [check-docs, review] | File | Ceiling, in words | | --- | ---: | | `AGENTS.md` | 400 | +| `VISION.md` | 1,600 | | `docs/index.md` | 500 | | `docs/roadmap.md` | 1,600 | | `docs/approvals/*.md` | none (L21) | @@ -176,6 +180,6 @@ product decision, security boundary or operational prohibition. ## 8. Git -- **L26.** Work and commits belonging to others **should** be preserved, with the operational - prohibitions of AGENTS.md and merge authority of L13/L14 still binding. This never permits reset, clean, stash, force-push or discarding another's work. +- **L26.** Work and commits belonging to others **should** be preserved; this never permits + reset, clean, stash, force-push or discarding another's work. [review] diff --git a/scripts/check-docs.test.ts b/scripts/check-docs.test.ts index caa42f94b..8d05b618d 100644 --- a/scripts/check-docs.test.ts +++ b/scripts/check-docs.test.ts @@ -39,6 +39,7 @@ test('aceita uma árvore limpa', () => { const REFUSALS: [string, Record][] = [ ['document-too-long', { 'docs/decisions/0001-x.md': words(351) }], + ['document-too-long', { 'VISION.md': words(1601) }], ['broken-link', { 'AGENTS.md': 'See [gone](docs/gone.md).\n' }], ['broken-link', { 'AGENTS.md': 'See [gone][target].\n\n[target]: docs/gone.md\n' }], ['broken-fragment', { 'AGENTS.md': '# Title\n\nSee [up](#nowhere).\n' }], diff --git a/scripts/check-docs.ts b/scripts/check-docs.ts index 25841adae..43e2bb57e 100644 --- a/scripts/check-docs.ts +++ b/scripts/check-docs.ts @@ -18,6 +18,7 @@ const root = resolve(process.argv[2] ?? '.') const CEILINGS: readonly (readonly [RegExp, number])[] = [ [/^AGENTS\.md$/, 400], + [/^VISION\.md$/, 1600], [/^docs\/index\.md$/, 500], [/^docs\/roadmap\.md$/, 1600], [/^docs\/architecture\.md$/, 2500], @@ -55,7 +56,7 @@ function walk(dir: string): string[] { } const files = [ - ...['AGENTS.md', 'README.md', 'CLAUDE.md'].map((name) => join(root, name)), + ...['AGENTS.md', 'README.md', 'CLAUDE.md', 'VISION.md'].map((name) => join(root, name)), ...walk(join(root, 'docs')), ...walk(join(root, '.agents/skills')), ]