Skip to content

chore: set up knowledge distillery infrastructure - #2

Closed
ether-moon wants to merge 1 commit into
mainfrom
manila
Closed

chore: set up knowledge distillery infrastructure#2
ether-moon wants to merge 1 commit into
mainfrom
manila

Conversation

@ether-moon

@ether-moon ether-moon commented Apr 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Initialize Knowledge Distillery on this repo: GitHub Actions pipeline workflows, empty vault, CLAUDE.md directives, and ignore-rule updates.

Changes

  • .github/workflows/: add mark-evidence.yml, batch-refine.yml, curate-report.yml, and apply-changeset.yml covering the four pipeline stages.
  • .knowledge/vault.db: add the initial empty SQLite knowledge vault. .knowledge/changesets/ and .knowledge/reports/ will be populated by the pipeline.
  • CLAUDE.md: add Knowledge Vault section (query workflow, MUST/MUST-NOT enforcement, do-not-read-files rule) and Memento section (per-commit 7-section session summary on refs/notes/commits).
  • .gitignore: ignore .knowledge/tmp/, tmp/ (vault-refs scratch), and .mcp.json (runtime secrets); leave vault.db, changesets/, reports/ tracked.

Test Plan

  • mark-evidence workflow triggers on PR merge and posts an Evidence Bundle Manifest comment.
  • batch-refine workflow runs on schedule (or manual dispatch) and opens a report PR.
  • curate-report workflow responds to /curate comments on knowledge/batch-* PRs.
  • apply-changeset workflow applies the merged changeset to the vault.
  • Memento note is attached and pushed to refs/notes/commits on every new commit.
  • knowledge-gate CLI commands resolve against the committed vault.db.

Summary by CodeRabbit

  • New Features

    • Introduced automated workflows for managing knowledge batches, applying changesets, collecting evidence, and curating reports. These workflows streamline the processing pipeline through scheduled and event-driven automation.
  • Documentation

    • Added comprehensive operational guidelines defining Knowledge Vault workflow requirements and Memento commit process specifications.
  • Chores

    • Updated repository ignore configuration to exclude temporary directories, runtime files, and sensitive configuration artifacts.

- Add .github/workflows for mark-evidence, batch-refine, curate-report,
  and apply-changeset (Knowledge Distillery pipeline stages).
- Add .knowledge/vault.db as the initial empty knowledge vault, plus
  empty changesets/ and reports/ directories for the refinement pipeline.
- Add CLAUDE.md directives for the Knowledge Vault query workflow and
  the Memento per-commit session-summary requirement.
- Update .gitignore: ignore .knowledge/tmp/, tmp/ (vault-refs scratch),
  and .mcp.json (runtime secrets); commit vault.db, changesets, reports.
@coderabbitai

coderabbitai Bot commented Apr 28, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6225632e-15cd-4f6c-ae4d-23ed6e32d6bd

📥 Commits

Reviewing files that changed from the base of the PR and between e4d1bf2 and d4c9804.

⛔ Files ignored due to path filters (1)
  • .knowledge/vault.db is excluded by !**/*.db
📒 Files selected for processing (6)
  • .github/workflows/apply-changeset.yml
  • .github/workflows/batch-refine.yml
  • .github/workflows/curate-report.yml
  • .github/workflows/mark-evidence.yml
  • .gitignore
  • CLAUDE.md

📝 Walkthrough

Walkthrough

This PR introduces a Knowledge Distillery integration system comprising four new GitHub Actions workflows for batch processing pipelines (evidence marking, batch refinement, report curation, and changeset application), along with configuration updates for ignored files and operational guidelines documentation.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/mark-evidence.yml, .github/workflows/batch-refine.yml, .github/workflows/curate-report.yml, .github/workflows/apply-changeset.yml
Four orchestration workflows managing Knowledge Distillery batch processing: mark-evidence triggers on PR merge to extract and annotate evidence, batch-refine processes PR labels to generate changesets via Claude Code Action, curate-report handles comment-triggered feedback updates to changesets, and apply-changeset applies validated changesets to the vault database. All workflows fetch the external knowledge-distillery plugin, configure MCP/git contexts, and clean up temporary secrets.
Configuration & Documentation
.gitignore, CLAUDE.md
Updates .gitignore to exclude knowledge distillery temporary directories (.knowledge/tmp/, tmp/) and runtime MCP config (.mcp.json). Adds CLAUDE.md defining Knowledge Vault query requirements, memento commit procedures, and rule compliance mandates for the integrated workflow.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 Whiskers twitch with glee and cheer,
Knowledge flows both far and near,
Four workflows dance in GitHub's hall,
Changesets gathered, refined for all!
Evidence bundled, reports so bright—
A knowledge vault shines pure and right! 🌙✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch manila

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ether-moon

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ether-moon ether-moon closed this Apr 28, 2026
@coderabbitai

coderabbitai Bot commented Apr 28, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant