• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

christophevg / yoker / 28794014734
85%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2026 01:11PM UTC
Jobs 1
Files 100
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jul 2026 01:11PM UTC coverage: 84.169% (+0.2%) from 83.992%
28794014734

push

github

christophevg
refactor(context): replace UserList with Protocol + Wrapper architecture

ContextManager refactor per analysis/context-manager-refactor-design.md.

Drops UserList inheritance entirely. Introduces:
- ContextManager: @runtime_checkable Protocol (the contract)
- BaseContextManager: renamed from ContextManager, uses internal
  self._messages list, no UserList, no list surface
- SimpleContextManager: inherits BaseContextManager, adds env reminder
- ContextManagerWrapper: pure proxy implementing Protocol, forwards
  all calls to wrapped instance
- Persisted: wrapper subclass, JSONL persistence via bulk-rewrite
  on every mutating call (void return, no change detection)

Composition now works: Persisted(SimpleContextManager(), session_id="x")
gives both persistence AND environment reminder — the core problem
this refactor solves.

Removed: PersistenceContextManager (replaced by Persisted wrapper)
Removed: UserList inheritance, self.data, list dunder methods
Updated: all call sites use get_messages() instead of list access
Updated: exports, tests, scripts/demo_session.py

1617 tests pass, lint/typecheck clean, 81% coverage.

🤖 Implemented together with a coding agent.

930 of 1074 branches covered (86.59%)

Branch coverage included in aggregate %.

5413 of 6462 relevant lines covered (83.77%)

0.84 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
94.52
9.8% yoker/context/manager.py
2
91.67
0.0% yoker/context/basic.py
1
83.33
-1.11% yoker/context/session.py
Jobs
ID Job ID Ran Files Coverage
1 28794014734.1 06 Jul 2026 01:11PM UTC 100
84.17
GitHub Action Run
Source Files on build 28794014734
  • Tree
  • List 100
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28794014734
  • ddeac57e on github
  • Prev Build on master (#28791755069)
  • Next Build on master (#28794350076)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc