---
name: omaralex24-everdoc-engineering-rules
description: "Evidence-backed engineering rules for OmarAlex24/everdoc, generated by Everdoc from static analysis and git history: boundaries, co-change, hotspots, docs hygiene. Use when editing, reviewing, or planning changes in this repository."
---

# OmarAlex24/everdoc engineering rules

Generated by Everdoc from OmarAlex24/everdoc @ [`a961efe7d646`](https://github.com/OmarAlex24/everdoc/tree/a961efe7d646cb70cbfae04e1cfde3a31fbe086c) (main) by static analysis and the last 38 commits; no LLM. Every rule cites the counts it rests on. Regenerate instead of editing by hand.

Follow these rules when changing this repository. Each states the constraint, then the observed ratio it rests on, then evidence.

## Boundaries

- **Point dependencies down the layer stack.** Apps and CLIs may depend on adapters, libraries, and contracts, never the reverse: 27 of 27 layered workspace edges (100%) comply. _(info, confidence 100%, 27 observations)_

## Co-change

- **Change `packages/sdk/src/config.ts` together with `packages/cli/src/index.ts`.** When modifying `packages/sdk/src/config.ts`, also inspect/update `packages/cli/src/index.ts` — co-changed in 4/5 commits (80%). _(warning, confidence 80%, 4 observations)_
  - feat(capture): discover visual walkthroughs from the route table ([09d2ba5](https://github.com/OmarAlex24/everdoc/commit/09d2ba50768d5aede2dd4ddc9a8c28ff6bb20669), 2026-12-05)
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - fix: publish committed grt capture screenshots, skip route patterns, and compare only changed steps ([406bcbb](https://github.com/OmarAlex24/everdoc/commit/406bcbb5f6c05f43a8fc02f8ed55913147f85057), 2026-12-05)
  - …and 1 more
- **Change `packages/cli/src/doctor.ts` together with `packages/engine/src/extract.ts`.** When modifying `packages/cli/src/doctor.ts`, also inspect/update `packages/engine/src/extract.ts` — co-changed in 3/3 commits (100%). _(warning, confidence 100%, 3 observations)_
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - feat(site): semantic architecture diagrams, grouped references, and flow completeness legend ([c7880eb](https://github.com/OmarAlex24/everdoc/commit/c7880eb87d1e7dab8cef116acb06f0514956d543), 2026-12-05)
  - feat: add @groundtruth/engine, @groundtruth/extractors-js, and the grt CLI ([e735275](https://github.com/OmarAlex24/everdoc/commit/e7352755d14458946504d8e96a85437812a93853), 2026-12-04)
- **Change `packages/ir/src/core.ts` together with `packages/sdk/src/extractor.ts`.** When modifying `packages/ir/src/core.ts`, also inspect/update `packages/sdk/src/extractor.ts` — co-changed in 3/3 commits (100%). _(warning, confidence 100%, 3 observations)_
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - feat(ir,sdk): extend IR and SDK for the Phase 1B extraction engine ([8c25a98](https://github.com/OmarAlex24/everdoc/commit/8c25a98b6abb0f43ccb784983754d2dced49115b), 2026-12-04)
  - feat: bootstrap Groundtruth monorepo with @groundtruth/ir and @groundtruth/sdk ([5873eff](https://github.com/OmarAlex24/everdoc/commit/5873eff3f83a14c5df5f25c80c6f53f0377653b5), 2026-12-04)
- **Change `packages/ir/src/validate.ts` together with `packages/ir/src/graph.ts`.** When modifying `packages/ir/src/validate.ts`, also inspect/update `packages/ir/src/graph.ts` — co-changed in 3/3 commits (100%). _(info, confidence 100%, 3 observations)_
  - feat(ir,engine): list every entity a protocol edge carries ([c7e89b1](https://github.com/OmarAlex24/everdoc/commit/c7e89b198b539ac53f9b6b67720f9a53234a758c), 2026-12-04)
  - feat(ir,sdk): extend IR and SDK for the Phase 1B extraction engine ([8c25a98](https://github.com/OmarAlex24/everdoc/commit/8c25a98b6abb0f43ccb784983754d2dced49115b), 2026-12-04)
  - feat: bootstrap Groundtruth monorepo with @groundtruth/ir and @groundtruth/sdk ([5873eff](https://github.com/OmarAlex24/everdoc/commit/5873eff3f83a14c5df5f25c80c6f53f0377653b5), 2026-12-04)
- **Change `@everdoc/site` together with `everdoc`.** When modifying `@everdoc/site`, also inspect/update `everdoc` — co-changed in 10/14 commits (71.4%). _(info, confidence 71.4%, 10 observations)_
  - feat(site): editorial docs polish, framed walkthroughs, and Built with Everdoc links ([7bdd08d](https://github.com/OmarAlex24/everdoc/commit/7bdd08d003c81529b925ef996fc6265198273069), 2026-12-06)
  - perf(site): load island data on demand, slim page HTML, add analytics and edge telemetry ([7a04fc0](https://github.com/OmarAlex24/everdoc/commit/7a04fc06702953683bfe70b7a20e59d6a2c977bb), 2026-12-05)
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - …and 2 more
- **Change `@everdoc/engine` together with `@everdoc/ir`.** When modifying `@everdoc/engine`, also inspect/update `@everdoc/ir` — co-changed in 8/12 commits (66.7%). _(info, confidence 66.7%, 8 observations)_
  - fix: eliminate false positives in layer rules, orphan contracts, and doc drift (#1) ([#1](https://github.com/OmarAlex24/everdoc/pull/1), 2026-12-05)
  - feat(capture): discover visual walkthroughs from the route table ([09d2ba5](https://github.com/OmarAlex24/everdoc/commit/09d2ba50768d5aede2dd4ddc9a8c28ff6bb20669), 2026-12-05)
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - …and 2 more
- **Change `@everdoc/engine` together with `everdoc`.** When modifying `@everdoc/engine`, also inspect/update `everdoc` — co-changed in 8/12 commits (66.7%). _(info, confidence 66.7%, 8 observations)_
  - feat(capture): discover visual walkthroughs from the route table ([09d2ba5](https://github.com/OmarAlex24/everdoc/commit/09d2ba50768d5aede2dd4ddc9a8c28ff6bb20669), 2026-12-05)
  - feat(extractors-rust): add generic Rust/Cargo and polyglot support ([3cb32a5](https://github.com/OmarAlex24/everdoc/commit/3cb32a5d0952537657c25526bf43b165361f9b28), 2026-12-05)
  - fix: publish committed grt capture screenshots, skip route patterns, and compare only changed steps ([406bcbb](https://github.com/OmarAlex24/everdoc/commit/406bcbb5f6c05f43a8fc02f8ed55913147f85057), 2026-12-05)
  - …and 2 more

## Hotspots

- **Test `packages/engine/src/tree.ts` before editing.** `packages/engine/src/tree.ts` absorbed 3 bug fixes recently — verify edge cases and run targeted tests before editing. _(warning, confidence 50%, 6 observations)_
  - fix: eliminate false positives in layer rules, orphan contracts, and doc drift (#1) ([#1](https://github.com/OmarAlex24/everdoc/pull/1), 2026-12-05)
  - fix(engine): fetch every tag into the blobless mirror so release history is never empty ([a9a4d9d](https://github.com/OmarAlex24/everdoc/commit/a9a4d9d2903e1000fb430e01d4f0deb9692bc2bb), 2026-12-05)
  - fix: materialize remote sources with one batched blob fetch ([7bed7eb](https://github.com/OmarAlex24/everdoc/commit/7bed7eb69123f84496160dc1f22fd47e73880d79), 2026-12-04)

## Docs hygiene

- **Fix broken documentation links.** Fix 1 broken link in 1 guide and check links when moving files: 99.2% of 123 doc links resolve. _(warning, confidence 99.2%, 123 observations)_
  - packages/cli/test/fixtures/acme/docs/architecture.md: `./runbook.md` does not resolve ([`packages/cli/test/fixtures/acme/docs/architecture.md:8`](https://github.com/OmarAlex24/everdoc/blob/a961efe7d646cb70cbfae04e1cfde3a31fbe086c/packages/cli/test/fixtures/acme/docs/architecture.md#L8))
- **Update guides that mention changed code.** When changing an entity a guide mentions, update the guide in the same change: 3 guides mention code modified after the guide's last edit (16/20 are fresh). _(info, confidence 80%, 20 observations)_
  - docs/private-repos.md: `EVERDOC_PROTECT_ALL` is defined in packages/site/src/node/finalize.ts, changed 2026-12-05 after this page (2026-12-05) ([`docs/private-repos.md:117`](https://github.com/OmarAlex24/everdoc/blob/a961efe7d646cb70cbfae04e1cfde3a31fbe086c/docs/private-repos.md#L117))
