Skip to content

v0.9.1

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:10
v0.9.1
3e9d4c8

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>), ![p](<pic.png>)) were reported as broken links by okf validate --strict, because allLinkRegex and linkRegex retained 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 allLinkRegex in pkg/okf/bundle.go and introduced extractMarkdownLinks to parse both CommonMark angle-bracket destinations (<...>) and bare destinations with optional "..." / '...' link titles, stripping surrounding < and > delimiters prior to path resolution.
    • Updated entryRegex and parent index.md membership checks in pkg/okf/validator.go to support angle-bracket destinations and optional titles during --drift validation.
    • Added regression test TestCommonMarkAngleBracketLinkDestinations covering <x.md>, <a b.md>, <pic.png>, <>, link titles, and index.md listings under Strict: true, Drift: true.
  • 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): Treated PathKindEscapes identically to PathKindExternal (counting as an outbound reference to prevent false orphan flags, with no BrokenLink and no conformance error). ResolvePath continues 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 in index.md (e.g. ../README.md) and escaping frontmatter path fields (superseded_by, resource, sources[].resource, computation, executor.resource, attester.resource) as Warnings rather than Errors or BrokenLinks—keeping parent-repo references visible to maintainers while preserving is_conformant: true and gate_passed: true under --strict.
    • Updated TestV03PathTraversalConfinement and added TestV03BodyAndIndexExternalEscapingLinks to verify both CWE-22 read confinement in ResolvePath and OKF v0.3 §6 validation semantics.
  • Credit: Reported with OKF v0.3 §6 analysis and fix proposal by Alvise (@alvistar) in #70.

2. Dependencies & Maintenance

  • Bumped golang.org/x/crypto from v0.58.0 to v0.59.0.
  • Bumped golang.org/x/sys from v0.49.0 to v0.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:

Full Changelog

Full Changelog: v0.9.0...v0.9.1