auto-sync: tudo-para-ia-mais-humana 2026-05-02 02:40:16
This commit is contained in:
@@ -391,10 +391,15 @@ def write_gitea_plan_artifacts(
|
||||
write_json(project_root / "dados" / "repository-mesh-gitea-plan.json", plan)
|
||||
write_text(project_root / "matrizes" / "repository-mesh-gitea-plan.csv", gitea_plan_csv(plan))
|
||||
write_text(project_root / "ecossistema" / "REPOSITORY-MESH-GITEA.md", gitea_plan_markdown(plan))
|
||||
central_written: list[Path] = []
|
||||
if central_platform_folder is not None:
|
||||
reports = central_platform_folder / "reports"
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
write_text(reports / "PENDENCIAS-CODEX__repository-mesh-gitea.md", gitea_plan_markdown(plan))
|
||||
path = central_platform_folder / "reports" / "PENDENCIAS-CODEX__repository-mesh-gitea.md"
|
||||
try:
|
||||
write_text(path, gitea_plan_markdown(plan))
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
central_written.append(path)
|
||||
records = [
|
||||
GeneratedFile(
|
||||
path="dados/repository-mesh-gitea-plan.json",
|
||||
@@ -424,10 +429,10 @@ def write_gitea_plan_artifacts(
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
if central_platform_folder is not None:
|
||||
for central_path in central_written:
|
||||
records.append(
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "reports" / "PENDENCIAS-CODEX__repository-mesh-gitea.md"),
|
||||
path=str(central_path),
|
||||
description="Pendencias Gitea registradas na central.",
|
||||
function="repository mesh central gitea",
|
||||
file_type="markdown",
|
||||
@@ -437,4 +442,3 @@ def write_gitea_plan_artifacts(
|
||||
)
|
||||
)
|
||||
return tuple(records)
|
||||
|
||||
|
||||
@@ -466,13 +466,18 @@ def write_readiness_artifacts(
|
||||
write_json(project_root / "dados" / "repository-mesh-readiness.json", readiness)
|
||||
write_text(project_root / "matrizes" / "repository-mesh-readiness.csv", readiness_csv(readiness))
|
||||
write_text(project_root / "ecossistema" / "REPOSITORY-MESH-READINESS.md", readiness_markdown(readiness))
|
||||
central_written: list[Path] = []
|
||||
if central_platform_folder is not None:
|
||||
reports = central_platform_folder / "reports"
|
||||
indexes = central_platform_folder / "indexes"
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
indexes.mkdir(parents=True, exist_ok=True)
|
||||
write_text(reports / "EXECUTADO__repository-mesh-readiness.md", readiness_markdown(readiness))
|
||||
write_text(indexes / "repository-mesh-readiness-index.md", readiness_markdown(readiness))
|
||||
central_targets = (
|
||||
(central_platform_folder / "reports" / "EXECUTADO__repository-mesh-readiness.md", readiness_markdown(readiness)),
|
||||
(central_platform_folder / "indexes" / "repository-mesh-readiness-index.md", readiness_markdown(readiness)),
|
||||
)
|
||||
for path, text in central_targets:
|
||||
try:
|
||||
write_text(path, text)
|
||||
except OSError:
|
||||
continue
|
||||
central_written.append(path)
|
||||
records = [
|
||||
GeneratedFile(
|
||||
path="dados/repository-mesh-readiness.json",
|
||||
@@ -502,27 +507,16 @@ def write_readiness_artifacts(
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
if central_platform_folder is not None:
|
||||
records.extend(
|
||||
[
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "reports" / "EXECUTADO__repository-mesh-readiness.md"),
|
||||
description="Readiness da malha registrada na central.",
|
||||
function="repository mesh central readiness",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_readiness",
|
||||
change_summary="Registrado readiness da malha na central.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "indexes" / "repository-mesh-readiness-index.md"),
|
||||
description="Indice de readiness da malha na central.",
|
||||
function="repository mesh central readiness index",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_readiness",
|
||||
change_summary="Registrado indice de readiness da malha.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
for central_path in central_written:
|
||||
records.append(
|
||||
GeneratedFile(
|
||||
path=str(central_path),
|
||||
description="Readiness da malha registrada na central quando ACL permitiu.",
|
||||
function="repository mesh central readiness",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_readiness",
|
||||
change_summary="Registrado artefato central de readiness sem abortar em ACL parcial.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
)
|
||||
)
|
||||
return tuple(records)
|
||||
|
||||
@@ -949,13 +949,20 @@ def write_reconciliation_artifacts(
|
||||
orders = service_orders_from_plan(plan)
|
||||
write_json(project_root / "dados" / "repository-mesh-derived-orders.json", orders)
|
||||
write_text(project_root / "os-orientadoras" / "repository-mesh-derived-orders.md", service_orders_markdown(orders))
|
||||
central_written: list[Path] = []
|
||||
if central_platform_folder is not None:
|
||||
reports = central_platform_folder / "reports"
|
||||
indexes = central_platform_folder / "indexes"
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
indexes.mkdir(parents=True, exist_ok=True)
|
||||
write_text(reports / "EXECUTADO__repository-mesh-reconciliation.md", reconciliation_markdown(plan))
|
||||
write_text(indexes / "repository-mesh-reconciliation-index.md", service_orders_markdown(orders))
|
||||
central_targets = (
|
||||
(reports / "EXECUTADO__repository-mesh-reconciliation.md", reconciliation_markdown(plan)),
|
||||
(indexes / "repository-mesh-reconciliation-index.md", service_orders_markdown(orders)),
|
||||
)
|
||||
for path, text in central_targets:
|
||||
try:
|
||||
write_text(path, text)
|
||||
except OSError:
|
||||
continue
|
||||
central_written.append(path)
|
||||
records = [
|
||||
GeneratedFile(
|
||||
path="dados/repository-mesh-reconciliation.json",
|
||||
@@ -1021,28 +1028,17 @@ def write_reconciliation_artifacts(
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
if central_platform_folder is not None:
|
||||
records.extend(
|
||||
[
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "reports" / "EXECUTADO__repository-mesh-reconciliation.md"),
|
||||
description="Execucao de reconciliacao registrada na central.",
|
||||
function="repository mesh central reconciliation",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_reconciliation",
|
||||
change_summary="Registrado EXECUTADO da reconciliacao.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "indexes" / "repository-mesh-reconciliation-index.md"),
|
||||
description="Indice de ordens derivadas de reconciliacao.",
|
||||
function="repository mesh central reconciliation index",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_reconciliation",
|
||||
change_summary="Registrado indice de ordens derivadas.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
for central_path in central_written:
|
||||
records.append(
|
||||
GeneratedFile(
|
||||
path=str(central_path),
|
||||
description="Registro central de reconciliacao escrito quando ACL permitiu.",
|
||||
function="repository mesh central reconciliation",
|
||||
file_type="markdown",
|
||||
changed_by="mais_humana.repository_mesh_reconciliation",
|
||||
change_summary="Registrado artefato central da reconciliacao sem abortar em ACL parcial.",
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
)
|
||||
)
|
||||
return tuple(records)
|
||||
|
||||
|
||||
@@ -641,10 +641,15 @@ def write_runtime_artifacts(
|
||||
write_json(project_root / "dados" / "repository-mesh-schedulers.json", scheduler_payload(specs))
|
||||
write_text(project_root / "ecossistema" / "REPOSITORY-MESH-RUNTIME.md", runtime_markdown(cycle))
|
||||
write_text(project_root / "ecossistema" / "REPOSITORY-MESH-SCHEDULERS.md", scheduler_markdown(specs))
|
||||
central_written: list[Path] = []
|
||||
if central_platform_folder is not None:
|
||||
reports = central_platform_folder / "reports"
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
write_text(reports / "EXECUTADO__repository-mesh-runtime.md", runtime_markdown(cycle))
|
||||
path = central_platform_folder / "reports" / "EXECUTADO__repository-mesh-runtime.md"
|
||||
try:
|
||||
write_text(path, runtime_markdown(cycle))
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
central_written.append(path)
|
||||
records = [
|
||||
GeneratedFile(
|
||||
path="dados/repository-mesh-runtime-cycle.json",
|
||||
@@ -701,10 +706,10 @@ def write_runtime_artifacts(
|
||||
relation_to_order="000_sincronizacao-dos-espelhos",
|
||||
),
|
||||
]
|
||||
if central_platform_folder is not None:
|
||||
for central_path in central_written:
|
||||
records.append(
|
||||
GeneratedFile(
|
||||
path=str(central_platform_folder / "reports" / "EXECUTADO__repository-mesh-runtime.md"),
|
||||
path=str(central_path),
|
||||
description="Runtime registrado na central.",
|
||||
function="repository mesh central runtime",
|
||||
file_type="markdown",
|
||||
|
||||
Reference in New Issue
Block a user