Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #276 +/- ##
==========================================
+ Coverage 85.54% 88.37% +2.82%
==========================================
Files 29 34 +5
Lines 1986 2606 +620
Branches 175 270 +95
==========================================
+ Hits 1699 2303 +604
- Misses 260 266 +6
- Partials 27 37 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
bmtcril
marked this pull request as draft
October 9, 2026 17:36
- Stop counting a video's actual watched seconds past "now" for sessions still playing. - Report journeys config problems as CLI usage errors. - Check course_length_days fits in window_days. - Add tests for the CLI, video pairing edge cases and unsorted output. - Document the journeys command in the README; fix dataset size comments. - Lint fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bmtcril
marked this pull request as ready for review
October 9, 2026 17:55
This was referenced Oct 10, 2026
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.
Adds a
journeyscommand that generates learner data with known expected results, so Aspects report numbers can be checked against a known answer instead of only being load-tested.The existing backends pick each event independently. This new mode simulates each enrolled learner moving through a properly nested course (sections > subsections > units > problems and videos) in time-ordered sessions. The simulator knows exactly what each learner did, so it also writes the expected engagement results.
What it generates (gzipped CSV, same layouts as the
csvbackend):completedfired once at 95%;mailto:actors.expected_engagement: per learner and section / subsection, pages / problems / videos done out of total, with the Aspects status label.expected_video_seconds: watched seconds per learner and video. "Observable" is what the events can show (each play paired with the next video event). "Truth" is what the learner actually watched, including tab closes.manifest.json: counts, plus the most active learner per course for the learner dashboard.Edge cases (all on in
journeys_oracle.yaml):mailto:actors, deleted units, duplicate events, pause and resume at the same instant, recent activity inside a refreshable-view lookback window, and still-running courses.Example configs:
journeys_oracle.yaml(~9K events, for correctness),journeys_m.yaml(~15M) andjourneys_l.yaml(~75M) for benchmarks. The same config, seed and--nowproduce identical files.Testing
test_journeys.py. The main check rebuilds every expected page / problem row and every observable watched-seconds value from the generated xAPI events and block structure alone, so the simulator's bookkeeping can't drift from the events it emits. The others cover reproducibility, ordering, nesting, edge-case presence, video pairing edge cases, the CLI and config errors.Usage
Loading instructions are in the README.
🤖 Generated with Claude Code