diff --git a/docs/doctoring/email-document-language-direction.md b/docs/doctoring/email-document-language-direction.md index 9d66e8a8d..7ca12ee2c 100644 --- a/docs/doctoring/email-document-language-direction.md +++ b/docs/doctoring/email-document-language-direction.md @@ -1,8 +1,8 @@ # Email document language and direction — standards doctoring -Status: Implemented on active PR +Status: Implemented on protected main -## Decision under review +## Implemented decision A self-contained HTML email document generated by Inkspan may preserve explicit document language and base writing direction on its root `` element. Fragment output remains host-owned and therefore does not manufacture root-document metadata. diff --git a/docs/email-output.md b/docs/email-output.md index 6cb7587bc..2de2af4d3 100644 --- a/docs/email-output.md +++ b/docs/email-output.md @@ -1,6 +1,6 @@ # Deterministic email HTML output -Status: Implemented on active PR +Status: Implemented on protected main Inkspan's `markdownToEmailHtml()` is a deterministic Markdown-to-HTML bridge for email compose/send integrations. It is not a MIME builder, transport client, mailbox API, authentication surface, or persistence service. Hosts such as naruon own transport, recipients, authorization, tenant isolation, delivery policy, durable audit, retention, and downstream mail-client policy. diff --git a/src/emailOutputDocumentation.test.ts b/src/emailOutputDocumentation.test.ts index cececd184..652b5d1d0 100644 --- a/src/emailOutputDocumentation.test.ts +++ b/src/emailOutputDocumentation.test.ts @@ -12,7 +12,7 @@ describe('deterministic email document metadata documentation', () => { it('documents full-document language and direction without moving host authority', () => { const guide = repositoryFile('docs/email-output.md'); - expect(guide).toContain('Status: Implemented on active PR'); + expect(guide).toContain('Status: Implemented on protected main'); expect(guide).toContain('languageTag'); expect(guide).toContain('textDirection'); expect(guide).toContain('Intl.getCanonicalLocales()'); diff --git a/src/protectedEmailDocumentationStatus.test.ts b/src/protectedEmailDocumentationStatus.test.ts new file mode 100644 index 000000000..8eafa4e18 --- /dev/null +++ b/src/protectedEmailDocumentationStatus.test.ts @@ -0,0 +1,21 @@ +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; + +import { describe, expect, it } from 'vitest'; + +const repositoryFile = (path: string): string => + readFileSync(resolve(process.cwd(), path), 'utf8'); + +describe('protected email documentation maturity', () => { + it('does not leave the merged email language/direction capability labeled as active-PR work', () => { + for (const path of [ + 'docs/email-output.md', + 'docs/doctoring/email-document-language-direction.md', + ]) { + const document = repositoryFile(path); + expect(document).toContain('Status: Implemented on protected main'); + expect(document).not.toContain('Status: Implemented on active PR'); + expect(document).not.toContain('## Decision under review'); + } + }); +});