feat(export): native Open Knowledge Format (OKF) v0.2 bundle support - #624
feat(export): native Open Knowledge Format (OKF) v0.2 bundle support#624d-oit wants to merge 20 commits into
Conversation
Introduces native OKF v0.2 bundle support in the studio: - Structured Zod validation schemas matching Google Cloud's OKF v0.2 spec in types.ts. - Export engine converting studio entities, claims, and edges to zipped Markdown bundles in bundle.ts. - Import engine reconstructing studio data from zipped OKF bundles in import.ts. - Trust tier and staleness evaluation helpers in trust.ts. - Native integration in export-types.ts, use-export-handlers.ts, and UI views. - Comprehensive unit and integration test coverage. - New ADR 031 documenting the design decision. Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Aug 9, 2026 8:15p.m. | Review ↗ | |
| Python | Aug 9, 2026 8:15p.m. | Review ↗ | |
| Shell | Aug 9, 2026 8:15p.m. | Review ↗ | |
| SQL | Aug 9, 2026 8:15p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 104 |
| Duplication | 2 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Introduces native OKF v0.2 bundle support in the studio: - Structured Zod validation schemas matching Google Cloud's OKF v0.2 spec in types.ts. - Export engine converting studio entities, claims, and edges to zipped Markdown bundles in bundle.ts. - Import engine reconstructing studio data from zipped OKF bundles in import.ts. - Trust tier and staleness evaluation helpers in trust.ts. - Native integration in export-types.ts, use-export-handlers.ts, and UI views. - Comprehensive unit and integration test coverage. - New ADR 031 documenting the design decision. Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
Introduces native OKF v0.2 bundle support in the studio: - Structured Zod validation schemas matching Google Cloud's OKF v0.2 spec in types.ts. - Export engine converting studio entities, claims, and edges to zipped Markdown bundles in bundle.ts. - Import engine reconstructing studio data from zipped OKF bundles in import.ts. - Trust tier and staleness evaluation helpers in trust.ts. - Native integration in export-types.ts, use-export-handlers.ts, and UI views. - Comprehensive unit and integration test coverage. - New ADR 031 documenting the design decision. Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
Introduces native OKF v0.2 bundle support in the studio: - Structured Zod validation schemas matching Google Cloud's OKF v0.2 spec in types.ts. - Export engine converting studio entities, claims, and edges to zipped Markdown bundles in bundle.ts. - Import engine reconstructing studio data from zipped OKF bundles in import.ts. - Trust tier and staleness evaluation helpers in trust.ts. - Native integration in export-types.ts, use-export-handlers.ts, and UI views. - Comprehensive unit and integration test coverage. - New ADR 031 documenting the design decision. Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
Ensure that the main navigation sidebar is fully visible and hydrated before running tests that press Control+K, preventing timing-related event drop flakiness. Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
…se, concurrent-agent reconciliation
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
…upe test preview fixture
…t-agent reconciliation
| if (errors.length > 0 && ents.length === 0) { | ||
| toast.error('Import failed', { description: errors.join('; ') }) | ||
| return | ||
| } |
There was a problem hiding this comment.
🦉 OwlWatch [LOW · tracker] Partial import error message truncation
Partial import errors could be truncated or misleading when joined as a single string.
9056d89 to
f2fd442
Compare
| * @param files - Map of bundle-relative path → file content. | ||
| * @returns Entities, claims, and any non-fatal parse errors. | ||
| */ | ||
| export const parseOkfBundle = (files: Map<string, string>): OkfImportResult => { |
There was a problem hiding this comment.
🦉 OwlWatch [MEDIUM · tracker] Missing bundle validation in parseOkfBundle
The parseOkfBundle function fails to validate the okf_version within the index.md file, delegating this crucial validation to the UI layer and making the library vulnerable to processing arbitrary or incompatible files.
Introduces native Open Knowledge Format (OKF) v0.2 bundle export/import support in the Knowledge Studio. Built native client-side zip creation/extraction, structured Zod schemas, provenance/attribution stable footnotes, trust evaluation, update logging, and Conformance §11 robust error-handling/passthroughs. Fully verified with Jest/Vitest test suites and repository quality gates.
Fixes #623
PR created automatically by Jules for task 17257068464195044926 started by @d-oit