meadow-authoring 0.2.0__py3-none-any.whl
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.
- authoring/__init__.py +0 -0
- authoring/_application/adapters/haskell/Playground/Vocabulary.hs +128 -0
- authoring/_application/adapters/haskell/ValidateConfig.hs +27 -0
- authoring/_application/config/diagnostic-messages.json +80 -0
- authoring/_application/config/dsl-expression-default.canonical.txt +10 -0
- authoring/_application/config/invocation-policy.yaml +11 -0
- authoring/_application/config/operational-settings.json +23 -0
- authoring/_application/config/surface-defaults.json +7 -0
- authoring/_application/config/surface-theme.json +17 -0
- authoring/_application/config/surface-tokens.json +37 -0
- authoring/_application/config/team-yaml-default-prelude.yaml +167 -0
- authoring/_application/config/vocabulary.json +79 -0
- authoring/_application/package-lock.json +3716 -0
- authoring/_application/package.json +29 -0
- authoring/_application/packages/authoring-language/grammar/workflow.grammar +47 -0
- authoring/_application/packages/authoring-language/language/ast.ts +94 -0
- authoring/_application/packages/authoring-language/language/codemirror.ts +141 -0
- authoring/_application/packages/authoring-language/language/completion.ts +412 -0
- authoring/_application/packages/authoring-language/language/diagnostics.ts +125 -0
- authoring/_application/packages/authoring-language/language/indentation.ts +174 -0
- authoring/_application/packages/authoring-language/language/index.ts +92 -0
- authoring/_application/packages/authoring-language/language/layout.ts +928 -0
- authoring/_application/packages/authoring-language/language/parser.ts +928 -0
- authoring/_application/packages/authoring-language/language/respell.ts +152 -0
- authoring/_application/packages/authoring-language/language/tokens.ts +170 -0
- authoring/_application/packages/authoring-language/package.json +32 -0
- authoring/_application/packages/authoring-language/scripts/generate-surface-tokens.ts +1156 -0
- authoring/_application/packages/authoring-language/tsconfig.build.json +12 -0
- authoring/_application/packages/authoring-language/tsconfig.json +11 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Admission.hs +170 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Boundary.hs +58 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Compile.hs +35 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/CompilerConfig.hs +36 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Emit.hs +193 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Flow.hs +30 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Compilation/Input.hs +39 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Compilation/Result.hs +34 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Compilation.hs +35 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Flow.hs +171 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Accumulation.hs +128 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Closure.hs +1738 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Connections.hs +139 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Fan.hs +285 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Frontier.hs +139 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Lowering.hs +255 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Production.hs +79 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Projection.hs +90 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Recurrence.hs +92 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/RecurrenceStructure.hs +147 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Scope.hs +1320 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Spelling.hs +582 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment/Steps.hs +80 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Fragment.hs +2204 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Internal/Output.hs +78 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Message.hs +34 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Net.hs +127 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Output.hs +24 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Pretty.hs +47 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra/Token.hs +112 -0
- authoring/_application/packages/compiler/src/Workflow/Algebra.hs +124 -0
- authoring/_application/packages/node-backend/cache-path.ts +24 -0
- authoring/_application/packages/node-backend/driver.hs +54 -0
- authoring/_application/packages/node-backend/host.ts +127 -0
- authoring/_application/packages/node-backend/invocation.hs +14 -0
- authoring/_application/packages/node-backend/loader.ts +298 -0
- authoring/_application/packages/node-backend/output.ts +64 -0
- authoring/_application/packages/node-backend/package.json +26 -0
- authoring/_application/packages/node-backend/protocol.ts +92 -0
- authoring/_application/packages/node-backend/provision.ts +401 -0
- authoring/_application/packages/node-backend/session.ts +133 -0
- authoring/_application/packages/node-backend/setup.ts +21 -0
- authoring/_application/packages/node-backend/sources.ts +68 -0
- authoring/_application/packages/node-backend/thread.ts +45 -0
- authoring/_application/packages/node-backend/tsconfig.json +13 -0
- authoring/_application/packages/node-backend/worker.ts +188 -0
- authoring/_application/tsconfig.base.json +16 -0
- authoring/_application/web/app/attestation.ts +90 -0
- authoring/_application/web/app/compilerReadiness.ts +67 -0
- authoring/_application/web/app/editor.ts +414 -0
- authoring/_application/web/app/main.ts +1691 -0
- authoring/_application/web/app/preference.ts +61 -0
- authoring/_application/web/app/promptEditor.ts +105 -0
- authoring/_application/web/app/protocol.ts +1373 -0
- authoring/_application/web/app/result.ts +372 -0
- authoring/_application/web/app/session.ts +344 -0
- authoring/_application/web/app/styles.css +627 -0
- authoring/_application/web/app/theme.ts +189 -0
- authoring/_application/web/app/yamlEditor.ts +113 -0
- authoring/_application/web/index.html +13 -0
- authoring/_application/web/package.json +35 -0
- authoring/_application/web/tsconfig.json +10 -0
- authoring/_application/web/vite.config.ts +8 -0
- authoring/admission.py +605 -0
- authoring/app.py +1416 -0
- authoring/catalog.py +141 -0
- authoring/cli.py +102 -0
- authoring/compiler.py +1550 -0
- authoring/compiler_backend.py +45 -0
- authoring/compiler_process.py +221 -0
- authoring/composition.py +83 -0
- authoring/defaults.py +129 -0
- authoring/directories.py +134 -0
- authoring/installation.py +224 -0
- authoring/instance.py +48 -0
- authoring/invocation_overlay.py +196 -0
- authoring/invocation_policy.py +88 -0
- authoring/messages.py +397 -0
- authoring/model_base.py +28 -0
- authoring/node_session.py +712 -0
- authoring/objective.py +66 -0
- authoring/operational_config.py +143 -0
- authoring/paths.py +131 -0
- authoring/preparation_process.py +89 -0
- authoring/raw_ast.py +268 -0
- authoring/renderer.py +390 -0
- authoring/responses.py +333 -0
- authoring/runner.py +615 -0
- authoring/settings.py +86 -0
- authoring/strict_json.py +91 -0
- authoring/vocabulary.py +269 -0
- authoring/vocabulary_codegen.py +194 -0
- authoring/wasm_compiler.py +316 -0
- authoring/workflow_errors.py +237 -0
- meadow/__init__.py +0 -0
- meadow/__main__.py +3 -0
- meadow/acp_skill_catalog.py +257 -0
- meadow/acp_skill_catalog_evidence.py +49 -0
- meadow/active_turn_output.py +1188 -0
- meadow/actor.py +4240 -0
- meadow/actor_inbox.py +48 -0
- meadow/actor_instructions.py +96 -0
- meadow/actor_intake.py +99 -0
- meadow/actor_liveness.py +462 -0
- meadow/actor_pool.py +401 -0
- meadow/actor_prompts.py +253 -0
- meadow/actor_run_port.py +153 -0
- meadow/actor_session.py +400 -0
- meadow/actor_type_order.py +50 -0
- meadow/admitted_claim_input.py +267 -0
- meadow/aspect_outcomes.py +31 -0
- meadow/aspects.py +101 -0
- meadow/async_ownership.py +201 -0
- meadow/bridge_progress.py +72 -0
- meadow/bus/__init__.py +24 -0
- meadow/bus/aspect_pipeline.py +99 -0
- meadow/bus/broadcast_activity.py +158 -0
- meadow/bus/bus_base.py +303 -0
- meadow/bus/capacity_admission.py +219 -0
- meadow/bus/capacity_limits.py +11 -0
- meadow/bus/child_scope_materialization.py +287 -0
- meadow/bus/commit_reservation_state.py +219 -0
- meadow/bus/completion_live/__init__.py +5 -0
- meadow/bus/completion_live/control_occurrences.py +207 -0
- meadow/bus/completion_live/definition.py +18 -0
- meadow/bus/completion_live/prepared.py +127 -0
- meadow/bus/completion_live/produced.py +183 -0
- meadow/bus/completion_live/turn_occurrences.py +326 -0
- meadow/bus/completion_resolution_evidence.py +141 -0
- meadow/bus/completion_revision.py +16 -0
- meadow/bus/completion_transition.py +5 -0
- meadow/bus/components/__init__.py +1 -0
- meadow/bus/components/activity.py +96 -0
- meadow/bus/components/capacity.py +185 -0
- meadow/bus/components/commit_gate.py +131 -0
- meadow/bus/components/completion.py +245 -0
- meadow/bus/components/configuration.py +186 -0
- meadow/bus/components/delivery_ledger.py +1128 -0
- meadow/bus/components/instances.py +1215 -0
- meadow/bus/components/outputs.py +201 -0
- meadow/bus/components/plans.py +335 -0
- meadow/bus/components/requirements.py +177 -0
- meadow/bus/components/semantic_root.py +46 -0
- meadow/bus/components/work_scopes.py +1391 -0
- meadow/bus/control_classification.py +39 -0
- meadow/bus/delivery_anchors.py +77 -0
- meadow/bus/delivery_execution.py +31 -0
- meadow/bus/delivery_notices.py +145 -0
- meadow/bus/delivery_publication.py +142 -0
- meadow/bus/delivery_state.py +110 -0
- meadow/bus/emission_set_live_effects.py +334 -0
- meadow/bus/emission_set_live_projection.py +108 -0
- meadow/bus/emission_set_prepare.py +456 -0
- meadow/bus/emission_set_prepare_controls.py +435 -0
- meadow/bus/emission_set_prepare_inputs.py +1176 -0
- meadow/bus/emission_set_prepare_targets.py +777 -0
- meadow/bus/emission_set_state.py +335 -0
- meadow/bus/emission_set_state_work.py +592 -0
- meadow/bus/feedback_replacement.py +33 -0
- meadow/bus/lifecycle_intake.py +93 -0
- meadow/bus/live_effects.py +90 -0
- meadow/bus/message_bus.py +5021 -0
- meadow/bus/normalized_targets.py +427 -0
- meadow/bus/observations.py +336 -0
- meadow/bus/paths.py +176 -0
- meadow/bus/prepared_assertions.py +318 -0
- meadow/bus/registration.py +406 -0
- meadow/bus/replay_integrity.py +107 -0
- meadow/bus/resolution_ordering.py +111 -0
- meadow/bus/resolution_prepare.py +519 -0
- meadow/bus/runtime_control_prepare.py +571 -0
- meadow/bus/runtime_control_registry.py +130 -0
- meadow/bus/scope_identity.py +215 -0
- meadow/bus/support_only_evidence.py +332 -0
- meadow/bus/system_commit.py +176 -0
- meadow/bus/work_products.py +214 -0
- meadow/bus/work_scope_settlement.py +31 -0
- meadow/causal_depth.py +38 -0
- meadow/causal_work_product_provenance.py +130 -0
- meadow/causal_work_products.py +939 -0
- meadow/claimed_prompt_input.py +114 -0
- meadow/claimed_work_product_adapters.py +106 -0
- meadow/claimed_work_product_input.py +195 -0
- meadow/claimed_work_products.py +166 -0
- meadow/command_capture.py +287 -0
- meadow/commands.py +291 -0
- meadow/completion_definition.py +100 -0
- meadow/completion_kernel/__init__.py +261 -0
- meadow/completion_kernel/_failure_projection_registry.py +192 -0
- meadow/completion_kernel/_open_state.py +353 -0
- meadow/completion_kernel/_state_registry.py +56 -0
- meadow/completion_kernel/_values.py +298 -0
- meadow/completion_kernel/advance.py +228 -0
- meadow/completion_kernel/association.py +126 -0
- meadow/completion_kernel/causality.py +61 -0
- meadow/completion_kernel/control_transition.py +502 -0
- meadow/completion_kernel/definition.py +132 -0
- meadow/completion_kernel/effects.py +114 -0
- meadow/completion_kernel/failure_projection.py +418 -0
- meadow/completion_kernel/identity.py +45 -0
- meadow/completion_kernel/installation.py +91 -0
- meadow/completion_kernel/observations.py +462 -0
- meadow/completion_kernel/occurrences.py +502 -0
- meadow/completion_kernel/reduction.py +25 -0
- meadow/completion_kernel/rejection_opportunity.py +32 -0
- meadow/completion_kernel/saturation.py +325 -0
- meadow/completion_kernel/settlement.py +211 -0
- meadow/completion_kernel/state.py +56 -0
- meadow/completion_kernel/succession.py +391 -0
- meadow/completion_kernel/support_projection/__init__.py +23 -0
- meadow/completion_kernel/support_projection/derivation.py +590 -0
- meadow/completion_kernel/support_projection/model.py +83 -0
- meadow/completion_kernel/support_projection/projection.py +281 -0
- meadow/completion_kernel/support_projection/validation.py +181 -0
- meadow/completion_kernel/turn_transition.py +759 -0
- meadow/completion_kernel/violations.py +252 -0
- meadow/completion_policy.py +278 -0
- meadow/config.py +345 -0
- meadow/config_bundle.py +326 -0
- meadow/configured_claim_input.py +157 -0
- meadow/content_definition_prompt.py +36 -0
- meadow/control_certificates.py +723 -0
- meadow/control_origin_invariants.py +106 -0
- meadow/control_payloads.py +116 -0
- meadow/defaults/__init__.py +0 -0
- meadow/defaults/actors/__init__.py +0 -0
- meadow/defaults/actors/architect.md +89 -0
- meadow/defaults/actors/architectorchestrator.md +490 -0
- meadow/defaults/actors/checkpointreviewer.md +177 -0
- meadow/defaults/actors/comprehensivereviewer.md +258 -0
- meadow/defaults/actors/constraintauthor.md +72 -0
- meadow/defaults/actors/explorer.md +151 -0
- meadow/defaults/actors/explorerorchestrator.md +242 -0
- meadow/defaults/actors/implementer.md +211 -0
- meadow/defaults/actors/implementerorchestrator.md +239 -0
- meadow/defaults/actors/investigator.md +274 -0
- meadow/defaults/actors/orchestrator.md +129 -0
- meadow/defaults/actors/planner.md +133 -0
- meadow/defaults/actors/plannerorchestrator.md +182 -0
- meadow/defaults/actors/reviewer.md +253 -0
- meadow/defaults/actors/reviewerorchestrator.md +387 -0
- meadow/defaults/actors/testauthor.md +181 -0
- meadow/defaults/actors/verticalorchestrator.md +195 -0
- meadow/defaults/actors/verticalplanner.md +158 -0
- meadow/defaults/actors/writer.md +134 -0
- meadow/defaults/config.yaml +3 -0
- meadow/defaults/opencode.json +18 -0
- meadow/defaults/opencode_package.json +5 -0
- meadow/defaults/skills/common-review-standards/SKILL.md +194 -0
- meadow/defaults/skills/constraints/SKILL.md +80 -0
- meadow/defaults/skills/efficient-repository-exploration/SKILL.md +108 -0
- meadow/defaults/skills/empirical-epistemology/SKILL.md +170 -0
- meadow/defaults/skills/investigate-first/SKILL.md +16 -0
- meadow/defaults/skills/lean-build/SKILL.md +18 -0
- meadow/defaults/skills/ontology-perspective-discipline/SKILL.md +385 -0
- meadow/defaults/skills/safe-refactor/SKILL.md +16 -0
- meadow/defaults/skills/specification-standard/SKILL.md +29 -0
- meadow/defaults/team.yaml +463 -0
- meadow/defaults/team_system.md +501 -0
- meadow/defaults/work_product_schemas.yaml +1058 -0
- meadow/design_handoff_contract.py +116 -0
- meadow/dialog.py +418 -0
- meadow/document_source.py +252 -0
- meadow/domain_identity.py +111 -0
- meadow/embeddings.py +39 -0
- meadow/emission_policy.py +419 -0
- meadow/engine.py +1565 -0
- meadow/env.py +923 -0
- meadow/exceptions.py +305 -0
- meadow/experiment.py +499 -0
- meadow/experiment_reporting.py +131 -0
- meadow/finalize.py +251 -0
- meadow/import_run.py +458 -0
- meadow/invocation_policy.py +11 -0
- meadow/jira.py +147 -0
- meadow/legacy_workflow_surface.py +43 -0
- meadow/lifecycle.py +200 -0
- meadow/managed_server.py +75 -0
- meadow/meadow_bridge_client.py +3479 -0
- meadow/meadow_bridge_server.py +1170 -0
- meadow/memory.py +347 -0
- meadow/memory_models.py +24 -0
- meadow/message_sender.py +61 -0
- meadow/messages.py +350 -0
- meadow/normalized_causality.py +731 -0
- meadow/notify.py +224 -0
- meadow/opencode.py +1585 -0
- meadow/opencode_config.py +293 -0
- meadow/opencode_evidence.py +567 -0
- meadow/opencode_schema.py +309 -0
- meadow/opencode_server.py +933 -0
- meadow/opencode_skills.py +1493 -0
- meadow/output_models.py +364 -0
- meadow/platform_resources/__init__.py +426 -0
- meadow/platform_resources/_admitted_reads.py +173 -0
- meadow/platform_resources/_append_files.py +198 -0
- meadow/platform_resources/_console.py +107 -0
- meadow/platform_resources/_desktop.py +34 -0
- meadow/platform_resources/_directories.py +176 -0
- meadow/platform_resources/_directory_stages.py +254 -0
- meadow/platform_resources/_directory_trees.py +190 -0
- meadow/platform_resources/_entries.py +96 -0
- meadow/platform_resources/_environment.py +146 -0
- meadow/platform_resources/_executables.py +227 -0
- meadow/platform_resources/_file_contents.py +158 -0
- meadow/platform_resources/_file_copies.py +55 -0
- meadow/platform_resources/_generation.py +118 -0
- meadow/platform_resources/_generation_owner.py +223 -0
- meadow/platform_resources/_generation_posix.py +221 -0
- meadow/platform_resources/_generation_windows.py +211 -0
- meadow/platform_resources/_held_file_close.py +76 -0
- meadow/platform_resources/_home_windows.py +74 -0
- meadow/platform_resources/_leaf_native_posix.py +89 -0
- meadow/platform_resources/_leaf_native_windows.py +152 -0
- meadow/platform_resources/_lease_posix.py +77 -0
- meadow/platform_resources/_lease_windows.py +190 -0
- meadow/platform_resources/_leases.py +310 -0
- meadow/platform_resources/_outcomes.py +77 -0
- meadow/platform_resources/_output_files.py +96 -0
- meadow/platform_resources/_owned_directories.py +302 -0
- meadow/platform_resources/_owned_leaves.py +347 -0
- meadow/platform_resources/_package_trees.py +136 -0
- meadow/platform_resources/_path_moves.py +72 -0
- meadow/platform_resources/_paths.py +380 -0
- meadow/platform_resources/_permissions.py +68 -0
- meadow/platform_resources/_permissions_windows.py +73 -0
- meadow/platform_resources/_process_capture.py +314 -0
- meadow/platform_resources/_process_darwin.py +131 -0
- meadow/platform_resources/_process_guardian.py +574 -0
- meadow/platform_resources/_process_linux.py +135 -0
- meadow/platform_resources/_process_native.py +87 -0
- meadow/platform_resources/_process_posix.py +583 -0
- meadow/platform_resources/_process_types.py +274 -0
- meadow/platform_resources/_process_windows.py +715 -0
- meadow/platform_resources/_processes.py +493 -0
- meadow/platform_resources/_shells.py +113 -0
- meadow/platform_resources/_signal_bindings.py +536 -0
- meadow/platform_resources/_snapshots.py +220 -0
- meadow/platform_resources/_temporaries.py +426 -0
- meadow/platform_resources/_temporary_posix.py +57 -0
- meadow/platform_resources/_temporary_windows.py +36 -0
- meadow/platform_resources/_tree_copies.py +449 -0
- meadow/platform_resources/_tree_copy_types.py +61 -0
- meadow/platform_resources/_tree_native.py +40 -0
- meadow/platform_resources/_tree_posix.py +94 -0
- meadow/platform_resources/_tree_types.py +86 -0
- meadow/platform_resources/_tree_windows.py +434 -0
- meadow/platform_resources/_tree_write_native.py +28 -0
- meadow/platform_resources/_tree_write_posix.py +400 -0
- meadow/platform_resources/_tree_write_windows.py +323 -0
- meadow/platform_resources/_trees.py +326 -0
- meadow/platform_resources/_user_paths.py +94 -0
- meadow/platform_resources/_windows_files.py +98 -0
- meadow/podman.py +546 -0
- meadow/pre_turn_selection/__init__.py +22 -0
- meadow/pre_turn_selection/selection.py +762 -0
- meadow/pre_turn_selection/types.py +373 -0
- meadow/project_source.py +341 -0
- meadow/prompt_context.py +85 -0
- meadow/prompt_work_products.py +370 -0
- meadow/provision.py +739 -0
- meadow/recovery_bootstrap.py +1653 -0
- meadow/request_policy.py +198 -0
- meadow/resume_definition.py +171 -0
- meadow/resume_ownership/__init__.py +64 -0
- meadow/resume_ownership/admission.py +111 -0
- meadow/resume_ownership/owner.py +383 -0
- meadow/resume_ownership/recovery.py +374 -0
- meadow/resume_ownership/resources.py +414 -0
- meadow/resume_ownership/settlement.py +351 -0
- meadow/resume_ownership/types.py +206 -0
- meadow/retrospective.py +590 -0
- meadow/route.py +24 -0
- meadow/route_counter_definition.py +37 -0
- meadow/route_counters.py +622 -0
- meadow/route_policy.py +165 -0
- meadow/routing_config.py +310 -0
- meadow/run.py +565 -0
- meadow/run_admission.py +269 -0
- meadow/run_application.py +1629 -0
- meadow/run_graph_check.py +402 -0
- meadow/run_graph_coordinator/__init__.py +28 -0
- meadow/run_graph_coordinator/commit_entry.py +221 -0
- meadow/run_graph_coordinator/coordinator.py +1233 -0
- meadow/run_graph_coordinator/coordinator_base.py +211 -0
- meadow/run_graph_coordinator/message_draft.py +28 -0
- meadow/run_graph_coordinator/plan_agreement.py +380 -0
- meadow/run_graph_coordinator/plan_registry.py +75 -0
- meadow/run_graph_coordinator/plans.py +127 -0
- meadow/run_graph_coordinator/runtime_control_commit.py +272 -0
- meadow/run_graph_fold/__init__.py +41 -0
- meadow/run_graph_fold/adapters.py +61 -0
- meadow/run_graph_fold/completion_definition.py +20 -0
- meadow/run_graph_fold/completion_occurrences/__init__.py +5 -0
- meadow/run_graph_fold/completion_occurrences/actor.py +429 -0
- meadow/run_graph_fold/completion_occurrences/control.py +330 -0
- meadow/run_graph_fold/completion_occurrences/deriver.py +440 -0
- meadow/run_graph_fold/completion_occurrences/indexes.py +350 -0
- meadow/run_graph_fold/completion_occurrences/messages.py +243 -0
- meadow/run_graph_fold/completion_occurrences/support.py +483 -0
- meadow/run_graph_fold/completion_pre_turn.py +59 -0
- meadow/run_graph_fold/completion_recovery.py +355 -0
- meadow/run_graph_fold/depth.py +153 -0
- meadow/run_graph_fold/fold.py +1273 -0
- meadow/run_graph_fold/history_causality.py +92 -0
- meadow/run_graph_fold/history_indexes.py +205 -0
- meadow/run_graph_fold/model.py +282 -0
- meadow/run_graph_fold/steps.py +186 -0
- meadow/run_graph_fold/topology.py +612 -0
- meadow/run_graph_fold/witnesses.py +398 -0
- meadow/run_graph_store/__init__.py +170 -0
- meadow/run_graph_store/body_codec.py +15 -0
- meadow/run_graph_store/catalog.py +150 -0
- meadow/run_graph_store/commands.py +159 -0
- meadow/run_graph_store/drafts.py +501 -0
- meadow/run_graph_store/identity.py +182 -0
- meadow/run_graph_store/records.py +568 -0
- meadow/run_graph_store/schema.py +332 -0
- meadow/run_graph_store/store.py +26 -0
- meadow/run_graph_store/store_actors.py +423 -0
- meadow/run_graph_store/store_base.py +269 -0
- meadow/run_graph_store/store_batch.py +125 -0
- meadow/run_graph_store/store_claims.py +596 -0
- meadow/run_graph_store/store_commits.py +601 -0
- meadow/run_graph_store/store_completion.py +460 -0
- meadow/run_graph_store/store_history.py +1097 -0
- meadow/run_graph_store/store_inputs.py +744 -0
- meadow/run_graph_store/store_reads.py +880 -0
- meadow/run_graph_store/store_witness.py +688 -0
- meadow/run_graph_store/validation.py +109 -0
- meadow/run_lease.py +228 -0
- meadow/run_models.py +100 -0
- meadow/run_reader/__init__.py +61 -0
- meadow/run_reader/acp_skill_catalog.py +102 -0
- meadow/run_reader/connection.py +193 -0
- meadow/run_reader/discovery.py +272 -0
- meadow/run_reader/products.py +364 -0
- meadow/run_reader/skill_evidence.py +284 -0
- meadow/run_reader/stream_events.py +390 -0
- meadow/run_state/__init__.py +48 -0
- meadow/run_state/availability.py +353 -0
- meadow/run_state/committed_messages.py +282 -0
- meadow/run_state/liveness.py +235 -0
- meadow/run_state/pre_turn_history.py +314 -0
- meadow/run_state/resume_state.py +184 -0
- meadow/run_state/route_counters.py +78 -0
- meadow/run_state/run_state.py +367 -0
- meadow/run_state/work_scope_participants.py +306 -0
- meadow/run_storage.py +1759 -0
- meadow/run_store.py +2299 -0
- meadow/runtime/__init__.py +2502 -0
- meadow/runtime/ingress.py +168 -0
- meadow/runtime/resume.py +30 -0
- meadow/runtime/runtime_base.py +119 -0
- meadow/runtime/stream_store_owner.py +41 -0
- meadow/runtime/team_prompt.py +221 -0
- meadow/runtime/validation.py +67 -0
- meadow/scaffold.py +499 -0
- meadow/scribe.py +408 -0
- meadow/scribe_store.py +289 -0
- meadow/semantics/__init__.py +5 -0
- meadow/semantics/causality_projection.py +126 -0
- meadow/semantics/identity.py +41 -0
- meadow/semantics/live_payload.py +199 -0
- meadow/semantics/prospective_targets.py +30 -0
- meadow/semantics/state.py +4369 -0
- meadow/sequence.py +2353 -0
- meadow/session_continuity.py +352 -0
- meadow/settings_models.py +870 -0
- meadow/setup.py +413 -0
- meadow/store.py +50 -0
- meadow/stream_bus.py +187 -0
- meadow/stream_event_codec.py +428 -0
- meadow/stream_store.py +512 -0
- meadow/substrate.py +744 -0
- meadow/substrates/__init__.py +1 -0
- meadow/substrates/credential_files/__init__.py +52 -0
- meadow/substrates/meadow_bridge/__init__.py +1 -0
- meadow/substrates/meadow_bridge/auth.py +283 -0
- meadow/substrates/meadow_bridge/managed.py +234 -0
- meadow/substrates/opencode/__init__.py +1 -0
- meadow/substrates/opencode/auth.py +365 -0
- meadow/substrates/opencode/managed.py +386 -0
- meadow/substrates/opencode/mcp_auth.py +77 -0
- meadow/substrates/opencode/providers.py +54 -0
- meadow/task_input.py +79 -0
- meadow/task_models.py +23 -0
- meadow/team_config_cli.py +965 -0
- meadow/terminal_result.py +264 -0
- meadow/terminal_work_products.py +725 -0
- meadow/ticket_storage.py +81 -0
- meadow/utils.py +292 -0
- meadow/validation_models.py +48 -0
- meadow/validation_rules.py +137 -0
- meadow/work_product_body.py +49 -0
- meadow/work_product_body_schema.py +101 -0
- meadow/work_product_catalog.py +89 -0
- meadow/work_product_content/__init__.py +20 -0
- meadow/work_product_content/_catalog.py +152 -0
- meadow/work_product_content/_json.py +232 -0
- meadow/work_product_content/_schema.py +336 -0
- meadow/work_product_provenance.py +537 -0
- meadow/work_product_type.py +20 -0
- meadow/work_product_type_schema.py +27 -0
- meadow/work_products.py +73 -0
- meadow/workflow_config_diagnostics.py +425 -0
- meadow/workflow_config_inspection.py +253 -0
- meadow/workflow_config_parser/__init__.py +248 -0
- meadow/workflow_config_parser/_actors.py +190 -0
- meadow/workflow_config_parser/_admission.py +194 -0
- meadow/workflow_config_parser/_completions.py +178 -0
- meadow/workflow_config_parser/_emit.py +178 -0
- meadow/workflow_config_parser/_routes.py +297 -0
- meadow/workflow_contract.py +255 -0
- meadow/workflow_delivery_handlers.py +117 -0
- meadow/workflow_errors.py +59 -0
- meadow/workflow_root_policy.py +88 -0
- meadow/workflow_route_capability.py +108 -0
- meadow_authoring-0.2.0.dist-info/METADATA +64 -0
- meadow_authoring-0.2.0.dist-info/RECORD +582 -0
- meadow_authoring-0.2.0.dist-info/WHEEL +5 -0
- meadow_authoring-0.2.0.dist-info/entry_points.txt +9 -0
- meadow_authoring-0.2.0.dist-info/licenses/LICENSE +21 -0
- meadow_authoring-0.2.0.dist-info/licenses/licenses/meadow-bridge/LICENSE +21 -0
- meadow_authoring-0.2.0.dist-info/licenses/licenses/meadow-runtime/LICENSE +21 -0
- meadow_authoring-0.2.0.dist-info/top_level.txt +3 -0
- meadow_bridge/__init__.py +3 -0
- meadow_bridge/__main__.py +660 -0
- meadow_bridge/_owned_command_linux.py +178 -0
- meadow_bridge/_owned_command_linux_guardian.py +154 -0
- meadow_bridge/_owned_command_posix.py +222 -0
- meadow_bridge/_owned_command_windows.py +627 -0
- meadow_bridge/_version.py +3 -0
- meadow_bridge/application_policy.py +8 -0
- meadow_bridge/config.py +187 -0
- meadow_bridge/copilot_auth.py +171 -0
- meadow_bridge/direct_protocol.py +494 -0
- meadow_bridge/direct_server.py +277 -0
- meadow_bridge/direct_service.py +1454 -0
- meadow_bridge/direct_state.py +211 -0
- meadow_bridge/discovery.py +610 -0
- meadow_bridge/json_types.py +53 -0
- meadow_bridge/managed_duration.py +67 -0
- meadow_bridge/native_client.py +752 -0
- meadow_bridge/native_transport.py +494 -0
- meadow_bridge/native_types.py +273 -0
- meadow_bridge/owned_commands.py +294 -0
- meadow_bridge/permission_handler.py +45 -0
- meadow_bridge/permission_policy.py +60 -0
- meadow_bridge/py.typed +0 -0
- meadow_bridge/raw_events.py +174 -0
- meadow_bridge/user_paths.py +28 -0
- meadow_bridge/workspace_tools.py +806 -0
authoring/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{- | Stable vocabulary and whole-workflow boundary for the authoring application.
|
|
2
|
+
|
|
3
|
+
The generated module owns the application's nominal vocabulary. This facade
|
|
4
|
+
retains the literal root 'Task' boundary and the child-process result envelope.
|
|
5
|
+
-}
|
|
6
|
+
module Playground.Vocabulary (
|
|
7
|
+
-- * Generated vocabulary
|
|
8
|
+
module Playground.Vocabulary.Generated,
|
|
9
|
+
|
|
10
|
+
-- * Workflow operations
|
|
11
|
+
produce,
|
|
12
|
+
emit,
|
|
13
|
+
defaultBound,
|
|
14
|
+
(<@),
|
|
15
|
+
(<|>),
|
|
16
|
+
(<~),
|
|
17
|
+
(|>),
|
|
18
|
+
(<||),
|
|
19
|
+
(||>),
|
|
20
|
+
|
|
21
|
+
-- * Whole-workflow execution
|
|
22
|
+
compileWith,
|
|
23
|
+
withCompilerConfig,
|
|
24
|
+
emitOutcome,
|
|
25
|
+
) where
|
|
26
|
+
|
|
27
|
+
import qualified Data.List.NonEmpty as NE
|
|
28
|
+
import Data.Text (Text)
|
|
29
|
+
import qualified Data.Text as T
|
|
30
|
+
import qualified Data.Text.IO as TIO
|
|
31
|
+
import System.Exit (ExitCode (ExitFailure), exitWith)
|
|
32
|
+
import System.IO (hSetEncoding, hSetNewlineMode, noNewlineTranslation, stderr, stdout, utf8)
|
|
33
|
+
|
|
34
|
+
import Playground.Vocabulary.Generated
|
|
35
|
+
import Workflow.Algebra.Compile (CompilationInput, CompilationResult (..), workflowYaml)
|
|
36
|
+
import qualified Workflow.Algebra.Compile as Core
|
|
37
|
+
import Workflow.Algebra.CompilerConfig (CompilerConfig, compilerConfig)
|
|
38
|
+
import Workflow.Algebra.Flow (
|
|
39
|
+
Delivery,
|
|
40
|
+
Flow,
|
|
41
|
+
System,
|
|
42
|
+
defaultBound,
|
|
43
|
+
emit,
|
|
44
|
+
produce,
|
|
45
|
+
(<@),
|
|
46
|
+
(<|>),
|
|
47
|
+
(<||),
|
|
48
|
+
(<~),
|
|
49
|
+
(|>),
|
|
50
|
+
(||>),
|
|
51
|
+
)
|
|
52
|
+
import Workflow.Algebra.Net (
|
|
53
|
+
ErrorOrigin,
|
|
54
|
+
OriginPhase,
|
|
55
|
+
authorPathText,
|
|
56
|
+
errorOriginAuthorPath,
|
|
57
|
+
errorOriginPhaseStack,
|
|
58
|
+
netErrorCode,
|
|
59
|
+
netFailureCause,
|
|
60
|
+
netFailureOrigins,
|
|
61
|
+
originPhaseKind,
|
|
62
|
+
originPhaseOwner,
|
|
63
|
+
originPhaseToken,
|
|
64
|
+
recurrenceOwnerToken,
|
|
65
|
+
renderNetError,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
compileWith ::
|
|
69
|
+
(CompilationInput output) =>
|
|
70
|
+
CompilerConfig ->
|
|
71
|
+
Flow (Delivery System entry Task) output ->
|
|
72
|
+
CompilationResult
|
|
73
|
+
compileWith = Core.compileWith
|
|
74
|
+
|
|
75
|
+
withCompilerConfig :: Integer -> Integer -> (CompilerConfig -> IO ()) -> IO ()
|
|
76
|
+
withCompilerConfig _fanDefault _recurrenceDefault _action =
|
|
77
|
+
case compilerConfig _fanDefault _recurrenceDefault of
|
|
78
|
+
Left err -> fail (show err)
|
|
79
|
+
Right _compilerConfig -> _action _compilerConfig
|
|
80
|
+
|
|
81
|
+
{- | Emit the closed child-process protocol with UTF-8 and literal LF before any
|
|
82
|
+
result byte; a handle-configuration failure remains an untagged tool failure.
|
|
83
|
+
-}
|
|
84
|
+
emitOutcome :: CompilationResult -> IO ()
|
|
85
|
+
emitOutcome outcome = do
|
|
86
|
+
hSetEncoding stdout utf8
|
|
87
|
+
hSetEncoding stderr utf8
|
|
88
|
+
hSetNewlineMode stdout noNewlineTranslation
|
|
89
|
+
hSetNewlineMode stderr noNewlineTranslation
|
|
90
|
+
case outcome of
|
|
91
|
+
WorkflowCompiled emission ->
|
|
92
|
+
let yaml = workflowYaml emission
|
|
93
|
+
in if T.null yaml
|
|
94
|
+
then fail "authoring compiler returned empty YAML"
|
|
95
|
+
else TIO.hPutStr stdout yaml
|
|
96
|
+
WorkflowFailed failure -> do
|
|
97
|
+
let cause = netFailureCause failure
|
|
98
|
+
TIO.hPutStrLn stderr (T.pack "AUTHORING_NET_ERROR/4")
|
|
99
|
+
TIO.hPutStrLn stderr (netErrorCode cause)
|
|
100
|
+
TIO.hPutStrLn stderr (renderOrigins (netFailureOrigins failure))
|
|
101
|
+
TIO.hPutStrLn stderr (renderNetError cause)
|
|
102
|
+
exitWith (ExitFailure 20)
|
|
103
|
+
UnsupportedChoiceProjection _ -> do
|
|
104
|
+
TIO.hPutStrLn stderr (T.pack "AUTHORING_CAPABILITY/1")
|
|
105
|
+
TIO.hPutStrLn stderr (T.pack "unsupported_choice_projection")
|
|
106
|
+
exitWith (ExitFailure 21)
|
|
107
|
+
|
|
108
|
+
renderOrigins :: NE.NonEmpty ErrorOrigin -> Text
|
|
109
|
+
renderOrigins origins =
|
|
110
|
+
T.pack "[" <> T.intercalate (T.pack ",") (fmap renderOrigin (NE.toList origins)) <> T.pack "]"
|
|
111
|
+
|
|
112
|
+
renderOrigin :: ErrorOrigin -> Text
|
|
113
|
+
renderOrigin origin =
|
|
114
|
+
T.pack "{\"path\":\""
|
|
115
|
+
<> authorPathText (errorOriginAuthorPath origin)
|
|
116
|
+
<> T.pack "\",\"phases\":["
|
|
117
|
+
<> T.intercalate
|
|
118
|
+
(T.pack ",")
|
|
119
|
+
(fmap renderPhase (errorOriginPhaseStack origin))
|
|
120
|
+
<> T.pack "]}"
|
|
121
|
+
|
|
122
|
+
renderPhase :: OriginPhase -> Text
|
|
123
|
+
renderPhase phase =
|
|
124
|
+
T.pack "{\"phase\":\""
|
|
125
|
+
<> originPhaseToken (originPhaseKind phase)
|
|
126
|
+
<> T.pack "\",\"owner\":\""
|
|
127
|
+
<> recurrenceOwnerToken (originPhaseOwner phase)
|
|
128
|
+
<> T.pack "\"}"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Main (main) where
|
|
2
|
+
|
|
3
|
+
import System.Environment (getArgs)
|
|
4
|
+
import System.Exit (ExitCode (ExitFailure), exitWith)
|
|
5
|
+
import System.IO (hPutStrLn, stderr)
|
|
6
|
+
import Text.Read (readMaybe)
|
|
7
|
+
|
|
8
|
+
import Workflow.Algebra.CompilerConfig (
|
|
9
|
+
compilerConfig,
|
|
10
|
+
compilerFanDefault,
|
|
11
|
+
compilerRecurrenceDefault,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
main :: IO ()
|
|
15
|
+
main = do
|
|
16
|
+
args <- getArgs
|
|
17
|
+
case traverse readMaybe args of
|
|
18
|
+
Just [fanDefault, recurrenceDefault] ->
|
|
19
|
+
case compilerConfig fanDefault recurrenceDefault of
|
|
20
|
+
Left err -> hPutStrLn stderr (show err) >> exitWith (ExitFailure 22)
|
|
21
|
+
Right config ->
|
|
22
|
+
putStrLn
|
|
23
|
+
( show (compilerFanDefault config)
|
|
24
|
+
++ ","
|
|
25
|
+
++ show (compilerRecurrenceDefault config)
|
|
26
|
+
)
|
|
27
|
+
_ -> fail "expected two integer compiler defaults"
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"local": {
|
|
4
|
+
"empty_expression": "Enter an expression.",
|
|
5
|
+
"document_limit": "Document exceeds the authoring limit {limit} UTF-16 code units.",
|
|
6
|
+
"syntax_error": "Expression has invalid syntax.",
|
|
7
|
+
"unknown_actor": "Unknown actor '{name}'.",
|
|
8
|
+
"unknown_message": "Unknown message noun '{name}'.",
|
|
9
|
+
"wrong_noun_role": "Noun '{name}' is not valid in {position} position.",
|
|
10
|
+
"natural_limit": "Natural exceeds the authoring limit {limit}.",
|
|
11
|
+
"ast_node_limit": "Expression exceeds the authoring limit {limit} constructors.",
|
|
12
|
+
"ast_depth_limit": "Expression exceeds the authoring limit {limit} constructor levels.",
|
|
13
|
+
"elaborated_flow_node_limit": "Expression exceeds the authoring limit {limit} elaborated Flow constructors."
|
|
14
|
+
},
|
|
15
|
+
"workflow": {
|
|
16
|
+
"non_positive_fan_bound": "A fan bound of zero dispatches nothing: {token:QuantifierOperator} must be positive.",
|
|
17
|
+
"empty_fan_child": "A fan's repeated child cannot be empty: it must contain at least one operation.",
|
|
18
|
+
"duplicate_completion_dispatch_key": "Two fan completions share one dispatch key (owner {owner}, input {input}, dispatch {dispatch}).",
|
|
19
|
+
"duplicate_completion_id": "Two distinct fan completions join to one canonical id '{completion_id}' under the underscore-joined id scheme.",
|
|
20
|
+
"coincident_back_forward": "Emission key {emission} projects one materialized recurrence cell's Back and Forward alternatives to route {route}; one TMC route counter cannot distinguish them.",
|
|
21
|
+
"conflicting_emission_policy": "Emission key {emission} receives incompatible complete policies from one or more physical sites; one WCP handler or selector key cannot represent them.",
|
|
22
|
+
"conflicting_route_policy": "Route {route} receives incompatible complete global policies; one WCP route row cannot represent them.",
|
|
23
|
+
"conflicting_bounded_owners": "Route {route} is shared by incompatible bounded-owner uses in one possible work scope; one TMC route counter cannot preserve their allowances.",
|
|
24
|
+
"conflicting_scoped_traversal_demand": "Route {route} carries incompatible traversal requirements ({low} and {high}) across work scopes; WCP has one max_traversals value per route.",
|
|
25
|
+
"empty_workflow": "An operation-free workflow has no projection: a workflow needs an entry actor, a root task route, and a terminal route.",
|
|
26
|
+
"invalid_root_message": "The root delivery must carry the literal wire name 'task'; this workflow starts with '{wire}'.",
|
|
27
|
+
"reserved_actor_name": "Actor wire name '{wire}' is reserved for the system endpoint.",
|
|
28
|
+
"domain_control_collision": "Domain wire name '{wire}' collides with the reserved control vocabulary.",
|
|
29
|
+
"non_injective_actor_name": "Two distinct actor types reflect to one wire name '{wire}'.",
|
|
30
|
+
"non_injective_message_name": "Two distinct message types reflect to one wire name '{wire}'.",
|
|
31
|
+
"unsafe_actor_name": "Actor wire name '{wire}' falls outside the restricted scalar grammar [a-z][a-z0-9_]*.",
|
|
32
|
+
"unsafe_message_name": "Message wire name '{wire}' falls outside the restricted scalar grammar [a-z][a-z0-9_]*."
|
|
33
|
+
},
|
|
34
|
+
"authoring": {
|
|
35
|
+
"ast_node_count": "ast_node_count exceeds the authoring limit {limit}.",
|
|
36
|
+
"ast_depth": "ast_depth exceeds the authoring limit {limit}.",
|
|
37
|
+
"elaborated_flow_node_count": "elaborated_flow_node_count exceeds the authoring limit {limit}.",
|
|
38
|
+
"max_items": "Dispatch {token:QuantifierOperator} exceeds the authoring limit {limit}.",
|
|
39
|
+
"max_revisions": "Choice {token:QuantifierOperator} exceeds the authoring limit {limit}.",
|
|
40
|
+
"document_length_utf16": "document_length_utf16 exceeds the authoring limit {limit}.",
|
|
41
|
+
"prompt": "Prompt exceeds the authoring limit {limit} at '/prompt'.",
|
|
42
|
+
"expression": "Expression exceeds the authoring limit {limit} at '/expression'."
|
|
43
|
+
},
|
|
44
|
+
"service": {
|
|
45
|
+
"ghc_type_error": "Mismatch between expected and actual Actors. Actual: {actual} Expected: {expected}. (GHC-83865)",
|
|
46
|
+
"tool_protocol_error": "The compiler returned an invalid result envelope.",
|
|
47
|
+
"tool_process_error": "The compiler process failed outside the authored expression.",
|
|
48
|
+
"tool_output_limit": "Compiler output exceeded {limit} bytes.",
|
|
49
|
+
"tool_configuration_error": "The complete team configuration is unavailable.",
|
|
50
|
+
"tool_unavailable": "The local authoring compiler is unavailable.",
|
|
51
|
+
"tool_timeout": "Compilation exceeded {limit} seconds.",
|
|
52
|
+
"tool_busy": "Another compilation is already running.",
|
|
53
|
+
"run_busy": "Another Meadow run is already running.",
|
|
54
|
+
"invalid_json": "Request body is not valid JSON.",
|
|
55
|
+
"invalid_envelope": "Request envelope is invalid at '{pointer}'.",
|
|
56
|
+
"invalid_envelope_detail": "Request envelope is invalid at '{pointer}': {problem}",
|
|
57
|
+
"invalid_ast": "Raw AST is invalid at '{pointer}'.",
|
|
58
|
+
"request_too_large": "Request body exceeds {limit} bytes.",
|
|
59
|
+
"yaml_override_invalid_yaml": "yaml_override is not valid YAML.",
|
|
60
|
+
"yaml_override_not_mapping": "yaml_override is not a single YAML mapping.",
|
|
61
|
+
"yaml_override_missing_workflow": "yaml_override has no top-level 'workflow' key.",
|
|
62
|
+
"directory_not_found": "The selected directory does not exist.",
|
|
63
|
+
"not_a_directory": "The selected path is not a directory.",
|
|
64
|
+
"directory_unreadable": "The selected directory cannot be read.",
|
|
65
|
+
"dsl_expression_default_not_found": "The default DSL expression file is not present.",
|
|
66
|
+
"dsl_expression_default_unreadable": "The default DSL expression file cannot be read.",
|
|
67
|
+
"dsl_expression_default_not_utf8": "The default DSL expression file is not valid UTF-8.",
|
|
68
|
+
"theme_not_found": "The highlight theme file is not present.",
|
|
69
|
+
"theme_unreadable": "The highlight theme file cannot be read.",
|
|
70
|
+
"theme_not_utf8": "The highlight theme file is not valid UTF-8.",
|
|
71
|
+
"theme_unavailable": "The highlight theme endpoint is unavailable.",
|
|
72
|
+
"theme_not_applied": "The highlight theme was not applied: {reason}",
|
|
73
|
+
"invalid_target": "The selected target is not a configured Git repository.",
|
|
74
|
+
"meadow_unavailable": "The Meadow executable is unavailable.",
|
|
75
|
+
"meadow_process_error": "The Meadow process could not be completed.",
|
|
76
|
+
"unknown_request": "The requested run is unknown.",
|
|
77
|
+
"unsupported_choice_projection": "Choice output has no supported projection in this delivery.",
|
|
78
|
+
"ghc_boundary_type_error": "Expression has incompatible workflow boundaries. ({code})"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ExplorerOrchestrator -> ExplorationRequest
|
|
2
|
+
[[ Explorer -> ExplorationResponse
|
|
3
|
+
]> WorldModel
|
|
4
|
+
|> Planner -> Plan
|
|
5
|
+
<~ Reviewer -> RevisionRequest | Plan
|
|
6
|
+
|> ImplementerOrchestrator -> CheckpointRequest
|
|
7
|
+
[[ Implementer -> CheckpointImplementation
|
|
8
|
+
<~ CheckpointReviewer -> CheckpointRevisionRequest | CheckpointImplementation
|
|
9
|
+
]> Implementation
|
|
10
|
+
<~ ComprehensiveReviewer -> WorkRequired | Implementation
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
reset_on: {}
|
|
3
|
+
|
|
4
|
+
# To enable resets, replace reset_on: {} with a mapping like this:
|
|
5
|
+
# reset_on:
|
|
6
|
+
# Implementer:
|
|
7
|
+
# - CheckpointRevisionRequest
|
|
8
|
+
# - RevisionRequest
|
|
9
|
+
# Actor and message names must match vocabulary.json exactly.
|
|
10
|
+
# Each matching handler starts from initial actor state on every invocation.
|
|
11
|
+
# Restart the authoring application after editing this file; vocabulary regeneration is unnecessary.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"max_request_bytes": 65536,
|
|
4
|
+
"max_json_container_depth": 64,
|
|
5
|
+
"max_document_length_utf16": 65536,
|
|
6
|
+
"max_ast_nodes": 256,
|
|
7
|
+
"max_ast_depth": 32,
|
|
8
|
+
"max_elaborated_flow_nodes": 1280,
|
|
9
|
+
"max_natural": 9007199254740991,
|
|
10
|
+
"max_output_bytes": 1048576,
|
|
11
|
+
"timeout_seconds": 30,
|
|
12
|
+
"wasm_startup_timeout_seconds": 120,
|
|
13
|
+
"kill_grace_seconds": 2,
|
|
14
|
+
"max_concurrent_compiles": 1,
|
|
15
|
+
"max_queued_compiles": 0,
|
|
16
|
+
"max_prompt_codepoints": 65000,
|
|
17
|
+
"max_expression_codepoints": 65536,
|
|
18
|
+
"max_run_log_slice_bytes": 65536,
|
|
19
|
+
"max_concurrent_runs": 4,
|
|
20
|
+
"max_retained_exited_runs": 32,
|
|
21
|
+
"run_log_directory": null,
|
|
22
|
+
"wasm_cache_directory": null
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"roles": {
|
|
4
|
+
"produce": { "color": "#a6a6a6", "weight": 400, "style": "normal" },
|
|
5
|
+
"recur": { "color": "#ffd566", "weight": 800, "style": "normal" },
|
|
6
|
+
"pipe": { "color": "#ffd566", "weight": 800, "style": "normal" },
|
|
7
|
+
"fanOpen": { "color": "#d692e0", "weight": 400, "style": "normal" },
|
|
8
|
+
"fanClose": { "color": "#d692e0", "weight": 400, "style": "normal" },
|
|
9
|
+
"quantifier": { "color": "#9ebeff", "weight": 650, "style": "normal" },
|
|
10
|
+
"choice": { "color": "#9ebeff", "weight": 650, "style": "normal" },
|
|
11
|
+
"actor": { "color": "#7ddcb0", "weight": 650, "style": "normal" },
|
|
12
|
+
"message": { "color": "#9ebeff", "weight": 650, "style": "normal" },
|
|
13
|
+
"natural": { "color": "#cdaaff", "weight": 400, "style": "normal" },
|
|
14
|
+
"grouping": { "color": "#a6a6a6", "weight": 400, "style": "normal" },
|
|
15
|
+
"comment": { "color": "#808080", "weight": 400, "style": "italic" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"tokens": {
|
|
4
|
+
"PipeOperator": {
|
|
5
|
+
"haskell": "|>",
|
|
6
|
+
"surface": "=>"
|
|
7
|
+
},
|
|
8
|
+
"RecurOperator": {
|
|
9
|
+
"haskell": "<~",
|
|
10
|
+
"surface": "<~"
|
|
11
|
+
},
|
|
12
|
+
"FanOpenDelimiter": {
|
|
13
|
+
"haskell": "<||",
|
|
14
|
+
"surface": "<<"
|
|
15
|
+
},
|
|
16
|
+
"FanCloseDelimiter": {
|
|
17
|
+
"haskell": "||>",
|
|
18
|
+
"surface": ">>"
|
|
19
|
+
},
|
|
20
|
+
"ProduceKeyword": {
|
|
21
|
+
"haskell": "produce",
|
|
22
|
+
"surface": "->"
|
|
23
|
+
},
|
|
24
|
+
"QuantifierOperator": {
|
|
25
|
+
"haskell": "<@",
|
|
26
|
+
"surface": "@"
|
|
27
|
+
},
|
|
28
|
+
"ChoiceOperator": {
|
|
29
|
+
"haskell": "<|>",
|
|
30
|
+
"surface": "|"
|
|
31
|
+
},
|
|
32
|
+
"LineComment": {
|
|
33
|
+
"haskell": "--",
|
|
34
|
+
"surface": "--"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# **This is compiled YAML**
|
|
2
|
+
# You may edit this YAML before running the workflow,
|
|
3
|
+
# but editing the associated workflow language
|
|
4
|
+
# expression will trigger a recompile and overwrite
|
|
5
|
+
# any changes you may have made.
|
|
6
|
+
|
|
7
|
+
project:
|
|
8
|
+
lint_commands: []
|
|
9
|
+
build_commands: []
|
|
10
|
+
test_commands: []
|
|
11
|
+
memory_globs:
|
|
12
|
+
- README.md
|
|
13
|
+
- AGENTS.md
|
|
14
|
+
- CODING_STANDARDS.md
|
|
15
|
+
- RIGOR.md
|
|
16
|
+
# setup_script: ${MEADOW_SETUP_SCRIPT}
|
|
17
|
+
|
|
18
|
+
roles:
|
|
19
|
+
default:
|
|
20
|
+
provider_id: meadow_bridge
|
|
21
|
+
model_id: gpt-5.6-luna
|
|
22
|
+
variant: low
|
|
23
|
+
concurrency: 20
|
|
24
|
+
# reviewer:
|
|
25
|
+
# actor: reviewer
|
|
26
|
+
# provider_id: meadow_bridge
|
|
27
|
+
# model_id: gpt-5.6-sol
|
|
28
|
+
# variant: max
|
|
29
|
+
# concurrency: 16
|
|
30
|
+
# explorerorchestrator:
|
|
31
|
+
# actor: explorerorchestrator
|
|
32
|
+
# provider_id: meadow_bridge
|
|
33
|
+
# model_id: gpt-5.6-terra
|
|
34
|
+
# variant: max
|
|
35
|
+
# concurrency: 16
|
|
36
|
+
# explorer:
|
|
37
|
+
# actor: explorer
|
|
38
|
+
# provider_id: meadow_bridge
|
|
39
|
+
# model_id: gpt-5.6-terra
|
|
40
|
+
# variant: xhigh
|
|
41
|
+
# concurrency: 16
|
|
42
|
+
# verticalplanner:
|
|
43
|
+
# actor: verticalplanner
|
|
44
|
+
# provider_id: meadow_bridge
|
|
45
|
+
# model_id: gpt-5.6-sol
|
|
46
|
+
# variant: max
|
|
47
|
+
# concurrency: 16
|
|
48
|
+
# implementer:
|
|
49
|
+
# actor: implementer
|
|
50
|
+
# provider_id: meadow_bridge
|
|
51
|
+
# model_id: gpt-5.6-sol
|
|
52
|
+
# variant: max
|
|
53
|
+
# concurrency: 16
|
|
54
|
+
# implementerorchestrator:
|
|
55
|
+
# actor: implementerorchestrator
|
|
56
|
+
# provider_id: meadow_bridge
|
|
57
|
+
# model_id: gpt-5.6-sol
|
|
58
|
+
# variant: xhigh
|
|
59
|
+
# concurrency: 1
|
|
60
|
+
# planner:
|
|
61
|
+
# actor: planner
|
|
62
|
+
# provider_id: meadow_bridge
|
|
63
|
+
# model_id: gpt-5.6-sol
|
|
64
|
+
# variant: max
|
|
65
|
+
# concurrency: 16
|
|
66
|
+
# writer:
|
|
67
|
+
# actor: writer
|
|
68
|
+
# provider_id: meadow_bridge
|
|
69
|
+
# model_id: gpt-5.6-terra
|
|
70
|
+
# variant: high
|
|
71
|
+
# concurrency: 16
|
|
72
|
+
# verticalorchestrator:
|
|
73
|
+
# actor: verticalorchestrator
|
|
74
|
+
# provider_id: meadow_bridge
|
|
75
|
+
# model_id: gpt-5.6-terra
|
|
76
|
+
# variant: xhigh
|
|
77
|
+
# concurrency: 16
|
|
78
|
+
# finalreviewer:
|
|
79
|
+
# actor: finalreviewer
|
|
80
|
+
# provider_id: meadow_bridge
|
|
81
|
+
# model_id: gpt-5.6-sol
|
|
82
|
+
# variant: xhigh
|
|
83
|
+
# concurrency: 16
|
|
84
|
+
# reviewerorchestrator:
|
|
85
|
+
# actor: reviewerorchestrator
|
|
86
|
+
# provider_id: meadow_bridge
|
|
87
|
+
# model_id: gpt-5.6-sol
|
|
88
|
+
# variant: xhigh
|
|
89
|
+
# concurrency: 16
|
|
90
|
+
# requirementsanalyst:
|
|
91
|
+
# actor: requirementsanalyst
|
|
92
|
+
# provider_id: meadow_bridge
|
|
93
|
+
# model_id: gpt-5.6-sol
|
|
94
|
+
# variant: max
|
|
95
|
+
# concurrency: 16
|
|
96
|
+
# testauthor:
|
|
97
|
+
# actor: testauthor
|
|
98
|
+
# provider_id: meadow_bridge
|
|
99
|
+
# model_id: gpt-5.6-sol
|
|
100
|
+
# variant: max
|
|
101
|
+
# concurrency: 16
|
|
102
|
+
# sequentialorchestrator:
|
|
103
|
+
# actor: sequentialorchestrator
|
|
104
|
+
# provider_id: meadow_bridge
|
|
105
|
+
# model_id: gpt-5.6-terra
|
|
106
|
+
# variant: high
|
|
107
|
+
# concurrency: 1
|
|
108
|
+
# orchestrator:
|
|
109
|
+
# actor: orchestrator
|
|
110
|
+
# provider_id: meadow_bridge
|
|
111
|
+
# model_id: gpt-5.6-terra
|
|
112
|
+
# variant: max
|
|
113
|
+
# concurrency: 4
|
|
114
|
+
# plannerorchestrator:
|
|
115
|
+
# actor: plannerorchestrator
|
|
116
|
+
# provider_id: meadow_bridge
|
|
117
|
+
# model_id: gpt-5.6-sol
|
|
118
|
+
# variant: max
|
|
119
|
+
# concurrency: 4
|
|
120
|
+
|
|
121
|
+
providers: {}
|
|
122
|
+
# zai-coding-plan:
|
|
123
|
+
# type: api
|
|
124
|
+
# env_key: MEADOW_ZHIPU_API_KEY
|
|
125
|
+
# opencode_key: ZHIPU_API_KEY
|
|
126
|
+
# moonshotai:
|
|
127
|
+
# type: api
|
|
128
|
+
# env_key: MEADOW_MOONSHOT_API_KEY
|
|
129
|
+
# opencode_key: MOONSHOT_API_KEY
|
|
130
|
+
# kimi-for-coding:
|
|
131
|
+
# type: api
|
|
132
|
+
# env_key: MEADOW_KIMI_API_KEY
|
|
133
|
+
# opencode_key: KIMI_API_KEY
|
|
134
|
+
# anthropic:
|
|
135
|
+
# type: api
|
|
136
|
+
# env_key: MEADOW_ANTHROPIC_API_KEY
|
|
137
|
+
# opencode_key: ANTHROPIC_API_KEY
|
|
138
|
+
# openai:
|
|
139
|
+
# type: oauth
|
|
140
|
+
|
|
141
|
+
meadow_bridge:
|
|
142
|
+
max_command_duration_s: 1800
|
|
143
|
+
max_prompt_duration_s: 2400
|
|
144
|
+
capture_raw_events: true
|
|
145
|
+
|
|
146
|
+
opencode:
|
|
147
|
+
timeout_s: 900
|
|
148
|
+
# container_image: localhost/meadow-opencode:1.18.31
|
|
149
|
+
|
|
150
|
+
embeddings:
|
|
151
|
+
enabled: false
|
|
152
|
+
# base_url:
|
|
153
|
+
# api_key: ${MEADOW_EMBEDDING_API_KEY}
|
|
154
|
+
# model: qwen3-embedding-4b
|
|
155
|
+
# dimensions:
|
|
156
|
+
|
|
157
|
+
vector_store:
|
|
158
|
+
enabled: false
|
|
159
|
+
# chunk_size: 1400
|
|
160
|
+
# chunk_overlap: 200
|
|
161
|
+
# top_k: 8
|
|
162
|
+
|
|
163
|
+
scribe:
|
|
164
|
+
enabled: false
|
|
165
|
+
# provider_id: ${MEADOW_DEFAULT_SCRIBE_PROVIDER_ID}
|
|
166
|
+
# model_id: ${MEADOW_DEFAULT_SCRIBE_MODEL_ID}
|
|
167
|
+
# variant: ${MEADOW_DEFAULT_SCRIBE_MODEL_VARIANT}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 3,
|
|
3
|
+
"actors": [
|
|
4
|
+
"Architect",
|
|
5
|
+
"CheckpointReviewer",
|
|
6
|
+
"ComprehensiveReviewer",
|
|
7
|
+
"Explorer",
|
|
8
|
+
"ExplorerOrchestrator",
|
|
9
|
+
"Implementer",
|
|
10
|
+
"ImplementerOrchestrator",
|
|
11
|
+
"Investigator",
|
|
12
|
+
"Loop",
|
|
13
|
+
"Orchestrator",
|
|
14
|
+
"Planner",
|
|
15
|
+
"PlannerOrchestrator",
|
|
16
|
+
"RequirementsAnalyst",
|
|
17
|
+
"ReviewerOrchestrator",
|
|
18
|
+
"Reviewer",
|
|
19
|
+
"TestAuthor",
|
|
20
|
+
"VerticalPlanner",
|
|
21
|
+
"VerticalOrchestrator",
|
|
22
|
+
"Writer",
|
|
23
|
+
"ActorA",
|
|
24
|
+
"ActorB",
|
|
25
|
+
"ActorC",
|
|
26
|
+
"ActorD",
|
|
27
|
+
"ActorE",
|
|
28
|
+
"ActorF"
|
|
29
|
+
],
|
|
30
|
+
"messages": [
|
|
31
|
+
"Analysis",
|
|
32
|
+
"Architecture",
|
|
33
|
+
"Assignments",
|
|
34
|
+
"CompletedSlice",
|
|
35
|
+
"Design",
|
|
36
|
+
"Document",
|
|
37
|
+
"CheckpointRequest",
|
|
38
|
+
"CheckpointImplementation",
|
|
39
|
+
"Checkpoint",
|
|
40
|
+
"CheckpointRevisionRequest",
|
|
41
|
+
"ExplorationRequest",
|
|
42
|
+
"ExplorationResponse",
|
|
43
|
+
"ExplorationResult",
|
|
44
|
+
"ExplorationTask",
|
|
45
|
+
"Implementation",
|
|
46
|
+
"ImplementationWork",
|
|
47
|
+
"Next",
|
|
48
|
+
"NotAllCheckpointsComplete",
|
|
49
|
+
"Plan",
|
|
50
|
+
"PlanRequest",
|
|
51
|
+
"PlanResponse",
|
|
52
|
+
"PlanningSlice",
|
|
53
|
+
"Request",
|
|
54
|
+
"Requirements",
|
|
55
|
+
"Result",
|
|
56
|
+
"RevisionRequest",
|
|
57
|
+
"Review",
|
|
58
|
+
"ReviewRequest",
|
|
59
|
+
"ReviewResponse",
|
|
60
|
+
"RootCause",
|
|
61
|
+
"SemanticIndex",
|
|
62
|
+
"Specification",
|
|
63
|
+
"Subtask",
|
|
64
|
+
"Subtasks",
|
|
65
|
+
"Task",
|
|
66
|
+
"Tests",
|
|
67
|
+
"WorkRequired",
|
|
68
|
+
"WorkItem",
|
|
69
|
+
"WorkItems",
|
|
70
|
+
"WorldModel",
|
|
71
|
+
"MessageA",
|
|
72
|
+
"MessageB",
|
|
73
|
+
"MessageC",
|
|
74
|
+
"MessageD",
|
|
75
|
+
"MessageE",
|
|
76
|
+
"MessageF",
|
|
77
|
+
"MessageG"
|
|
78
|
+
]
|
|
79
|
+
}
|