auto-sync: tudo-para-ia-mais-humana 2026-05-02 06:29:22
This commit is contained in:
Binary file not shown.
@@ -6,6 +6,6 @@
|
|||||||
"path": "G:\\_codex-git\\nucleo-gestao-operacional\\central-de-ordem-de-servico\\projects\\15_repo_tudo-para-ia-mais-humana-platform\\reports\\EXECUTADO__canonical-identity-graph.md"
|
"path": "G:\\_codex-git\\nucleo-gestao-operacional\\central-de-ordem-de-servico\\projects\\15_repo_tudo-para-ia-mais-humana-platform\\reports\\EXECUTADO__canonical-identity-graph.md"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generatedAt": "2026-05-02T09:21:36+00:00",
|
"generatedAt": "2026-05-02T09:25:08+00:00",
|
||||||
"ok": false
|
"ok": false
|
||||||
}
|
}
|
||||||
@@ -1808,7 +1808,7 @@
|
|||||||
"compatibilityRule": "Nome canonico institucional aprovado como tudo-para-ia-mais-humana-platform; o repositorio local historico tudo-para-ia-mais-humana e o alias tudo-para-ia-mais-humana-plataform permanecem aliases de compatibilidade ate migracao Git/MCP sincronizada, sem duplicar repositorio nem sobrescrever historico.",
|
"compatibilityRule": "Nome canonico institucional aprovado como tudo-para-ia-mais-humana-platform; o repositorio local historico tudo-para-ia-mais-humana e o alias tudo-para-ia-mais-humana-plataform permanecem aliases de compatibilidade ate migracao Git/MCP sincronizada, sem duplicar repositorio nem sobrescrever historico.",
|
||||||
"controlPlaneId": "tudo-para-ia-mcps-internos-plataform",
|
"controlPlaneId": "tudo-para-ia-mcps-internos-plataform",
|
||||||
"decisionSource": "015-ROTEADOR-PERMANENTE-DE-ORDEM_DE_SERVICO.MD",
|
"decisionSource": "015-ROTEADOR-PERMANENTE-DE-ORDEM_DE_SERVICO.MD",
|
||||||
"generatedAt": "2026-05-02T09:21:36+00:00",
|
"generatedAt": "2026-05-02T09:25:08+00:00",
|
||||||
"graphId": "canonical-identity-59e116f20f1a36a6",
|
"graphId": "canonical-identity-59e116f20f1a36a6",
|
||||||
"maisHumanaCanonicalProjectId": "tudo-para-ia-mais-humana-platform",
|
"maisHumanaCanonicalProjectId": "tudo-para-ia-mais-humana-platform",
|
||||||
"maisHumanaCentralFolder": "15_repo_tudo-para-ia-mais-humana-platform",
|
"maisHumanaCentralFolder": "15_repo_tudo-para-ia-mais-humana-platform",
|
||||||
|
|||||||
7
dados/canonical-identity-semantic-write-status.json
Normal file
7
dados/canonical-identity-semantic-write-status.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"error": "",
|
||||||
|
"filesCount": 6,
|
||||||
|
"generatedAt": "2026-05-02T09:25:08+00:00",
|
||||||
|
"ok": true,
|
||||||
|
"sqlitePath": "G:\\_codex-git\\tudo-para-ia-mais-humana\\controle-semantico.sqlite"
|
||||||
|
}
|
||||||
@@ -6,6 +6,6 @@
|
|||||||
"path": "G:\\_codex-git\\nucleo-gestao-operacional\\central-de-ordem-de-servico\\projects\\15_repo_tudo-para-ia-mais-humana-platform\\reports\\EXECUTADO__workspace-hygiene.md"
|
"path": "G:\\_codex-git\\nucleo-gestao-operacional\\central-de-ordem-de-servico\\projects\\15_repo_tudo-para-ia-mais-humana-platform\\reports\\EXECUTADO__workspace-hygiene.md"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generatedAt": "2026-05-02T08:21:08+00:00",
|
"generatedAt": "2026-05-02T09:27:04+00:00",
|
||||||
"ok": false
|
"ok": false
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
"error": "PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
"error": "PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
||||||
"footprint_after": {
|
"footprint_after": {
|
||||||
"byte_count": 0,
|
"byte_count": 0,
|
||||||
"child_count": 897,
|
"child_count": 1042,
|
||||||
"errors": [
|
"errors": [
|
||||||
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
||||||
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpu13bzfhr'"
|
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpu13bzfhr'"
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"is_file": false
|
"is_file": false
|
||||||
},
|
},
|
||||||
"footprint_before": {
|
"footprint_before": {
|
||||||
"byte_count": 60842050,
|
"byte_count": 68130347,
|
||||||
"child_count": 2213,
|
"child_count": 3052,
|
||||||
"errors": [
|
"errors": [
|
||||||
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'",
|
||||||
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpu13bzfhr'"
|
"PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpu13bzfhr'"
|
||||||
@@ -63,11 +63,11 @@
|
|||||||
"blockers": [
|
"blockers": [
|
||||||
"python-test-temp:PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'"
|
"python-test-temp:PermissionError: [WinError 5] Acesso negado: 'G:\\\\_codex-git\\\\tudo-para-ia-mais-humana\\\\.test-tmp\\\\tmpnk6r4sdb'"
|
||||||
],
|
],
|
||||||
"central_platform_folder": "",
|
"central_platform_folder": "G:\\_codex-git\\nucleo-gestao-operacional\\central-de-ordem-de-servico\\projects\\15_repo_tudo-para-ia-mais-humana-platform",
|
||||||
"clean": false,
|
"clean": false,
|
||||||
"generated_at": "2026-05-02T08:28:47+00:00",
|
"generated_at": "2026-05-02T09:27:04+00:00",
|
||||||
"project_root": "G:\\_codex-git\\tudo-para-ia-mais-humana",
|
"project_root": "G:\\_codex-git\\tudo-para-ia-mais-humana",
|
||||||
"report_id": "workspace-hygiene-534686882219",
|
"report_id": "workspace-hygiene-389155382838",
|
||||||
"status": "blocked",
|
"status": "blocked",
|
||||||
"summary": [
|
"summary": [
|
||||||
"Targets evaluated: 2.",
|
"Targets evaluated: 2.",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Canonical Identity Graph
|
# Canonical Identity Graph
|
||||||
|
|
||||||
- graph_id: `canonical-identity-59e116f20f1a36a6`
|
- graph_id: `canonical-identity-59e116f20f1a36a6`
|
||||||
- generated_at: `2026-05-02T09:21:36+00:00`
|
- generated_at: `2026-05-02T09:25:08+00:00`
|
||||||
- records: `15`
|
- records: `15`
|
||||||
- aliases: `75`
|
- aliases: `75`
|
||||||
- acceptance_cases: `4125`
|
- acceptance_cases: `4125`
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# Workspace Hygiene Report
|
# Workspace Hygiene Report
|
||||||
|
|
||||||
- report_id: `workspace-hygiene-534686882219`
|
- report_id: `workspace-hygiene-389155382838`
|
||||||
- generated_at: `2026-05-02T08:28:47+00:00`
|
- generated_at: `2026-05-02T09:27:04+00:00`
|
||||||
- project_root: `G:\_codex-git\tudo-para-ia-mais-humana`
|
- project_root: `G:\_codex-git\tudo-para-ia-mais-humana`
|
||||||
- central_platform_folder: ``
|
- central_platform_folder: `G:\_codex-git\nucleo-gestao-operacional\central-de-ordem-de-servico\projects\15_repo_tudo-para-ia-mais-humana-platform`
|
||||||
- status: `blocked`
|
- status: `blocked`
|
||||||
- clean: `False`
|
- clean: `False`
|
||||||
- apply: `True`
|
- apply: `True`
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
- applied: `True`
|
- applied: `True`
|
||||||
- deleted: `False`
|
- deleted: `False`
|
||||||
- exists_after: `True`
|
- exists_after: `True`
|
||||||
- children_before: `2213`
|
- children_before: `3052`
|
||||||
- bytes_before: `60842050`
|
- bytes_before: `68130347`
|
||||||
- note: artifact retained by ACL or filesystem lock
|
- note: artifact retained by ACL or filesystem lock
|
||||||
- error: `PermissionError: [WinError 5] Acesso negado: 'G:\\_codex-git\\tudo-para-ia-mais-humana\\.test-tmp\\tmpnk6r4sdb'`
|
- error: `PermissionError: [WinError 5] Acesso negado: 'G:\\_codex-git\\tudo-para-ia-mais-humana\\.test-tmp\\tmpnk6r4sdb'`
|
||||||
- footprint_errors:
|
- footprint_errors:
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
target_id,path,action,status,applied,deleted,exists_after,children_before,bytes_before,error,note
|
target_id,path,action,status,applied,deleted,exists_after,children_before,bytes_before,error,note
|
||||||
python-test-temp,G:\_codex-git\tudo-para-ia-mais-humana\.test-tmp,delete_directory,blocked,yes,no,yes,2213,60842050,PermissionError: [WinError 5] Acesso negado: 'G:\\_codex-git\\tudo-para-ia-mais-humana\\.test-tmp\\tmpnk6r4sdb',artifact retained by ACL or filesystem lock
|
python-test-temp,G:\_codex-git\tudo-para-ia-mais-humana\.test-tmp,delete_directory,blocked,yes,no,yes,3052,68130347,PermissionError: [WinError 5] Acesso negado: 'G:\\_codex-git\\tudo-para-ia-mais-humana\\.test-tmp\\tmpnk6r4sdb',artifact retained by ACL or filesystem lock
|
||||||
node-dependencies,G:\_codex-git\tudo-para-ia-mais-humana\node_modules,verify_absent,not_found,no,no,no,0,0,,target already absent
|
node-dependencies,G:\_codex-git\tudo-para-ia-mais-humana\node_modules,verify_absent,not_found,no,no,no,0,0,,target already absent
|
||||||
|
|||||||
|
@@ -30,6 +30,7 @@ from .identity_policy import (
|
|||||||
from .models import GeneratedFile, as_plain_data, merge_unique, slugify, utc_now
|
from .models import GeneratedFile, as_plain_data, merge_unique, slugify, utc_now
|
||||||
from .repository_mesh import RepositoryTarget, default_repository_targets, stable_digest
|
from .repository_mesh import RepositoryTarget, default_repository_targets, stable_digest
|
||||||
from .repository_mesh_naming import plataform_to_platform, platform_to_plataform
|
from .repository_mesh_naming import plataform_to_platform, platform_to_plataform
|
||||||
|
from .storage import connect, upsert_files
|
||||||
|
|
||||||
|
|
||||||
class CanonicalAliasKind(str, Enum):
|
class CanonicalAliasKind(str, Enum):
|
||||||
@@ -848,6 +849,53 @@ def write_identity_graph_artifacts(
|
|||||||
return tuple(records)
|
return tuple(records)
|
||||||
|
|
||||||
|
|
||||||
|
def _semantic_status_record(project_root: Path) -> GeneratedFile:
|
||||||
|
return GeneratedFile(
|
||||||
|
path=str(project_root / "dados" / "canonical-identity-semantic-write-status.json"),
|
||||||
|
description="Status da escrita semantica local do grafo canonico.",
|
||||||
|
function="canonical identity local semantic write status",
|
||||||
|
file_type="json",
|
||||||
|
changed_by="mais_humana.canonical_identity",
|
||||||
|
change_summary="Registrado resultado da atualizacao do controle-semantico.sqlite local.",
|
||||||
|
relation_to_order="0035_EXECUTIVA__reconciliar-nome-canonico-real-alias-platform",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def write_local_semantic_records(project_root: Path, records: Sequence[GeneratedFile]) -> tuple[GeneratedFile, ...]:
|
||||||
|
sqlite_path = project_root / "controle-semantico.sqlite"
|
||||||
|
status_record = _semantic_status_record(project_root)
|
||||||
|
status_path = Path(status_record.path)
|
||||||
|
tracked_records = tuple(records) + (status_record,)
|
||||||
|
error = ""
|
||||||
|
ok = False
|
||||||
|
try:
|
||||||
|
with connect(sqlite_path) as conn:
|
||||||
|
upsert_files(conn, tracked_records)
|
||||||
|
ok = True
|
||||||
|
except Exception as exc:
|
||||||
|
error = f"{type(exc).__name__}: {exc}"
|
||||||
|
status_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
status_path.write_text(
|
||||||
|
json.dumps(
|
||||||
|
{
|
||||||
|
"generatedAt": utc_now(),
|
||||||
|
"ok": ok,
|
||||||
|
"error": error,
|
||||||
|
"sqlitePath": str(sqlite_path),
|
||||||
|
"filesCount": len(tracked_records),
|
||||||
|
},
|
||||||
|
ensure_ascii=False,
|
||||||
|
indent=2,
|
||||||
|
sort_keys=True,
|
||||||
|
),
|
||||||
|
encoding="utf-8",
|
||||||
|
)
|
||||||
|
if ok:
|
||||||
|
with connect(sqlite_path) as conn:
|
||||||
|
upsert_files(conn, (status_record,))
|
||||||
|
return tracked_records
|
||||||
|
|
||||||
|
|
||||||
def run_canonical_identity_graph(
|
def run_canonical_identity_graph(
|
||||||
*,
|
*,
|
||||||
project_root: Path,
|
project_root: Path,
|
||||||
@@ -856,4 +904,5 @@ def run_canonical_identity_graph(
|
|||||||
) -> tuple[CanonicalIdentityGraph, tuple[GeneratedFile, ...]]:
|
) -> tuple[CanonicalIdentityGraph, tuple[GeneratedFile, ...]]:
|
||||||
graph = build_identity_graph(use_generated=use_generated)
|
graph = build_identity_graph(use_generated=use_generated)
|
||||||
records = write_identity_graph_artifacts(graph, project_root, central_platform_folder=central_platform_folder)
|
records = write_identity_graph_artifacts(graph, project_root, central_platform_folder=central_platform_folder)
|
||||||
return graph, records
|
semantic_records = write_local_semantic_records(project_root, records)
|
||||||
|
return graph, semantic_records
|
||||||
|
|||||||
Reference in New Issue
Block a user