Repository navigation
Release v0.9.1: CommonMark Angle-Bracket Links & OKF v0.3 §6 External Path Classification
Release v0.9.1 is a conformance and bugfix patch release resolving two OKF v0.3 link-handling regressions introduced in v0.9.0—CommonMark angle-bracket link destinations (<x.md>) and out-of-bundle external path classification per OKF v0.3 §6—alongside routine Go dependency updates.
1. Bug Fixes & OKF v0.3 Conformance
CommonMark Angle-Bracket Link Destinations & Link Titles (#69)
- Problem: Valid CommonMark inline link and image destinations wrapped in angle brackets (e.g.
[x](<x.md>),[spaced](<a b.md>),) were reported as broken links byokf validate --strict, becauseallLinkRegexandlinkRegexretained the<and>delimiters as part of the target path and did not match destinations containing spaces or optional link titles ([t](x.md "title")). - Resolution:
- Updated
allLinkRegexinpkg/okf/bundle.goand introducedextractMarkdownLinksto parse both CommonMark angle-bracket destinations (<...>) and bare destinations with optional"..."/'...'link titles, stripping surrounding<and>delimiters prior to path resolution. - Updated
entryRegexand parentindex.mdmembership checks inpkg/okf/validator.goto support angle-bracket destinations and optional titles during--driftvalidation. - Added regression test
TestCommonMarkAngleBracketLinkDestinationscovering<x.md>,<a b.md>,<pic.png>,<>, link titles, andindex.mdlistings underStrict: true, Drift: true.
- Updated
- Credit: Reported with reproduction and fix suggestion by Alvise (@alvistar) in #69.
OKF v0.3 §6 External Classification for Out-of-Bundle Paths (#70)
- Problem: Links resolving outside the bundle root (e.g.
[ADR](../../docs/a.md)or[code](../../src/a.ts)inside<repo>/knowledge/) were recorded as broken links and escalated to conformance errors (is_conformant: false). Under OKF v0.3 §6, values resolving outside the bundle root are external—consumers MUST NOT read them from the local file system, but MUST NOT reject the bundle as non-conformant because of them. - Resolution:
- Concept Body Links (
pkg/okf/bundle.go): TreatedPathKindEscapesidentically toPathKindExternal(counting as an outbound reference to prevent false orphan flags, with noBrokenLinkand no conformance error).ResolvePathcontinues to refuse all local reads outside the bundle root, preserving CWE-22 confinement unchanged. index.md& Frontmatter Path Fields (pkg/okf/bundle.go,pkg/okf/validator.go): Classified escaping links inindex.md(e.g.../README.md) and escaping frontmatter path fields (superseded_by,resource,sources[].resource,computation,executor.resource,attester.resource) asWarningsrather thanErrorsorBrokenLinks—keeping parent-repo references visible to maintainers while preservingis_conformant: trueandgate_passed: trueunder--strict.- Updated
TestV03PathTraversalConfinementand addedTestV03BodyAndIndexExternalEscapingLinksto verify both CWE-22 read confinement inResolvePathand OKF v0.3 §6 validation semantics.
- Concept Body Links (
- Credit: Reported with OKF v0.3 §6 analysis and fix proposal by Alvise (@alvistar) in #70.
2. Dependencies & Maintenance
- Bumped
golang.org/x/cryptofromv0.58.0tov0.59.0. - Bumped
golang.org/x/sysfromv0.49.0tov0.50.0.
3. Community & Special Thanks
- Alvise (@alvistar): For thorough bug reports, minimal reproductions, OKF v0.3 specification analysis, and actionable fix suggestions for CommonMark angle-bracket link destinations (#69) and out-of-bundle external path classification (#70).
🌐 Discover & Share Knowledge: OKF Registry
Scale persistent memory across projects and agent sessions with the decentralized OKF Registry:
- Browse & Share: Discover curated, quality-scored memory packages (e.g. framework best practices, architecture rules, compliance guidelines) at registry.okf-memory.dev.
- Install in Seconds: Pull external knowledge directly into
.okf/vendor/with zero dependencies:okf pull <bundle-id>
- Guaranteed Conformance: Every package is verifiable against Open Knowledge Quality Scorecards (
--min-score) with atomic rollback to ensure deterministic agent consumption.
Pre-built Binaries & Verification
Release binaries are automatically built by GitHub Actions:
- Download: v0.9.1 Release Binaries
Full Changelog
Full Changelog: v0.9.0...v0.9.1