chore: migrate GRACE-Poly anchors to hierarchical dotted naming

Systematic rename of all semantic anchors (#region, [DEF], @RELATION)
across 1400+ files — backend Python, frontend Svelte/TS, specs, docs:
- Flat anchors become Namespace.Module.Entity
- @RELATION references updated to match new anchor paths
- Zero business logic changes
This commit is contained in:
root
2026-07-22 11:48:15 +03:00
parent 34393adf7e
commit 632b730fff
1438 changed files with 17031 additions and 16802 deletions

View File

@@ -1,11 +1,11 @@
# #region SharedLlmHttpClient [C:3] [TYPE Module] [SEMANTICS shared,http,client,ssl,llm]
# #region Shared.LlmHttp.SharedLlmHttpClient [C:3] [TYPE Module] [SEMANTICS shared,http,client,ssl,llm]
# @defgroup Shared Shared lightweight utilities for backend and agent.
# @BRIEF Singleton httpx.AsyncClient with system SSL context for all LLM/API HTTP calls.
# Provides connection pooling, proper SSL verification (capath), configurable timeout.
# @LAYER Infrastructure
# @INVARIANT No dependency on FastAPI, SQLAlchemy, Gradio, LangChain, pydantic.
# @INVARIANT All HTTP clients use system_ssl_context() for SSL verification.
# @RELATION DEPENDS_ON -> [CoreSslTrust]
# @RELATION DEPENDS_ON -> [Shared.Ssl.CoreSslTrust]
# @RATIONALE All HTTP calls to LLM providers and external APIs must use the system CA
# store (capath) instead of certifi to respect corporate certificates installed at
# container startup. This module provides a single source of truth for HTTP client
@@ -692,4 +692,4 @@ async def _handle_response_format_fallback(
new_response = await client.post(url, headers=headers, json=payload)
return new_response, new_response.text
# #endregion SharedLlmHttpClient.HandleResponseFormatFallback
# #endregion SharedLlmHttpClient
# #endregion Shared.LlmHttp.SharedLlmHttpClient

View File

@@ -53,7 +53,7 @@ class CotJsonFormatter(logging.Formatter):
}
"""
# #region format [C:2] [TYPE Function] [SEMANTICS format,json,record]
# #region Shared.CotJsonFormatter.Format [C:2] [TYPE Function] [SEMANTICS format,json,record]
# @INVARIANT Output is always valid single-line JSON.
def format(self, record):
marker = getattr(record, 'marker', None)
@@ -104,7 +104,7 @@ class CotJsonFormatter(logging.Formatter):
log_obj["elapsed_ms"] = elapsed_ms
return json.dumps(log_obj, ensure_ascii=False, default=str)
# #endregion format
# #endregion Shared.CotJsonFormatter.Format
# #endregion Shared.CotJsonFormatter

View File

@@ -1,4 +1,4 @@
# #region CoreSslTrust [C:4] [TYPE Module] [SEMANTICS ssl,tls,trust,certs,security]
# #region Shared.Ssl.CoreSslTrust [C:4] [TYPE Module] [SEMANTICS ssl,tls,trust,certs,security]
# @BRIEF Centralized SSL/TLS trust context for all Python HTTP clients.
# @LAYER Infrastructure
# @INVARIANT Never returns verify=False from environment configuration.
@@ -84,4 +84,4 @@ def cert_dir_inventory(certs_path: str = "/opt/certs") -> dict:
return result
# #endregion CoreSslTrust.CertInventory
# #endregion CoreSslTrust
# #endregion Shared.Ssl.CoreSslTrust