nexakit 0.10.0 → 0.13.0
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.
- package/README.md +13 -6
- package/assets/runtime/package-lock.json +415 -6
- package/bench/casos/arquitectura/alta-usuarios/base/controladores/usuarios.js +16 -0
- package/bench/casos/arquitectura/alta-usuarios/base/db.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/base/docs/adr/0003-capas.md +15 -0
- package/bench/casos/arquitectura/alta-usuarios/base/errores.js +3 -0
- package/bench/casos/arquitectura/alta-usuarios/base/repositorios/usuarios.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/base/servicios/usuarios.js +20 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/controladores/usuarios.js +47 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/repositorios/usuarios.js +21 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/servicios/perfil.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/esperado.json +53 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/docs/adr/0001-capas.md +18 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/aplicacion/confirmar.ts +8 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/pedido.ts +15 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/puertos.ts +6 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/infra/db.ts +14 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/main.ts +9 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/aplicacion/facturar.ts +19 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/informe.ts +7 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/pedido.ts +21 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/infra/db.ts +22 -0
- package/bench/casos/arquitectura/pedidos-facturacion/esperado.json +53 -0
- package/bench/casos/arquitectura/resumen-cliente/base/docs/adr/0001-capas.md +18 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/aplicacion/confirmar.ts +8 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/pedido.ts +15 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/puertos.ts +6 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/infra/db.ts +14 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/main.ts +9 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/aplicacion/resumen.ts +6 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/pedido.ts +33 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/puertos.ts +7 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/infra/db.ts +18 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/main.ts +14 -0
- package/bench/casos/arquitectura/resumen-cliente/esperado.json +23 -0
- package/bench/casos/documentacion/comentario-obsoleto/base/README.md +18 -0
- package/bench/casos/documentacion/comentario-obsoleto/base/src/usuarios.ts +35 -0
- package/bench/casos/documentacion/comentario-obsoleto/cambio/src/copia.ts +8 -0
- package/bench/casos/documentacion/comentario-obsoleto/cambio/src/usuarios.ts +43 -0
- package/bench/casos/documentacion/comentario-obsoleto/esperado.json +42 -0
- package/bench/casos/documentacion/reportes-config/base/README.md +23 -0
- package/bench/casos/documentacion/reportes-config/base/src/cli.js +33 -0
- package/bench/casos/documentacion/reportes-config/base/src/config.js +15 -0
- package/bench/casos/documentacion/reportes-config/base/src/envio.js +23 -0
- package/bench/casos/documentacion/reportes-config/cambio/src/cli.js +35 -0
- package/bench/casos/documentacion/reportes-config/cambio/src/config.js +15 -0
- package/bench/casos/documentacion/reportes-config/esperado.json +42 -0
- package/bench/casos/documentacion/tiempo-espera/base/README.md +10 -0
- package/bench/casos/documentacion/tiempo-espera/base/src/config.js +8 -0
- package/bench/casos/documentacion/tiempo-espera/cambio/README.md +10 -0
- package/bench/casos/documentacion/tiempo-espera/cambio/src/config.js +8 -0
- package/bench/casos/documentacion/tiempo-espera/esperado.json +16 -0
- package/bench/casos/pruebas/calendario-laboral/base/src/fechas.js +3 -0
- package/bench/casos/pruebas/calendario-laboral/base/test/fechas.test.js +7 -0
- package/bench/casos/pruebas/calendario-laboral/cambio/src/fechas.js +37 -0
- package/bench/casos/pruebas/calendario-laboral/cambio/test/calendario.test.js +31 -0
- package/bench/casos/pruebas/calendario-laboral/esperado.json +49 -0
- package/bench/casos/pruebas/fin-de-semana/base/src/fechas.js +3 -0
- package/bench/casos/pruebas/fin-de-semana/base/test/fechas.test.js +7 -0
- package/bench/casos/pruebas/fin-de-semana/cambio/src/fechas.js +8 -0
- package/bench/casos/pruebas/fin-de-semana/cambio/test/fines-de-semana.test.js +13 -0
- package/bench/casos/pruebas/fin-de-semana/esperado.json +16 -0
- package/bench/casos/pruebas/precios-carrito/base/src/precio.ts +3 -0
- package/bench/casos/pruebas/precios-carrito/base/test/precio.test.js +11 -0
- package/bench/casos/pruebas/precios-carrito/cambio/src/precio.ts +34 -0
- package/bench/casos/pruebas/precios-carrito/cambio/test/precio.test.js +42 -0
- package/bench/casos/pruebas/precios-carrito/esperado.json +42 -0
- package/bench/casos/rendimiento/boletin-correo/base/src/correo.html +1 -0
- package/bench/casos/rendimiento/boletin-correo/base/src/plantilla.ts +11 -0
- package/bench/casos/rendimiento/boletin-correo/cambio/src/envios.ts +44 -0
- package/bench/casos/rendimiento/boletin-correo/cambio/src/plantilla.ts +10 -0
- package/bench/casos/rendimiento/boletin-correo/esperado.json +42 -0
- package/bench/casos/rendimiento/clientes-por-lote/base/src/informe.js +8 -0
- package/bench/casos/rendimiento/clientes-por-lote/cambio/src/informe.js +6 -0
- package/bench/casos/rendimiento/clientes-por-lote/esperado.json +14 -0
- package/bench/casos/rendimiento/informe-ventas/base/src/informe.js +6 -0
- package/bench/casos/rendimiento/informe-ventas/base/src/tasas.json +1 -0
- package/bench/casos/rendimiento/informe-ventas/cambio/src/informe.js +33 -0
- package/bench/casos/rendimiento/informe-ventas/cambio/src/tasas.js +7 -0
- package/bench/casos/rendimiento/informe-ventas/esperado.json +42 -0
- package/bench/casos/seguridad/inyeccion-orden/base/src/respaldo.ts +13 -0
- package/bench/casos/seguridad/inyeccion-orden/cambio/src/respaldo.ts +69 -0
- package/bench/casos/seguridad/inyeccion-orden/esperado.json +42 -0
- package/bench/casos/seguridad/limpio-validacion/base/servidor.js +11 -0
- package/bench/casos/seguridad/limpio-validacion/cambio/servidor.js +39 -0
- package/bench/casos/seguridad/limpio-validacion/esperado.json +14 -0
- package/bench/casos/seguridad/servidor-archivos/base/servidor.js +21 -0
- package/bench/casos/seguridad/servidor-archivos/cambio/servidor.js +79 -0
- package/bench/casos/seguridad/servidor-archivos/esperado.json +42 -0
- package/bin/nexakit-fabrica-mcp.js +12 -0
- package/dist/fabrica/banco/casos.js +304 -0
- package/dist/fabrica/banco/ejecutar.js +483 -0
- package/dist/fabrica/banco/medir.js +120 -0
- package/dist/fabrica/cli.js +737 -0
- package/dist/fabrica/conectores/antigravity.js +1040 -0
- package/dist/fabrica/conectores/codex.js +967 -0
- package/dist/fabrica/conectores/tipos.js +8 -0
- package/dist/fabrica/config.js +44 -0
- package/dist/fabrica/consolidar.js +218 -0
- package/dist/fabrica/decision.js +210 -0
- package/dist/fabrica/diff.js +247 -0
- package/dist/fabrica/disco.js +356 -0
- package/dist/fabrica/ejecutor.js +597 -0
- package/dist/fabrica/encargo/candado.js +274 -0
- package/dist/fabrica/encargo/ejecutar.js +827 -0
- package/dist/fabrica/encargo/evidencia.js +308 -0
- package/dist/fabrica/encargo/parche.js +146 -0
- package/dist/fabrica/encargo/worktree.js +394 -0
- package/dist/fabrica/enrutador.js +425 -0
- package/dist/fabrica/errores.js +14 -0
- package/dist/fabrica/esquemas.js +57 -0
- package/dist/fabrica/estaciones.js +75 -0
- package/dist/fabrica/evidencia.js +406 -0
- package/dist/fabrica/indice.js +1 -0
- package/dist/fabrica/jsonrpc.js +274 -0
- package/dist/fabrica/lecciones.js +363 -0
- package/dist/fabrica/mcp.js +376 -0
- package/dist/fabrica/preferencias.js +56 -0
- package/dist/fabrica/protocolos/codex/AbsolutePathBuf.js +2 -0
- package/dist/fabrica/protocolos/codex/ApplyPatchApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/ClientInfo.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecCommandApprovalParams.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecCommandApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/FunctionCallOutputBody.js +2 -0
- package/dist/fabrica/protocolos/codex/FunctionCallOutputContentItem.js +2 -0
- package/dist/fabrica/protocolos/codex/ImageDetail.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeCapabilities.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeParams.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/InputModality.js +2 -0
- package/dist/fabrica/protocolos/codex/LegacyAppPathString.js +2 -0
- package/dist/fabrica/protocolos/codex/NetworkPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/NetworkPolicyRuleAction.js +2 -0
- package/dist/fabrica/protocolos/codex/ParsedCommand.js +2 -0
- package/dist/fabrica/protocolos/codex/Personality.js +2 -0
- package/dist/fabrica/protocolos/codex/ReasoningEffort.js +2 -0
- package/dist/fabrica/protocolos/codex/ReasoningSummary.js +2 -0
- package/dist/fabrica/protocolos/codex/ReviewDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/ThreadId.js +2 -0
- package/dist/fabrica/protocolos/codex/serde_json/JsonValue.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ApprovalsReviewer.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AskForApproval.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ByteRange.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ConfigReadParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CyberAccessProgram.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ExecPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemAccessMode.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemPath.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemSpecialPath.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/GrantedPermissionProfile.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerElicitationAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerStatusDetail.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/Model.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelAccessPrograms.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelAvailabilityNux.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelListParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelListResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelServiceTier.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelUpgradeInfo.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/MultiAgentVersion.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkAccess.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkApprovalContext.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/PermissionGrantScope.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ReasoningEffortOption.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/SandboxMode.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/SandboxPolicy.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TextElement.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadSource.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadStartParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadStartSource.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsage.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TokenUsageBreakdown.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnInterruptParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnStartParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnToolOutput.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/UserInput.js +2 -0
- package/dist/fabrica/rastro.js +487 -0
- package/dist/fabrica/sesion.js +230 -0
- package/dist/fabrica/tabla-modelos.json +29 -0
- package/dist/fabrica/veredictos.js +327 -0
- package/package.json +16 -8
- package/plugins/huellas.json +6 -6
- package/plugins/nexakit-lecciones/.claude-plugin/plugin.json +1 -1
- package/plugins/nexakit-lecciones/README.md +6 -5
- package/plugins/nexakit-lecciones/hooks/lecciones.js +29 -5
- package/plugins/nexakit-lecciones/hooks/register.js +7 -3
- package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -1
- package/plugins/nexakit-modelo/hooks/barra.js +100 -4
- package/plugins/nexakit-modelo/hooks/decidir.js +2 -2
- package/plugins/nexakit-modelo/hooks/recomendar.js +1 -1
- package/plugins/nexakit-modelo/hooks/register.js +122 -7
- package/plugins/nexakit-modelo/tests/register.test.ts +301 -0
- package/plugins/niveles/.claude-plugin/plugin.json +1 -1
- package/plugins/niveles/agents/cazador-de-flakes.md +1 -0
- package/plugins/niveles/agents/cierre-de-memoria.md +1 -0
- package/plugins/niveles/agents/investigador.md +1 -0
- package/plugins/niveles/agents/nivel-alto.md +1 -0
- package/plugins/niveles/agents/nivel-exigente.md +1 -0
- package/plugins/niveles/agents/nivel-ligero.md +1 -0
- package/plugins/niveles/agents/nivel-normal.md +1 -0
- package/plugins/niveles/agents/revisor-de-calidad.md +1 -0
- package/plugins/niveles/agents/sincronizador-docs.md +1 -0
- package/plugins/niveles/agents/subir-al-repo.md +1 -0
- package/skills/elegir-modelo/SKILL.md +4 -3
- package/skills/elegir-modelo/modelos.mjs +100 -1
- package/skills/fabrica/SKILL.md +55 -0
- package/skills/gemini/SKILL.md +2 -3
- package/skills/quality-gate/SKILL.md +2 -2
- package/src/agent-models.js +6 -4
- package/src/antigravity-barra.js +64 -12
- package/src/antigravity-command.js +4 -2
- package/src/antigravity-models.js +61 -0
- package/src/antigravity-pre-tool.js +11 -3
- package/src/antigravity-recommendation.js +15 -9
- package/src/antigravity-setup.js +4 -31
- package/src/cli-executable.d.ts +11 -0
- package/src/codex-pre-tool.js +3 -3
- package/src/codex-recommendation.js +1 -2
- package/src/codex-setup.js +3 -20
- package/src/codex-team.js +31 -4
- package/src/fabrica/banco/casos.ts +315 -0
- package/src/fabrica/banco/ejecutar.ts +587 -0
- package/src/fabrica/banco/medir.ts +160 -0
- package/src/fabrica/cli.ts +781 -0
- package/src/fabrica/conectores/antigravity.ts +1090 -0
- package/src/fabrica/conectores/codex.ts +1013 -0
- package/src/fabrica/conectores/tipos.ts +54 -0
- package/src/fabrica/config.ts +43 -0
- package/src/fabrica/consolidar.ts +277 -0
- package/src/fabrica/decision.ts +285 -0
- package/src/fabrica/diff.ts +294 -0
- package/src/fabrica/disco.ts +380 -0
- package/src/fabrica/ejecutor.ts +716 -0
- package/src/fabrica/encargo/candado.ts +287 -0
- package/src/fabrica/encargo/ejecutar.ts +953 -0
- package/src/fabrica/encargo/evidencia.ts +301 -0
- package/src/fabrica/encargo/parche.ts +151 -0
- package/src/fabrica/encargo/worktree.ts +427 -0
- package/src/fabrica/enrutador.ts +494 -0
- package/src/fabrica/errores.ts +15 -0
- package/src/fabrica/esquemas.ts +92 -0
- package/src/fabrica/estaciones.ts +83 -0
- package/src/fabrica/evidencia.ts +445 -0
- package/src/fabrica/indice.ts +1 -0
- package/src/fabrica/jsonrpc.ts +314 -0
- package/src/fabrica/lecciones.ts +411 -0
- package/src/fabrica/mcp.ts +450 -0
- package/src/fabrica/preferencias.ts +66 -0
- package/src/fabrica/protocolos/codex/AbsolutePathBuf.ts +14 -0
- package/src/fabrica/protocolos/codex/ApplyPatchApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/ClientInfo.ts +5 -0
- package/src/fabrica/protocolos/codex/ExecCommandApprovalParams.ts +16 -0
- package/src/fabrica/protocolos/codex/ExecCommandApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/ExecPolicyAmendment.ts +12 -0
- package/src/fabrica/protocolos/codex/FunctionCallOutputBody.ts +6 -0
- package/src/fabrica/protocolos/codex/FunctionCallOutputContentItem.ts +10 -0
- package/src/fabrica/protocolos/codex/ImageDetail.ts +5 -0
- package/src/fabrica/protocolos/codex/InitializeCapabilities.ts +42 -0
- package/src/fabrica/protocolos/codex/InitializeParams.ts +7 -0
- package/src/fabrica/protocolos/codex/InitializeResponse.ts +20 -0
- package/src/fabrica/protocolos/codex/InputModality.ts +8 -0
- package/src/fabrica/protocolos/codex/LegacyAppPathString.ts +27 -0
- package/src/fabrica/protocolos/codex/NetworkPolicyAmendment.ts +6 -0
- package/src/fabrica/protocolos/codex/NetworkPolicyRuleAction.ts +5 -0
- package/src/fabrica/protocolos/codex/ParsedCommand.ts +12 -0
- package/src/fabrica/protocolos/codex/Personality.ts +8 -0
- package/src/fabrica/protocolos/codex/ReasoningEffort.ts +8 -0
- package/src/fabrica/protocolos/codex/ReasoningSummary.ts +10 -0
- package/src/fabrica/protocolos/codex/ReviewDecision.ts +10 -0
- package/src/fabrica/protocolos/codex/ThreadId.ts +10 -0
- package/src/fabrica/protocolos/codex/VERSION +1 -0
- package/src/fabrica/protocolos/codex/serde_json/JsonValue.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.ts +15 -0
- package/src/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ApprovalsReviewer.ts +12 -0
- package/src/fabrica/protocolos/codex/v2/AskForApproval.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ByteRange.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/CommandAction.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.ts +51 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/ConfigReadParams.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/CyberAccessProgram.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/ExecPolicyAmendment.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemAccessMode.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemPath.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemSpecialPath.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/GrantedPermissionProfile.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.ts +23 -0
- package/src/fabrica/protocolos/codex/v2/McpServerElicitationAction.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.ts +17 -0
- package/src/fabrica/protocolos/codex/v2/McpServerStatusDetail.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/Model.ts +33 -0
- package/src/fabrica/protocolos/codex/v2/ModelAccessPrograms.ts +13 -0
- package/src/fabrica/protocolos/codex/v2/ModelAvailabilityNux.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ModelListParams.ts +17 -0
- package/src/fabrica/protocolos/codex/v2/ModelListResponse.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/ModelServiceTier.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ModelUpgradeInfo.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/MultiAgentVersion.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/NetworkAccess.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/NetworkApprovalContext.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/PermissionGrantScope.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/ReasoningEffortOption.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/SandboxMode.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/SandboxPolicy.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/TextElement.ts +14 -0
- package/src/fabrica/protocolos/codex/v2/ThreadSource.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ThreadStartParams.ts +22 -0
- package/src/fabrica/protocolos/codex/v2/ThreadStartSource.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ThreadTokenUsage.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/TokenUsageBreakdown.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/TurnInterruptParams.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/TurnStartParams.ts +75 -0
- package/src/fabrica/protocolos/codex/v2/TurnToolOutput.ts +10 -0
- package/src/fabrica/protocolos/codex/v2/UserInput.ts +11 -0
- package/src/fabrica/rastro.ts +508 -0
- package/src/fabrica/sesion.ts +280 -0
- package/src/fabrica/tabla-modelos.json +29 -0
- package/src/fabrica/veredictos.ts +365 -0
- package/src/gemini-cli.js +15 -12
- package/src/gemini-tools.js +1 -1
- package/src/gemini-usage-store.js +32 -0
- package/src/instructions-block.js +69 -0
- package/src/lecciones-command.js +105 -4
- package/src/lecciones-instructions.js +178 -0
- package/src/legacy-repair.js +1 -1
- package/src/level-agents.js +5 -3
- package/src/memory-mcp-policy.js +1 -1
- package/src/missing-dependencies.js +5 -0
- package/src/model-command.d.ts +29 -0
- package/src/model-command.js +4 -27
- package/src/regla-ordenes-simples.d.ts +2 -0
- package/src/regla-ordenes-simples.js +4 -0
- package/src/review-instructions.js +69 -81
- package/src/safe-paths.js +38 -0
- package/src/setup-apply.js +24 -2
- package/src/setup-plan.js +57 -1
- package/src/setup-state.js +14 -0
- package/src/shell-quote.js +2 -0
- package/src/skill-recommendations.js +101 -28
- package/src/stable-command.js +2 -2
- package/src/stable-install.js +4 -2
- package/src/superpowers.js +0 -7
- package/src/task-document.js +59 -0
- package/src/terminal-text.js +2 -19
- package/src/toolkit-cli.js +63 -8
- package/src/toolkit-setup.js +192 -37
- package/templates/agent-team/README.md +7 -19
- package/bin/agent-task.js +0 -14
- package/bin/agent-toolkit-inbox.js +0 -14
- package/bin/agent-toolkit-mcp.js +0 -17
- package/schemas/agent-client-adapter.schema.json +0 -786
- package/schemas/agent-client-auth-diagnostic.schema.json +0 -801
- package/schemas/agent-client-isolated-variant.schema.json +0 -105
- package/schemas/agent-client-isolated-verification.schema.json +0 -99
- package/schemas/agent-client-managed-preferences-invocation.schema.json +0 -67
- package/schemas/agent-client-managed-preferences.schema.json +0 -63
- package/schemas/agent-client-native-diagnostics.schema.json +0 -85
- package/schemas/agent-client-native-evaluation.schema.json +0 -171
- package/schemas/agent-client-native-preflight.schema.json +0 -90
- package/schemas/agent-client-output.schema.json +0 -551
- package/schemas/agent-client-runtime-fixture.schema.json +0 -90
- package/schemas/agent-client-runtime-local.schema.json +0 -95
- package/schemas/agent-client-runtime.schema.json +0 -1288
- package/schemas/agent-client-selective-config.schema.json +0 -77
- package/schemas/agent-client-supervised-local.schema.json +0 -135
- package/schemas/agent-client-supervised.schema.json +0 -186
- package/schemas/agent-task-approvals.schema.json +0 -362
- package/schemas/agent-task-prepare.schema.json +0 -1324
- package/schemas/agent-task-verify.schema.json +0 -198
- package/schemas/task-workflow-plan-output.schema.json +0 -35
- package/skills/revisar/SKILL.md +0 -51
- package/src/claude-code-runner.js +0 -642
- package/src/client-adapter-plan.js +0 -271
- package/src/client-auth-diagnostic-parser.js +0 -211
- package/src/client-auth-diagnostic.js +0 -257
- package/src/client-isolated-variant.js +0 -106
- package/src/client-isolated-verification.js +0 -130
- package/src/client-local-platform.js +0 -14
- package/src/client-managed-preferences-invocation.js +0 -209
- package/src/client-managed-preferences.js +0 -78
- package/src/client-native-access.js +0 -134
- package/src/client-native-diagnostics.js +0 -253
- package/src/client-native-evaluation.js +0 -106
- package/src/client-native-preflight-files.js +0 -68
- package/src/client-native-preflight.js +0 -95
- package/src/client-output-parser.js +0 -278
- package/src/client-runtime-admission.js +0 -80
- package/src/client-runtime-coordinator.js +0 -70
- package/src/client-runtime-core.js +0 -92
- package/src/client-runtime-fixture-permit.js +0 -20
- package/src/client-runtime-fixture-protocol.js +0 -39
- package/src/client-runtime-state.js +0 -67
- package/src/client-runtime-store-files.js +0 -91
- package/src/client-runtime-store.js +0 -239
- package/src/client-runtime-supervisor.js +0 -146
- package/src/client-selective-config.js +0 -195
- package/src/client-selective-files.js +0 -126
- package/src/client-supervised-codes.js +0 -32
- package/src/client-supervised-contract.js +0 -52
- package/src/client-supervised-coordinator.js +0 -36
- package/src/client-supervised-permit.js +0 -20
- package/src/client-supervised-protocol.js +0 -37
- package/src/client-supervised-store.js +0 -167
- package/src/client-supervised-supervisor.js +0 -167
- package/src/client-supervised.js +0 -160
- package/src/codex-cli-runner.js +0 -358
- package/src/codex-delivery.js +0 -101
- package/src/memory-connection-artifacts.js +0 -192
- package/src/memory-connection-descriptor.js +0 -158
- package/src/memory-connection-diagnostic.js +0 -177
- package/src/memory-connection-files.js +0 -191
- package/src/memory-connection-manifest.js +0 -118
- package/src/memory-connection-package.js +0 -176
- package/src/memory-connection-plan.js +0 -217
- package/src/memory-connection-skill.js +0 -211
- package/src/memory-connection-toml.js +0 -153
- package/src/native/managed-preferences.c +0 -100
- package/src/native/managed-preferences.h +0 -17
- package/src/package-lock-path.js +0 -13
- package/src/peer-handoff.js +0 -27
- package/src/peer-inbox-cli.js +0 -211
- package/src/peer-review-mcp.js +0 -210
- package/src/peer-review-store.js +0 -532
- package/src/review-policy.js +0 -35
- package/src/revision-adapters.js +0 -158
- package/src/revision-context.js +0 -86
- package/src/revision-isolation.js +0 -222
- package/src/revision-process.js +0 -103
- package/src/revision-provenance.js +0 -89
- package/src/revision-snapshot.js +0 -120
- package/src/revision.js +0 -242
- package/src/runtime-fixtures/runtime-supervisor/child.cjs +0 -3
- package/src/runtime-fixtures/runtime-supervisor/fixture.cjs +0 -49
- package/src/runtime-fixtures/supervised/child.cjs +0 -3
- package/src/runtime-fixtures/supervised/fixture.cjs +0 -47
- package/src/task-approvals.js +0 -367
- package/src/task-cli.js +0 -79
- package/src/task-external-verifier.js +0 -584
- package/src/task-prepare-files.js +0 -115
- package/src/task-prepare.js +0 -180
- package/src/task-verify-cli.js +0 -67
- package/src/task-verify-files.js +0 -188
- package/src/task-verify.js +0 -118
- package/src/task-workflow-mcp.js +0 -544
- package/src/task-workflow-store.js +0 -254
- package/src/toolkit-commands-guide.js +0 -115
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-isolated-variant.schema.json",
|
|
4
|
-
"$ref": "#/$defs/input",
|
|
5
|
-
"$defs": {
|
|
6
|
-
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" },
|
|
7
|
-
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
8
|
-
"time": { "type": "string", "format": "date-time" },
|
|
9
|
-
"mechanismId": {
|
|
10
|
-
"enum": ["tools-empty-denied", "restricted-settings", "local-personalizations-excluded", "session-hooks-disabled", "managed-sources-excluded", "strict-empty-mcp", "connectors-disabled", "browser-ide-excluded", "skills-plugins-delegation-excluded", "minimal-environment", "updates-nonessential-traffic-disabled", "resume-persistence-fallback-excluded"]
|
|
11
|
-
},
|
|
12
|
-
"candidate": {
|
|
13
|
-
"type": "object", "additionalProperties": false,
|
|
14
|
-
"required": ["client", "candidateId", "artifactSha256", "versionReference", "configurationSha256", "environmentSha256", "authentication"],
|
|
15
|
-
"properties": {
|
|
16
|
-
"client": { "const": "claude-code" },
|
|
17
|
-
"candidateId": { "$ref": "#/$defs/id" },
|
|
18
|
-
"artifactSha256": { "$ref": "#/$defs/digest" },
|
|
19
|
-
"versionReference": { "$ref": "#/$defs/id" },
|
|
20
|
-
"configurationSha256": { "$ref": "#/$defs/digest" },
|
|
21
|
-
"environmentSha256": { "$ref": "#/$defs/digest" },
|
|
22
|
-
"authentication": { "enum": ["subscription", "api", "bare", "unknown"] }
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"observation": {
|
|
26
|
-
"type": "object", "additionalProperties": false,
|
|
27
|
-
"required": ["mechanismId", "state", "referenceId", "observedAt"],
|
|
28
|
-
"properties": {
|
|
29
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
30
|
-
"state": { "enum": ["configured", "absent", "unknown"] },
|
|
31
|
-
"referenceId": { "$ref": "#/$defs/id" },
|
|
32
|
-
"observedAt": { "$ref": "#/$defs/time" }
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"assessment": {
|
|
36
|
-
"oneOf": [
|
|
37
|
-
{
|
|
38
|
-
"type": "object", "additionalProperties": false,
|
|
39
|
-
"required": ["mechanismId", "provenance", "outcome"],
|
|
40
|
-
"properties": {
|
|
41
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
42
|
-
"provenance": { "const": "pending" },
|
|
43
|
-
"outcome": { "const": "unknown" }
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "object", "additionalProperties": false,
|
|
48
|
-
"required": ["mechanismId", "provenance", "basis", "outcome", "referenceId", "observedAt", "scopeSha256", "definitionSha256"],
|
|
49
|
-
"properties": {
|
|
50
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
51
|
-
"provenance": { "enum": ["documented", "local-structure-observation", "operator-attested", "native-variant-tested", "rejected"] },
|
|
52
|
-
"basis": { "enum": ["documentation", "structure", "attestation", "native-test"] },
|
|
53
|
-
"outcome": { "enum": ["supported", "unknown", "incompatible"] },
|
|
54
|
-
"referenceId": { "$ref": "#/$defs/id" },
|
|
55
|
-
"observedAt": { "$ref": "#/$defs/time" },
|
|
56
|
-
"scopeSha256": { "$ref": "#/$defs/digest" },
|
|
57
|
-
"definitionSha256": { "$ref": "#/$defs/digest" }
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"input": {
|
|
63
|
-
"type": "object", "additionalProperties": false,
|
|
64
|
-
"required": ["schemaVersion", "variantId", "candidate", "now", "mode", "role", "mechanisms", "observations", "assessments"],
|
|
65
|
-
"properties": {
|
|
66
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
67
|
-
"variantId": { "const": "claude-subscription-text-v1" },
|
|
68
|
-
"candidate": { "$ref": "#/$defs/candidate" },
|
|
69
|
-
"now": { "$ref": "#/$defs/time" },
|
|
70
|
-
"mode": { "enum": ["tutor", "autonomous"] },
|
|
71
|
-
"role": { "enum": ["proponent", "reviewer"] },
|
|
72
|
-
"mechanisms": { "type": "array", "maxItems": 12, "items": { "$ref": "#/$defs/mechanismId" } },
|
|
73
|
-
"observations": { "type": "array", "maxItems": 12, "items": { "$ref": "#/$defs/observation" } },
|
|
74
|
-
"assessments": { "type": "array", "maxItems": 12, "items": { "$ref": "#/$defs/assessment" } }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"policy": {
|
|
78
|
-
"type": "object", "additionalProperties": false,
|
|
79
|
-
"required": ["policyId", "maxEvidenceAgeSeconds", "revokedReferences", "allowedVariants"],
|
|
80
|
-
"properties": {
|
|
81
|
-
"policyId": { "$ref": "#/$defs/id" },
|
|
82
|
-
"maxEvidenceAgeSeconds": { "type": "integer", "minimum": 1, "maximum": 3600 },
|
|
83
|
-
"revokedReferences": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
84
|
-
"allowedVariants": { "type": "array", "maxItems": 1, "uniqueItems": true, "items": { "const": "claude-subscription-text-v1" } }
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"report": {
|
|
88
|
-
"type": "object", "additionalProperties": false,
|
|
89
|
-
"required": ["scope", "state", "reasons", "unresolvedMechanisms", "descriptionSha256", "scopeSha256", "executed", "runtimeReady", "verifiedAdmission", "externalBillingVerified", "effectiveIsolationVerified"],
|
|
90
|
-
"properties": {
|
|
91
|
-
"scope": { "const": "isolated-variant-claims-only" },
|
|
92
|
-
"state": { "enum": ["invalid", "incomplete", "blocked", "ready-for-variant-review"] },
|
|
93
|
-
"reasons": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
94
|
-
"unresolvedMechanisms": { "type": "array", "maxItems": 12, "uniqueItems": true, "items": { "$ref": "#/$defs/mechanismId" } },
|
|
95
|
-
"descriptionSha256": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
|
|
96
|
-
"scopeSha256": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
|
|
97
|
-
"executed": { "const": false },
|
|
98
|
-
"runtimeReady": { "const": false },
|
|
99
|
-
"verifiedAdmission": { "const": false },
|
|
100
|
-
"externalBillingVerified": { "const": false },
|
|
101
|
-
"effectiveIsolationVerified": { "const": false }
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-isolated-verification.schema.json",
|
|
4
|
-
"$ref": "#/$defs/input",
|
|
5
|
-
"$defs": {
|
|
6
|
-
"id": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/id" },
|
|
7
|
-
"digest": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/digest" },
|
|
8
|
-
"time": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/time" },
|
|
9
|
-
"mechanismId": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/mechanismId" },
|
|
10
|
-
"methodId": { "enum": ["documentation-review", "structure-review", "fixture-test", "native-test"] },
|
|
11
|
-
"phase": { "enum": ["pre-start", "session", "shutdown"] },
|
|
12
|
-
"phases": { "type": "array", "maxItems": 3, "items": { "$ref": "#/$defs/phase" } },
|
|
13
|
-
"evidence": {
|
|
14
|
-
"type": "object", "additionalProperties": false,
|
|
15
|
-
"required": ["provenance", "basis", "outcome", "referenceId", "observedAt", "scopeSha256", "definitionSha256"],
|
|
16
|
-
"properties": {
|
|
17
|
-
"provenance": { "enum": ["documented", "local-structure-observation", "operator-attested", "fixture-claim", "native-claim", "rejected"] },
|
|
18
|
-
"basis": { "enum": ["documentation", "structure", "attestation", "fixture-test", "native-test"] },
|
|
19
|
-
"outcome": { "enum": ["supported", "unknown", "incompatible"] },
|
|
20
|
-
"referenceId": { "$ref": "#/$defs/id" },
|
|
21
|
-
"observedAt": { "$ref": "#/$defs/time" },
|
|
22
|
-
"scopeSha256": { "$ref": "#/$defs/digest" },
|
|
23
|
-
"definitionSha256": { "$ref": "#/$defs/digest" }
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"check": {
|
|
27
|
-
"type": "object", "additionalProperties": false,
|
|
28
|
-
"required": ["mechanismId", "methodId", "coverage", "containment", "evidence"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
31
|
-
"methodId": { "$ref": "#/$defs/methodId" },
|
|
32
|
-
"coverage": { "$ref": "#/$defs/phases" },
|
|
33
|
-
"containment": { "enum": ["not-needed", "declared-contained", "unknown", "prohibited-effect-required"] },
|
|
34
|
-
"evidence": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/evidence" }] }
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"input": {
|
|
38
|
-
"type": "object", "additionalProperties": false,
|
|
39
|
-
"required": ["schemaVersion", "variant", "checks"],
|
|
40
|
-
"properties": {
|
|
41
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
42
|
-
"variant": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/input" },
|
|
43
|
-
"checks": { "type": "array", "maxItems": 12, "items": { "$ref": "#/$defs/check" } }
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"catalogCheck": {
|
|
47
|
-
"type": "object", "additionalProperties": false,
|
|
48
|
-
"required": ["mechanismId", "definitionSha256", "allowedMethods", "requiredCoverage"],
|
|
49
|
-
"properties": {
|
|
50
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
51
|
-
"definitionSha256": { "$ref": "#/$defs/digest" },
|
|
52
|
-
"allowedMethods": { "type": "array", "minItems": 1, "maxItems": 4, "uniqueItems": true, "items": { "$ref": "#/$defs/methodId" } },
|
|
53
|
-
"requiredCoverage": { "type": "array", "minItems": 1, "maxItems": 3, "uniqueItems": true, "items": { "$ref": "#/$defs/phase" } }
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"catalog": {
|
|
57
|
-
"type": "object", "additionalProperties": false,
|
|
58
|
-
"required": ["catalogId", "variantSchema", "variantPolicy", "checks"],
|
|
59
|
-
"properties": {
|
|
60
|
-
"catalogId": { "$ref": "#/$defs/id" },
|
|
61
|
-
"variantSchema": { "type": "object" },
|
|
62
|
-
"variantPolicy": { "$ref": "agent-client-isolated-variant.schema.json#/$defs/policy" },
|
|
63
|
-
"checks": { "type": "array", "minItems": 12, "maxItems": 12, "items": { "$ref": "#/$defs/catalogCheck" } }
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"row": {
|
|
67
|
-
"type": "object", "additionalProperties": false,
|
|
68
|
-
"required": ["mechanismId", "methodId", "state", "requiredCoverage", "missingCoverage", "missingEvidence", "reasons", "evidenceAuthenticated"],
|
|
69
|
-
"properties": {
|
|
70
|
-
"mechanismId": { "$ref": "#/$defs/mechanismId" },
|
|
71
|
-
"methodId": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/methodId" }] },
|
|
72
|
-
"state": { "enum": ["documented-only", "structure-only", "test-scoped", "unresolved", "incompatible", "not-observable-in-scope"] },
|
|
73
|
-
"requiredCoverage": { "$ref": "#/$defs/phases" },
|
|
74
|
-
"missingCoverage": { "$ref": "#/$defs/phases" },
|
|
75
|
-
"missingEvidence": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
76
|
-
"reasons": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
77
|
-
"evidenceAuthenticated": { "const": false }
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"report": {
|
|
81
|
-
"type": "object", "additionalProperties": false,
|
|
82
|
-
"required": ["scope", "state", "decision", "matrix", "reasons", "planSha256", "variantScopeSha256", "executed", "runtimeReady", "verifiedAdmission", "externalBillingVerified", "effectiveIsolationVerified"],
|
|
83
|
-
"properties": {
|
|
84
|
-
"scope": { "const": "isolated-verification-plan-only" },
|
|
85
|
-
"state": { "enum": ["invalid", "blocked", "plan-review-required"] },
|
|
86
|
-
"decision": { "const": "no-native-start" },
|
|
87
|
-
"matrix": { "type": "array", "minItems": 12, "maxItems": 12, "items": { "$ref": "#/$defs/row" } },
|
|
88
|
-
"reasons": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
89
|
-
"planSha256": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
|
|
90
|
-
"variantScopeSha256": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
|
|
91
|
-
"executed": { "const": false },
|
|
92
|
-
"runtimeReady": { "const": false },
|
|
93
|
-
"verifiedAdmission": { "const": false },
|
|
94
|
-
"externalBillingVerified": { "const": false },
|
|
95
|
-
"effectiveIsolationVerified": { "const": false }
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-managed-preferences-invocation.schema.json",
|
|
4
|
-
"$defs": {
|
|
5
|
-
"integer": { "type": "integer", "minimum": 0 },
|
|
6
|
-
"pin": {
|
|
7
|
-
"type": "object", "additionalProperties": false,
|
|
8
|
-
"required": ["path", "dev", "ino", "uid", "mode", "size", "mtimeMs", "ctimeMs", "sha256"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"path": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
11
|
-
"dev": { "$ref": "#/$defs/integer" }, "ino": { "$ref": "#/$defs/integer" }, "uid": { "$ref": "#/$defs/integer" },
|
|
12
|
-
"mode": { "type": "integer", "minimum": 0, "maximum": 4095 },
|
|
13
|
-
"size": { "type": "integer", "minimum": 1, "maximum": 8388608 },
|
|
14
|
-
"mtimeMs": { "type": "number", "minimum": 0 }, "ctimeMs": { "type": "number", "minimum": 0 },
|
|
15
|
-
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"parent": {
|
|
19
|
-
"type": "object", "additionalProperties": false,
|
|
20
|
-
"required": ["path", "dev", "ino", "uid", "mode"],
|
|
21
|
-
"properties": {
|
|
22
|
-
"path": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
23
|
-
"dev": { "$ref": "#/$defs/integer" }, "ino": { "$ref": "#/$defs/integer" }, "uid": { "$ref": "#/$defs/integer" },
|
|
24
|
-
"mode": { "const": 448 }
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"limits": {
|
|
28
|
-
"type": "object", "additionalProperties": false,
|
|
29
|
-
"required": ["totalTimeoutMs", "graceMs", "confirmationMs", "maxOutputBytes", "maxErrorBytes", "permitLifetimeMs"],
|
|
30
|
-
"properties": {
|
|
31
|
-
"totalTimeoutMs": { "type": "integer", "minimum": 25, "maximum": 15000 },
|
|
32
|
-
"graceMs": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
33
|
-
"confirmationMs": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
34
|
-
"maxOutputBytes": { "type": "integer", "minimum": 1, "maximum": 32768 },
|
|
35
|
-
"maxErrorBytes": { "type": "integer", "minimum": 1, "maximum": 32768 },
|
|
36
|
-
"permitLifetimeMs": { "type": "integer", "minimum": 1, "maximum": 3600000 }
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"configuration": {
|
|
40
|
-
"type": "object", "additionalProperties": false,
|
|
41
|
-
"required": ["expectedSource", "artifact", "workspaceParent", "limits"],
|
|
42
|
-
"properties": {
|
|
43
|
-
"expectedSource": { "enum": ["synthetic", "core-foundation-claim"] },
|
|
44
|
-
"artifact": { "$ref": "#/$defs/pin" }, "workspaceParent": { "$ref": "#/$defs/parent" }, "limits": { "$ref": "#/$defs/limits" }
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"report": {
|
|
48
|
-
"type": "object", "additionalProperties": false,
|
|
49
|
-
"required": ["scope", "state", "decision", "spawnAttempts", "helperStarted", "helperExecutionVerified", "artifactMatchedBefore", "artifactMatchedAfter", "terminationConfirmed", "cleanupRequired", "stdoutBytes", "stderrBytes", "elapsedMs", "projection", "reasons", "nativeClientStarted", "inferenceRequested", "runtimeReady", "verifiedAdmission", "effectiveIsolationVerified", "externalBillingVerified", "preferencesQueriedVerified"],
|
|
50
|
-
"properties": {
|
|
51
|
-
"scope": { "const": "managed-preferences-helper-only" },
|
|
52
|
-
"state": { "enum": ["blocked", "completed", "helper-failed", "failed", "canceled", "timed-out", "indeterminate"] },
|
|
53
|
-
"decision": { "const": "no-client-start" },
|
|
54
|
-
"spawnAttempts": { "type": "integer", "minimum": 0, "maximum": 1 },
|
|
55
|
-
"helperStarted": { "type": "boolean" }, "helperExecutionVerified": { "type": "boolean" },
|
|
56
|
-
"artifactMatchedBefore": { "type": "boolean" }, "artifactMatchedAfter": { "type": "boolean" },
|
|
57
|
-
"terminationConfirmed": { "type": "boolean" }, "cleanupRequired": { "type": "boolean" },
|
|
58
|
-
"stdoutBytes": { "$ref": "#/$defs/integer" }, "stderrBytes": { "$ref": "#/$defs/integer" }, "elapsedMs": { "$ref": "#/$defs/integer" },
|
|
59
|
-
"projection": { "anyOf": [{ "type": "null" }, { "$ref": "agent-client-managed-preferences.schema.json#/$defs/report" }] },
|
|
60
|
-
"reasons": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" } },
|
|
61
|
-
"nativeClientStarted": { "const": false }, "inferenceRequested": { "const": false }, "runtimeReady": { "const": false },
|
|
62
|
-
"verifiedAdmission": { "const": false }, "effectiveIsolationVerified": { "const": false }, "externalBillingVerified": { "const": false },
|
|
63
|
-
"preferencesQueriedVerified": { "const": false }
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-managed-preferences.schema.json",
|
|
4
|
-
"$ref": "#/$defs/wire",
|
|
5
|
-
"$defs": {
|
|
6
|
-
"source": { "enum": ["synthetic", "core-foundation-claim"] },
|
|
7
|
-
"field": {
|
|
8
|
-
"type": "object", "additionalProperties": false,
|
|
9
|
-
"required": ["name", "type", "forced"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"name": { "enum": ["hooks", "policyHelper", "apiKeyHelper", "env", "managedMcpServers", "disableAllHooks"] },
|
|
12
|
-
"type": { "enum": ["not-found-by-api", "boolean", "number", "string", "array", "dictionary", "other"] },
|
|
13
|
-
"forced": { "enum": ["forced", "not-forced", "unknown"] }
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"wire": {
|
|
17
|
-
"oneOf": [
|
|
18
|
-
{
|
|
19
|
-
"type": "object", "additionalProperties": false,
|
|
20
|
-
"required": ["schemaVersion", "source", "application", "status", "fields"],
|
|
21
|
-
"properties": {
|
|
22
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
23
|
-
"source": { "$ref": "#/$defs/source" },
|
|
24
|
-
"application": { "const": "com.anthropic.claudecode" },
|
|
25
|
-
"status": { "const": "complete" },
|
|
26
|
-
"fields": { "type": "array", "minItems": 6, "maxItems": 6, "items": { "$ref": "#/$defs/field" } }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "object", "additionalProperties": false,
|
|
31
|
-
"required": ["schemaVersion", "source", "status", "code"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
34
|
-
"source": { "$ref": "#/$defs/source" },
|
|
35
|
-
"status": { "const": "failed" },
|
|
36
|
-
"code": { "enum": ["preferences-arguments-rejected", "preferences-backend-failed", "preferences-type-rejected"] }
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"report": {
|
|
42
|
-
"type": "object", "additionalProperties": false,
|
|
43
|
-
"required": ["scope", "state", "decision", "sourceClaim", "fields", "reasons", "helperExecutionVerified", "preferencesQueriedVerified", "runtimeReady", "verifiedAdmission", "effectiveIsolationVerified", "externalBillingVerified"],
|
|
44
|
-
"properties": {
|
|
45
|
-
"scope": { "const": "partial-preference-observation" },
|
|
46
|
-
"state": { "enum": ["invalid", "helper-failed", "partial-observation"] },
|
|
47
|
-
"decision": { "const": "no-native-start" },
|
|
48
|
-
"sourceClaim": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/source" }] },
|
|
49
|
-
"fields": { "type": "array", "maxItems": 6, "items": { "$ref": "#/$defs/field" } },
|
|
50
|
-
"reasons": {
|
|
51
|
-
"type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true,
|
|
52
|
-
"items": { "enum": ["preferences-invalid-output", "preferences-source-mismatch", "preferences-exit-mismatch", "preferences-observation-partial", "preferences-force-unknown", "preferences-nonatomic-observation", "preferences-arguments-rejected", "preferences-backend-failed", "preferences-type-rejected", "preferences-stream-closed", "preferences-transport-timeout", "preferences-transport-overflow", "preferences-transport-unconfirmed", "preferences-transport-changed-artifact", "preferences-transport-error"] }
|
|
53
|
-
},
|
|
54
|
-
"helperExecutionVerified": { "const": false },
|
|
55
|
-
"preferencesQueriedVerified": { "const": false },
|
|
56
|
-
"runtimeReady": { "const": false },
|
|
57
|
-
"verifiedAdmission": { "const": false },
|
|
58
|
-
"effectiveIsolationVerified": { "const": false },
|
|
59
|
-
"externalBillingVerified": { "const": false }
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-native-diagnostics.schema.json",
|
|
4
|
-
"title": "S3.1 trusted native diagnostics, not inference admission",
|
|
5
|
-
"$defs": {
|
|
6
|
-
"pin": {
|
|
7
|
-
"type": "object", "additionalProperties": false,
|
|
8
|
-
"required": ["entryPath", "artifactPath", "expectedSha256", "expectedUid", "expectedMode", "expectedSize", "expectedDev", "expectedIno", "expectedLinkIno"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"entryPath": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
11
|
-
"artifactPath": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
12
|
-
"expectedSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
13
|
-
"expectedUid": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
14
|
-
"expectedMode": {"type": "integer", "minimum": 0, "maximum": 4095},
|
|
15
|
-
"expectedSize": {"type": "integer", "minimum": 1, "maximum": 536870912},
|
|
16
|
-
"expectedDev": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
17
|
-
"expectedIno": {"type": "integer", "minimum": 1, "maximum": 9007199254740991},
|
|
18
|
-
"expectedLinkIno": {"type": "integer", "minimum": 1, "maximum": 9007199254740991}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"limits": {
|
|
22
|
-
"type": "object", "additionalProperties": false,
|
|
23
|
-
"required": ["maxStarts", "processTimeoutMs", "totalTimeoutMs", "graceMs", "confirmationMs", "maxStdoutBytes", "maxStderrBytes"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"maxStarts": {"const": 2},
|
|
26
|
-
"processTimeoutMs": {"type": "integer", "minimum": 100, "maximum": 15000},
|
|
27
|
-
"totalTimeoutMs": {"type": "integer", "minimum": 100, "maximum": 90000},
|
|
28
|
-
"graceMs": {"type": "integer", "minimum": 10, "maximum": 1000},
|
|
29
|
-
"confirmationMs": {"type": "integer", "minimum": 10, "maximum": 1000},
|
|
30
|
-
"maxStdoutBytes": {"type": "integer", "minimum": 1, "maximum": 131072},
|
|
31
|
-
"maxStderrBytes": {"type": "integer", "minimum": 1, "maximum": 32768}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"configuration": {
|
|
35
|
-
"type": "object", "additionalProperties": false,
|
|
36
|
-
"required": ["candidate", "workspaceParent", "limits"],
|
|
37
|
-
"properties": {
|
|
38
|
-
"candidate": {"$ref": "#/$defs/pin"},
|
|
39
|
-
"workspaceParent": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
40
|
-
"limits": {"$ref": "#/$defs/limits"}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"reason": {"enum": ["diagnostic-completed", "diagnostic-configuration-invalid", "diagnostic-schema-invalid", "diagnostic-input-forbidden", "diagnostic-permit-unavailable", "diagnostic-platform-not-admitted", "diagnostic-canceled", "diagnostic-path-unsafe", "diagnostic-private-parent-unsafe", "diagnostic-artifact-changed", "diagnostic-artifact-limit", "diagnostic-artifact-unconfirmed", "diagnostic-deadline", "diagnostic-spawn-failed", "diagnostic-process-error", "diagnostic-output-limit", "diagnostic-stderr-limit", "diagnostic-invalid-utf8", "diagnostic-output-unexpected", "diagnostic-group-unconfirmed", "diagnostic-signal-unconfirmed", "diagnostic-termination-unconfirmed", "diagnostic-exit-failed", "diagnostic-workspace-cleanup-required", "diagnostic-local-error"]},
|
|
44
|
-
"reasons": {"type": "array", "maxItems": 24, "uniqueItems": true, "items": {"$ref": "#/$defs/reason"}},
|
|
45
|
-
"operation": {
|
|
46
|
-
"type": "object", "additionalProperties": false,
|
|
47
|
-
"required": ["recipe", "state", "spawnAttempts", "startObserved", "elapsedMs", "stdoutBytes", "stderrBytes", "terminationConfirmed", "reasons"],
|
|
48
|
-
"properties": {
|
|
49
|
-
"recipe": {"enum": ["version", "help"]},
|
|
50
|
-
"state": {"enum": ["not-started", "completed", "failed", "canceled", "timed-out", "indeterminate"]},
|
|
51
|
-
"spawnAttempts": {"type": "integer", "minimum": 0, "maximum": 1},
|
|
52
|
-
"startObserved": {"type": "boolean"}, "terminationConfirmed": {"type": "boolean"},
|
|
53
|
-
"elapsedMs": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
54
|
-
"stdoutBytes": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
55
|
-
"stderrBytes": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
56
|
-
"reasons": {"$ref": "#/$defs/reasons"}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"report": {
|
|
60
|
-
"type": "object", "additionalProperties": false,
|
|
61
|
-
"required": ["scope", "state", "nativeExecuted", "inferenceRequested", "actualModelCalls", "runtimeReady", "verifiedAdmission", "externalBillingVerified", "remoteCancellationVerified", "spawnAttempts", "startsObserved", "elapsedMs", "operations", "reasons"],
|
|
62
|
-
"properties": {
|
|
63
|
-
"scope": {"const": "native-diagnostics-only"},
|
|
64
|
-
"state": {"enum": ["blocked", "completed", "failed", "canceled", "timed-out", "indeterminate"]},
|
|
65
|
-
"nativeExecuted": {"type": "boolean"}, "inferenceRequested": {"const": false},
|
|
66
|
-
"actualModelCalls": {"type": "null"}, "runtimeReady": {"const": false},
|
|
67
|
-
"verifiedAdmission": {"const": false}, "externalBillingVerified": {"const": false},
|
|
68
|
-
"remoteCancellationVerified": {"const": false},
|
|
69
|
-
"spawnAttempts": {"type": "integer", "minimum": 0, "maximum": 2},
|
|
70
|
-
"startsObserved": {"type": "integer", "minimum": 0, "maximum": 2},
|
|
71
|
-
"elapsedMs": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
72
|
-
"operations": {"type": "array", "maxItems": 2, "items": {"$ref": "#/$defs/operation"}},
|
|
73
|
-
"reasons": {"$ref": "#/$defs/reasons"}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"observation": {
|
|
77
|
-
"type": "object", "additionalProperties": false,
|
|
78
|
-
"required": ["declaredVersion", "optionsPresent"],
|
|
79
|
-
"properties": {
|
|
80
|
-
"declaredVersion": {"type": ["string", "null"], "pattern": "^\\d{1,4}\\.\\d{1,4}\\.\\d{1,4}(?:-[a-z0-9][a-z0-9.-]{0,31})?$"},
|
|
81
|
-
"optionsPresent": {"type": "array", "maxItems": 17, "uniqueItems": true, "items": {"enum": ["--tools", "--disallowedTools", "--strict-mcp-config", "--mcp-config", "--safe-mode", "--restricted", "--setting-sources", "--settings", "--model", "--effort", "--max-turns", "--no-session-persistence", "--output-format", "--permission-prompts", "--disable-slash-commands", "--no-chrome", "--print"]}}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-native-evaluation.schema.json",
|
|
4
|
-
"title": "C3.1a Offline Native Evidence",
|
|
5
|
-
"description": "Declaraciones sintéticas; no certifica instalaciones ni autoriza ejecución.",
|
|
6
|
-
"$ref": "#/$defs/input",
|
|
7
|
-
"$defs": {
|
|
8
|
-
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,63}$" },
|
|
9
|
-
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
10
|
-
"timestamp": { "type": "string", "format": "date-time" },
|
|
11
|
-
"nullableId": { "anyOf": [{ "$ref": "#/$defs/id" }, { "type": "null" }] },
|
|
12
|
-
"client": {
|
|
13
|
-
"type": "object", "additionalProperties": false,
|
|
14
|
-
"required": ["provider", "client", "variant", "clientVersion"],
|
|
15
|
-
"properties": {
|
|
16
|
-
"provider": { "enum": ["openai", "anthropic"] },
|
|
17
|
-
"client": { "enum": ["codex-cli", "claude-code"] },
|
|
18
|
-
"variant": { "enum": ["codex-native", "claude-native"] },
|
|
19
|
-
"clientVersion": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[a-z0-9.-]+)?$", "maxLength": 64 }
|
|
20
|
-
},
|
|
21
|
-
"oneOf": [
|
|
22
|
-
{ "properties": { "provider": { "const": "openai" }, "client": { "const": "codex-cli" }, "variant": { "const": "codex-native" } } },
|
|
23
|
-
{ "properties": { "provider": { "const": "anthropic" }, "client": { "const": "claude-code" }, "variant": { "const": "claude-native" } } }
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"binding": {
|
|
27
|
-
"type": "object", "additionalProperties": false,
|
|
28
|
-
"required": ["client", "platform", "architecture", "installationId", "artifactSha256", "configSha256", "environmentSha256", "controlRevision"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"client": { "$ref": "#/$defs/client" },
|
|
31
|
-
"platform": { "enum": ["darwin", "linux", "win32"] },
|
|
32
|
-
"architecture": { "enum": ["arm64", "x64"] },
|
|
33
|
-
"installationId": { "$ref": "#/$defs/id" },
|
|
34
|
-
"artifactSha256": { "$ref": "#/$defs/sha256" },
|
|
35
|
-
"configSha256": { "$ref": "#/$defs/sha256" },
|
|
36
|
-
"environmentSha256": { "$ref": "#/$defs/sha256" },
|
|
37
|
-
"controlRevision": { "$ref": "#/$defs/id" }
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"assessment": {
|
|
41
|
-
"type": "object", "additionalProperties": false,
|
|
42
|
-
"required": ["status", "source", "checkedAt", "expiresAt", "evidenceRef", "scopeSha256"],
|
|
43
|
-
"properties": {
|
|
44
|
-
"status": { "enum": ["documented", "locally-tested", "pending", "rejected"] },
|
|
45
|
-
"source": { "enum": ["provider-documentation", "installation-test", "operator-attestation"] },
|
|
46
|
-
"checkedAt": { "$ref": "#/$defs/timestamp" },
|
|
47
|
-
"expiresAt": { "$ref": "#/$defs/timestamp" },
|
|
48
|
-
"evidenceRef": { "$ref": "#/$defs/id" },
|
|
49
|
-
"scopeSha256": { "$ref": "#/$defs/sha256" }
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"artifact": {
|
|
53
|
-
"type": "object", "additionalProperties": false,
|
|
54
|
-
"required": ["artifactId", "kind", "sha256"],
|
|
55
|
-
"properties": {
|
|
56
|
-
"artifactId": { "$ref": "#/$defs/id" },
|
|
57
|
-
"kind": { "enum": ["binary", "wrapper", "interpreter", "package"] },
|
|
58
|
-
"sha256": { "$ref": "#/$defs/sha256" }
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"installation": {
|
|
62
|
-
"type": "object", "additionalProperties": false, "required": ["assessment", "artifacts"],
|
|
63
|
-
"properties": {
|
|
64
|
-
"assessment": { "$ref": "#/$defs/assessment" },
|
|
65
|
-
"artifacts": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/artifact" } }
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"controlId": {
|
|
69
|
-
"enum": ["no-tools", "no-subagents", "no-mcp", "no-hooks", "no-personalizations", "no-updates", "stdin-text", "no-fallback", "no-resume", "no-permission-bypass", "internal-call-limit"]
|
|
70
|
-
},
|
|
71
|
-
"control": {
|
|
72
|
-
"type": "object", "additionalProperties": false,
|
|
73
|
-
"required": ["controlId", "assessment", "mechanismId", "positiveEvidenceRef", "negativeEvidenceRef"],
|
|
74
|
-
"properties": {
|
|
75
|
-
"controlId": { "$ref": "#/$defs/controlId" },
|
|
76
|
-
"assessment": { "$ref": "#/$defs/assessment" },
|
|
77
|
-
"mechanismId": { "$ref": "#/$defs/nullableId" },
|
|
78
|
-
"positiveEvidenceRef": { "$ref": "#/$defs/nullableId" },
|
|
79
|
-
"negativeEvidenceRef": { "$ref": "#/$defs/nullableId" }
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"effectId": { "enum": ["native-auth", "provider-inference", "client-state", "telemetry", "descendants"] },
|
|
83
|
-
"authorization": {
|
|
84
|
-
"type": "object", "additionalProperties": false,
|
|
85
|
-
"required": ["status", "evidenceRef", "scopeSha256"],
|
|
86
|
-
"properties": {
|
|
87
|
-
"status": { "enum": ["approved", "pending", "denied"] },
|
|
88
|
-
"evidenceRef": { "$ref": "#/$defs/nullableId" },
|
|
89
|
-
"scopeSha256": { "$ref": "#/$defs/sha256" }
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"effect": {
|
|
93
|
-
"type": "object", "additionalProperties": false,
|
|
94
|
-
"required": ["effectId", "disposition", "presence", "assessment", "authorization"],
|
|
95
|
-
"properties": {
|
|
96
|
-
"effectId": { "$ref": "#/$defs/effectId" },
|
|
97
|
-
"disposition": { "enum": ["allowed", "rejected", "unknown"] },
|
|
98
|
-
"presence": { "enum": ["present", "absent", "unknown"] },
|
|
99
|
-
"assessment": { "$ref": "#/$defs/assessment" },
|
|
100
|
-
"authorization": { "$ref": "#/$defs/authorization" }
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"access": {
|
|
104
|
-
"type": "object", "additionalProperties": false,
|
|
105
|
-
"required": ["access", "externalBilling", "assessment", "billingAssessment"],
|
|
106
|
-
"properties": {
|
|
107
|
-
"access": { "enum": ["subscription-session", "api-key", "unknown"] },
|
|
108
|
-
"externalBilling": { "enum": ["disabled", "enabled", "unknown"] },
|
|
109
|
-
"assessment": { "$ref": "#/$defs/assessment" },
|
|
110
|
-
"billingAssessment": { "$ref": "#/$defs/assessment" }
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"accounting": {
|
|
114
|
-
"type": "object", "additionalProperties": false,
|
|
115
|
-
"required": ["maxCallsPerStart", "limitEnforced", "assessment"],
|
|
116
|
-
"properties": {
|
|
117
|
-
"maxCallsPerStart": { "type": ["integer", "null"], "minimum": 1, "maximum": 1000000 },
|
|
118
|
-
"limitEnforced": { "type": "boolean" },
|
|
119
|
-
"assessment": { "$ref": "#/$defs/assessment" }
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"input": {
|
|
123
|
-
"type": "object", "additionalProperties": false,
|
|
124
|
-
"required": ["schemaVersion", "evaluationId", "now", "expectedBinding", "binding"],
|
|
125
|
-
"properties": {
|
|
126
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
127
|
-
"evaluationId": { "$ref": "#/$defs/id" },
|
|
128
|
-
"now": { "$ref": "#/$defs/timestamp" },
|
|
129
|
-
"expectedBinding": { "$ref": "#/$defs/binding" },
|
|
130
|
-
"binding": { "$ref": "#/$defs/binding" },
|
|
131
|
-
"installation": { "$ref": "#/$defs/installation" },
|
|
132
|
-
"controls": { "type": "array", "maxItems": 11, "items": { "$ref": "#/$defs/control" } },
|
|
133
|
-
"effects": { "type": "array", "maxItems": 5, "items": { "$ref": "#/$defs/effect" } },
|
|
134
|
-
"access": { "$ref": "#/$defs/access" },
|
|
135
|
-
"accounting": { "$ref": "#/$defs/accounting" },
|
|
136
|
-
"observations": {
|
|
137
|
-
"type": "array", "maxItems": 7, "uniqueItems": true,
|
|
138
|
-
"items": { "enum": ["artifact-race-unresolved", "effective-config-unknown", "managed-policy-unknown", "native-effects-unknown", "subscription-compatibility-unknown", "internal-calls-unknown", "descendant-containment-unknown"] }
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"policy": {
|
|
143
|
-
"type": "object", "additionalProperties": false,
|
|
144
|
-
"required": ["maxEvidenceAgeSeconds", "revokedEvidenceRefs"],
|
|
145
|
-
"properties": {
|
|
146
|
-
"maxEvidenceAgeSeconds": { "type": "integer", "minimum": 1, "maximum": 86400 },
|
|
147
|
-
"revokedEvidenceRefs": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"report": {
|
|
151
|
-
"type": "object", "additionalProperties": false,
|
|
152
|
-
"required": ["schemaVersion", "state", "evaluationId", "executed", "runtimeReady", "verifiedAdmission", "reasons", "missing", "audit"],
|
|
153
|
-
"properties": {
|
|
154
|
-
"schemaVersion": { "const": "1.0.0" },
|
|
155
|
-
"state": { "enum": ["invalid", "incomplete", "blocked", "ready-for-installation-review"] },
|
|
156
|
-
"evaluationId": { "$ref": "#/$defs/nullableId" },
|
|
157
|
-
"executed": { "const": false }, "runtimeReady": { "const": false }, "verifiedAdmission": { "const": false },
|
|
158
|
-
"reasons": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "type": "string", "pattern": "^[a-z0-9:.-]{1,160}$" } },
|
|
159
|
-
"missing": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "type": "string", "pattern": "^[a-z0-9.-]{1,160}$" } },
|
|
160
|
-
"audit": {
|
|
161
|
-
"type": "object", "additionalProperties": false, "required": ["inputSha256", "bindingSha256", "policySha256"],
|
|
162
|
-
"properties": {
|
|
163
|
-
"inputSha256": { "anyOf": [{ "$ref": "#/$defs/sha256" }, { "type": "null" }] },
|
|
164
|
-
"bindingSha256": { "anyOf": [{ "$ref": "#/$defs/sha256" }, { "type": "null" }] },
|
|
165
|
-
"policySha256": { "$ref": "#/$defs/sha256" }
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|