[Unreleased]
[1.0.0] - 2026-10-10
Added
- OKF ingest from specification.website: a bounded in-memory
tar.gzreader (header checksums, size and entry caps, links and devices ignored), an allow-list for archive paths, a YAML front-matter topic parser, and an atomic on-disk snapshot store. - Idempotent sync versioned by the archive's SHA-256, with a cache lock against overlapping runs, a weekly scheduled sync, and
specification()->sync(). specification_topicsandspecification_snapshotstables with theTopicandSnapshotmodels. Each snapshot records the slugs its sync created, updated, and deleted.- Local SQLite FTS5 search index (
SearchIndexcontract,SqliteFtsIndex) that is independent of the app's database connection. It rebuilds itself from the topic rows when it doesn't match the current snapshot, so multi-server and ephemeral-filesystem deployments work. SpecCheckcontract,CheckRegistry(direct registration, config, and container tag),CheckRunner,SpecContext,SpecResult,SpecFix, and the opt-infoundations/doctypereference check.SpecReport,TierBreakdown, andTierScorefour-tier reporting (Required, Recommended, and Optional percentages; Avoid as a count of violations).- CC BY 4.0 attribution:
Attribution,LicenseGuard,SpecTopicRenderer,RenderedTopic, andRenderSurface. Marketing surfaces are blocked, and paid surfaces put the attribution first. TopicLinkResolver, which makes relative topic links (../references/*.md,/spec/..., sibling*.md) absolute in rendered HTML and Markdown.render.heading_offsetconfig (default1). Rendered topic headings are demoted so topics don't add an<h1>to the host page, and the wrapper carrieslang="en".- Optional
HttpMcpClientfor the specification.website MCP server (list_topics,get_topic,get_changes,search), disabled by default. specification()->agentReadinessExperimentalEnabled()for owner packages gating experimental Agent Readiness checks.- Artisan commands
keystone:spec-sync,keystone:spec-diff, andkeystone:spec-check. - Documentation in
docs/, including a Deployment & Operations guide for multi-server, ephemeral-filesystem, and offline setups. - Package scaffold from
package-blueprint: service provider, facade,specification()helper, publishableartisanpack.specificationconfig and migrations,artisanpack-ui/code-stylelinting, GitHub Actions CI, and the tag-driven release workflow.
Security
- Attribution output only links
http(s)URLs, and topic URLs from the MCP server are normalized to the upstream origin withAttribution::canonicalUrl(), so ajavascript:URL can't reach anhref. - Topic Markdown is rendered with raw HTML escaped and unsafe link protocols dropped.
- Downloads and MCP calls are
https-only with response size caps enforced while streaming. Console output from upstream text is stripped of control characters and escaped.
Fixed (pre-release audit)
DoctypeCheckno longer treats doctype-like text inside comments orscript,style,textarea, andtitleelements as a misplaced doctype, and its autofix no longer deletes that text.- One unusable check (an invalid slug or an unresolvable dependency) is now reported and set aside (
CheckRegistry::invalid()) instead of aborting every check run or breaking the package.keystone:spec-checklists it and exits with1. - Sync updates the database first and wraps apply failures in
SyncFailedException. Oversized slugs or titles become per-topic errors, unknown conformance keywords are stored asnull, and an unchanged archive repairs a stale on-disk snapshot. - The SQLite index uses a busy timeout and WAL, so searches survive concurrent rebuilds, and search tokens keep combining marks.
- MCP list and change limits are clamped to the documented ranges, and a non-string JSON-RPC error message no longer raises an
ErrorException. keystone:spec-diffsends UTC days to the MCP server and passes--sincethrough as typed.keystone:spec-checkwarns when the URL returns an error status.- Attribution quote marks are now part of the translatable strings.
- Resolved topic links are percent-encoded so they're always valid in a Markdown destination or an HTML attribute. The Markdown rewrite also handles destinations that contain
<or>. DoctypeCheckreturns an errored result with no autofix when its HTML scan fails (for example a PCRE backtrack limit on very large pages), instead of reporting a missing doctype.search()waits up to 10 seconds for an index rebuild running elsewhere and throwsSearchIndexUnavailableExceptionif it's still locked, instead of searching an index it hasn't confirmed is current.

