Skip to content

docs(dks-core): runtime boundaries + single-sourced import caps (plans/220, #1170) - #1183

Open
d-oit wants to merge 2 commits into
mainfrom
feat/plans-220-shared-services
Open

d-oit wants to merge 2 commits into
mainfrom
feat/plans-220-shared-services

Conversation

@d-oit

@d-oit d-oit commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Scope (#1170, PR A of plan 220)

  • ADR 056 — dks-core owns domain services; PWA/CLI/MCP are thin adapters (extraction rule: ≥2 real consumers, no premature generalization).
  • ARCHITECTURE.md — runtime-boundary section + dependency diagram (acceptance criterion 1; feeds Align product and agent documentation with a Skills-first, CLI-first architecture #1161).
  • plan 220 — GOAP decomposition from the duplication audit (4 measured targets; MCP reader/index migrations are PR B).
  • Import caps single-sourced — vault-zip.ts/vault-zip.test.ts import MAX_BUNDLE_* from dks-core; the MAX_VAULT_* mirrors are deleted (values identical; drift risk gone).
  • Dead weight deleted — src/lib/okf/trust.ts (+ test): zero production consumers; the tier rule lives once in dks-core okf-parse.deriveTrustTier.

Stacked on #1182 (dependency/toolchain fixes); its diff shrinks to this commit once #1182 merges.

Verification

pnpm run lint ✓ · pnpm run typecheck ✓ · pnpm run test ✓ (all workspaces) · import suites 45/45 ✓ · e2e running (import surface touched; CI covers the rest).

- vitest 4.1.11 -> 4.1.12 (poisons @vitest/mocker 4.1.11: Dependabot 91/92).
- pnpm 12 reads overrides from pnpm-workspace.yaml (the package.json pnpm field is ignored): pin qs >= 6.16.1 (alerts 110/113) and minimatch >= 11.0.1 below 11 (alert 114).
- graph-query-builder property generator emitted queries over MAX_QUERY_CLAUSES and NaN confidences; both are out of the model domain and validateGraphQuery/schema rightly reject them. Generator now filters by clause count and uses noNaN.
- Verified: nightly profile seed 10622026 now green (was failing at runs 439 and 1297); pnpm run lint/typecheck/test green on the bumped toolchain.
…ans/220, #1170)

- ADR 056: dks-core owns domain services; PWA/CLI/MCP are thin adapters. ARCHITECTURE.md gains the runtime-boundary diagram (acceptance criterion 1 of #1170, feeds #1161).
- plan 220: GOAP decomposition of #1170 from the duplication audit (4 targets; MCP reader/index migrations follow in PR B).
- src/lib/import/vault-zip.ts + test consume MAX_BUNDLE_ZIP_BYTES / MAX_BUNDLE_UNCOMPRESSED_BYTES / MAX_BUNDLE_ENTRIES from dks-core; the mirror declarations are deleted (values were identical).
- src/lib/okf/trust.ts (+ test) deleted: zero production consumers; the tier rule lives once in dks-core okf-parse.deriveTrustTier.
@coldtea-pr-lens

Copy link
Copy Markdown

Note

The title starts with docs(dks-core):, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
do-knowledge-studio Ready Ready Preview, v0 Nov 22, 2026 6:38pm UTC

@github-actions

Copy link
Copy Markdown
Contributor

Blocked merge diagnosis — blocked
⏳ Check run(s) still in progress: ["Codacy Static Code Analysis","labeler","Node 24","Node 26","Node 22","Secret Detection","Trivy Filesystem Security Scan","Dependency Advisory Audit","Infrastructure as Code Security","Shell Script Security Analysis","commitlint","GitHub Actions Workflow Validation","Stale Base Guard","Diagnose Blocked Merge State","YAML Syntax Validation","Detect Changes","Performance Benchmarks (advisory)","Analyze (actions)","Analyze (python)","Analyze (javascript-typescript)"]

@github-actions github-actions Bot added documentation Documentation improvements config tests Related to automated/manual tests labels Nov 22, 2026
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

This branch was successfully deployed

1 active deployment
Preview — 009b470a Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config documentation Documentation improvements tests Related to automated/manual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants