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

kubeflow / mcp-server / 39129440229
87%

Build:
DEFAULT BRANCH: main
Ran 18 Oct 2026 12:58PM UTC
Jobs 3
Files 38
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

18 Oct 2026 12:57PM UTC coverage: 83.672% (+0.3%) from 83.409%
39129440229

push

github

web-flow
fix(core): reject policy file values with the wrong shape (#409)

_load_policy_file() only checked that the YAML parses. The readers then
iterate list-valued keys directly, so a value of the wrong type was
misread instead of rejected:

- a lone string is applied one character at a time: `deny: risk:destructive`
  denies nothing and `allow: list_*` allows every tool (fail open), and
  `namespaces: ml-team-dev` allows `m`, `l`, ... but not `ml-team-dev`
- `read_only: "false"` reads as True
- an empty `policy:`, `deny:` or `personas:` section, a top-level list, or
  a non-string persona `inherit` crashed startup with a raw TypeError or
  AttributeError

Validate the parsed document once at load time. A wrong shape raises a
RuntimeError naming the file and the key, extending the fail-closed
handling #285 gave unparseable files. A single string gets a hint
showing the list form. Empty sections are normalized to mean the same
as leaving them out; an empty `namespaces:` still means no restriction.

Fixes #405

Signed-off-by: ABHINAVGARG05 <abhichhrp@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

2639 of 3154 relevant lines covered (83.67%)

2.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.36
0.3% core/policy.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 39129440229.1 18 Oct 2026 12:58PM UTC 38
83.67
GitHub Action Run
2 python-3.10 - 39129440229.2 18 Oct 2026 12:58PM UTC 38
83.67
GitHub Action Run
3 python-3.11 - 39129440229.3 18 Oct 2026 12:58PM UTC 38
83.67
GitHub Action Run
Source Files on build 39129440229
  • Tree
  • List 38
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39129440229
  • afa5db66 on github
  • Prev Build on main (#38397767114)
  • Next Build on main (#39130584736)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc