- Add @RATIONALE/@REJECTED to 103+ C4/C5 contracts across backend core, services, API routes, and frontend models - Fix 109 unresolved @RELATION edges (Auth.*, SupersetClient.*, AgentChat.*, ADR cross-refs) - Add 13 @ingroup tags for DSA/HCA attention grouping - Repair 29 stale graph edges via index rebuild - Update .kilo agent prompts and skills for GRACE-Poly v2.6 compliance - Git integration: merge routes, branch lifecycle, remote providers, UX components - 0 broken anchor pairs, index rebuilt with 0 parse warnings
4.3 KiB
Semantic Curation Report — 2026-07-01
Summary
- Unresolved relations: 359 → 330 (reduced by 29)
- Audit unresolved severity: 440 → 402 (reduced by 38)
- Index: Fresh, rebuilt with 0 parse warnings
- Contracts: 6006 | Relations: 3014 | Orphans: 1950
Files Modified (10 files, 36 relation fixes)
Priority Files (7 of 7 completed)
-
backend/src/api/auth.py— 6 fixesAuth.Service→auth_service(module contract inservices/auth_service.py)Auth.OAuth→AuthOauthModule(module contract incore/auth/oauth.py)Auth.Dependency.GetCurrentUser→get_current_user(function independencies.py)
-
backend/src/agent/_persistence.py— 1 fixApi.Agent.Conversations→AgentChat.Api.Conversations
-
backend/src/agent/middleware.py— 2 fixesModels.AssistantAuditRecord→AssistantAuditRecordApi.Assistant.Audit→get_assistant_audit
-
backend/src/agent/_confirmation.py— Note:AgentChat.ToolsIS a valid contract but not resolved by DuckDB index (pre-existing blind spot) -
backend/src/agent/_tool_resolver.py— same as #4 -
backend/src/agent/langgraph_setup.py— same as #4 -
backend/src/api/routes/agent_superset.py— 7 fixesSupersetDashboardsWriteMixin.create_dashboard→create_dashboardSupersetDashboardsWriteMixin.copy_dashboard→copy_dashboardSupersetDashboardsWriteMixin.update_dashboard→update_dashboardSupersetClient.CreateDataset→SupersetClientCreateDatasetSupersetClient.DeleteDataset→SupersetClientDeleteDatasetSupersetClient.DuplicateDataset→SupersetClientDuplicateDatasetSupersetClient.RefreshDatasetSchema→SupersetClientRefreshDatasetSchema
Additional Files Fixed
-
backend/src/core/auth/jwt.py— 5 fixesAuth.Config→AuthConfigModuleAuth.TokenBlacklist→TokenBlacklistAuth.Jwt.HashToken→Auth.Jwt._HashToken
-
backend/src/api/routes/agent_superset_explore.py— 9 fixesSupersetDatabasesMixin.*→SupersetClientGetDatabaseSchemas/DatabaseTables/GetTableMetadata/etc.SupersetAuditMixin.permissions_audit→SupersetAudit.PermissionsAuditSupersetSavedQueriesMixin.*→SupersetSavedQueries.List/Get
-
backend/src/services/auth_service.py— 2 fixescreate_access_token→Auth.Jwt.CreateAccessToken
-
backend/src/dependencies.py— 1 fixis_token_blacklisted→Auth.Jwt.IsTokenBlacklisted
-
backend/src/app.py— 2 fixesAuthApi→Api.AuthAuthJwtModule→Auth.Jwt
-
backend/src/core/superset_client/_sql_lab.py— 1 fixSupersetClientBase._fetch_all_pages→SupersetClientFetchAllPages
Patterns Fixed
| Pattern | Count | Resolution |
|---|---|---|
Auth.* → wrong scope |
9 | Pointed to actual contract ID (auth_service, AuthOauthModule, AuthConfigModule, TokenBlacklist, get_current_user) |
Superset*Mixin.* → wrong scope |
8 | Pointed to actual function-level contract IDs |
Api.Agent.* → wrong ID |
1 | AgentChat.Api.Conversations |
Models. prefix → missing prefix |
1 | Dropped Models. prefix (AssistantAuditRecord) |
Api.Assistant.Audit → no contract |
1 | get_assistant_audit |
| Auth shorthand → full contract | 3 | AuthApi→Api.Auth, AuthJwtModule→Auth.Jwt, create_access_token→Auth.Jwt.CreateAccessToken |
Remaining Debt (330 unresolved relations)
AgentChat.Tools— valid contract not indexing (DuckDB blind spot). Affects 3 source relations + 2 test BINDS_TO.- Test BINDS_TO references (~40+) — tests reference contracts that don't exist or have different names
- ADR cross-references (~30) — ADR files use
:ADRsuffix which doesn't match actual IDs - ValidationTaskService/SchedulerService (~12) — code exists but has no GRACE contracts
APIClient,Core.ConnectionService,AsyncAPIClient— external/utility referencesModels.User,Models.*— model contracts with wrong scope prefix
Escalations
None required. All 7 priority files processed. 36 relation fixes applied across 10 files. Index rebuilt with 0 warnings.