Version: 1.2.0Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Last Updated: 2026-03-06
Status: Active Owning Core/Module: PF-75
Purpose
This standard defines how Encore Health OS enforces documentation comment quality and coverage for public TypeScript APIs. The goal is to improve maintainability and API clarity while enforcing durable standards for all in-scope exported APIs.Scope
In Scope (initial)
src/platform/**src/shared/**src/cores/**supabase/functions/**
Declaration types currently enforced for coverage
export function ...export class ...- exported
constinitialized with function expressions / arrow functions
Initial exclusions
src/routes/**route/lazy-map filessrc/integrations/**generated integration files- test/spec/story files
- pure re-export barrels (
export { ... } from ...) - type-heavy mapping files:
**/types.ts**/types/**/*.ts**/index.types.ts
TSDoc Syntax Rule
Default lint runs prioritize actionable runtime/code-quality findings.TSDoc syntax debt is tracked via a dedicated command:
Coverage Audit Commands
Output reports
reports/audits/TSDOC_JSDOC_COVERAGE_REPORT.mdreports/audits/TSDOC_JSDOC_COVERAGE_REPORT.jsonreports/audits/TSDOC_JSDOC_COVERAGE_BASELINE.mdreports/audits/TSDOC_JSDOC_COVERAGE_BASELINE.json
Required Comment Quality
At minimum, public declarations should include:- A concise summary line that describes behavior,
@paramtags for non-obvious parameters,@returnswhen return semantics are non-trivial,@deprecatedwith migration guidance and sunset where applicable.
CI Policy
- Generate baseline report,
- Enforce no-regression on changed files (
--fail-on-missing), - Keep in-scope baseline coverage at 100%.
Threshold Policy
Minimum thresholds (fordocs:comments:audit):
- Global minimum: 100%
- Area minimums:
- platform: 100%
- shared: 100%
- cores: 100%
- edge-functions: 100%
Current Coverage Status
As of the latest baseline run:- Documented declarations: 8201 / 8201
- Coverage: 100%
References
scripts/audit/audit-doc-comment-coverage.tsspecs/pf/specs/PF-75-tsdoc-jsdoc-coverage-program.mdAGENTS.md(current: see docs/VERSIONS.md)constitution.md(current: see docs/VERSIONS.md)