Repository navigation
ci(bots): rolling learning PR — bump engine + fix retrospective to daily-cron - #197
Merged
Merged
Conversation
Adopts databricks-bot-engine#146: the daily retrospective now maintains ONE rolling learning PR on a stable branch instead of a new date-keyed PR per day, eliminating cross-day collisions in the learning-log footer. No .bot/config.yaml change needed — the stable branch is derived from the existing branch_prefix (ai/learning-pr-). Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
eric-wang-1990
temporarily deployed
to
azure-prod
July 26, 2026 20:01 — with
GitHub Actions
Inactive
Kernel adopted the cron-batch engine but its learning flow was still the OLD per-merge shape (on: pull_request closed + extract-learning label + workflow-gathered pr_diff.txt/review_comments.txt). That mismatched the engine — which enumerates merged PRs + author runs itself over an adaptive window — so the retrospective never produced a learning PR. - engineer-bot-learning.yml: trigger → schedule (daily) + workflow_dispatch (since / window-hours); drop the merged-PR context-gather step; add actions:read (Track B) + a cron concurrency group. - .bot/config.yaml: drop retrospective.context_files (author-phase key only) and the stale system_prompt override (retired worth_logging/headline contract — use the engine's batch-aware base); add author.knowledge_log to close the loop (author reads what the retrospective writes); add author_workflow for Track B. - Remove .bot/prompts/retrospective_system.md (the stale override). Paired with the engine bump to d05dcb1, the retrospective now maintains ONE rolling learning PR on the stable branch ai/learning-pr. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
eric-wang-1990
temporarily deployed
to
azure-prod
July 27, 2026 00:24 — with
GitHub Actions
Inactive
eric-wang-1990
temporarily deployed
to
azure-prod
July 27, 2026 00:24 — with
GitHub Actions
Inactive
eric-wang-1990
enabled auto-merge
July 27, 2026 02:55
eric-wang-1990
disabled auto-merge
July 27, 2026 04:27
vikrantpuppala
approved these changes
Aug 14, 2026
Resolve conflicts in .bot/config.yaml, bot-prelude/action.yml, and engineer-bot-learning.yml by taking main's side: main's engine pin (654a31d, 2026-08-04) is newer than the PR's d05dcb1 (2026-07-26), and main carries the daily-cron refinements (MODEL_ENDPOINT fix, deduped env). Restored .bot/prompts/retrospective_system.md to keep main's system_prompt reference valid. Net result: branch content matches main. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
eric-wang-1990
temporarily deployed
to
azure-prod
August 14, 2026 07:40 — with
GitHub Actions
Inactive
eric-wang-1990
temporarily deployed
to
azure-prod
August 14, 2026 07:40 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two related changes to adopt the rolling-learning-PR engine change (databricks-bot-engine#146) and fix a pre-existing mismatch that meant this repo's retrospective never actually ran:
1. Bump the engine pin
92b3857→d05dcb1Adopts the rolling model: the daily retrospective now maintains one rolling learning PR on a stable branch (
ai/learning-pr) — appending a dated section per day until a human merges it — instead of opening a new date-keyed PR per day that collided in the learning-log footer. One-line change tobot-prelude'sengine-refdefault (single source of truth for all bots here).2. Convert the learning flow to the daily-cron model (the real fix)
This repo adopted the cron-batch engine (
92b3857) but its learning flow was still the old per-merge shape — so they were mismatched and the retrospective has never produced a learning PR (noai/learning-pr*branch has ever existed here). This PR aligns them:engineer-bot-learning.yml: triggeron: pull_request [closed]+extract-learninglabel →on: schedule(daily) +workflow_dispatch(since/window-hoursrecovery inputs). Removes the per-merge "gather PR diff/comments" step (the cron engine enumerates merged PRs + author-run logs itself via the GitHub API over an adaptive cursor). Addsactions: read(Track B lists author runs — a missing scope hard-fails the run) and a cronconcurrencygroup..bot/config.yaml:retrospective.context_files(pr_diff.txt/review_comments.txt) — an author-phase-only key the cron engine ignores.system_prompt: prompts/retrospective_system.mdoverride — it described the retired single-PRworth_logging/headlinecontract and would append stale, schema-contradicting guidance to the engine's batch-aware base. Use the engine base verbatim.author.knowledge_log=retrospective.log_pathto close the loop (the author phase now reads the learnings the retrospective writes).author_workflow: engineer-bot.ymlfor Track B..bot/prompts/retrospective_system.md(the stale override).Validation
.bot/config.yamlloads via the engine'sload_bot; theretrospective:block parses; loop confirmed closed (retrospective.log_path == author.knowledge_log);bot_login_prefixpresent (needed for the DCO-signed learning commit).engineer-bot-learning.ymlYAML parses; mirrors driver-test's workingengineer-bot-learning-cron.yml(adapted to this repo's PAT-freebot-preludeinstall).Provisioning note
The engineer-bot GitHub App installation must carry
actions: readfor Track B (author-run mining); without itlist_author_runsraises and the run fails. Everything else (DATABRICKS_HOST/DATABRICKS_TOKENinazure-prod, the App secrets) is already in place from the existing bots.This pull request and its description were written by Isaac.