Skip to content

ci(incremental): merge fitted experimental BKT params instead of copying default - #126

Closed
mjyang00001 wants to merge 1 commit into
CAHLR:mainfrom
mjyang00001:incremental-experimental-bktparams-from-tooling
Closed

ci(incremental): merge fitted experimental BKT params instead of copying default#126
mjyang00001 wants to merge 1 commit into
CAHLR:mainfrom
mjyang00001:incremental-experimental-bktparams-from-tooling

Conversation

@mjyang00001

Copy link
Copy Markdown
Collaborator

Companion to #118, for the second workflow that runs on the same cron.

incremental-content-update.yml ("Automated Content Update (Partial)") ends its "Move and prepare files" step with cp defaultBKTParams.json experimentalBKTParams.json, which makes the two A/B slots byte-identical and discards any fitted values in the experimental slot. This replaces that copy with bkt/merge_experimental.py from the already-cloned OATutor-Tooling checkout: for each KC in the freshly generated default file it takes the fitted value where one exists and falls back to default's own value otherwise, so experimental tracks default's live KC set (new KCs added, removed/renamed KCs dropped) while keeping tuned values.

Safe on the incremental path specifically because the "Prepare for incremental update" step (added in #110) restores defaultBKTParams.json back to bktParams.json before final.py runs, so by the time the merge executes, default holds the full KC set rather than only the sheets that changed in that run.

Depends on CAHLR/OATutor-Tooling#16, which adds bkt/merge_experimental.py and bkt/output/experimentalBKTParams.json. The workflow clones tooling's default branch, so that PR must merge first or the step will fail.

Test plan

  • Merge Feature/bkt fitting OATutor-Tooling#16 first
  • workflow_dispatch this workflow and confirm the merge step reports the fitted-KC count
  • Verify experimentalBKTParams.json on content-staging differs from defaultBKTParams.json and has the same KC set
  • No "BKT Parameter does not exist" errors in the browser console

🤖 Generated with Claude Code

https://claude.ai/code/session_014Uq7T4wTcGUWnMAbKyPHQ3

@mjyang00001 mjyang00001 closed this Sep 5, 2026
@mjyang00001
mjyang00001 deleted the incremental-experimental-bktparams-from-tooling branch September 7, 2026 17:50
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