@mcoda/codali 0.1.135-codali.4 → 0.1.135-codali.41
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/CHANGELOG.md +204 -1
- package/ORCHESTRATION.md +356 -21
- package/README.md +234 -22
- package/config/AGENTS.md +17 -0
- package/config/browser-desktop/Dockerfile +7 -0
- package/config/browser-desktop/preview.py +15 -0
- package/config/browser-desktop/start.sh +12 -0
- package/config/deterministic/install-python.mjs +16 -0
- package/config/deterministic/node-worker.mjs +77 -0
- package/config/deterministic/python-worker.py +237 -0
- package/config/deterministic/requirements.txt +6 -0
- package/config/docdex-tools-0.2.99.json +3977 -0
- package/config/documents/install-python.mjs +16 -0
- package/config/documents/requirements.txt +10 -0
- package/config/documents/worker.py +267 -0
- package/config/orchestration.schema.json +131 -0
- package/config/skills/architecture-design/SKILL.md +14 -0
- package/config/skills/browser-session/SKILL.md +16 -0
- package/config/skills/browser-use/SKILL.md +14 -0
- package/config/skills/code-implementation/SKILL.md +18 -0
- package/config/skills/code-review/SKILL.md +14 -0
- package/config/skills/docdex-research/SKILL.md +18 -0
- package/config/skills/docdex-research/references/catalog.md +111 -0
- package/config/skills/docdex-research/references/memory.md +22 -0
- package/config/skills/docdex-research/references/operations.md +19 -0
- package/config/skills/docdex-research/references/retrieval.md +13 -0
- package/config/skills/planning/SKILL.md +14 -0
- package/config/skills/system-diagnostics/SKILL.md +14 -0
- package/config/skills/system-services/SKILL.md +17 -0
- package/config/skills/system-services/references/docker.md +11 -0
- package/config/skills/system-services/references/linux.md +9 -0
- package/config/skills/system-services/references/macos.md +9 -0
- package/config/skills/systematic-debugging/SKILL.md +14 -0
- package/config/skills/testing-and-verification/SKILL.md +16 -0
- package/config/skills/tool-selection/SKILL.md +16 -0
- package/config/skills/ui-ux-design/SKILL.md +16 -0
- package/config/skills/ui-ux-design/references/validation.md +13 -0
- package/config/skills/webapp-testing/SKILL.md +12 -0
- package/config/terminal-long-scenarios.v1.json +3 -2
- package/dist/cli/TerminalArtifacts.d.ts +5 -0
- package/dist/cli/TerminalArtifacts.d.ts.map +1 -0
- package/dist/cli/TerminalArtifacts.js +26 -0
- package/dist/cli/TerminalCommand.d.ts +2 -1
- package/dist/cli/TerminalCommand.d.ts.map +1 -1
- package/dist/cli/TerminalCommand.js +436 -100
- package/dist/cli/TerminalInput.d.ts +13 -0
- package/dist/cli/TerminalInput.d.ts.map +1 -1
- package/dist/cli/TerminalInput.js +55 -7
- package/dist/cli/TerminalModels.d.ts +6 -0
- package/dist/cli/TerminalModels.d.ts.map +1 -0
- package/dist/cli/TerminalModels.js +45 -0
- package/dist/cli/TerminalPlan.d.ts +40 -0
- package/dist/cli/TerminalPlan.d.ts.map +1 -0
- package/dist/cli/TerminalPlan.js +37 -0
- package/dist/cli/ToolsCommand.d.ts.map +1 -1
- package/dist/cli/ToolsCommand.js +8 -1
- package/dist/cli/tui/TerminalCells.d.ts +6 -0
- package/dist/cli/tui/TerminalCells.d.ts.map +1 -0
- package/dist/cli/tui/TerminalCells.js +47 -0
- package/dist/cli/tui/TerminalEditor.d.ts +22 -0
- package/dist/cli/tui/TerminalEditor.d.ts.map +1 -0
- package/dist/cli/tui/TerminalEditor.js +88 -0
- package/dist/cli/tui/TerminalLogo.d.ts +6 -0
- package/dist/cli/tui/TerminalLogo.d.ts.map +1 -0
- package/dist/cli/tui/TerminalLogo.js +26 -0
- package/dist/cli/tui/TerminalMarkdown.d.ts +5 -0
- package/dist/cli/tui/TerminalMarkdown.d.ts.map +1 -0
- package/dist/cli/tui/TerminalMarkdown.js +118 -0
- package/dist/cli/tui/TerminalPresentation.d.ts +6 -0
- package/dist/cli/tui/TerminalPresentation.d.ts.map +1 -0
- package/dist/cli/tui/TerminalPresentation.js +152 -0
- package/dist/cli/tui/TerminalScreen.d.ts +50 -0
- package/dist/cli/tui/TerminalScreen.d.ts.map +1 -0
- package/dist/cli/tui/TerminalScreen.js +137 -0
- package/dist/cli/tui/TerminalSelection.d.ts +15 -0
- package/dist/cli/tui/TerminalSelection.d.ts.map +1 -0
- package/dist/cli/tui/TerminalSelection.js +38 -0
- package/dist/cli/tui/TerminalTui.d.ts +82 -0
- package/dist/cli/tui/TerminalTui.d.ts.map +1 -0
- package/dist/cli/tui/TerminalTui.js +564 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -3
- package/dist/config/OrchestrationConfig.d.ts +40 -0
- package/dist/config/OrchestrationConfig.d.ts.map +1 -1
- package/dist/config/OrchestrationConfig.js +79 -5
- package/dist/connectors/media/MediaJobStore.d.ts +2 -1
- package/dist/connectors/media/MediaJobStore.d.ts.map +1 -1
- package/dist/connectors/media/MediaJobStore.js +11 -3
- package/dist/docdex/DocdexCatalog.d.ts +12 -0
- package/dist/docdex/DocdexCatalog.d.ts.map +1 -0
- package/dist/docdex/DocdexCatalog.js +30 -0
- package/dist/docdex/DocdexClient.d.ts +15 -2
- package/dist/docdex/DocdexClient.d.ts.map +1 -1
- package/dist/docdex/DocdexClient.js +119 -12
- package/dist/docdex/ManagedDocdex.d.ts +4 -0
- package/dist/docdex/ManagedDocdex.d.ts.map +1 -1
- package/dist/docdex/ManagedDocdex.js +42 -5
- package/dist/eval/EvaluationProcess.d.ts.map +1 -1
- package/dist/eval/EvaluationProcess.js +4 -0
- package/dist/eval/TerminalWorkflowCorpus.d.ts +1 -1
- package/dist/eval/TerminalWorkflowCorpus.d.ts.map +1 -1
- package/dist/eval/TerminalWorkflowCorpus.js +9 -6
- package/dist/eval/TrustBenchmark.d.ts +94 -0
- package/dist/eval/TrustBenchmark.d.ts.map +1 -0
- package/dist/eval/TrustBenchmark.js +199 -0
- package/dist/eval/fixtures/ContractReviewProvider.d.ts +4 -0
- package/dist/eval/fixtures/ContractReviewProvider.d.ts.map +1 -0
- package/dist/eval/fixtures/ContractReviewProvider.js +10 -0
- package/dist/eval/fixtures/MixedMediaRecoveryJourney.d.ts +6 -0
- package/dist/eval/fixtures/MixedMediaRecoveryJourney.d.ts.map +1 -0
- package/dist/eval/fixtures/MixedMediaRecoveryJourney.js +145 -0
- package/dist/eval/fixtures/TerminalRecoveryJourney.d.ts.map +1 -1
- package/dist/eval/fixtures/TerminalRecoveryJourney.js +14 -1
- package/dist/gateway/GroundingMode.d.ts.map +1 -1
- package/dist/gateway/GroundingMode.js +23 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/permissions/PermissionGate.d.ts +4 -1
- package/dist/permissions/PermissionGate.d.ts.map +1 -1
- package/dist/permissions/PermissionGate.js +50 -5
- package/dist/permissions/WorkspacePermissions.d.ts +11 -0
- package/dist/permissions/WorkspacePermissions.d.ts.map +1 -0
- package/dist/permissions/WorkspacePermissions.js +42 -0
- package/dist/providers/ConfiguredModelScope.d.ts +1 -0
- package/dist/providers/ConfiguredModelScope.d.ts.map +1 -1
- package/dist/providers/ConfiguredModelScope.js +19 -2
- package/dist/providers/ConfiguredProvider.d.ts +10 -1
- package/dist/providers/ConfiguredProvider.d.ts.map +1 -1
- package/dist/providers/ConfiguredProvider.js +104 -37
- package/dist/providers/ModelCapacityWait.d.ts +21 -0
- package/dist/providers/ModelCapacityWait.d.ts.map +1 -0
- package/dist/providers/ModelCapacityWait.js +40 -0
- package/dist/providers/ModelServiceError.d.ts +16 -2
- package/dist/providers/ModelServiceError.d.ts.map +1 -1
- package/dist/providers/ModelServiceError.js +37 -5
- package/dist/providers/OpenAiCompatibleProvider.d.ts +8 -0
- package/dist/providers/OpenAiCompatibleProvider.d.ts.map +1 -1
- package/dist/providers/OpenAiCompatibleProvider.js +38 -3
- package/dist/providers/ProviderTypes.d.ts +9 -0
- package/dist/providers/ProviderTypes.d.ts.map +1 -1
- package/dist/providers/RequestSize.d.ts +5 -0
- package/dist/providers/RequestSize.d.ts.map +1 -0
- package/dist/providers/RequestSize.js +10 -0
- package/dist/providers/RequestUsage.d.ts +11 -0
- package/dist/providers/RequestUsage.d.ts.map +1 -0
- package/dist/providers/RequestUsage.js +33 -0
- package/dist/runtime/AnswerVerification.d.ts +31 -0
- package/dist/runtime/AnswerVerification.d.ts.map +1 -0
- package/dist/runtime/AnswerVerification.js +65 -0
- package/dist/runtime/CodaliRuntime.d.ts +1 -0
- package/dist/runtime/CodaliRuntime.d.ts.map +1 -1
- package/dist/runtime/CodaliRuntime.js +1 -0
- package/dist/runtime/CompletionReport.d.ts +8 -0
- package/dist/runtime/CompletionReport.d.ts.map +1 -1
- package/dist/runtime/CompletionReport.js +25 -0
- package/dist/runtime/ComputedAnswer.d.ts +13 -0
- package/dist/runtime/ComputedAnswer.d.ts.map +1 -0
- package/dist/runtime/ComputedAnswer.js +75 -0
- package/dist/runtime/ContextCompression.d.ts +41 -0
- package/dist/runtime/ContextCompression.d.ts.map +1 -0
- package/dist/runtime/ContextCompression.js +292 -0
- package/dist/runtime/FigureCheck.d.ts +20 -0
- package/dist/runtime/FigureCheck.d.ts.map +1 -0
- package/dist/runtime/FigureCheck.js +44 -0
- package/dist/runtime/GatewayRequest.d.ts +5 -0
- package/dist/runtime/GatewayRequest.d.ts.map +1 -0
- package/dist/runtime/GatewayRequest.js +19 -0
- package/dist/runtime/InspectionBudget.d.ts +11 -0
- package/dist/runtime/InspectionBudget.d.ts.map +1 -0
- package/dist/runtime/InspectionBudget.js +23 -0
- package/dist/runtime/InspectionConvergence.d.ts +24 -0
- package/dist/runtime/InspectionConvergence.d.ts.map +1 -0
- package/dist/runtime/InspectionConvergence.js +67 -0
- package/dist/runtime/InteractionContract.d.ts +51 -0
- package/dist/runtime/InteractionContract.d.ts.map +1 -0
- package/dist/runtime/InteractionContract.js +72 -0
- package/dist/runtime/InteractionRouter.d.ts +73 -0
- package/dist/runtime/InteractionRouter.d.ts.map +1 -0
- package/dist/runtime/InteractionRouter.js +139 -0
- package/dist/runtime/OutageWait.d.ts +14 -0
- package/dist/runtime/OutageWait.d.ts.map +1 -0
- package/dist/runtime/OutageWait.js +33 -0
- package/dist/runtime/PlanCoverage.d.ts +9 -0
- package/dist/runtime/PlanCoverage.d.ts.map +1 -0
- package/dist/runtime/PlanCoverage.js +12 -0
- package/dist/runtime/PreparedDocdex.d.ts +4 -0
- package/dist/runtime/PreparedDocdex.d.ts.map +1 -0
- package/dist/runtime/PreparedDocdex.js +55 -0
- package/dist/runtime/PreparedMemory.d.ts +3 -0
- package/dist/runtime/PreparedMemory.d.ts.map +1 -0
- package/dist/runtime/PreparedMemory.js +30 -0
- package/dist/runtime/ProgressTracker.d.ts +1 -0
- package/dist/runtime/ProgressTracker.d.ts.map +1 -1
- package/dist/runtime/ProgressTracker.js +25 -5
- package/dist/runtime/ResearchEvidence.d.ts +25 -0
- package/dist/runtime/ResearchEvidence.d.ts.map +1 -0
- package/dist/runtime/ResearchEvidence.js +101 -0
- package/dist/runtime/ReviewContract.d.ts +35 -0
- package/dist/runtime/ReviewContract.d.ts.map +1 -0
- package/dist/runtime/ReviewContract.js +132 -0
- package/dist/runtime/ReviewCoordinator.d.ts +43 -0
- package/dist/runtime/ReviewCoordinator.d.ts.map +1 -0
- package/dist/runtime/ReviewCoordinator.js +134 -0
- package/dist/runtime/ReviewSource.d.ts +3 -0
- package/dist/runtime/ReviewSource.d.ts.map +1 -1
- package/dist/runtime/ReviewSource.js +17 -1
- package/dist/runtime/Runner.d.ts.map +1 -1
- package/dist/runtime/Runner.js +6 -1
- package/dist/runtime/SessionController.d.ts +146 -6
- package/dist/runtime/SessionController.d.ts.map +1 -1
- package/dist/runtime/SessionController.js +2406 -228
- package/dist/runtime/SpecialistTools.d.ts +8 -0
- package/dist/runtime/SpecialistTools.d.ts.map +1 -0
- package/dist/runtime/SpecialistTools.js +85 -0
- package/dist/runtime/StructuralEvidence.d.ts +4 -2
- package/dist/runtime/StructuralEvidence.d.ts.map +1 -1
- package/dist/runtime/StructuralEvidence.js +22 -5
- package/dist/runtime/TaskReview.d.ts +25 -0
- package/dist/runtime/TaskReview.d.ts.map +1 -0
- package/dist/runtime/TaskReview.js +109 -0
- package/dist/runtime/TaskReviewContext.d.ts +37 -0
- package/dist/runtime/TaskReviewContext.d.ts.map +1 -1
- package/dist/runtime/TaskReviewContext.js +18 -2
- package/dist/runtime/UsageReconciliation.d.ts +28 -0
- package/dist/runtime/UsageReconciliation.d.ts.map +1 -0
- package/dist/runtime/UsageReconciliation.js +68 -0
- package/dist/runtime/VerificationReceiptSelection.d.ts +15 -0
- package/dist/runtime/VerificationReceiptSelection.d.ts.map +1 -0
- package/dist/runtime/VerificationReceiptSelection.js +30 -0
- package/dist/runtime/WorkspaceLedger.d.ts +2 -0
- package/dist/runtime/WorkspaceLedger.d.ts.map +1 -1
- package/dist/runtime/WorkspaceLedger.js +44 -20
- package/dist/runtime/WorkspaceLock.d.ts.map +1 -1
- package/dist/runtime/WorkspaceLock.js +9 -1
- package/dist/runtime/WorkspaceSnapshot.d.ts.map +1 -1
- package/dist/runtime/WorkspaceSnapshot.js +3 -2
- package/dist/runtime/WriteSyntaxCheck.d.ts +10 -0
- package/dist/runtime/WriteSyntaxCheck.d.ts.map +1 -0
- package/dist/runtime/WriteSyntaxCheck.js +34 -0
- package/dist/session/InstructionLoader.d.ts +5 -1
- package/dist/session/InstructionLoader.d.ts.map +1 -1
- package/dist/session/InstructionLoader.js +65 -19
- package/dist/session/SessionStoragePath.d.ts.map +1 -1
- package/dist/session/SessionStoragePath.js +34 -17
- package/dist/session/SessionStore.d.ts +6 -1
- package/dist/session/SessionStore.d.ts.map +1 -1
- package/dist/session/SessionStore.js +108 -43
- package/dist/session/SkillCatalog.d.ts +33 -0
- package/dist/session/SkillCatalog.d.ts.map +1 -0
- package/dist/session/SkillCatalog.js +197 -0
- package/dist/session/WorkState.d.ts +16 -2
- package/dist/session/WorkState.d.ts.map +1 -1
- package/dist/session/WorkState.js +55 -5
- package/dist/session/WorkTypes.d.ts +8 -0
- package/dist/session/WorkTypes.d.ts.map +1 -1
- package/dist/session/WorkspaceScope.d.ts +3 -0
- package/dist/session/WorkspaceScope.d.ts.map +1 -0
- package/dist/session/WorkspaceScope.js +19 -0
- package/dist/tools/SemanticToolRetrieval.d.ts +19 -0
- package/dist/tools/SemanticToolRetrieval.d.ts.map +1 -0
- package/dist/tools/SemanticToolRetrieval.js +52 -0
- package/dist/tools/ToolRetrieval.d.ts +7 -0
- package/dist/tools/ToolRetrieval.d.ts.map +1 -0
- package/dist/tools/ToolRetrieval.js +25 -0
- package/dist/tools/ToolTypes.d.ts +5 -0
- package/dist/tools/ToolTypes.d.ts.map +1 -1
- package/dist/tools/browser/BrowserSessionTool.d.ts +16 -0
- package/dist/tools/browser/BrowserSessionTool.d.ts.map +1 -0
- package/dist/tools/browser/BrowserSessionTool.js +326 -0
- package/dist/tools/browser/BrowserTool.d.ts +17 -0
- package/dist/tools/browser/BrowserTool.d.ts.map +1 -0
- package/dist/tools/browser/BrowserTool.js +291 -0
- package/dist/tools/browser/BrowserWorker.d.ts +2 -0
- package/dist/tools/browser/BrowserWorker.d.ts.map +1 -0
- package/dist/tools/browser/BrowserWorker.js +121 -0
- package/dist/tools/calculation/CalculatorTool.d.ts +5 -0
- package/dist/tools/calculation/CalculatorTool.d.ts.map +1 -0
- package/dist/tools/calculation/CalculatorTool.js +191 -0
- package/dist/tools/deterministic/DeterministicRuntime.d.ts +39 -0
- package/dist/tools/deterministic/DeterministicRuntime.d.ts.map +1 -0
- package/dist/tools/deterministic/DeterministicRuntime.js +98 -0
- package/dist/tools/deterministic/DeterministicTools.d.ts +8 -0
- package/dist/tools/deterministic/DeterministicTools.d.ts.map +1 -0
- package/dist/tools/deterministic/DeterministicTools.js +100 -0
- package/dist/tools/deterministic/node-worker.cjs +38 -0
- package/dist/tools/deterministic/python-worker.py +237 -0
- package/dist/tools/docdex/DocdexCatalogTools.d.ts +4 -0
- package/dist/tools/docdex/DocdexCatalogTools.d.ts.map +1 -0
- package/dist/tools/docdex/DocdexCatalogTools.js +59 -0
- package/dist/tools/docdex/DocdexTools.d.ts +2 -0
- package/dist/tools/docdex/DocdexTools.d.ts.map +1 -1
- package/dist/tools/docdex/DocdexTools.js +81 -106
- package/dist/tools/documents/DocumentRuntime.d.ts +12 -0
- package/dist/tools/documents/DocumentRuntime.d.ts.map +1 -0
- package/dist/tools/documents/DocumentRuntime.js +59 -0
- package/dist/tools/documents/DocumentTools.d.ts +19 -0
- package/dist/tools/documents/DocumentTools.d.ts.map +1 -0
- package/dist/tools/documents/DocumentTools.js +150 -0
- package/dist/tools/documents/worker.py +267 -0
- package/dist/tools/entities/AdesTool.d.ts +7 -0
- package/dist/tools/entities/AdesTool.d.ts.map +1 -0
- package/dist/tools/entities/AdesTool.js +59 -0
- package/dist/tools/filesystem/FileTools.d.ts.map +1 -1
- package/dist/tools/filesystem/FileTools.js +62 -11
- package/dist/tools/research/TnlTool.d.ts +22 -0
- package/dist/tools/research/TnlTool.d.ts.map +1 -0
- package/dist/tools/research/TnlTool.js +246 -0
- package/dist/tools/shell/AsyncProcess.d.ts +4 -0
- package/dist/tools/shell/AsyncProcess.d.ts.map +1 -1
- package/dist/tools/shell/AsyncProcess.js +9 -3
- package/dist/tools/shell/HostToolchain.d.ts +7 -0
- package/dist/tools/shell/HostToolchain.d.ts.map +1 -1
- package/dist/tools/shell/HostToolchain.js +65 -4
- package/dist/tools/shell/IsolatedExecutor.d.ts +5 -2
- package/dist/tools/shell/IsolatedExecutor.d.ts.map +1 -1
- package/dist/tools/shell/IsolatedExecutor.js +148 -29
- package/dist/tools/shell/ShellTool.d.ts +2 -0
- package/dist/tools/shell/ShellTool.d.ts.map +1 -1
- package/dist/tools/shell/ShellTool.js +19 -4
- package/dist/tools/system/CalendarTool.d.ts +15 -0
- package/dist/tools/system/CalendarTool.d.ts.map +1 -0
- package/dist/tools/system/CalendarTool.js +44 -0
- package/dist/tools/system/TextTool.d.ts +4 -0
- package/dist/tools/system/TextTool.d.ts.map +1 -0
- package/dist/tools/system/TextTool.js +39 -0
- package/dist/tools/system/TimeTool.d.ts +4 -0
- package/dist/tools/system/TimeTool.d.ts.map +1 -0
- package/dist/tools/system/TimeTool.js +22 -0
- package/dist/tools/verification/JavaScriptVerificationTool.d.ts +47 -0
- package/dist/tools/verification/JavaScriptVerificationTool.d.ts.map +1 -0
- package/dist/tools/verification/JavaScriptVerificationTool.js +71 -0
- package/dist/tools/verification/JavaScriptVerificationWorker.d.ts +2 -0
- package/dist/tools/verification/JavaScriptVerificationWorker.d.ts.map +1 -0
- package/dist/tools/verification/JavaScriptVerificationWorker.js +91 -0
- package/dist/tools/verification/VitestTool.d.ts +6 -0
- package/dist/tools/verification/VitestTool.d.ts.map +1 -0
- package/dist/tools/verification/VitestTool.js +184 -0
- package/package.json +18 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,209 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.1.135-codali.41
|
|
4
|
+
|
|
5
|
+
- Output: a request that explicitly asks for only JSON ("return only JSON",
|
|
6
|
+
"respond with JSON only") now always gets bare JSON; a ```json fence around
|
|
7
|
+
the answer is removed even when the extracted output contract said text.
|
|
8
|
+
- Research: the final evidence audit is shown the source passages behind each
|
|
9
|
+
quote and specific figure in the draft first (budget 48,000 characters, up
|
|
10
|
+
from 24,000), so verbatim, sourced claims are no longer relabelled as
|
|
11
|
+
unverified because their passage was left out.
|
|
12
|
+
- Long answers: high and max effort allow 65,536 output tokens (was 8,192), so
|
|
13
|
+
the consistency audit of a long design is no longer cut off and discarded.
|
|
14
|
+
- Long answers: derived figures in a long answer are listed as arithmetic
|
|
15
|
+
expressions and evaluated by the calculator; the consistency audit gets the
|
|
16
|
+
mismatches to correct, instead of rereading its own arithmetic.
|
|
17
|
+
- App builds: browser journeys must check the server state after each action
|
|
18
|
+
(including logout), treat unexpected 4xx/5xx responses and console errors as
|
|
19
|
+
failures, check that table rows match their headers and that every role
|
|
20
|
+
action has a control; delivery notes may claim only checks that passed.
|
|
21
|
+
- Code answers: when the final code differs from the code of the session's
|
|
22
|
+
last verify_tests run, the runtime runs the final code against that run's
|
|
23
|
+
tests itself; if they fail, the model gets one repair round with the
|
|
24
|
+
failures, or, without time for one, the answer states that the tests failed.
|
|
25
|
+
- Deadlines: the final answer call is bounded to half of the remaining window
|
|
26
|
+
when a retry fits, so one stalled request no longer loses a finished
|
|
27
|
+
investigation at the deadline.
|
|
28
|
+
|
|
29
|
+
## 0.1.135-codali.40
|
|
30
|
+
|
|
31
|
+
- Routing: a session that can neither write to the workspace nor run commands
|
|
32
|
+
(no writing permission profile and no approver) no longer switches into
|
|
33
|
+
execute mode; the model is told to deliver the answer directly. Four
|
|
34
|
+
answer-only code requests had gone there and returned no code.
|
|
35
|
+
- Deadlines: when another model call cannot finish before the deadline, a
|
|
36
|
+
finished code answer is delivered instead of being sent back for a
|
|
37
|
+
code-drift repair or a test run; one such repair at 27 of 30 minutes had
|
|
38
|
+
cost a complete answer.
|
|
39
|
+
- Research: web search and page tools now tell the model, within the 140
|
|
40
|
+
characters it sees, to search first with one short query per sub-question
|
|
41
|
+
and to open only URLs from results or page links; the browser's own "search
|
|
42
|
+
first" advice was being cut off. A search-engine results page opened in the
|
|
43
|
+
browser runs as a web search instead (cycle 4: 108 searches against the raw
|
|
44
|
+
arm's 353, and 72 search-engine pages opened, often captchas or 403s).
|
|
45
|
+
- mcoda no longer asks for telemetry consent or registers with mswarm at
|
|
46
|
+
install or first use, and collects no usage data (see the cli changelog).
|
|
47
|
+
|
|
48
|
+
## 0.1.135-codali.39
|
|
49
|
+
|
|
50
|
+
- Calculations: an answer whose every number came from a passing
|
|
51
|
+
verify_javascript run is no longer rewritten by the tool-less equation
|
|
52
|
+
review; one replaced a verified simulation with a wrong hand trace.
|
|
53
|
+
- Time: an answer keeps back time sized from its slowest model call (2.5x plus
|
|
54
|
+
a minute, at least a tenth and at most half of the timeout) instead of a
|
|
55
|
+
quarter of the timeout, which left 45-minute research turns idle for their
|
|
56
|
+
last eight minutes.
|
|
57
|
+
|
|
58
|
+
## 0.1.135-codali.38
|
|
59
|
+
|
|
60
|
+
- Model outages: a turn waits out an outage for up to 30 minutes (the retry
|
|
61
|
+
ladder, then a retry a minute), bounded by half the time it has left; the
|
|
62
|
+
four-minute ladder alone lost a three-hour build to a nine-minute relay
|
|
63
|
+
outage. Requests allowed more than 300 s no longer fail at 300 s without
|
|
64
|
+
response headers (the platform fetch's default).
|
|
65
|
+
- Deadlines: continuation and answer audits start only when they can finish
|
|
66
|
+
before the deadline and are stopped in time; if one fails or is stopped the
|
|
67
|
+
finished draft is delivered. A research audit that got no reply had cost a
|
|
68
|
+
complete answer.
|
|
69
|
+
- Research: web search is declared whenever page tools are, so a turn that
|
|
70
|
+
opens pages can find them instead of guessing URLs and opening search-engine
|
|
71
|
+
pages. The prompt states today's date from the host clock; one answer had
|
|
72
|
+
dated itself months earlier and called the real dates suspect.
|
|
73
|
+
- Calculator: comb/C/nCr, perm/P/nPr and factorial.
|
|
74
|
+
|
|
75
|
+
## 0.1.135-codali.37 and earlier
|
|
76
|
+
|
|
77
|
+
- Sandbox: a relocated Python (a CI tool cache or a copied installation, whose
|
|
78
|
+
binary records the library directory it was built for) finds its interpreter
|
|
79
|
+
library; the loader path points only at libraries already mounted from the
|
|
80
|
+
same installation. An interpreter alias is recreated as a link, not mounted
|
|
81
|
+
as a copy. A tool runtime's virtual environment brings its own interpreter
|
|
82
|
+
into the sandbox even when that interpreter is not on the current PATH.
|
|
83
|
+
- Long builds: history compaction saves each old step once and pages its
|
|
84
|
+
index, instead of saving the whole earlier history again on every model
|
|
85
|
+
call (452 MB of one 537 MB session log); appending a transcript event no
|
|
86
|
+
longer re-reads the transcript, and transcripts are read record by record.
|
|
87
|
+
A seven-hour build ended with "Invalid string length".
|
|
88
|
+
- The system prompt budget reserves a share of the window for output, not the
|
|
89
|
+
whole output ceiling, and the active work contract is kept whole with the
|
|
90
|
+
latest check output shortened first. A two-hour build ended with "exceed the
|
|
91
|
+
context reservation" after one skill was applied.
|
|
92
|
+
- A host deadline (`deadlineAt`) reaches execution turns: work winds down
|
|
93
|
+
shortly before it and ends with a status report instead of an empty answer.
|
|
94
|
+
- A temporary model-service outage is waited out after dispatch as well as
|
|
95
|
+
before it (about four minutes), not retried for three seconds.
|
|
96
|
+
- Answers: a rewrite that is cut off, empty, a tool call, an echo of the audit
|
|
97
|
+
input or far longer than its draft never replaces the draft, in every audit.
|
|
98
|
+
An answer that stops at a server output cap is continued. The equation
|
|
99
|
+
review no longer rewrites long designs; the consistency audit keeps concrete
|
|
100
|
+
values, commits to labelled defaults instead of open items and rechecks
|
|
101
|
+
derived figures. Answers do not mention drafts, audits or tool names.
|
|
102
|
+
- Research: page tools are declared whenever web search is, a printed call to a
|
|
103
|
+
real but undeclared tool declares it, and printed calls no longer end an
|
|
104
|
+
investigation that still has time. Links that appear in nothing retrieved are
|
|
105
|
+
labelled; the audit cites only retrieved links and quotes only copied text.
|
|
106
|
+
- Docdex: a repository the daemon unmounted while idle is mounted again and
|
|
107
|
+
the request resent, instead of failing every structural lookup.
|
|
108
|
+
- New-app builds: the request's input files are included whole when the window
|
|
109
|
+
has room; the "no plan needed" shortcut is not shown when a plan is required;
|
|
110
|
+
an over-long work brief is shortened, not refused; a declared output
|
|
111
|
+
directory is created for shell checks; awk and other /etc/alternatives
|
|
112
|
+
commands work in the sandbox; the failure diagnosis has room to finish.
|
|
113
|
+
- Specialists: one file per call with a clear message on failure. The mSwarm
|
|
114
|
+
node no longer drops a local model call after 300 seconds without response
|
|
115
|
+
headers.
|
|
116
|
+
- Token limits: a model alias resolves to a route that meets the configured
|
|
117
|
+
context and output limits before one that advertises less (a capped pool cut
|
|
118
|
+
answers at 8,192 tokens while 40,960 were requested); a request asks only
|
|
119
|
+
for what its route advertises, and a reply that used its whole allowance is
|
|
120
|
+
treated as possibly cut and continued. Fixed 2,048-token ceilings on direct
|
|
121
|
+
answers, answer reviews and format repairs are gone, review evidence is
|
|
122
|
+
sized with the shared output reserve, and the failure diagnosis and task
|
|
123
|
+
review have room to finish.
|
|
124
|
+
|
|
125
|
+
- Windows: a file the session just wrote or read is recognised on the next
|
|
126
|
+
edit; the record was keyed with backslashes and never matched, so every
|
|
127
|
+
revision demanded a fresh read.
|
|
128
|
+
- Wait out a temporary model-service outage before the first dispatch (up to
|
|
129
|
+
about four minutes) instead of ending the turn after one second.
|
|
130
|
+
- Shell scratch ($TMPDIR) persists between calls in a session; grep is allowed.
|
|
131
|
+
- New-app builds: a specialist can write a new file for the lead (targetPath,
|
|
132
|
+
then write_file with draftId, or with corrected content); this is guidance,
|
|
133
|
+
a large file typed directly is accepted. Files created in the running task
|
|
134
|
+
skip structural analysis on revision; rm is allowed when the shell is
|
|
135
|
+
confined to the claimed write paths.
|
|
136
|
+
- Reserve output for history sizing the same way as provider compression, so a
|
|
137
|
+
large output ceiling no longer leaves a few thousand tokens of history and
|
|
138
|
+
each file read evicts the last. Re-reading an evicted result is no longer a
|
|
139
|
+
stall; a 5x backstop still ends a read loop.
|
|
140
|
+
- Consistency audit for long reasoned answers. Research audit prefers vendor
|
|
141
|
+
release notes over stale aggregators, checks unexecuted code and fills every
|
|
142
|
+
requested section. Turkish grounding rules.
|
|
143
|
+
- Pin playwright/playwright-core 1.64.1 workspace-wide; a fresh resolution
|
|
144
|
+
pulled 1.65.0 through browser-use and broke the browser worker types.
|
|
145
|
+
- Windows: non-Git workspace inventories use POSIX-relative keys, so nested
|
|
146
|
+
writes inside a claimed directory are no longer reported as out-of-scope
|
|
147
|
+
changes; session state validation waits out files another process is deleting.
|
|
148
|
+
- Tests that need the isolated executor skip where it is unavailable, and the
|
|
149
|
+
screenshot escape test no longer depends on /etc/hosts.
|
|
150
|
+
|
|
151
|
+
- Size retained execution history by the configured lead context rather than a
|
|
152
|
+
fixed message count; resolve localhost in offline Linux tool sandboxes.
|
|
153
|
+
- Preserve original task inputs and recoverable execution history across trimming,
|
|
154
|
+
compaction and resume; provide a truthful stopped-run handoff in the TUI.
|
|
155
|
+
- Select compatible model pools across shared aliases, refresh temporary health
|
|
156
|
+
failures once, and send inference to the validated pool. Record its resolved ID.
|
|
157
|
+
- Detect repeated unchanged reads despite unrelated file discovery. Use the
|
|
158
|
+
configured repair binding for bounded, metered diagnosis of repeated failures.
|
|
159
|
+
- Return actionable task-scope recovery instructions. Keep unprepared source
|
|
160
|
+
read-only during broad shell setup while allowing scoped data/build outputs.
|
|
161
|
+
- Add isolated syntax-only feedback after JavaScript writes, private persistent
|
|
162
|
+
package caches, exact calendar/text helpers and lossless JSON presentation repair.
|
|
163
|
+
- Preserve large file preimages and permit safe in-scope dependency hard links;
|
|
164
|
+
protect original requirements from direct and shell writes.
|
|
165
|
+
- Explain per-call shell scratch lifetime and available commands on rejection.
|
|
166
|
+
Include inspected implementation sources in recovery diagnoses.
|
|
167
|
+
- Bound shared Docdex diagnostic subprocesses so failed health discovery can return.
|
|
168
|
+
- Retain failed app-build diagnostics separately from later assisted continuations.
|
|
169
|
+
These changes do not establish superiority over raw Qwen or complete-app readiness.
|
|
170
|
+
|
|
171
|
+
- Unify dispatch/tool/output contracts and validate final replies across modes.
|
|
172
|
+
Add one budgeted, tool-free presentation repair, preserve execution evidence,
|
|
173
|
+
and share the versioned dispatcher prompt with live evaluations. Legacy router
|
|
174
|
+
prompts now supply semantic policy without replacing the response schema.
|
|
175
|
+
- Guide word-bound repairs toward an interior target while retaining exact user
|
|
176
|
+
limits and the single-repair budget; keep failed drafts when validation fails.
|
|
177
|
+
- Add a structured, history-aware tool-scope decision and withhold optional
|
|
178
|
+
calculation when the dispatcher does not explicitly allow tools. Preserve
|
|
179
|
+
host restrictions and record scope conflicts. Fix local skill discovery when
|
|
180
|
+
a workspace path resolves through platform aliases or symlinks.
|
|
181
|
+
- Record the separate 32-question regression and its prompt-template erratum;
|
|
182
|
+
it does not demonstrate better intelligence than raw Qwen.
|
|
183
|
+
|
|
184
|
+
- Add native Docdex repository/web investigation, bounded browser snapshots,
|
|
185
|
+
server time, progressive local skills with a bundled planning workflow, and
|
|
186
|
+
readable TUI tables with narrow-screen layouts.
|
|
187
|
+
- Preserve user constraints through automatic context compression; keep archived
|
|
188
|
+
content recoverable after resume/fork. Reserve final-answer capacity when
|
|
189
|
+
Docdex performs nested inference, and retain plan-writing tools under budget pressure.
|
|
190
|
+
- Label web summaries and unvisited discovery links separately from fetched
|
|
191
|
+
evidence. Preserve failed benchmark attempts; the original and R1 studies did
|
|
192
|
+
not establish the required quality improvement over raw Qwen.
|
|
193
|
+
|
|
194
|
+
- Honor `interaction.answerBinding` for read-only inspections as well as explanations.
|
|
195
|
+
|
|
196
|
+
- Prepare codali.17 with history-aware interaction dispatch before repository
|
|
197
|
+
execution. Greetings and questions no longer create coding tasks or reviewer
|
|
198
|
+
loops; configured small-model prompts prepare bounded stronger-model requests.
|
|
199
|
+
- Record private redacted request/model-response/final-outcome audit events,
|
|
200
|
+
preserve cumulative usage with bounded turn budgets, and remove transport
|
|
201
|
+
metadata from repeated model context. Conversation metadata v2 prevents older
|
|
202
|
+
clients from reinterpreting these sessions as coding jobs; v1 work sessions
|
|
203
|
+
remain readable.
|
|
204
|
+
- Add mouse-wheel scrollback that stays anchored during streaming, readable tool
|
|
205
|
+
activity and errors, and dedicated help/usage views. Preserve keyboard access,
|
|
206
|
+
approval controls and terminal restoration.
|
|
4
207
|
|
|
5
208
|
- Retry transient Windows state-file replacement conflicts without deleting the
|
|
6
209
|
previous state or suppressing permanent errors. Retain file durability checks.
|
package/ORCHESTRATION.md
CHANGED
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
# Orchestration configuration
|
|
2
2
|
|
|
3
|
+
## Native tools, skills and bounded context
|
|
4
|
+
|
|
5
|
+
The terminal controller exposes native function calls to capable configured models.
|
|
6
|
+
Read-only inspection uses Docdex for repository search, source reads and structural
|
|
7
|
+
analysis, and `docdex_web_research` for external research. Local searches use the
|
|
8
|
+
index-only batch endpoint; they cannot silently trigger web or model fallback.
|
|
9
|
+
Web calls pass the permission gate before connecting to the system Docdex service.
|
|
10
|
+
The system service owns web-provider credentials and inference routing. Codali
|
|
11
|
+
binds an MCP session to the repository even when local authentication is disabled.
|
|
12
|
+
An empty result does not automatically replay a metered web request. Discovery
|
|
13
|
+
links remain separate from fetched evidence, and generated summaries are labeled.
|
|
14
|
+
Service inference costs are reported by Docdex, not counted in Codali model totals.
|
|
15
|
+
After the first native tool choice, inspection keeps related capability schemas
|
|
16
|
+
in context; other read tools remain available through discovery and explicit
|
|
17
|
+
enabling. This reduces repeated context without classifying prompts by keywords.
|
|
18
|
+
|
|
19
|
+
`server_time` reads the execution host clock, with UTC, Unix milliseconds and an
|
|
20
|
+
optional IANA timezone. `calculate` evaluates bounded numeric expressions without
|
|
21
|
+
running code. `browser_open` reads a rendered accessibility snapshot in an isolated
|
|
22
|
+
Chrome/Chromium process; `browser_read` pages through that captured snapshot without
|
|
23
|
+
another network request. The default snapshot covers the page's main landmark
|
|
24
|
+
when available; `scope: "page"` requests the whole page. Results retain valid bounded JSON and pagination
|
|
25
|
+
handles within the inspection loop's output limit.
|
|
26
|
+
Set `CODALI_BROWSER_PATH` to an absolute executable path
|
|
27
|
+
if automatic discovery cannot find Chrome. Browser navigation requires web
|
|
28
|
+
permission (`--allow-web` or an interactive approval); the planning permission
|
|
29
|
+
profile continues to allow read operations only. Browser contexts have no login
|
|
30
|
+
profile, block POST/form submissions, downloads, service workers and WebSockets,
|
|
31
|
+
and close after each navigation. Page content is untrusted evidence. This browser
|
|
32
|
+
surface supports reading and following URLs. Separate browser_session and
|
|
33
|
+
browser_interact tools provide a persistent isolated noVNC desktop and official
|
|
34
|
+
Browser Use actions; their external-operation permissions still apply.
|
|
35
|
+
|
|
36
|
+
Use `/skills` to inspect available `SKILL.md` packages. Codali discovers its bundled
|
|
37
|
+
skills for planning, architecture, implementation, code review, UI/UX design, testing, tool
|
|
38
|
+
selection, system services, system diagnostics, debugging, Docdex research and
|
|
39
|
+
browser workflows; workspace `.codali/skills` and `.agents/skills`; and user
|
|
40
|
+
`~/.codali/skills`, `~/.agents/skills`, `~/.codex/skills` and `~/.claude/skills`.
|
|
41
|
+
Additional roots are configurable:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
"skills": {
|
|
45
|
+
"enabled": true,
|
|
46
|
+
"directories": ["~/shared-agent-skills", ".team/skills"]
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Discovery is bounded to 128 skills, 256 directories and three directory levels.
|
|
51
|
+
Each text resource is limited to 64 KiB. Standard YAML `name` and `description`
|
|
52
|
+
metadata are required; optional `compatibility` is shown with the actual host
|
|
53
|
+
platform. Up to24 workspace/builtin entries, bounded to3200characters of serialized
|
|
54
|
+
metadata, enter tool-capable prompts; bodies remain lazy.
|
|
55
|
+
`skill_list` discovers omitted and imported packages, `skill_load` reads instructions, and
|
|
56
|
+
`skill_read` retrieves referenced text in pages. Exact IDs disambiguate duplicate
|
|
57
|
+
names. Resources cannot escape their skill directory through traversal or
|
|
58
|
+
symlinks. Scripts and hooks never run automatically, and `allowed-tools` metadata
|
|
59
|
+
does not grant permission. A Mac-specific skill still needs its declared platform
|
|
60
|
+
and tools; loading its text does not provide those dependencies. Configuration
|
|
61
|
+
reload refreshes the skill roots.
|
|
62
|
+
|
|
63
|
+
The service and diagnostic skills distinguish host access from sandbox observations.
|
|
64
|
+
Default run_shell does not expose host service management, even under full
|
|
65
|
+
permission. General systemd/launchd/Docker administration requires an advertised,
|
|
66
|
+
authorized host connector; browser_session only manages its owned desktop and
|
|
67
|
+
static preview. Platform references are read on demand and do not execute.
|
|
68
|
+
|
|
69
|
+
The bundled planning skill uses durable goals, task dependencies, allowed paths,
|
|
70
|
+
decisions and verification receipts. Planning mode records future work and leaves
|
|
71
|
+
the implementation goal open. If inference budget runs out after a plan was
|
|
72
|
+
saved, the controller shows that record with an explicit partial-work notice;
|
|
73
|
+
it does not mark implementation complete. Markdown tables render as aligned boxes in the TUI,
|
|
74
|
+
or labeled fields on narrow screens, including in command overlays.
|
|
75
|
+
|
|
76
|
+
All model routes account for message content, tool schemas, response format,
|
|
77
|
+
reserved output and a context margin before dispatch. Near the configured model
|
|
78
|
+
window, deterministic compression shortens earlier assistant/tool content while
|
|
79
|
+
preserving user/system messages and native call/result identities. Conversation
|
|
80
|
+
history uses the same extractive approach instead of silently discarding older
|
|
81
|
+
user constraints. Abbreviated content identifies a saved source; `context_read`
|
|
82
|
+
recovers it in bounded pages or exact `offset`/`maxChars` spans, including after resume or conversation fork. Full
|
|
83
|
+
originals remain in the redacted private event transcript. The canonical work
|
|
84
|
+
record retains goals, requirements, decisions, pending tasks and verification
|
|
85
|
+
evidence. Compression makes no additional model calls and is not a semantic
|
|
86
|
+
summary. If immutable instructions and schemas cannot fit, the request fails
|
|
87
|
+
before dispatch with an actionable error rather than dropping constraints.
|
|
88
|
+
|
|
89
|
+
Design references: [Agent Skills specification](https://agentskills.io/specification),
|
|
90
|
+
[Playwright browser contexts](https://playwright.dev/docs/api/class-browsercontext),
|
|
91
|
+
[Playwright accessibility snapshots](https://playwright.dev/docs/api/class-page#page-aria-snapshot),
|
|
92
|
+
and [Browser Use browser configuration](https://docs.browser-use.com/open-source/customize/browser/basics).
|
|
93
|
+
These additions require separate installed/live qualification; the completed
|
|
94
|
+
original and R1 benchmark results remain frozen and did not pass quality promotion.
|
|
95
|
+
|
|
3
96
|
The JSON file declares providers, model identities, role bindings, effort limits
|
|
4
97
|
and task-control policy. It contains credential references, never secret values.
|
|
5
98
|
The loader rejects unknown fields, undeclared models, alias cycles, unsafe URLs,
|
|
@@ -36,6 +129,34 @@ Roles such as `planner`, `architect`, `worker`, `router`, `repair`, `compactor`,
|
|
|
36
129
|
`adjudicator`, `synthesizer` and `verifier` can explicitly alias the lead. Disabled
|
|
37
130
|
optional capabilities do not silently invoke a model from daemon defaults.
|
|
38
131
|
|
|
132
|
+
When an enabled `repair` binding is explicitly configured, repeated admitted shell
|
|
133
|
+
execution failures trigger a read-only diagnosis after
|
|
134
|
+
`taskControl.repairAttemptsBeforeReplan` failures (default two). Each diagnosis
|
|
135
|
+
receives the task, actual error and bounded excerpts of already observed source.
|
|
136
|
+
At most two diagnoses are requested per command/task attempt in a loaded turn;
|
|
137
|
+
these calls count toward the shared model budget. Advice cannot execute tools,
|
|
138
|
+
change permissions or verify completion. Permission denials do not trigger this
|
|
139
|
+
repair path. A successful command resets the failure streak.
|
|
140
|
+
|
|
141
|
+
Successful JavaScript writes receive an isolated `node --check` where available.
|
|
142
|
+
A parse failure leaves the saved file intact and shows “syntax needs fixing” in
|
|
143
|
+
the TUI. Parsing is feedback, not behavioral verification. Interrupted runs retain
|
|
144
|
+
a deterministic handoff listing unfinished tasks and the resume command.
|
|
145
|
+
|
|
146
|
+
Execution history retains complete recent tool-call/result groups within a token
|
|
147
|
+
reserve: one quarter of the smallest configured lead context after its output
|
|
148
|
+
allowance. This replaces the fixed twelve-message cutoff. Older findings remain
|
|
149
|
+
retrievable by hash, all user constraints survive, and the provider context guard
|
|
150
|
+
still accounts for instructions, schemas and output before dispatch.
|
|
151
|
+
|
|
152
|
+
On Linux, offline shell execution provides a synthetic localhost-only hosts file.
|
|
153
|
+
It resolves loopback names without sharing the host network or its hostname map.
|
|
154
|
+
|
|
155
|
+
Isolated shell scratch files and environment changes last for one call. Use
|
|
156
|
+
`$TMPDIR` for temporary work and claimed workspace paths for required artifacts.
|
|
157
|
+
Package-manager cache environment variables identify persistent private caches;
|
|
158
|
+
do not hardcode Linux cache paths in portable tasks.
|
|
159
|
+
|
|
39
160
|
Effort controls shared limits, not a claim about hidden model reasoning:
|
|
40
161
|
|
|
41
162
|
| Effort | Steps | Model calls | Tool calls | Total tokens | Time |
|
|
@@ -56,8 +177,16 @@ The Raijin/Suku example maps low to native `none`, medium to `low` with a
|
|
|
56
177
|
request settings; `/status` and model-route events expose them without claiming
|
|
57
178
|
that an older server applied them. Both the mSwarm proxy and node must contain
|
|
58
179
|
the native-reasoning transport update before enabling this profile in service.
|
|
59
|
-
The CLI checks the proxy's authenticated model catalog before
|
|
60
|
-
|
|
180
|
+
The CLI checks the proxy's authenticated model catalog before dispatching inference.
|
|
181
|
+
Discovery, authentication, capability and context refusals release provisional
|
|
182
|
+
token reservations and persist a `not_dispatched` receipt across resume. Failures
|
|
183
|
+
after the transport handoff retain provisional usage until server reconciliation.
|
|
184
|
+
Read-only model and native-capability discovery may retry an explicit temporary
|
|
185
|
+
service failure twice, with bounded backoff. Authentication, entitlement, quota
|
|
186
|
+
and malformed-response failures are not retried. Server backoff longer than five
|
|
187
|
+
seconds is returned to the caller; inference submissions are never replayed by
|
|
188
|
+
this discovery policy.
|
|
189
|
+
The selected model must advertise `native_reasoning.transport_version: 1`
|
|
61
190
|
and every requested parameter. The proxy publishes this contract for pinned nodes
|
|
62
191
|
advertising `native_reasoning_transport_version: 1`, and rejects native requests to older
|
|
63
192
|
nodes before dispatch. A generic `supports_reasoning` flag is insufficient.
|
|
@@ -94,25 +223,43 @@ healthy catalog entries only when digest, dimensions and preprocessing are all
|
|
|
94
223
|
present, and groups identical contracts as replicas. The mSwarm catalog and
|
|
95
224
|
response must attest the pinned digest.
|
|
96
225
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
226
|
+
Codali always uses the system-wide Docdex service for repository indexing,
|
|
227
|
+
memory and web tools. Embedding bindings in Codali do not start a private daemon
|
|
228
|
+
or override the service's model configuration. The service owns its index and
|
|
229
|
+
embedding-space lifecycle; Codali explicitly initializes the current repository
|
|
230
|
+
and scopes subsequent requests to the returned repository ID. Docdex inference
|
|
231
|
+
is accounted by that service, separately from Codali's model totals.
|
|
232
|
+
|
|
233
|
+
The terminal loads its packaged `config/AGENTS.md` guide, optional
|
|
234
|
+
`~/.codali/AGENTS.md` user instructions, `.codali/instructions.md`, workspace
|
|
235
|
+
`AGENTS.md` files from the root through focused directories, then
|
|
236
|
+
`.codali/local.md`. More specific instructions take precedence within their
|
|
237
|
+
scope; none can widen host permissions or authorize unrelated actions. These
|
|
238
|
+
instructions also apply to ordinary conversation and explanations. The
|
|
239
|
+
dispatcher receives the short general part of the packaged guide; investigation
|
|
240
|
+
and execution receive its Docdex recipes. User/workspace instructions remain
|
|
241
|
+
intact. Sources, scopes and content hashes are recorded in `instructions_loaded`
|
|
242
|
+
events and shown in session status. Instructions reload at turn boundaries and
|
|
243
|
+
when execution changes its focused paths.
|
|
244
|
+
|
|
245
|
+
Instruction files must stay within their source directory boundary, be regular
|
|
246
|
+
files of at most 64 KiB, and fit a combined 24,000-character prompt budget.
|
|
247
|
+
Oversized bundles fail explicitly before inference; move supporting material
|
|
248
|
+
into linked documents instead of relying on silent truncation. Repository
|
|
249
|
+
instruction symlinks cannot disclose files outside the workspace.
|
|
250
|
+
|
|
251
|
+
Read-only investigations use permitted Docdex search, source, structural and
|
|
252
|
+
continuity tools. Connection happens when a permitted tool needs it; greetings
|
|
253
|
+
do not initialize a repository. Host-denied calls cannot initialize a connection.
|
|
254
|
+
Inspection never exposes indexing mutations, memory writes, shell execution or
|
|
255
|
+
work mutations. External research requires the existing web permission.
|
|
256
|
+
|
|
257
|
+
Set `docdex.baseUrl` (or `DOCDEX_HTTP_BASE_URL`) to the system service; the default
|
|
258
|
+
is `http://127.0.0.1:28491`. Setup does not install a private runtime, and doctor
|
|
259
|
+
probes the shared service. Legacy private-binary settings are ignored by session
|
|
260
|
+
execution. Session shutdown never stops the shared service. On connection or
|
|
261
|
+
index failure, Codali reports degraded capabilities and continues using local
|
|
262
|
+
file/search tools with permissions, task claims and fresh-read checks intact.
|
|
116
263
|
|
|
117
264
|
Large plans remain complete in durable storage. The model context reserves the
|
|
118
265
|
original goal, constraints, active task criteria and applicable architecture
|
|
@@ -143,12 +290,73 @@ by checksums and tool receipts. Review must reject unavailable evidence needed
|
|
|
143
290
|
to decide correctness. Passing a test or obtaining reviewer approval alone does
|
|
144
291
|
not establish a universal correctness guarantee; observed false completions
|
|
145
292
|
remain release blockers and become regression fixtures.
|
|
293
|
+
If a provider returns an explicit rejection with one finding as a string, the
|
|
294
|
+
controller retains that finding as a one-item list so the agent can repair the
|
|
295
|
+
defect. This normalization cannot turn a malformed approval into acceptance.
|
|
296
|
+
|
|
297
|
+
Review begins with separate specification-only calls, before implementation,
|
|
298
|
+
tests, diffs or claimed results are supplied. Each source is presented as a
|
|
299
|
+
lossless array of excerpts. The model selects a source ID and zero-based excerpt
|
|
300
|
+
index; the controller supplies the exact quotation, preserving whitespace and
|
|
301
|
+
Unicode boundaries. Invalid indexes, conflicting quotations and omitted sources
|
|
302
|
+
cannot establish acceptance. Legacy quoted responses remain valid only when
|
|
303
|
+
their text occurs verbatim in the identified source. Large
|
|
304
|
+
contracts use at most sixteen bounded source groups, with every original source
|
|
305
|
+
retained as context in every call. Text already contained verbatim in the current
|
|
306
|
+
goal is supplied once; all canonical criterion IDs remain in the actual review.
|
|
307
|
+
The review checklist stores repeated quotations once per source and retains each
|
|
308
|
+
check with a reference to that exact quotation; no expected behavior is dropped.
|
|
309
|
+
One format repair per group is permitted; invalid source attribution or missing coverage
|
|
310
|
+
cannot establish acceptance. The checklist supplements the full original
|
|
311
|
+
contract and does not prove correctness. Both preparation and source review use
|
|
312
|
+
the smaller of the configured effort output limit and reviewer model limits,
|
|
313
|
+
reserving that output space in the smallest compatible context window. Native
|
|
314
|
+
reasoning settings remain in the model configuration; no host defaults change.
|
|
315
|
+
Terminal review requests plain model output and strictly parses the JSON protocol
|
|
316
|
+
locally. This preserves the received response and usage when a model emits invalid
|
|
317
|
+
JSON; a native structured-output validator would otherwise reject it before the
|
|
318
|
+
controller can inspect it. Source review permits one format-only repair with the
|
|
319
|
+
complete original authority retained, at most six calls including four source
|
|
320
|
+
rounds and a verdict. This does not retry unknown transport failures or turn an
|
|
321
|
+
invalid or contradictory approval into accepted evidence. Explicit native
|
|
322
|
+
`structured_output_failed` errors elsewhere are classified as `invalid_response`
|
|
323
|
+
without exposing upstream response content.
|
|
324
|
+
|
|
325
|
+
The reviewer can request additional source pages before deciding. Requests are
|
|
326
|
+
read-only and restricted to the current review paths; each page rechecks the
|
|
327
|
+
validated file hash. Four request rounds, eight pages per round and the smallest
|
|
328
|
+
configured reviewer context bound the process. Every model call shares the
|
|
329
|
+
session's usage and effort budget. Repeated requests, exhausted context, missing
|
|
330
|
+
evidence or edits during review cannot establish acceptance. Secrets are redacted
|
|
331
|
+
before paging, including credentials that cross page boundaries.
|
|
332
|
+
Omitting a source-request offset continues at the controller's exact unread
|
|
333
|
+
cursor, including an initial page shorter than 8,000 characters. Whole-goal
|
|
334
|
+
reviews reference repeated requirement text by its exact position in the intact
|
|
335
|
+
goal and identify the checked snapshot with one digest. Full per-file hashes
|
|
336
|
+
remain in controller validation and durable evidence; this saves prompt space
|
|
337
|
+
without summarizing the contract or relaxing freshness checks.
|
|
146
338
|
|
|
147
339
|
Ordinary task review includes its assigned requirements, owned changes and diff,
|
|
148
340
|
plus relevant read-only dependencies. Other tasks' pending deliverables remain
|
|
149
341
|
in the canonical backlog. A task assigned the original whole-objective criterion
|
|
150
342
|
receives the complete current goal and all changes for integration review.
|
|
151
343
|
Both review scopes retain the same global validation and source-freshness checks.
|
|
344
|
+
Whole-goal integration also reviews every canonical refined criterion. When all
|
|
345
|
+
other active tasks are already verified, the controller first reassesses each
|
|
346
|
+
owner's criteria and read dependencies against the final files. It then supplies
|
|
347
|
+
those successful assessments, bound to one full-workspace digest, to the final
|
|
348
|
+
integration review and to later scoped reassessments, such as delivery inventories.
|
|
349
|
+
Assessed module source remains available for hash-checked
|
|
350
|
+
paging; only remaining source and diff are loaded initially. Initial source
|
|
351
|
+
allocation reserves context space for later pages. Original requirements,
|
|
352
|
+
constraints, architecture decisions and cross-task interactions still govern
|
|
353
|
+
integration acceptance. A failed scoped assessment stops the sequence without
|
|
354
|
+
renewing any proof. Only an accepted final-tree integration review records
|
|
355
|
+
new full-snapshot proofs for those owners, linked to the shared integration
|
|
356
|
+
assessment and their prior evidence. Original proofs remain in the audit trail.
|
|
357
|
+
An assigned-task review cannot renew siblings; partial coverage, unfinished or
|
|
358
|
+
reopened work, stale revisions, and omitted tracked inputs cannot use this path.
|
|
359
|
+
Any later change to the assessed files still invalidates completion.
|
|
152
360
|
|
|
153
361
|
Terminal `model_receipt` events link usage to `model_intent` by ID and identify
|
|
154
362
|
the role binding. Completed receipts include the reported route and usage;
|
|
@@ -357,6 +565,12 @@ the grader before live runs. Retain the frozen installed client and configuratio
|
|
|
357
565
|
with every result. First attempts are qualification observations; corrective
|
|
358
566
|
reruns must be labeled diagnostic, with the original failures preserved.
|
|
359
567
|
|
|
568
|
+
Workflow corpus v5 additionally checks immediate dispatch stopping on synchronous
|
|
569
|
+
worker throws, waiting for already-started workers, and preserving falsy thrown
|
|
570
|
+
values. This closes a gap found by live review: public async-only coverage had
|
|
571
|
+
accepted a faulty pool. Earlier frozen runs retain their original version, hash
|
|
572
|
+
and outcomes; regrading known artifacts is diagnostic evidence.
|
|
573
|
+
|
|
360
574
|
`eval/LongWorkflowJourney.runLongWorkflowJourney` composes four module contracts
|
|
361
575
|
into one durable goal. Select `data-delivery`, `service-adapters`, `billing-audit`
|
|
362
576
|
or `localized-export`, and supply `configPath` and a new `outputRoot`. Four child
|
|
@@ -385,3 +599,124 @@ receipts and independent-review excerpts preserve the beginning, a detected
|
|
|
385
599
|
failure region, and the end of bounded output; omission markers never imply
|
|
386
600
|
that an unretained full log is available. Successful test exit status remains
|
|
387
601
|
separate from whether the tests prove the requested behavior.
|
|
602
|
+
|
|
603
|
+
## Terminal interaction dispatch and audit
|
|
604
|
+
|
|
605
|
+
Natural-language terminal messages first pass through a bounded semantic
|
|
606
|
+
dispatcher. It uses recent conversation and the active goal to choose a direct
|
|
607
|
+
answer, stronger no-tool answer, read-only investigation, action, or clarification.
|
|
608
|
+
It does not match a list of phrases. Conversation does not initialize a work
|
|
609
|
+
record, repository index or verification loop. Side questions preserve active
|
|
610
|
+
work. Action requests retain the original text and relevant conversation beside
|
|
611
|
+
the prepared brief; the brief cannot grant permissions or replace constraints.
|
|
612
|
+
|
|
613
|
+
`codali setup` initially aliases `intent` to `lead`. The smaller resident models
|
|
614
|
+
have not qualified for the current contract; health and availability alone do not
|
|
615
|
+
select them. Operators can bind a smaller model after a measured comparison.
|
|
616
|
+
The older `router` binding used by automation is unchanged. Existing profiles
|
|
617
|
+
without an `intent` binding use a bounded lead call until the operator configures
|
|
618
|
+
one. No model is downloaded automatically.
|
|
619
|
+
|
|
620
|
+
The optional `interaction` object accepts:
|
|
621
|
+
|
|
622
|
+
```json
|
|
623
|
+
{
|
|
624
|
+
"routerBinding": "intent",
|
|
625
|
+
"answerBinding": "lead",
|
|
626
|
+
"promptVersion": "my-interaction-v1",
|
|
627
|
+
"maxInputChars": 24000,
|
|
628
|
+
"historyChars": 6000,
|
|
629
|
+
"maxOutputTokens": 768,
|
|
630
|
+
"maxTotalTokens": 16000,
|
|
631
|
+
"maxModelCalls": 8,
|
|
632
|
+
"maxInspectionSteps": 6,
|
|
633
|
+
"timeoutMs": 90000
|
|
634
|
+
}
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
`answerPrompt` replaces the answering instructions. `routerPrompt` is a legacy
|
|
638
|
+
semantic policy carried as data beside the original request. It can guide route
|
|
639
|
+
selection but cannot replace the versioned dispatcher schema or widen scope.
|
|
640
|
+
Live dispatch returns exactly `mode`, `text`, `tools` (`none` or `available`), and
|
|
641
|
+
`output` (`format`, `requiredKeys`, `minWords`, `maxWords`). Unspecified word bounds
|
|
642
|
+
are null. Archived two-/three-field decisions remain readable; live requests
|
|
643
|
+
require all four fields. Runtime and dispatcher evaluations share the same prompt
|
|
644
|
+
builder and record `interaction-v11` separately from the operator's policy version.
|
|
645
|
+
`routerResponseFormat: "json_schema"` optionally sends a native schema for the
|
|
646
|
+
five decision modes, bounded brief, tool scope and output contract. The default remains JSON-object
|
|
647
|
+
mode for adapter compatibility. The selected endpoint must support the schema;
|
|
648
|
+
there is no automatic downgrade or replay after a rejected request. Output is
|
|
649
|
+
still parsed and validated because a schema does not establish correct intent,
|
|
650
|
+
and a response can be truncated or an endpoint can ignore the constraint.
|
|
651
|
+
|
|
652
|
+
Every final interaction reply is checked for nonempty content, extracted JSON-only
|
|
653
|
+
syntax/top-level required keys, and explicit whitespace-separated word bounds.
|
|
654
|
+
These checks do not prove factual correctness, validate an entire JSON Schema,
|
|
655
|
+
compile code or establish work completion. Original user instructions remain
|
|
656
|
+
authoritative when extraction omits a requirement. A failed conversational check
|
|
657
|
+
gets at most one tool-free repair within the same call/token/deadline budget.
|
|
658
|
+
Both drafts and the violations are logged. A failed repair is reported as failure;
|
|
659
|
+
it does not silently publish an invalid final answer. Invalid execution reports
|
|
660
|
+
retain their work checkpoints and cannot use presentation repair to invent action
|
|
661
|
+
claims or change completion evidence. Ordinary valid greetings still take one call.
|
|
662
|
+
|
|
663
|
+
`answerReview: { "enabled": true, "binding": "reviewer", "maxOutputTokens": 2048 }`
|
|
664
|
+
adds one revision pass to `reason` answers. It sees the original request,
|
|
665
|
+
conversation, applicable instructions and untrusted draft, and has no tools.
|
|
666
|
+
The pass shares the existing call/token/deadline limits; it is skipped when
|
|
667
|
+
there is insufficient budget. A failed optional check records its failure and
|
|
668
|
+
returns the original draft unless the user cancelled. It never changes a
|
|
669
|
+
greeting, claims independent verification, or runs automatically by default.
|
|
670
|
+
Use measured quality and latency results before enabling it.
|
|
671
|
+
|
|
672
|
+
`calculator: true` experimentally exposes the pure `calculate` tool only during
|
|
673
|
+
`reason` turns whose dispatcher returns `tools: "available"`. It is off by default. The model chooses whether to use it; the
|
|
674
|
+
dispatcher does not match arithmetic keywords or a list of request types.
|
|
675
|
+
It receives a capability note so requests requiring calculator verification
|
|
676
|
+
reach reasoning mode; the recorded router-prompt hash includes that note.
|
|
677
|
+
The tool accepts numeric expressions, parentheses, powers, signed remainder
|
|
678
|
+
and a small set of arithmetic functions. It cannot execute code, access files
|
|
679
|
+
or use the network. Expressions are limited to 4,096 characters, 1,024 tokens,
|
|
680
|
+
32 levels of nesting and 128 function arguments. Nonfinite results and unsafe
|
|
681
|
+
integers are rejected. Floating-point results are not exact decimal arithmetic.
|
|
682
|
+
|
|
683
|
+
Calculator calls honor host/repository tool restrictions, consume the shared
|
|
684
|
+
tool budget and create ordinary invocation receipts. The loop reserves capacity
|
|
685
|
+
for a final answer; greetings still use no tools. When answer review is also
|
|
686
|
+
enabled, it receives the actual calculation requests and results. A calculator
|
|
687
|
+
can verify an expression, but it cannot establish that the model chose the
|
|
688
|
+
correct formula, units or interpretation. Enable it only after evaluating that
|
|
689
|
+
tradeoff with the intended model and workload.
|
|
690
|
+
|
|
691
|
+
The router returns `{"mode":"answer","text":"Hello!","tools":"none"}` with mode
|
|
692
|
+
one of `answer`, `reason`, `inspect`, `execute`, `clarify`. For delegated modes,
|
|
693
|
+
text is a task brief of at most 500 characters, not a proposed solution. Invalid
|
|
694
|
+
output gets one bounded repair attempt; it cannot start execution. Model bindings
|
|
695
|
+
still enforce catalog entitlement, backend identity and context capacity.
|
|
696
|
+
|
|
697
|
+
The dispatcher interprets `tools` from the original request and conversation;
|
|
698
|
+
it is `none` or `available`. The host withholds tools for `none`, converting an
|
|
699
|
+
inconsistent inspection/execution decision into a tool-free answer. `available`
|
|
700
|
+
does not override host or repository permissions. Older two-field decisions
|
|
701
|
+
remain readable, but cannot enable the optional calculator. The runtime appends
|
|
702
|
+
this contract to custom router prompts and records the effective prompt hash.
|
|
703
|
+
This model-derived restriction still needs semantic evaluation; it is not proof
|
|
704
|
+
that every natural-language prohibition was understood correctly.
|
|
705
|
+
|
|
706
|
+
Session totals accumulate, while turn budgets restart per message. Unknown
|
|
707
|
+
remote outcomes retain their token reservations until reconciled. Execution
|
|
708
|
+
continues to use the selected effort budget and existing completion gate.
|
|
709
|
+
|
|
710
|
+
Private session `transcript.jsonl` records `interaction_request`, `model_request`,
|
|
711
|
+
`model_response`, and `interaction_result` or `interaction_failed`. Correlation
|
|
712
|
+
IDs, actual message/tool payloads, configuration and prompt hashes, model routes,
|
|
713
|
+
token receipts and final outcomes support later investigation. Registered
|
|
714
|
+
credentials and recognizable token formats are redacted; files have private
|
|
715
|
+
permissions and stay outside the repository. No training or log upload is enabled.
|
|
716
|
+
Cancellation may leave a remote model outcome unknown; the log preserves that
|
|
717
|
+
reservation rather than inventing a response or zero usage.
|
|
718
|
+
|
|
719
|
+
The reproducible conversation, code-answer and repository-inspection study is
|
|
720
|
+
documented in [`docs/benchmarks/codali-1000/README.md`](../../docs/benchmarks/codali-1000/README.md).
|
|
721
|
+
Its independent code checks and rubric reviews supplement the existing terminal
|
|
722
|
+
editing and long-workflow suites; they do not replace those release gates.
|