Skip to content

feat(holoindex): add tenant context binding for automatic scope resolution#512

Open
Foundup wants to merge 3 commits into
mainfrom
feat/hia-tenant-context-binding-phase4
Open

feat(holoindex): add tenant context binding for automatic scope resolution#512
Foundup wants to merge 3 commits into
mainfrom
feat/hia-tenant-context-binding-phase4

Conversation

@Foundup
Copy link
Copy Markdown
Member

@Foundup Foundup commented May 6, 2026

Summary

Adds tenant context binding for automatic FoundUp scope resolution:

  • TenantContext class for holding current FoundUp identity
  • Automatic foundup_id injection when tenant context is set
  • Thread-local storage for context isolation
  • Context manager support for scoped operations

Changed Files

  • holo_index/core/holo_index.py — TenantContext binding
  • holo_index/core/search_engine.py — Context-aware search
  • holo_index/tests/test_tenant_context_binding.py (new) — 17 tests
  • holo_index/ModLog.md — Phase 4 entry

Validation

  • test_federation_query_filtering.py: 19 passed
  • test_federation_metadata_tagging.py: 22 passed
  • test_tenant_context_binding.py: 17 passed

WSP 97 Note

Implemented: TenantContext binding, automatic scope injection, context manager
NOT implemented: MCP exposure, external repo support, cross-tenant queries

🤖 Generated with Claude Code

Foundups Agent and others added 3 commits May 6, 2026 17:54
Audit modules/foundups/* directories for manifest coverage before
enabling foundup_id query filtering. Key findings:
- 4/17 directories have foundup_manifest.json
- move2japan active in catalog but missing manifest (P1)
- pqn_swarm_hub vs science_swarm ID mismatch documented
- Phase 3 filtering CAN proceed (fallback handles gaps)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ution (#512)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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