{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "okf-memory-okf-agent-memory--validate-knowledge-bundle-in-ci",
 "repo": "okf-memory/okf-agent-memory",
 "repo_url": "https://github.com/okf-memory/okf-agent-memory",
 "repo_slug": "okf-memory-okf-agent-memory",
 "title": "Validate a project knowledge bundle before each commit",
 "page_title": "How to validate a project knowledge bundle before each commit with Okf Agent Memory",
 "summary": "Check OKF conformance, broken links, orphans, and description drift on every change.",
 "who": "A developer or DevOps engineer maintaining a repo's knowledge/ folder who wants bad memory caught before it merges.",
 "problem": "Knowledge notes drift out of sync, links break, and orphaned concepts pile up, so agents read wrong context.",
 "outcome": "A pass or fail result for graph integrity and a quality score for the bundle, usable in a pre-commit or CI step.",
 "steps": [
  "Clone the repository and run `make build` to create bin/okf.",
  "Run `./bin/okf validate knowledge --strict --drift` to check conformance, graph connectivity, and description drift.",
  "Run `./bin/okf validate knowledge --scorecard` to see the three-pillar breakdown and grade.",
  "Run `./bin/okf validate knowledge --scorecard --json` to get machine-readable output for a pipeline.",
  "Fix any reported broken links, orphans, or drift, then re-run the strict validation before committing."
 ],
 "agent_prompt": "Use the okf-memory/okf-agent-memory repo to validate the knowledge bundle at <path-to-repo>/knowledge. Run the strict and drift validation, then the scorecard, and report the grade and every broken link or orphan. Verify that the command exit status is 0 before reporting the bundle as clean.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README excerpt cuts off the exact CI gating example, so confirm the threshold flag in the full README before wiring it into a pipeline.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "A Git repository where the agent works",
  "A Go toolchain and make, since the README builds the tool with make build",
  "Clone access to github.com/okf-memory/okf-agent-memory"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/okf-memory-okf-agent-memory/validate-knowledge-bundle-in-ci/",
 "md": "https://dedupedai.com/use-cases/okf-memory-okf-agent-memory/validate-knowledge-bundle-in-ci/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/okf-memory-okf-agent-memory--validate-knowledge-bundle-in-ci.json",
 "api_version": "v1"
}
