Files
microfish/backend/tests/fixtures/memory_parity/tools_fixture.json
Kunthawat Greethong 8b84378fe1 feat: SaaS foundation for CrowdSight
Elevate MiroFish/CrowdSight from single-container dev to a SaaS foundation:

- Local memory backend (Zep-compatible): memory services/models, local graph
  builder + updater, AgentActivity seam, import-boundary isolation; Zep stays
  default, local is opt-in behind MEMORY_BACKEND. Semantic parity not yet proven.
- Durable product persistence: projects/simulations/reports schema (migration
  0007) + tenant/owner-scoped ProductRepository + dual-write + scoped_project
  read-first + ArtifactStore abstraction; durable JobQueue + worker.py.
- SaaS hardening: durable RateLimiter (wired to login), UsageService (LLM
  accounting), redacted AuditService, idempotency, CORS allowlist, safe API
  errors, single-use PasswordResetService + endpoints (covers invite-pending).
- Exactly 3 roles (super_admin/admin/user) with tenant authz policy.
- Admin UI: GET/POST/PATCH /api/admin/users + GET/PUT /api/admin/settings
  (super-admin only, encrypted/masked); AdminView.vue + SettingsView.vue with
  admin/super-admin route guards, th/en i18n.
- Production deploy topology: multi-stage Dockerfile (frontend build + gunicorn
  wsgi + nginx SPA-proxy + supervisord worker), backend/wsgi.py, gunicorn dep.

Backend 197 passed; frontend 10 tests + build green. ruff unavailable (gap).
No commit of credentials; secrets handled via env/.env.example.
Deferred: Zep semantic A/B parity, object storage cutover, mobile QA, EasyPanel
container build of deploy topology.
2026-08-31 13:05:21 +07:00

76 lines
2.0 KiB
JSON

{
"graph_id": "graph-tools-fixture",
"organization_id": "org-a",
"project_id": "project-tools",
"nodes": [
{
"id": "node-alice",
"canonical_name": "Alice",
"normalized_name": "alice",
"labels": ["Entity", "Person"],
"aliases": ["A. Example"],
"attributes": {"role": "founder"},
"summary": "A founder mentioned in the source.",
"confidence": 0.91
},
{
"id": "node-acme",
"canonical_name": "Acme",
"normalized_name": "acme",
"labels": ["Entity", "Organization"],
"aliases": [],
"attributes": {"sector": "software"},
"summary": "A software company mentioned in the source.",
"confidence": 0.88
},
{
"id": "node-beta",
"canonical_name": "Beta",
"normalized_name": "beta",
"labels": ["Entity", "Organization"],
"aliases": [],
"attributes": {},
"summary": "A partner company mentioned in the source.",
"confidence": 0.82
}
],
"edges": [
{
"id": "edge-current",
"source_node_id": "node-alice",
"target_node_id": "node-acme",
"relation": "WORKS_FOR",
"fact": "Alice works for Acme.",
"attributes": {},
"confidence": 0.9,
"valid_at": "2024-01-01T00:00:00+00:00",
"invalid_at": null,
"expired_at": null
},
{
"id": "edge-historical",
"source_node_id": "node-alice",
"target_node_id": "node-acme",
"relation": "WORKED_FOR",
"fact": "Alice previously worked for Acme.",
"attributes": {},
"confidence": 0.86,
"valid_at": "2020-01-01T00:00:00+00:00",
"invalid_at": "2023-01-01T00:00:00+00:00",
"expired_at": null
},
{
"id": "edge-unrelated",
"source_node_id": "node-acme",
"target_node_id": "node-beta",
"relation": "PARTNERED_WITH",
"fact": "Acme partnered with Beta.",
"attributes": {},
"confidence": 0.8,
"valid_at": "2022-01-01T00:00:00+00:00",
"invalid_at": null,
"expired_at": null
}
]
}