horcon 0.8.2a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- horcon-0.8.2a1/.gitignore +20 -0
- horcon-0.8.2a1/LICENSE +201 -0
- horcon-0.8.2a1/NOTICE +20 -0
- horcon-0.8.2a1/PKG-INFO +213 -0
- horcon-0.8.2a1/README.md +169 -0
- horcon-0.8.2a1/pyproject.toml +117 -0
- horcon-0.8.2a1/src/horcon/__init__.py +57 -0
- horcon-0.8.2a1/src/horcon/__main__.py +9 -0
- horcon-0.8.2a1/src/horcon/agency/README.md +20 -0
- horcon-0.8.2a1/src/horcon/agency/__init__.py +13 -0
- horcon-0.8.2a1/src/horcon/agency/dec05.py +155 -0
- horcon-0.8.2a1/src/horcon/agency/manifest.schema.json +92 -0
- horcon-0.8.2a1/src/horcon/agency/naming.py +70 -0
- horcon-0.8.2a1/src/horcon/agency/registration.py +518 -0
- horcon-0.8.2a1/src/horcon/agency/rename.py +144 -0
- horcon-0.8.2a1/src/horcon/agency/role_rules.py +602 -0
- horcon-0.8.2a1/src/horcon/agency/validator.py +116 -0
- horcon-0.8.2a1/src/horcon/api/README.md +33 -0
- horcon-0.8.2a1/src/horcon/api/__init__.py +10 -0
- horcon-0.8.2a1/src/horcon/api/_traces.py +628 -0
- horcon-0.8.2a1/src/horcon/api/app.py +86 -0
- horcon-0.8.2a1/src/horcon/api/deps.py +106 -0
- horcon-0.8.2a1/src/horcon/api/routers/__init__.py +4 -0
- horcon-0.8.2a1/src/horcon/api/routers/engagements.py +112 -0
- horcon-0.8.2a1/src/horcon/api/routers/governance.py +119 -0
- horcon-0.8.2a1/src/horcon/api/routers/health.py +32 -0
- horcon-0.8.2a1/src/horcon/api/routers/kill.py +159 -0
- horcon-0.8.2a1/src/horcon/api/routers/projects.py +163 -0
- horcon-0.8.2a1/src/horcon/api/routers/registry.py +21 -0
- horcon-0.8.2a1/src/horcon/api/routers/traces.py +184 -0
- horcon-0.8.2a1/src/horcon/application/README.md +52 -0
- horcon-0.8.2a1/src/horcon/application/__init__.py +2 -0
- horcon-0.8.2a1/src/horcon/application/agregar_especialista.py +125 -0
- horcon-0.8.2a1/src/horcon/application/agregar_evidencia.py +89 -0
- horcon-0.8.2a1/src/horcon/application/dar_de_alta.py +36 -0
- horcon-0.8.2a1/src/horcon/application/ejecutar_simulacion.py +98 -0
- horcon-0.8.2a1/src/horcon/application/nuevo_encargo.py +132 -0
- horcon-0.8.2a1/src/horcon/application/pasar_aduana.py +275 -0
- horcon-0.8.2a1/src/horcon/application/proyectos.py +275 -0
- horcon-0.8.2a1/src/horcon/cli/README.md +14 -0
- horcon-0.8.2a1/src/horcon/cli/__init__.py +4 -0
- horcon-0.8.2a1/src/horcon/cli/__main__.py +2487 -0
- horcon-0.8.2a1/src/horcon/cli/context.py +484 -0
- horcon-0.8.2a1/src/horcon/cli/dotenv.py +46 -0
- horcon-0.8.2a1/src/horcon/contracts/README.md +13 -0
- horcon-0.8.2a1/src/horcon/contracts/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/contracts/engagement_scaffold.py +86 -0
- horcon-0.8.2a1/src/horcon/contracts/project_manifest.py +55 -0
- horcon-0.8.2a1/src/horcon/contracts/schemas/critic-signal.schema.json +17 -0
- horcon-0.8.2a1/src/horcon/contracts/schemas/decision-record.schema.json +24 -0
- horcon-0.8.2a1/src/horcon/contracts/schemas/engagement.schema.json +149 -0
- horcon-0.8.2a1/src/horcon/contracts/schemas/evidence-ref.schema.json +16 -0
- horcon-0.8.2a1/src/horcon/contracts/schemas/receipt.schema.json +18 -0
- horcon-0.8.2a1/src/horcon/control/README.md +29 -0
- horcon-0.8.2a1/src/horcon/control/__init__.py +12 -0
- horcon-0.8.2a1/src/horcon/control/decisions/README.md +8 -0
- horcon-0.8.2a1/src/horcon/control/decisions/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/decisions/enums.py +134 -0
- horcon-0.8.2a1/src/horcon/control/decisions/from_agent.py +233 -0
- horcon-0.8.2a1/src/horcon/control/decisions/policy_gate.py +95 -0
- horcon-0.8.2a1/src/horcon/control/decisions/signals.py +61 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/README.md +20 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/external_processing.py +143 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/grants.py +77 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/killswitch.py +240 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/ledger.py +473 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/review_load.py +229 -0
- horcon-0.8.2a1/src/horcon/control/enforcement/workspace.py +71 -0
- horcon-0.8.2a1/src/horcon/control/guards/README.md +6 -0
- horcon-0.8.2a1/src/horcon/control/guards/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/guards/input_firewall.py +77 -0
- horcon-0.8.2a1/src/horcon/control/guards/output_firewall.py +55 -0
- horcon-0.8.2a1/src/horcon/control/hitl/README.md +29 -0
- horcon-0.8.2a1/src/horcon/control/hitl/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/hitl/adr.py +167 -0
- horcon-0.8.2a1/src/horcon/control/hitl/custody.py +657 -0
- horcon-0.8.2a1/src/horcon/control/hitl/keyring_directory.py +330 -0
- horcon-0.8.2a1/src/horcon/control/hitl/receipts.py +367 -0
- horcon-0.8.2a1/src/horcon/control/hitl/sign_helper.py +82 -0
- horcon-0.8.2a1/src/horcon/control/hitl/signing.py +142 -0
- horcon-0.8.2a1/src/horcon/control/policies/README.md +7 -0
- horcon-0.8.2a1/src/horcon/control/policies/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_001_evidencia_citada.py +23 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_002_claims_prohibidos.py +20 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_003_asesoria_legal_multipais.py +23 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_004_compuerta_por_riesgo.py +28 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_005_no_falsa_mayoria.py +24 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_006_firewall_entrada_salida.py +27 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_007_presupuesto_ttl_traza.py +24 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_008_deliberacion_acotada.py +23 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_009_receipt_hitl.py +20 -0
- horcon-0.8.2a1/src/horcon/control/policies/pol_010_impacto_humano.py +26 -0
- horcon-0.8.2a1/src/horcon/control/ports.py +62 -0
- horcon-0.8.2a1/src/horcon/control/state_machine/README.md +16 -0
- horcon-0.8.2a1/src/horcon/control/state_machine/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/control/state_machine/engagement.yaml +50 -0
- horcon-0.8.2a1/src/horcon/control/state_machine/engine.py +204 -0
- horcon-0.8.2a1/src/horcon/control/state_machine/fsm.py +86 -0
- horcon-0.8.2a1/src/horcon/crews/README.md +12 -0
- horcon-0.8.2a1/src/horcon/crews/__init__.py +4 -0
- horcon-0.8.2a1/src/horcon/crews/mirror.py +220 -0
- horcon-0.8.2a1/src/horcon/crews/validate_crew.py +362 -0
- horcon-0.8.2a1/src/horcon/diagrams/README.md +11 -0
- horcon-0.8.2a1/src/horcon/diagrams/__init__.py +8 -0
- horcon-0.8.2a1/src/horcon/diagrams/generator.py +93 -0
- horcon-0.8.2a1/src/horcon/diagrams/sync.py +101 -0
- horcon-0.8.2a1/src/horcon/docs_audit/README.md +14 -0
- horcon-0.8.2a1/src/horcon/docs_audit/__init__.py +8 -0
- horcon-0.8.2a1/src/horcon/docs_audit/auditor.py +145 -0
- horcon-0.8.2a1/src/horcon/docs_site/README.md +16 -0
- horcon-0.8.2a1/src/horcon/docs_site/__init__.py +12 -0
- horcon-0.8.2a1/src/horcon/docs_site/builder.py +326 -0
- horcon-0.8.2a1/src/horcon/observability/README.md +12 -0
- horcon-0.8.2a1/src/horcon/observability/__init__.py +14 -0
- horcon-0.8.2a1/src/horcon/observability/events.py +35 -0
- horcon-0.8.2a1/src/horcon/observability/otel_export.py +211 -0
- horcon-0.8.2a1/src/horcon/observability/timeline.py +507 -0
- horcon-0.8.2a1/src/horcon/observability/trace.py +15 -0
- horcon-0.8.2a1/src/horcon/platform/README.md +11 -0
- horcon-0.8.2a1/src/horcon/platform/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/platform/persistence/README.md +5 -0
- horcon-0.8.2a1/src/horcon/platform/persistence/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/platform/retrieval/README.md +22 -0
- horcon-0.8.2a1/src/horcon/platform/retrieval/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/platform/retrieval/bundle.py +141 -0
- horcon-0.8.2a1/src/horcon/platform/retrieval/datasheet.py +59 -0
- horcon-0.8.2a1/src/horcon/platform/tools/README.md +5 -0
- horcon-0.8.2a1/src/horcon/platform/tools/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/redact.py +79 -0
- horcon-0.8.2a1/src/horcon/registry/README.md +21 -0
- horcon-0.8.2a1/src/horcon/registry/__init__.py +15 -0
- horcon-0.8.2a1/src/horcon/registry/registry.schema.json +42 -0
- horcon-0.8.2a1/src/horcon/registry/store.py +53 -0
- horcon-0.8.2a1/src/horcon/registry/validator.py +31 -0
- horcon-0.8.2a1/src/horcon/resources.py +41 -0
- horcon-0.8.2a1/src/horcon/runtime/README.md +26 -0
- horcon-0.8.2a1/src/horcon/runtime/__init__.py +0 -0
- horcon-0.8.2a1/src/horcon/runtime/crewai_adapter.py +97 -0
- horcon-0.8.2a1/src/horcon/runtime/executor.py +418 -0
- horcon-0.8.2a1/src/horcon/runtime/profiles.yaml +44 -0
- horcon-0.8.2a1/src/horcon/runtime/providers.py +260 -0
- horcon-0.8.2a1/src/horcon/runtime/team.py +375 -0
- horcon-0.8.2a1/src/horcon/scaffold/README.md +19 -0
- horcon-0.8.2a1/src/horcon/scaffold/__init__.py +8 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/coordinator/output.schema.json +22 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/coordinator/prompt.md +19 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/critic/output.schema.json +17 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/critic/prompt.md +17 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/executor/output.schema.json +23 -0
- horcon-0.8.2a1/src/horcon/scaffold/agent_templates/executor/prompt.md +17 -0
- horcon-0.8.2a1/src/horcon/scaffold/digest.py +58 -0
- horcon-0.8.2a1/src/horcon/scaffold/generator.py +542 -0
- horcon-0.8.2a1/src/horcon/scaffold/reset.py +340 -0
- horcon-0.8.2a1/src/horcon/scaffold/template_root.py +30 -0
- horcon-0.8.2a1/src/horcon/validate.py +481 -0
- horcon-0.8.2a1/templates/agent-system/.claude/agents/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/.codex/agents/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/.gitignore +13 -0
- horcon-0.8.2a1/templates/agent-system/.milpa-manifest.json +16 -0
- horcon-0.8.2a1/templates/agent-system/AGENTS.md +28 -0
- horcon-0.8.2a1/templates/agent-system/README.md +15 -0
- horcon-0.8.2a1/templates/agent-system/SOURCE.md +37 -0
- horcon-0.8.2a1/templates/agent-system/TEMPLATE-DIGEST.txt +65 -0
- horcon-0.8.2a1/templates/agent-system/apps/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/apps/control-api/README.md +12 -0
- horcon-0.8.2a1/templates/agent-system/apps/governance-console/README.md +12 -0
- horcon-0.8.2a1/templates/agent-system/assurance/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/assurance/evals/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/assurance/tests/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/docs/00-inicio-rapido/README.md +52 -0
- horcon-0.8.2a1/templates/agent-system/docs/00-inicio-rapido/glosario.md +35 -0
- horcon-0.8.2a1/templates/agent-system/docs/01-manifiesto/README.md +18 -0
- horcon-0.8.2a1/templates/agent-system/docs/02-diagramas/README.md +16 -0
- horcon-0.8.2a1/templates/agent-system/docs/03-operacion/README.md +19 -0
- horcon-0.8.2a1/templates/agent-system/docs/03-operacion/runbook.md +49 -0
- horcon-0.8.2a1/templates/agent-system/docs/04-contratos/README.md +15 -0
- horcon-0.8.2a1/templates/agent-system/docs/INDEX.md +24 -0
- horcon-0.8.2a1/templates/agent-system/docs/architecture/README.md +13 -0
- horcon-0.8.2a1/templates/agent-system/docs/asilo/README.md +13 -0
- horcon-0.8.2a1/templates/agent-system/governance/README.md +17 -0
- horcon-0.8.2a1/templates/agent-system/governance/axioms.md +16 -0
- horcon-0.8.2a1/templates/agent-system/governance/charter.md +17 -0
- horcon-0.8.2a1/templates/agent-system/governance/decision-rights.md +18 -0
- horcon-0.8.2a1/templates/agent-system/governance/decisions/ADR-000-plantilla.md +19 -0
- horcon-0.8.2a1/templates/agent-system/governance/exceptions/README.md +21 -0
- horcon-0.8.2a1/templates/agent-system/governance/keyring-directory.yaml +12 -0
- horcon-0.8.2a1/templates/agent-system/governance/policies/README.md +20 -0
- horcon-0.8.2a1/templates/agent-system/governance/thresholds.yaml +19 -0
- horcon-0.8.2a1/templates/agent-system/infrastructure/README.md +13 -0
- horcon-0.8.2a1/templates/agent-system/mkdocs.yml +89 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/capabilities.yaml +31 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/coordination/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/coordination/deliberation.yaml +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/coordination/tribunal.yaml +12 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/registry.yaml +3 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/roles.yaml +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agency/topology.yaml +12 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-coordinator/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-coordinator/manifest.yaml +46 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-critic/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-critic/manifest.yaml +48 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-executor/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/agents/_ejemplo-executor/manifest.yaml +50 -0
- horcon-0.8.2a1/templates/agent-system/packages/application/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/contracts/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/README.md +13 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/decisions/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/enforcement/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/guards/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/hitl/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/policies/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/state-machine/README.md +10 -0
- horcon-0.8.2a1/templates/agent-system/packages/control/state-machine/session.yaml +143 -0
- horcon-0.8.2a1/templates/agent-system/packages/domain/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/packages/platform/README.md +8 -0
- horcon-0.8.2a1/templates/agent-system/reports/README.md +8 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generado con asistencia de IA (Claude Code, 2026-09-17); revisado por: pendiente
|
|
2
|
+
.env
|
|
3
|
+
.env.*
|
|
4
|
+
!.env.ejemplo
|
|
5
|
+
tmp/runs/
|
|
6
|
+
tmp/site-src/
|
|
7
|
+
tmp/site/
|
|
8
|
+
tmp/local-dist/
|
|
9
|
+
tmp/local-venv/
|
|
10
|
+
tmp/horcon-local-integration-*/
|
|
11
|
+
tmp/keyring-*/
|
|
12
|
+
tmp/kill-switch/
|
|
13
|
+
tmp/KILL
|
|
14
|
+
__pycache__/
|
|
15
|
+
*.pyc
|
|
16
|
+
.pytest_cache/
|
|
17
|
+
dist/
|
|
18
|
+
*.egg-info/
|
|
19
|
+
.venv/
|
|
20
|
+
src/horcon/_templates/
|
horcon-0.8.2a1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Kasai Labs
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
horcon-0.8.2a1/NOTICE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Horcón
|
|
2
|
+
Copyright 2026 Kasai Labs
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Kasai Labs
|
|
5
|
+
(https://codeberg.org/kasailabs).
|
|
6
|
+
|
|
7
|
+
"Horcón" es un nombre en verificación de marca (DEC-06, ver
|
|
8
|
+
`governance/expedientes/rec-a1db170841cf48eb/DOSSIER.md` §5, §6 y
|
|
9
|
+
`governance/decisions/ADR-001-alcance-y-sustitucion-de-aula.md`). Esta
|
|
10
|
+
verificación no está resuelta: ninguna búsqueda de anterioridades en IMPI,
|
|
11
|
+
EUIPO o USPTO se ha ejecutado. No usar "Horcón" en publicidad de terceros
|
|
12
|
+
hasta que DEC-06 se cierre con receipt humano.
|
|
13
|
+
|
|
14
|
+
El inventario de componentes de terceros (imágenes de contenedor, paquetes
|
|
15
|
+
Python de los extras `agents`/`memory`/`observability`, y sus licencias) está
|
|
16
|
+
pendiente. `asilo-core` y `milpa-sdk` declaran Apache-2.0 en su propio README;
|
|
17
|
+
Horcón los referencia como dependencias opcionales (extras), nunca los
|
|
18
|
+
redistribuye como código propio. Este NOTICE se actualiza cuando exista
|
|
19
|
+
`docs/legal/DEPENDENCIES-LICENSES.md` generado desde un SBOM (DEC-23, Q-08 del
|
|
20
|
+
expediente).
|
horcon-0.8.2a1/PKG-INFO
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: horcon
|
|
3
|
+
Version: 0.8.2a1
|
|
4
|
+
Summary: Horcón: framework que genera y valida sistemas multiagente deterministas. Perfil MILPA: library.
|
|
5
|
+
Project-URL: Homepage, https://codeberg.org/kasailabs/horcon
|
|
6
|
+
Project-URL: Documentation, https://codeberg.org/kasailabs/horcon/src/branch/main/docs/INDEX.md
|
|
7
|
+
Project-URL: Repository, https://codeberg.org/kasailabs/horcon
|
|
8
|
+
Project-URL: Changelog, https://codeberg.org/kasailabs/horcon/src/branch/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Issues, https://codeberg.org/kasailabs/horcon/issues
|
|
10
|
+
Author: Kasai Labs
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: agent-system,governance,human-in-the-loop,multi-agent,policy-engine,scaffold
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: cryptography>=42.0
|
|
26
|
+
Requires-Dist: jsonschema>=4.20
|
|
27
|
+
Requires-Dist: pyyaml>=6.0
|
|
28
|
+
Provides-Extra: api
|
|
29
|
+
Requires-Dist: fastapi<1,>=0.115; extra == 'api'
|
|
30
|
+
Requires-Dist: httpx>=0.27; extra == 'api'
|
|
31
|
+
Requires-Dist: uvicorn[standard]>=0.30; extra == 'api'
|
|
32
|
+
Provides-Extra: asilo
|
|
33
|
+
Requires-Dist: asilo-core<0.2,>=0.1.0a1; extra == 'asilo'
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
36
|
+
Provides-Extra: docs
|
|
37
|
+
Requires-Dist: mkdocs-material==9.7.7; extra == 'docs'
|
|
38
|
+
Requires-Dist: pymdown-extensions>=10.0; extra == 'docs'
|
|
39
|
+
Provides-Extra: milpa
|
|
40
|
+
Requires-Dist: milpa-sdk<0.2,>=0.1.0a1; extra == 'milpa'
|
|
41
|
+
Provides-Extra: runtime
|
|
42
|
+
Requires-Dist: httpx>=0.27; extra == 'runtime'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
<!-- Generado con asistencia de IA (Claude Code, 2026-09-22); revisado por: pendiente -->
|
|
46
|
+
# Horcón
|
|
47
|
+
|
|
48
|
+
**Un modelo de lenguaje no debe decidir solo sobre las cosas que importan. Horcón monta, alrededor
|
|
49
|
+
de él, un despacho con reglas fijas y una persona que firma antes de que algo salga.**
|
|
50
|
+
|
|
51
|
+
## La analogía
|
|
52
|
+
|
|
53
|
+
Piensa en un despacho de traducción. Un traductor junior propone una versión; un traductor senior
|
|
54
|
+
la revisa; una recepcionista con una lista fija de reglas ("¿el cliente pagó?", "¿el documento
|
|
55
|
+
está completo?") decide si pasa al siguiente paso; y si el documento es un contrato importante,
|
|
56
|
+
alguien con firma lo revisa antes de entregarlo. Nadie espera que el traductor junior sea infalible
|
|
57
|
+
— el despacho está diseñado para que un error suyo no llegue solo al cliente.
|
|
58
|
+
|
|
59
|
+
Horcón es ese despacho, hecho de código: el traductor junior es un **especialista** (un modelo de
|
|
60
|
+
lenguaje con una ficha que dice qué puede y qué no puede hacer), la recepcionista es la **aduana**
|
|
61
|
+
(reglas deterministas, no otro modelo opinando), y la firma final es una **persona identificable**,
|
|
62
|
+
nunca automática cuando el riesgo es alto.
|
|
63
|
+
|
|
64
|
+
## Para quién es
|
|
65
|
+
|
|
66
|
+
- **Si no programas:** una consola con pantallas y botones (proyectos → equipo → encargos). No
|
|
67
|
+
necesitas escribir un comando. Empieza en [Parte 0 · Empieza aquí](docs/00-inicio-rapido/README.md).
|
|
68
|
+
- **Si programas poco:** una terminal con comandos que se copian y pegan, y archivos de texto que
|
|
69
|
+
se leen sin herramientas especiales. Sigue por [Parte III · Hacer](docs/03-operacion/README.md).
|
|
70
|
+
- **Si vas a auditar:** cada decisión queda en un expediente con firmas encadenadas
|
|
71
|
+
(`receipts.jsonl`) y cada regla tiene su contrato técnico y su prueba. Empieza en
|
|
72
|
+
[Parte IV · Referencia](docs/04-contratos/README.md).
|
|
73
|
+
|
|
74
|
+
## Instalación
|
|
75
|
+
|
|
76
|
+
Requiere Python 3.11 o mayor. Horcón todavía no está publicado en PyPI (ver "Estado de madurez"
|
|
77
|
+
abajo); mientras tanto, se instala desde el propio repositorio:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
git clone https://codeberg.org/kasailabs/horcon.git
|
|
81
|
+
cd horcon
|
|
82
|
+
python3 -m venv .venv
|
|
83
|
+
.venv/bin/python -m pip install -e .
|
|
84
|
+
.venv/bin/python -m horcon doctor
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Integración local de ASILO y MILPA
|
|
88
|
+
|
|
89
|
+
Antes de publicar cualquiera de los tres paquetes, puedes construir los artefactos locales e
|
|
90
|
+
instalarlos en una venv limpia con la prueba de aceptación incluida:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
scripts/instalar-local.sh --recreate
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
El instalador construye wheel y sdist de `asilo-core`, `milpa-sdk` y `horcon`; instala los tres
|
|
97
|
+
wheels desde `horcon/tmp/local-dist` con `--no-index`; resuelve únicamente dependencias de
|
|
98
|
+
terceros; y ejecuta `init`, `validate`, `agent add`, `doctor`, el loader real de MILPA y
|
|
99
|
+
`asilo.enforce_schema` sobre un proyecto generado. La venv queda en `horcon/tmp/local-venv` y el
|
|
100
|
+
proyecto de integración se conserva en `horcon/tmp/horcon-local-integration-*` si hay un error. No llama
|
|
101
|
+
a PyPI para los paquetes del ecosistema ni publica nada. En Windows usa
|
|
102
|
+
`scripts/instalar-local.ps1 --recreate`.
|
|
103
|
+
|
|
104
|
+
The canonical installer options are `--recreate` and `--skip-acceptance`; the previous Spanish
|
|
105
|
+
spellings remain accepted as hidden compatibility aliases.
|
|
106
|
+
|
|
107
|
+
For simultaneous development of all three repositories, use `--editable --recreate`. This creates
|
|
108
|
+
`horcon/tmp/editable-venv` and installs `asilo-core`, `milpa-sdk`, and `horcon` with `pip install -e`:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
scripts/instalar-local.sh --editable --recreate
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Changes made in any of the three source repositories are then used immediately by that venv. Use
|
|
115
|
+
the default command without `--editable` before publishing to verify the packaged artifacts.
|
|
116
|
+
|
|
117
|
+
El comando falla a propósito si MILPA no puede leer el manifest generado: ese resultado es un
|
|
118
|
+
bloqueo de compatibilidad que hay que resolver antes de publicar, no una razón para continuar con
|
|
119
|
+
`--skip-acceptance`. Esta última opción sólo sirve para inspeccionar los artefactos y la instalación
|
|
120
|
+
cuando se está trabajando en ese bloqueo.
|
|
121
|
+
|
|
122
|
+
## Un ejemplo mínimo, ejecutado de verdad
|
|
123
|
+
|
|
124
|
+
Esta es la salida real de dos comandos, copiada de una corrida el 22 de septiembre de 2026 contra
|
|
125
|
+
la versión 0.8.0 (sin editar, salvo acortar la ruta a `mi-proyecto`):
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
$ horcon init mi-proyecto --project-name mi-proyecto --toca-salud no --toca-crisis no --toca-menores no
|
|
129
|
+
init escrito: mi-proyecto (perfil P2, 63 archivos)
|
|
130
|
+
template_digest=328fb598287d2f935b2fc549ce10a0f19dea6b19e87599ca16b8b4075515ca10
|
|
131
|
+
generation-receipt.json=mi-proyecto/generation-receipt.json
|
|
132
|
+
validación estructural: no es evidencia de comportamiento
|
|
133
|
+
|
|
134
|
+
$ horcon doctor
|
|
135
|
+
milpa: implementado
|
|
136
|
+
asilo: stub
|
|
137
|
+
docker: implementado
|
|
138
|
+
python: 3.14.5
|
|
139
|
+
proveedor de modelos: no configurado (HORCON_MODEL_BASE_URL no, HORCON_MODEL_API_KEY ausente, HORCON_MODEL_NAME no)
|
|
140
|
+
{"python": "3.14.5", "milpa": "implementado", "asilo": "stub", "docker": "implementado", "proveedor": "no configurado"}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Las tres preguntas `--toca-salud/--toca-crisis/--toca-menores` son obligatorias: `init` se niega
|
|
144
|
+
antes de escribir nada si falta alguna (decisión H-1 del fundador, `DECISIONES-CERRADAS.md`). La
|
|
145
|
+
última línea de `init` se imprime siempre: que la estructura generada esté bien no dice nada de
|
|
146
|
+
cómo se comporta un especialista dentro de ella.
|
|
147
|
+
|
|
148
|
+
El tutorial completo — crear dos especialistas, darlos de alta con firma, pedir un encargo, pasarlo
|
|
149
|
+
por la aduana y cerrarlo — está en
|
|
150
|
+
[`docs/00-inicio-rapido/03-tu-primer-proyecto.md`](docs/00-inicio-rapido/03-tu-primer-proyecto.md):
|
|
151
|
+
quince minutos, reejecutado de verdad el 22 de septiembre de 2026, con la salida real de cada paso.
|
|
152
|
+
|
|
153
|
+
## Qué hace hoy
|
|
154
|
+
|
|
155
|
+
- Genera un proyecto multiagente completo (`horcon init`) a partir de una plantilla versionada,
|
|
156
|
+
con manifiestos, políticas, máquina de estados y expediente de gobernanza.
|
|
157
|
+
- Da de alta especialistas con firma (`agent register`), corre encargos en **simulación**
|
|
158
|
+
determinista sin red (`run --provider fake`), y también contra un proveedor de modelos real bajo
|
|
159
|
+
interfaz compatible con OpenAI (`run --provider openai_compatible`, con dos consentimientos
|
|
160
|
+
explícitos y tope de gasto).
|
|
161
|
+
- Hace pasar cada propuesta por una aduana de doce políticas con reglas fijas (`gate`), nunca por
|
|
162
|
+
otro modelo opinando.
|
|
163
|
+
- Firma decisiones con Ed25519 en una cadena de hashes append-only (`receipt`, `adr sign`), con una
|
|
164
|
+
escalera de custodia de la llave (`keys init --custody`) de nivel gratis (archivo sin cifrar)
|
|
165
|
+
hasta nivel que aísla al asistente de código de la llave (usuario aparte del sistema).
|
|
166
|
+
- Trae un botón de paro con receipt firmado (`kill`/`resume`), un contador de gasto encadenado
|
|
167
|
+
(`charge`), una consola web para quien no programa, y un exportador de trazas a OTLP/HTTP sin
|
|
168
|
+
datos personales.
|
|
169
|
+
|
|
170
|
+
## Qué NO hace hoy
|
|
171
|
+
|
|
172
|
+
La lista completa, honesta y con lo que falta por decisión pendiente está en
|
|
173
|
+
[`docs/03-operacion/10-que-no-esta-implementado.md`](docs/03-operacion/10-que-no-esta-implementado.md).
|
|
174
|
+
En resumen:
|
|
175
|
+
|
|
176
|
+
- **Ninguna corrida con un proveedor de modelos real está registrada todavía** en este repositorio;
|
|
177
|
+
todo lo verificado en la suite de pruebas usa `--provider fake`.
|
|
178
|
+
- **No limpia datos personales.** Los detecta con tres expresiones regulares (correo, CURP,
|
|
179
|
+
teléfono) y los manda a revisión humana; no los redacta ni los borra.
|
|
180
|
+
- **No orquesta con CrewAI ni LangGraph.** Hay un adaptador de CrewAI que construye Agentes y
|
|
181
|
+
Tareas, pero nunca llama `kickoff()`; el orquestador de equipo (`team run`) es código propio,
|
|
182
|
+
no un framework de terceros envuelto.
|
|
183
|
+
- **No es una frontera de seguridad completa.** Qué protege la aduana, qué protege el padrón, qué
|
|
184
|
+
protege la custodia de la llave, y qué no protege ninguna de las tres, está explicado en llano en
|
|
185
|
+
[`docs/04-contratos/11-fronteras-de-confianza.md`](docs/04-contratos/11-fronteras-de-confianza.md).
|
|
186
|
+
- **No declara conformidad con ningún estándar** ni se llama a sí mismo "seguro" o "certificado":
|
|
187
|
+
ver [`docs/01-manifiesto/03-que-no-hace.md`](docs/01-manifiesto/03-que-no-hace.md).
|
|
188
|
+
|
|
189
|
+
## Estado de madurez
|
|
190
|
+
|
|
191
|
+
Versión 0.8.0. **Integrado en local y operable en simulación** (proveedor `fake`): 480 pruebas
|
|
192
|
+
en verde, `validate`, `audit-docs` y `docs build` limpios, cadena completa de comandos ejercitada a
|
|
193
|
+
mano. **Ninguna corrida con un proveedor de modelos real está registrada** en este repositorio;
|
|
194
|
+
nada aquí afirma que el sistema cumpla un estándar, sea seguro o esté certificado. Detalle completo
|
|
195
|
+
por versión en [`CHANGELOG.md`](CHANGELOG.md).
|
|
196
|
+
|
|
197
|
+
## Licencia
|
|
198
|
+
|
|
199
|
+
Apache License 2.0 ([`LICENSE`](LICENSE)). "Horcón" es un nombre en verificación de marca, sin
|
|
200
|
+
búsqueda de anterioridades resuelta todavía ([`NOTICE`](NOTICE)).
|
|
201
|
+
|
|
202
|
+
## Enlaces
|
|
203
|
+
|
|
204
|
+
| Qué | Dónde |
|
|
205
|
+
|---|---|
|
|
206
|
+
| Documentación (el libro completo) | [`docs/INDEX.md`](docs/INDEX.md) |
|
|
207
|
+
| Código fuente | https://codeberg.org/kasailabs/horcon |
|
|
208
|
+
| Registro de cambios | [`CHANGELOG.md`](CHANGELOG.md) |
|
|
209
|
+
| Incidencias | https://codeberg.org/kasailabs/horcon/issues |
|
|
210
|
+
| Contrato para agentes de código | [`AGENTS.md`](AGENTS.md) |
|
|
211
|
+
| Gobernanza y decisiones firmadas (ADR) | [`governance/README.md`](governance/README.md) |
|
|
212
|
+
|
|
213
|
+
Perfil MILPA `library` ([`.milpa-manifest.json`](.milpa-manifest.json)).
|
horcon-0.8.2a1/README.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<!-- Generado con asistencia de IA (Claude Code, 2026-09-22); revisado por: pendiente -->
|
|
2
|
+
# Horcón
|
|
3
|
+
|
|
4
|
+
**Un modelo de lenguaje no debe decidir solo sobre las cosas que importan. Horcón monta, alrededor
|
|
5
|
+
de él, un despacho con reglas fijas y una persona que firma antes de que algo salga.**
|
|
6
|
+
|
|
7
|
+
## La analogía
|
|
8
|
+
|
|
9
|
+
Piensa en un despacho de traducción. Un traductor junior propone una versión; un traductor senior
|
|
10
|
+
la revisa; una recepcionista con una lista fija de reglas ("¿el cliente pagó?", "¿el documento
|
|
11
|
+
está completo?") decide si pasa al siguiente paso; y si el documento es un contrato importante,
|
|
12
|
+
alguien con firma lo revisa antes de entregarlo. Nadie espera que el traductor junior sea infalible
|
|
13
|
+
— el despacho está diseñado para que un error suyo no llegue solo al cliente.
|
|
14
|
+
|
|
15
|
+
Horcón es ese despacho, hecho de código: el traductor junior es un **especialista** (un modelo de
|
|
16
|
+
lenguaje con una ficha que dice qué puede y qué no puede hacer), la recepcionista es la **aduana**
|
|
17
|
+
(reglas deterministas, no otro modelo opinando), y la firma final es una **persona identificable**,
|
|
18
|
+
nunca automática cuando el riesgo es alto.
|
|
19
|
+
|
|
20
|
+
## Para quién es
|
|
21
|
+
|
|
22
|
+
- **Si no programas:** una consola con pantallas y botones (proyectos → equipo → encargos). No
|
|
23
|
+
necesitas escribir un comando. Empieza en [Parte 0 · Empieza aquí](docs/00-inicio-rapido/README.md).
|
|
24
|
+
- **Si programas poco:** una terminal con comandos que se copian y pegan, y archivos de texto que
|
|
25
|
+
se leen sin herramientas especiales. Sigue por [Parte III · Hacer](docs/03-operacion/README.md).
|
|
26
|
+
- **Si vas a auditar:** cada decisión queda en un expediente con firmas encadenadas
|
|
27
|
+
(`receipts.jsonl`) y cada regla tiene su contrato técnico y su prueba. Empieza en
|
|
28
|
+
[Parte IV · Referencia](docs/04-contratos/README.md).
|
|
29
|
+
|
|
30
|
+
## Instalación
|
|
31
|
+
|
|
32
|
+
Requiere Python 3.11 o mayor. Horcón todavía no está publicado en PyPI (ver "Estado de madurez"
|
|
33
|
+
abajo); mientras tanto, se instala desde el propio repositorio:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
git clone https://codeberg.org/kasailabs/horcon.git
|
|
37
|
+
cd horcon
|
|
38
|
+
python3 -m venv .venv
|
|
39
|
+
.venv/bin/python -m pip install -e .
|
|
40
|
+
.venv/bin/python -m horcon doctor
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Integración local de ASILO y MILPA
|
|
44
|
+
|
|
45
|
+
Antes de publicar cualquiera de los tres paquetes, puedes construir los artefactos locales e
|
|
46
|
+
instalarlos en una venv limpia con la prueba de aceptación incluida:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
scripts/instalar-local.sh --recreate
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
El instalador construye wheel y sdist de `asilo-core`, `milpa-sdk` y `horcon`; instala los tres
|
|
53
|
+
wheels desde `horcon/tmp/local-dist` con `--no-index`; resuelve únicamente dependencias de
|
|
54
|
+
terceros; y ejecuta `init`, `validate`, `agent add`, `doctor`, el loader real de MILPA y
|
|
55
|
+
`asilo.enforce_schema` sobre un proyecto generado. La venv queda en `horcon/tmp/local-venv` y el
|
|
56
|
+
proyecto de integración se conserva en `horcon/tmp/horcon-local-integration-*` si hay un error. No llama
|
|
57
|
+
a PyPI para los paquetes del ecosistema ni publica nada. En Windows usa
|
|
58
|
+
`scripts/instalar-local.ps1 --recreate`.
|
|
59
|
+
|
|
60
|
+
The canonical installer options are `--recreate` and `--skip-acceptance`; the previous Spanish
|
|
61
|
+
spellings remain accepted as hidden compatibility aliases.
|
|
62
|
+
|
|
63
|
+
For simultaneous development of all three repositories, use `--editable --recreate`. This creates
|
|
64
|
+
`horcon/tmp/editable-venv` and installs `asilo-core`, `milpa-sdk`, and `horcon` with `pip install -e`:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
scripts/instalar-local.sh --editable --recreate
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Changes made in any of the three source repositories are then used immediately by that venv. Use
|
|
71
|
+
the default command without `--editable` before publishing to verify the packaged artifacts.
|
|
72
|
+
|
|
73
|
+
El comando falla a propósito si MILPA no puede leer el manifest generado: ese resultado es un
|
|
74
|
+
bloqueo de compatibilidad que hay que resolver antes de publicar, no una razón para continuar con
|
|
75
|
+
`--skip-acceptance`. Esta última opción sólo sirve para inspeccionar los artefactos y la instalación
|
|
76
|
+
cuando se está trabajando en ese bloqueo.
|
|
77
|
+
|
|
78
|
+
## Un ejemplo mínimo, ejecutado de verdad
|
|
79
|
+
|
|
80
|
+
Esta es la salida real de dos comandos, copiada de una corrida el 22 de septiembre de 2026 contra
|
|
81
|
+
la versión 0.8.0 (sin editar, salvo acortar la ruta a `mi-proyecto`):
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
$ horcon init mi-proyecto --project-name mi-proyecto --toca-salud no --toca-crisis no --toca-menores no
|
|
85
|
+
init escrito: mi-proyecto (perfil P2, 63 archivos)
|
|
86
|
+
template_digest=328fb598287d2f935b2fc549ce10a0f19dea6b19e87599ca16b8b4075515ca10
|
|
87
|
+
generation-receipt.json=mi-proyecto/generation-receipt.json
|
|
88
|
+
validación estructural: no es evidencia de comportamiento
|
|
89
|
+
|
|
90
|
+
$ horcon doctor
|
|
91
|
+
milpa: implementado
|
|
92
|
+
asilo: stub
|
|
93
|
+
docker: implementado
|
|
94
|
+
python: 3.14.5
|
|
95
|
+
proveedor de modelos: no configurado (HORCON_MODEL_BASE_URL no, HORCON_MODEL_API_KEY ausente, HORCON_MODEL_NAME no)
|
|
96
|
+
{"python": "3.14.5", "milpa": "implementado", "asilo": "stub", "docker": "implementado", "proveedor": "no configurado"}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Las tres preguntas `--toca-salud/--toca-crisis/--toca-menores` son obligatorias: `init` se niega
|
|
100
|
+
antes de escribir nada si falta alguna (decisión H-1 del fundador, `DECISIONES-CERRADAS.md`). La
|
|
101
|
+
última línea de `init` se imprime siempre: que la estructura generada esté bien no dice nada de
|
|
102
|
+
cómo se comporta un especialista dentro de ella.
|
|
103
|
+
|
|
104
|
+
El tutorial completo — crear dos especialistas, darlos de alta con firma, pedir un encargo, pasarlo
|
|
105
|
+
por la aduana y cerrarlo — está en
|
|
106
|
+
[`docs/00-inicio-rapido/03-tu-primer-proyecto.md`](docs/00-inicio-rapido/03-tu-primer-proyecto.md):
|
|
107
|
+
quince minutos, reejecutado de verdad el 22 de septiembre de 2026, con la salida real de cada paso.
|
|
108
|
+
|
|
109
|
+
## Qué hace hoy
|
|
110
|
+
|
|
111
|
+
- Genera un proyecto multiagente completo (`horcon init`) a partir de una plantilla versionada,
|
|
112
|
+
con manifiestos, políticas, máquina de estados y expediente de gobernanza.
|
|
113
|
+
- Da de alta especialistas con firma (`agent register`), corre encargos en **simulación**
|
|
114
|
+
determinista sin red (`run --provider fake`), y también contra un proveedor de modelos real bajo
|
|
115
|
+
interfaz compatible con OpenAI (`run --provider openai_compatible`, con dos consentimientos
|
|
116
|
+
explícitos y tope de gasto).
|
|
117
|
+
- Hace pasar cada propuesta por una aduana de doce políticas con reglas fijas (`gate`), nunca por
|
|
118
|
+
otro modelo opinando.
|
|
119
|
+
- Firma decisiones con Ed25519 en una cadena de hashes append-only (`receipt`, `adr sign`), con una
|
|
120
|
+
escalera de custodia de la llave (`keys init --custody`) de nivel gratis (archivo sin cifrar)
|
|
121
|
+
hasta nivel que aísla al asistente de código de la llave (usuario aparte del sistema).
|
|
122
|
+
- Trae un botón de paro con receipt firmado (`kill`/`resume`), un contador de gasto encadenado
|
|
123
|
+
(`charge`), una consola web para quien no programa, y un exportador de trazas a OTLP/HTTP sin
|
|
124
|
+
datos personales.
|
|
125
|
+
|
|
126
|
+
## Qué NO hace hoy
|
|
127
|
+
|
|
128
|
+
La lista completa, honesta y con lo que falta por decisión pendiente está en
|
|
129
|
+
[`docs/03-operacion/10-que-no-esta-implementado.md`](docs/03-operacion/10-que-no-esta-implementado.md).
|
|
130
|
+
En resumen:
|
|
131
|
+
|
|
132
|
+
- **Ninguna corrida con un proveedor de modelos real está registrada todavía** en este repositorio;
|
|
133
|
+
todo lo verificado en la suite de pruebas usa `--provider fake`.
|
|
134
|
+
- **No limpia datos personales.** Los detecta con tres expresiones regulares (correo, CURP,
|
|
135
|
+
teléfono) y los manda a revisión humana; no los redacta ni los borra.
|
|
136
|
+
- **No orquesta con CrewAI ni LangGraph.** Hay un adaptador de CrewAI que construye Agentes y
|
|
137
|
+
Tareas, pero nunca llama `kickoff()`; el orquestador de equipo (`team run`) es código propio,
|
|
138
|
+
no un framework de terceros envuelto.
|
|
139
|
+
- **No es una frontera de seguridad completa.** Qué protege la aduana, qué protege el padrón, qué
|
|
140
|
+
protege la custodia de la llave, y qué no protege ninguna de las tres, está explicado en llano en
|
|
141
|
+
[`docs/04-contratos/11-fronteras-de-confianza.md`](docs/04-contratos/11-fronteras-de-confianza.md).
|
|
142
|
+
- **No declara conformidad con ningún estándar** ni se llama a sí mismo "seguro" o "certificado":
|
|
143
|
+
ver [`docs/01-manifiesto/03-que-no-hace.md`](docs/01-manifiesto/03-que-no-hace.md).
|
|
144
|
+
|
|
145
|
+
## Estado de madurez
|
|
146
|
+
|
|
147
|
+
Versión 0.8.0. **Integrado en local y operable en simulación** (proveedor `fake`): 480 pruebas
|
|
148
|
+
en verde, `validate`, `audit-docs` y `docs build` limpios, cadena completa de comandos ejercitada a
|
|
149
|
+
mano. **Ninguna corrida con un proveedor de modelos real está registrada** en este repositorio;
|
|
150
|
+
nada aquí afirma que el sistema cumpla un estándar, sea seguro o esté certificado. Detalle completo
|
|
151
|
+
por versión en [`CHANGELOG.md`](CHANGELOG.md).
|
|
152
|
+
|
|
153
|
+
## Licencia
|
|
154
|
+
|
|
155
|
+
Apache License 2.0 ([`LICENSE`](LICENSE)). "Horcón" es un nombre en verificación de marca, sin
|
|
156
|
+
búsqueda de anterioridades resuelta todavía ([`NOTICE`](NOTICE)).
|
|
157
|
+
|
|
158
|
+
## Enlaces
|
|
159
|
+
|
|
160
|
+
| Qué | Dónde |
|
|
161
|
+
|---|---|
|
|
162
|
+
| Documentación (el libro completo) | [`docs/INDEX.md`](docs/INDEX.md) |
|
|
163
|
+
| Código fuente | https://codeberg.org/kasailabs/horcon |
|
|
164
|
+
| Registro de cambios | [`CHANGELOG.md`](CHANGELOG.md) |
|
|
165
|
+
| Incidencias | https://codeberg.org/kasailabs/horcon/issues |
|
|
166
|
+
| Contrato para agentes de código | [`AGENTS.md`](AGENTS.md) |
|
|
167
|
+
| Gobernanza y decisiones firmadas (ADR) | [`governance/README.md`](governance/README.md) |
|
|
168
|
+
|
|
169
|
+
Perfil MILPA `library` ([`.milpa-manifest.json`](.milpa-manifest.json)).
|