Skip to content

docs: fix test count, document permission-aware auth + tenancy gate, add structure - #3

Merged
man4ish merged 1 commit into
mainfrom
docs/readme-tests-permissions-tenancy-sync
Aug 8, 2026
Merged

man4ish merged 1 commit into
mainfrom
docs/readme-tests-permissions-tenancy-sync

Conversation

@man4ish

@man4ish man4ish commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Testing numbers were stale, and two real, implemented authorization mechanisms — one of them directly connected to a gateway feature I documented earlier today — weren't described anywhere.

Changes

  • Testing: "48 tests passing, 93% coverage" → 90 tests, 95% coverage (live run today).
  • New "Permission-aware authorization" section: app/core/permissions.py's ACTION_PERMISSION_MAP is the receiving end of omnibioai-api-gateway's own SERVICE_PERMISSION_MAP — a real, active gate checking the requester's permissions claim against omnibioai-auth's registry strings (workflow.execute, model.use, dataset.read). "Core Features" only described generic RBAC/ABAC before.
  • New "Org-tenancy scoping" section + Roadmap correction: the Roadmap said "Org-level multi-tenancy | Planned v0.5", reading as if nothing exists yet. app/core/tenancy.py already implements an opt-in resource_org_id scoping gate, fully tested — it's accurate that no real caller activates it yet, but that's narrower than "planned" implied. Split the roadmap line into what's implemented (the gate) vs. what's still open (enforced-by-default multi-tenancy).
  • New "Repository Structure" section — this README had none, despite real internal layering.

Testing

Docs-only change. Verified against a live pytest run, app/core/permissions.py, and app/core/tenancy.py directly — not against the prior README text.

🤖 Generated with Claude Code

…add structure

- Testing: README said "48 tests passing, 93% coverage". Live run
  today: 90 tests, 95% coverage.

- New "Permission-aware authorization" section: app/core/permissions.py's
  ACTION_PERMISSION_MAP is the receiving end of omnibioai-api-gateway's
  own SERVICE_PERMISSION_MAP (documented in that repo's README last
  turn) -- a real, currently-active gate checking the requester's
  `permissions` claim against omnibioai-auth's registry strings
  (workflow.execute, model.use, dataset.read). "Core Features" only
  described generic RBAC/ABAC before; this gate wasn't mentioned
  anywhere.

- New "Org-tenancy scoping" section + Roadmap correction: the Roadmap
  said "Org-level multi-tenancy | Planned v0.5", reading as if nothing
  exists yet. app/core/tenancy.py already implements an opt-in
  resource_org_id scoping gate, fully tested -- it's accurate that no
  real caller activates it yet (the gate is a no-op until a caller
  supplies resource_org_id, and none does today), but that's a
  narrower gap than "planned" implied. Split the roadmap line into
  what's implemented (the gate itself) vs. what's still open
  (enforced-by-default multi-tenancy).

- New "Repository Structure" section -- this README had none, despite
  meaningful internal layering (core/{rbac,abac,engine,rules,tenancy,
  permissions}.py, services/{cache,policy_service}.py, models/).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@man4ish
man4ish merged commit ebd6c7c into main Aug 8, 2026
1 of 2 checks passed
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