Skip to content

ai-flow config: opt dev into org-tier learning promotion - #96

Merged
JPDuchesne merged 1 commit into
mainfrom
jpd/ai-flow-knowledge-repo
Aug 4, 2026
Merged

ai-flow config: opt dev into org-tier learning promotion#96
JPDuchesne merged 1 commit into
mainfrom
jpd/ai-flow-knowledge-repo

Conversation

@JPDuchesne

Copy link
Copy Markdown
Contributor

Summary

  • Adds knowledge_repo: d3mlabs/knowledge to .github/ai-flow.yml, opting dev's capture passes into org-tier promotion: a pass that judges a lesson org-tier (PROMOTE: <slug>, or an explicit /learn --promote) can now open a proposal PR on the knowledge repo and prune the lesson from the repo-local draft.

Why

Surfaced by the dev#89 /learn re-run: it judged harness-env-scrub org-tier and declared PROMOTE, but correctly declined routing because no knowledge_repo: was configured — dev was never wired to the knowledge base's write path. The key lives here (not in dev's machine settings) deliberately: it authorizes automated org proposals from this repo, so it belongs on the in-repo, PR-reviewed policy surface, same as model policy. The read path (dev learnings sync / invariants cache) remains configured machine-side via Dev::Settings.

Test plan

  • After merge: re-run /learn on dev#89 — the PROMOTE declaration should route harness-env-scrub org-ward (proposal PR on d3mlabs/knowledge, repo-local draft pruned) — the plans#17 live PROMOTE check.

Made with Cursor

The dev#89 /learn re-run judged harness-env-scrub org-tier and declared
PROMOTE, but the routing declined: no knowledge_repo was configured.
This is the write-path opt-in (which repos may open proposal PRs on the
org knowledge base), reviewed in-repo like the rest of ai-flow policy;
the read path stays machine-side in dev's own settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@JPDuchesne
JPDuchesne merged commit f119987 into main Aug 4, 2026
5 checks passed
@JPDuchesne
JPDuchesne deleted the jpd/ai-flow-knowledge-repo branch August 4, 2026 11:59
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