Core tooling path cleanup report
Date: 2026-03-06
Scope
Tooling-only stabilization for:
Resolving locale, route permissions, and workspace projection.
Current scope: Guest
Category: 90_stabilization | Version: v1.0.0
Owner: DOCUMENT_CUSTODIAN | Review cycle: 90 days
Approval authority: Unspecified
Documentation portal is read-only. Editing and mutation endpoints are disabled.
Kvary platform is originally created in Georgian. Where a Georgian version exists, Georgian is authoritative for platform UI, documentation, and legal interpretation.
Translations into other languages are provided for convenience. Some records may originate in other languages and carry their own source or legal locale for a specific flow, but where a Georgian version is available, the Georgian version prevails for platform-level wording and interpretation.
Metadata incomplete: Document ID, Version, Status, Owner Role, Last Review Date, Next Review Date, Change Log
Date: 2026-03-06
Tooling-only stabilization for:
Both scripts previously read:
packages/core/governance/types.tsDependency type:
Classification:
SAFE_TO_REDIRECT_TO_DIST_SUBPATHReason:
GovernanceRecordType union textpackages/core/dist/governance/types.d.ts is a stable package build artifact for this purposeThe shell script previously compiled raw source files:
packages/core/canonical/canonicalSerialize.tspackages/core/hashing/hashV2.tspackages/core/ledger/hashV2Ledger.tsDependency type:
tests/selfcheck-outClassification:
SAFE_TO_REDIRECT_TO_DIST_SUBPATHReason:
packages/core/dist already contains the needed JS artifactsNew path strategy:
@kvary/core/package.jsondist/governance/types.d.tsThis keeps the scripts package-boundary aware and removes direct dependency on repo source layout.
New path strategy:
tests/selfcheck-out/{canonical,hashing,ledger} existspackages/core/dist/canonical/canonicalSerialize.jspackages/core/dist/hashing/hashV2.jspackages/core/dist/ledger/hashV2Ledger.jsThis keeps the test harness behavior intact while removing raw .ts compilation.
Changed files:
The compiled JS governance-consistency script had an existing iterator-spread bug around matchAll().
That bug was fixed while migrating the path source:
Array.from(...)This does not alter script intent; it restores parity with the TypeScript variant.
Executed:
npm --prefix packages/core run build
npm exec -- tsx scripts/verify-governance-consistency.ts
npm exec -- node scripts/verify-governance-consistency.js
bash scripts/run-ledger-v2-golden.sh
Results:
packages/core build succeededObserved warning:
bash scripts/run-ledger-v2-golden.sh emits a Node warning about typeless package JSON when running copied ESM files from tests/selfcheck-outNothing else in this tooling cluster was changed.
No services, apps, or runtime entrypoints were touched.
packages/core cleanupThis change narrows the remaining manual-verify surface.
What it unlocks:
packages/core/*.ts or packages/core/*.js source duplicates based on raw filesystem couplingWhat still remains before a narrower safe-delete pass:
packages/core consumers outside this tooling clusternode_modules/@kvary/core symlink behaviorThis tooling cluster is now stabilized away from direct raw packages/core/*.ts filesystem reads.
That is a real cleanup unlock for the next packages/core manual-verify reduction pass.