devflow-engine 1.0.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.
- devflow_engine/__init__.py +3 -0
- devflow_engine/agentic_prompts.py +100 -0
- devflow_engine/agentic_runtime.py +398 -0
- devflow_engine/api_key_flow_harness.py +539 -0
- devflow_engine/api_keys.py +357 -0
- devflow_engine/bootstrap/__init__.py +2 -0
- devflow_engine/bootstrap/provision_from_template.py +84 -0
- devflow_engine/cli/__init__.py +0 -0
- devflow_engine/cli/app.py +7270 -0
- devflow_engine/core/__init__.py +0 -0
- devflow_engine/core/config.py +86 -0
- devflow_engine/core/logging.py +29 -0
- devflow_engine/core/paths.py +45 -0
- devflow_engine/core/toml_kv.py +33 -0
- devflow_engine/devflow_event_worker.py +1292 -0
- devflow_engine/devflow_state.py +201 -0
- devflow_engine/devin2/__init__.py +9 -0
- devflow_engine/devin2/agent_definition.py +120 -0
- devflow_engine/devin2/pi_runner.py +204 -0
- devflow_engine/devin_orchestration.py +69 -0
- devflow_engine/docs/prompts/anti-patterns.md +42 -0
- devflow_engine/docs/prompts/devin-agent-prompt.md +55 -0
- devflow_engine/docs/prompts/devin2-agent-prompt.md +81 -0
- devflow_engine/docs/prompts/examples/devin-vapi-clone-reference-exchange.json +85 -0
- devflow_engine/doctor/__init__.py +2 -0
- devflow_engine/doctor/triage.py +140 -0
- devflow_engine/error/__init__.py +0 -0
- devflow_engine/error/remediation.py +21 -0
- devflow_engine/errors/error_solver_dag.py +522 -0
- devflow_engine/errors/runtime_observability.py +67 -0
- devflow_engine/idea/__init__.py +4 -0
- devflow_engine/idea/actors.py +481 -0
- devflow_engine/idea/agentic.py +465 -0
- devflow_engine/idea/analyze.py +93 -0
- devflow_engine/idea/devin_chat_dag.py +1 -0
- devflow_engine/idea/diff.py +99 -0
- devflow_engine/idea/drafts.py +446 -0
- devflow_engine/idea/idea_creation_dag.py +643 -0
- devflow_engine/idea/ideation_enrichment.py +355 -0
- devflow_engine/idea/ideation_enrichment_worker.py +19 -0
- devflow_engine/idea/paths.py +28 -0
- devflow_engine/idea/promote.py +53 -0
- devflow_engine/idea/redaction.py +27 -0
- devflow_engine/idea/repo_tools.py +1277 -0
- devflow_engine/idea/response_mode.py +30 -0
- devflow_engine/idea/story_pipeline.py +1585 -0
- devflow_engine/idea/sufficiency.py +376 -0
- devflow_engine/idea/traditional_stories.py +1257 -0
- devflow_engine/implementation/__init__.py +0 -0
- devflow_engine/implementation/alembic_preflight.py +700 -0
- devflow_engine/implementation/dag.py +8450 -0
- devflow_engine/implementation/green_gate.py +93 -0
- devflow_engine/implementation/prompts.py +108 -0
- devflow_engine/implementation/test_runtime.py +623 -0
- devflow_engine/integration/__init__.py +19 -0
- devflow_engine/integration/agentic.py +66 -0
- devflow_engine/integration/dag.py +3539 -0
- devflow_engine/integration/prompts.py +114 -0
- devflow_engine/integration/supabase_schema.sql +31 -0
- devflow_engine/integration/supabase_sync.py +177 -0
- devflow_engine/llm/__init__.py +1 -0
- devflow_engine/llm/cli_one_shot.py +84 -0
- devflow_engine/llm/cli_stream.py +371 -0
- devflow_engine/llm/execution_context.py +26 -0
- devflow_engine/llm/invoke.py +1322 -0
- devflow_engine/llm/provider_api.py +304 -0
- devflow_engine/llm/repo_knowledge.py +588 -0
- devflow_engine/llm_primitives.py +315 -0
- devflow_engine/orchestration.py +62 -0
- devflow_engine/planning/__init__.py +0 -0
- devflow_engine/planning/analyze_repo.py +92 -0
- devflow_engine/planning/render_drafts.py +133 -0
- devflow_engine/playground/__init__.py +0 -0
- devflow_engine/playground/hooks.py +26 -0
- devflow_engine/playwright_workflow/__init__.py +5 -0
- devflow_engine/playwright_workflow/dag.py +1317 -0
- devflow_engine/process/__init__.py +5 -0
- devflow_engine/process/dag.py +59 -0
- devflow_engine/project_registration/__init__.py +3 -0
- devflow_engine/project_registration/dag.py +1581 -0
- devflow_engine/project_registry.py +109 -0
- devflow_engine/prompts/devin/generic/prompt.md +6 -0
- devflow_engine/prompts/devin/ideation/prompt.md +263 -0
- devflow_engine/prompts/devin/ideation/scenarios.md +5 -0
- devflow_engine/prompts/devin/ideation_loop/prompt.md +6 -0
- devflow_engine/prompts/devin/insight/prompt.md +11 -0
- devflow_engine/prompts/devin/insight/scenarios.md +5 -0
- devflow_engine/prompts/devin/intake/prompt.md +15 -0
- devflow_engine/prompts/devin/iterate/prompt.md +12 -0
- devflow_engine/prompts/devin/shared/eval_doctrine.md +9 -0
- devflow_engine/prompts/devin/shared/principles.md +246 -0
- devflow_engine/prompts/devin_eval/assessment/prompt.md +18 -0
- devflow_engine/prompts/idea/api_ideation_agent/prompt.md +8 -0
- devflow_engine/prompts/idea/api_insight_agent/prompt.md +8 -0
- devflow_engine/prompts/idea/response_doctrine/prompt.md +18 -0
- devflow_engine/prompts/implementation/dependency_assessment/prompt.md +12 -0
- devflow_engine/prompts/implementation/green/green/prompt.md +11 -0
- devflow_engine/prompts/implementation/green/node_config/prompt.md +3 -0
- devflow_engine/prompts/implementation/green_review/outcome_review/prompt.md +5 -0
- devflow_engine/prompts/implementation/green_review/prior_run_review/prompt.md +5 -0
- devflow_engine/prompts/implementation/red/prompt.md +27 -0
- devflow_engine/prompts/implementation/redreview/prompt.md +23 -0
- devflow_engine/prompts/implementation/redreview_repair/prompt.md +16 -0
- devflow_engine/prompts/implementation/setupdoc/prompt.md +10 -0
- devflow_engine/prompts/implementation/story_planning/prompt.md +13 -0
- devflow_engine/prompts/implementation/test_design/prompt.md +27 -0
- devflow_engine/prompts/integration/README.md +185 -0
- devflow_engine/prompts/integration/green/example.md +67 -0
- devflow_engine/prompts/integration/green/green/prompt.md +10 -0
- devflow_engine/prompts/integration/green/node_config/prompt.md +42 -0
- devflow_engine/prompts/integration/green/past_prompts/20260417T212300/green/prompt.md +15 -0
- devflow_engine/prompts/integration/green/past_prompts/20260417T212300/node_config/prompt.md +42 -0
- devflow_engine/prompts/integration/green_enrich/example.md +79 -0
- devflow_engine/prompts/integration/green_enrich/green_enrich/prompt.md +9 -0
- devflow_engine/prompts/integration/green_enrich/node_config/prompt.md +41 -0
- devflow_engine/prompts/integration/green_enrich/past_prompts/20260417T212300/green_enrich/prompt.md +14 -0
- devflow_engine/prompts/integration/green_enrich/past_prompts/20260417T212300/node_config/prompt.md +41 -0
- devflow_engine/prompts/integration/red/code_repair/prompt.md +12 -0
- devflow_engine/prompts/integration/red/example.md +152 -0
- devflow_engine/prompts/integration/red/node_config/prompt.md +86 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T212300/code_repair/prompt.md +19 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T212300/node_config/prompt.md +84 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T212300/red/prompt.md +16 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T212300/red_repair/prompt.md +15 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T215032/code_repair/prompt.md +10 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T215032/node_config/prompt.md +84 -0
- devflow_engine/prompts/integration/red/past_prompts/20260417T215032/red_repair/prompt.md +11 -0
- devflow_engine/prompts/integration/red/red/prompt.md +11 -0
- devflow_engine/prompts/integration/red/red_repair/prompt.md +12 -0
- devflow_engine/prompts/integration/red_review/example.md +71 -0
- devflow_engine/prompts/integration/red_review/node_config/prompt.md +41 -0
- devflow_engine/prompts/integration/red_review/past_prompts/20260417T212300/node_config/prompt.md +41 -0
- devflow_engine/prompts/integration/red_review/past_prompts/20260417T212300/red_review/prompt.md +15 -0
- devflow_engine/prompts/integration/red_review/red_review/prompt.md +9 -0
- devflow_engine/prompts/integration/resolve/example.md +111 -0
- devflow_engine/prompts/integration/resolve/node_config/prompt.md +64 -0
- devflow_engine/prompts/integration/resolve/past_prompts/20260417T212300/node_config/prompt.md +64 -0
- devflow_engine/prompts/integration/resolve/past_prompts/20260417T212300/resolve_implicated_users/prompt.md +15 -0
- devflow_engine/prompts/integration/resolve/past_prompts/20260417T212300/resolve_side_effects/prompt.md +15 -0
- devflow_engine/prompts/integration/resolve/resolve_implicated_users/prompt.md +10 -0
- devflow_engine/prompts/integration/resolve/resolve_side_effects/prompt.md +10 -0
- devflow_engine/prompts/integration/validate/build_idea_acceptance_coverage/prompt.md +12 -0
- devflow_engine/prompts/integration/validate/code_repair/prompt.md +13 -0
- devflow_engine/prompts/integration/validate/example.md +143 -0
- devflow_engine/prompts/integration/validate/node_config/prompt.md +87 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T212300/code_repair/prompt.md +19 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T212300/node_config/prompt.md +67 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T212300/validate_enrich_gate/prompt.md +17 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T212300/validate_repair/prompt.md +16 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T215032/code_repair/prompt.md +10 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T215032/node_config/prompt.md +67 -0
- devflow_engine/prompts/integration/validate/past_prompts/20260417T215032/validate_repair/prompt.md +9 -0
- devflow_engine/prompts/integration/validate/validate_enrich_gate/prompt.md +10 -0
- devflow_engine/prompts/integration/validate/validate_repair/prompt.md +20 -0
- devflow_engine/prompts/integration/write_workflows/example.md +100 -0
- devflow_engine/prompts/integration/write_workflows/node_config/prompt.md +44 -0
- devflow_engine/prompts/integration/write_workflows/past_prompts/20260417T212300/node_config/prompt.md +44 -0
- devflow_engine/prompts/integration/write_workflows/past_prompts/20260417T212300/write_workflows/prompt.md +17 -0
- devflow_engine/prompts/integration/write_workflows/write_workflows/prompt.md +11 -0
- devflow_engine/prompts/iterate/README.md +7 -0
- devflow_engine/prompts/iterate/coder/prompt.md +11 -0
- devflow_engine/prompts/iterate/framer/prompt.md +11 -0
- devflow_engine/prompts/iterate/iterator/prompt.md +13 -0
- devflow_engine/prompts/iterate/observer/prompt.md +11 -0
- devflow_engine/prompts/recovery/diagnosis/prompt.md +7 -0
- devflow_engine/prompts/recovery/execution/prompt.md +8 -0
- devflow_engine/prompts/recovery/execution_verification/prompt.md +7 -0
- devflow_engine/prompts/recovery/failure_investigation/prompt.md +10 -0
- devflow_engine/prompts/recovery/preflight_health_repo_repair/prompt.md +8 -0
- devflow_engine/prompts/recovery/remediation_execution/prompt.md +11 -0
- devflow_engine/prompts/recovery/root_cause_investigation/prompt.md +12 -0
- devflow_engine/prompts/scope_idea/doctrine/prompt.md +7 -0
- devflow_engine/prompts/source_doc_eval/document/prompt.md +6 -0
- devflow_engine/prompts/source_doc_eval/targeted_mutation/prompt.md +9 -0
- devflow_engine/prompts/source_doc_mutation/domain_entities/prompt.md +6 -0
- devflow_engine/prompts/source_doc_mutation/product_brief/prompt.md +6 -0
- devflow_engine/prompts/source_doc_mutation/project_doc_coherence/prompt.md +7 -0
- devflow_engine/prompts/source_doc_mutation/project_doc_render/prompt.md +9 -0
- devflow_engine/prompts/source_doc_mutation/source_doc_coherence/prompt.md +5 -0
- devflow_engine/prompts/source_doc_mutation/source_doc_enrichment_coherence/prompt.md +6 -0
- devflow_engine/prompts/source_doc_mutation/user_workflows/prompt.md +6 -0
- devflow_engine/prompts/source_scope/doctrine/prompt.md +10 -0
- devflow_engine/prompts/ui_grounding/doctrine/prompt.md +7 -0
- devflow_engine/recovery/__init__.py +3 -0
- devflow_engine/recovery/dag.py +2609 -0
- devflow_engine/recovery/models.py +220 -0
- devflow_engine/refactor.py +93 -0
- devflow_engine/registry/__init__.py +1 -0
- devflow_engine/registry/cards.py +238 -0
- devflow_engine/registry/domain_normalize.py +60 -0
- devflow_engine/registry/effects.py +65 -0
- devflow_engine/registry/enforce_report.py +150 -0
- devflow_engine/registry/module_cards_classify.py +164 -0
- devflow_engine/registry/module_cards_draft.py +184 -0
- devflow_engine/registry/module_cards_gate.py +59 -0
- devflow_engine/registry/packages.py +347 -0
- devflow_engine/registry/pathways.py +323 -0
- devflow_engine/review/__init__.py +11 -0
- devflow_engine/review/dag.py +588 -0
- devflow_engine/review/review_story.py +67 -0
- devflow_engine/scope_idea/__init__.py +3 -0
- devflow_engine/scope_idea/agentic.py +39 -0
- devflow_engine/scope_idea/dag.py +1069 -0
- devflow_engine/scope_idea/models.py +175 -0
- devflow_engine/skills/builtins/devflow/queue_failure_investigation/SKILL.md +112 -0
- devflow_engine/skills/builtins/devflow/queue_idea_to_story/SKILL.md +120 -0
- devflow_engine/skills/builtins/devflow/queue_integration/SKILL.md +105 -0
- devflow_engine/skills/builtins/devflow/queue_recovery/SKILL.md +108 -0
- devflow_engine/skills/builtins/devflow/queue_runtime_core/SKILL.md +155 -0
- devflow_engine/skills/builtins/devflow/queue_story_implementation/SKILL.md +122 -0
- devflow_engine/skills/builtins/devin/idea_to_story_handoff/SKILL.md +120 -0
- devflow_engine/skills/builtins/devin/ideation/SKILL.md +168 -0
- devflow_engine/skills/builtins/devin/ideation/state-and-phrasing-reference.md +18 -0
- devflow_engine/skills/builtins/devin/insight/SKILL.md +22 -0
- devflow_engine/skills/registry.example.yaml +42 -0
- devflow_engine/source_doc_assumptions.py +291 -0
- devflow_engine/source_doc_mutation_dag.py +1606 -0
- devflow_engine/source_doc_mutation_eval.py +417 -0
- devflow_engine/source_doc_mutation_worker.py +25 -0
- devflow_engine/source_docs_schema.py +207 -0
- devflow_engine/source_docs_updater.py +309 -0
- devflow_engine/source_scope/__init__.py +15 -0
- devflow_engine/source_scope/agentic.py +45 -0
- devflow_engine/source_scope/dag.py +1626 -0
- devflow_engine/source_scope/models.py +177 -0
- devflow_engine/stores/__init__.py +0 -0
- devflow_engine/stores/execution_store.py +3534 -0
- devflow_engine/story/__init__.py +0 -0
- devflow_engine/story/contracts.py +160 -0
- devflow_engine/story/discovery.py +47 -0
- devflow_engine/story/evidence.py +118 -0
- devflow_engine/story/hashing.py +27 -0
- devflow_engine/story/implemented_queue_purge.py +148 -0
- devflow_engine/story/indexer.py +105 -0
- devflow_engine/story/io.py +20 -0
- devflow_engine/story/markdown_contracts.py +298 -0
- devflow_engine/story/reconciliation.py +408 -0
- devflow_engine/story/validate_stories.py +149 -0
- devflow_engine/story/validate_tests_story.py +512 -0
- devflow_engine/story/validation.py +133 -0
- devflow_engine/ui_grounding/__init__.py +11 -0
- devflow_engine/ui_grounding/agentic.py +31 -0
- devflow_engine/ui_grounding/dag.py +874 -0
- devflow_engine/ui_grounding/models.py +224 -0
- devflow_engine/ui_grounding/pencil_bridge.py +247 -0
- devflow_engine/vendor/__init__.py +0 -0
- devflow_engine/vendor/datalumina_genai/__init__.py +11 -0
- devflow_engine/vendor/datalumina_genai/core/__init__.py +0 -0
- devflow_engine/vendor/datalumina_genai/core/exceptions.py +9 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/__init__.py +0 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/agent.py +48 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/agent_streaming_node.py +26 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/base.py +89 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/concurrent.py +30 -0
- devflow_engine/vendor/datalumina_genai/core/nodes/router.py +69 -0
- devflow_engine/vendor/datalumina_genai/core/schema.py +72 -0
- devflow_engine/vendor/datalumina_genai/core/task.py +52 -0
- devflow_engine/vendor/datalumina_genai/core/validate.py +139 -0
- devflow_engine/vendor/datalumina_genai/core/workflow.py +200 -0
- devflow_engine/worker.py +1086 -0
- devflow_engine/worker_guard.py +233 -0
- devflow_engine-1.0.0.dist-info/METADATA +235 -0
- devflow_engine-1.0.0.dist-info/RECORD +393 -0
- devflow_engine-1.0.0.dist-info/WHEEL +4 -0
- devflow_engine-1.0.0.dist-info/entry_points.txt +3 -0
- devin/__init__.py +6 -0
- devin/dag.py +58 -0
- devin/dag_two_arm.py +138 -0
- devin/devin_chat_scenario_catalog.json +588 -0
- devin/devin_eval.py +677 -0
- devin/nodes/__init__.py +0 -0
- devin/nodes/ideation/__init__.py +0 -0
- devin/nodes/ideation/node.py +195 -0
- devin/nodes/ideation/playground.py +267 -0
- devin/nodes/ideation/prompt.md +65 -0
- devin/nodes/ideation/scenarios/continue_refinement.py +13 -0
- devin/nodes/ideation/scenarios/continue_refinement_evals.py +18 -0
- devin/nodes/ideation/scenarios/idea_fits_existing_patterns.py +17 -0
- devin/nodes/ideation/scenarios/idea_fits_existing_patterns_evals.py +16 -0
- devin/nodes/ideation/scenarios/large_idea_split.py +4 -0
- devin/nodes/ideation/scenarios/large_idea_split_evals.py +17 -0
- devin/nodes/ideation/scenarios/source_documentation_added.py +4 -0
- devin/nodes/ideation/scenarios/source_documentation_added_evals.py +16 -0
- devin/nodes/ideation/scenarios/user_says_create_it.py +30 -0
- devin/nodes/ideation/scenarios/user_says_create_it_evals.py +23 -0
- devin/nodes/ideation/scenarios/vague_idea.py +16 -0
- devin/nodes/ideation/scenarios/vague_idea_evals.py +47 -0
- devin/nodes/ideation/tools.json +312 -0
- devin/nodes/insight/__init__.py +0 -0
- devin/nodes/insight/node.py +49 -0
- devin/nodes/insight/playground.py +154 -0
- devin/nodes/insight/prompt.md +61 -0
- devin/nodes/insight/scenarios/architecture_pattern_query.py +15 -0
- devin/nodes/insight/scenarios/architecture_pattern_query_evals.py +25 -0
- devin/nodes/insight/scenarios/codebase_exploration.py +15 -0
- devin/nodes/insight/scenarios/codebase_exploration_evals.py +23 -0
- devin/nodes/insight/scenarios/devin_ideation_routing.py +19 -0
- devin/nodes/insight/scenarios/devin_ideation_routing_evals.py +39 -0
- devin/nodes/insight/scenarios/devin_insight_routing.py +20 -0
- devin/nodes/insight/scenarios/devin_insight_routing_evals.py +40 -0
- devin/nodes/insight/scenarios/operational_debugging.py +15 -0
- devin/nodes/insight/scenarios/operational_debugging_evals.py +23 -0
- devin/nodes/insight/scenarios/operational_question.py +9 -0
- devin/nodes/insight/scenarios/operational_question_evals.py +8 -0
- devin/nodes/insight/scenarios/queue_status.py +15 -0
- devin/nodes/insight/scenarios/queue_status_evals.py +23 -0
- devin/nodes/insight/scenarios/source_doc_explanation.py +14 -0
- devin/nodes/insight/scenarios/source_doc_explanation_evals.py +21 -0
- devin/nodes/insight/scenarios/worker_state_check.py +15 -0
- devin/nodes/insight/scenarios/worker_state_check_evals.py +22 -0
- devin/nodes/insight/tools.json +126 -0
- devin/nodes/intake/__init__.py +0 -0
- devin/nodes/intake/node.py +27 -0
- devin/nodes/intake/playground.py +47 -0
- devin/nodes/intake/prompt.md +12 -0
- devin/nodes/intake/scenarios/ideation_routing.py +4 -0
- devin/nodes/intake/scenarios/ideation_routing_evals.py +5 -0
- devin/nodes/intake/scenarios/insight_routing.py +4 -0
- devin/nodes/intake/scenarios/insight_routing_evals.py +5 -0
- devin/nodes/iterate/README.md +44 -0
- devin/nodes/iterate/__init__.py +1 -0
- devin/nodes/iterate/_archived_design_stages/01-objectives-requirements.md +112 -0
- devin/nodes/iterate/_archived_design_stages/02-evals.md +131 -0
- devin/nodes/iterate/_archived_design_stages/03-tools-and-boundaries.md +110 -0
- devin/nodes/iterate/_archived_design_stages/04-harness-and-playground.md +32 -0
- devin/nodes/iterate/_archived_design_stages/05-prompt-deferred.md +11 -0
- devin/nodes/iterate/_archived_design_stages/coder_agent_design/01-objectives-requirements.md +20 -0
- devin/nodes/iterate/_archived_design_stages/coder_agent_design/02-evals.md +8 -0
- devin/nodes/iterate/_archived_design_stages/coder_agent_design/03-tools-and-boundaries.md +14 -0
- devin/nodes/iterate/_archived_design_stages/coder_agent_design/04-harness-and-playground.md +12 -0
- devin/nodes/iterate/_archived_design_stages/framer_agent_design/01-objectives-requirements.md +20 -0
- devin/nodes/iterate/_archived_design_stages/framer_agent_design/02-evals.md +8 -0
- devin/nodes/iterate/_archived_design_stages/framer_agent_design/03-tools-and-boundaries.md +13 -0
- devin/nodes/iterate/_archived_design_stages/framer_agent_design/04-harness-and-playground.md +12 -0
- devin/nodes/iterate/_archived_design_stages/iterator_agent_design/01-objectives-requirements.md +25 -0
- devin/nodes/iterate/_archived_design_stages/iterator_agent_design/02-evals.md +9 -0
- devin/nodes/iterate/_archived_design_stages/iterator_agent_design/03-tools-and-boundaries.md +14 -0
- devin/nodes/iterate/_archived_design_stages/iterator_agent_design/04-harness-and-playground.md +12 -0
- devin/nodes/iterate/_archived_design_stages/observer_agent_design/01-objectives-requirements.md +20 -0
- devin/nodes/iterate/_archived_design_stages/observer_agent_design/02-evals.md +8 -0
- devin/nodes/iterate/_archived_design_stages/observer_agent_design/03-tools-and-boundaries.md +14 -0
- devin/nodes/iterate/_archived_design_stages/observer_agent_design/04-harness-and-playground.md +13 -0
- devin/nodes/iterate/agent-roles.md +89 -0
- devin/nodes/iterate/agents/README.md +10 -0
- devin/nodes/iterate/artifacts.md +504 -0
- devin/nodes/iterate/contract.md +100 -0
- devin/nodes/iterate/eval-plan.md +74 -0
- devin/nodes/iterate/node.py +100 -0
- devin/nodes/iterate/pipeline/README.md +13 -0
- devin/nodes/iterate/playground-contract.md +76 -0
- devin/nodes/iterate/prompt.md +11 -0
- devin/nodes/iterate/scenarios/README.md +38 -0
- devin/nodes/iterate/scenarios/artifact-and-loop-scenarios.md +101 -0
- devin/nodes/iterate/scenarios/coder_artifact_alignment.py +32 -0
- devin/nodes/iterate/scenarios/coder_artifact_alignment_evals.py +45 -0
- devin/nodes/iterate/scenarios/coder_bounded_fix.py +27 -0
- devin/nodes/iterate/scenarios/coder_bounded_fix_evals.py +45 -0
- devin/nodes/iterate/scenarios/devin_iterate_routing.py +21 -0
- devin/nodes/iterate/scenarios/devin_iterate_routing_evals.py +36 -0
- devin/nodes/iterate/scenarios/framer_scope_boundary.py +25 -0
- devin/nodes/iterate/scenarios/framer_scope_boundary_evals.py +57 -0
- devin/nodes/iterate/scenarios/framer_task_framing.py +25 -0
- devin/nodes/iterate/scenarios/framer_task_framing_evals.py +58 -0
- devin/nodes/iterate/scenarios/iterate_error_fix.py +21 -0
- devin/nodes/iterate/scenarios/iterate_error_fix_evals.py +39 -0
- devin/nodes/iterate/scenarios/iterate_quick_change.py +21 -0
- devin/nodes/iterate/scenarios/iterate_quick_change_evals.py +35 -0
- devin/nodes/iterate/scenarios/iterate_to_idea_promotion.py +23 -0
- devin/nodes/iterate/scenarios/iterate_to_idea_promotion_evals.py +53 -0
- devin/nodes/iterate/scenarios/iterate_to_insight_reroute.py +23 -0
- devin/nodes/iterate/scenarios/iterate_to_insight_reroute_evals.py +53 -0
- devin/nodes/iterate/scenarios/observer_evidence_seam.py +28 -0
- devin/nodes/iterate/scenarios/observer_evidence_seam_evals.py +55 -0
- devin/nodes/iterate/scenarios/observer_repro_creation.py +28 -0
- devin/nodes/iterate/scenarios/observer_repro_creation_evals.py +45 -0
- devin/nodes/iterate/scenarios/routing-matrix.md +45 -0
- devin/nodes/shared/__init__.py +0 -0
- devin/nodes/shared/filemaker_expert.md +80 -0
- devin/nodes/shared/filemaker_expert.py +354 -0
- devin/nodes/shared/filemaker_expert_eval/runner.py +176 -0
- devin/nodes/shared/filemaker_expert_eval/scenarios.json +65 -0
- devin/nodes/shared/goldilocks_advisor_eval/runner.py +214 -0
- devin/nodes/shared/goldilocks_advisor_eval/scenarios.json +58 -0
- devin/nodes/shared/helpers.py +156 -0
- devin/nodes/shared/idea_compliance_advisor_eval/runner.py +252 -0
- devin/nodes/shared/idea_compliance_advisor_eval/scenarios.json +75 -0
- devin/nodes/shared/models.py +44 -0
- devin/nodes/shared/post.py +40 -0
- devin/nodes/shared/router.py +107 -0
- devin/nodes/shared/tools.py +191 -0
- devin/shared/devin-chat-rubric.md +237 -0
- devin/shared/devin-chat-scenario-suite.md +90 -0
- devin/shared/eval_doctrine.md +9 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
import uuid
|
|
5
|
+
from collections.abc import Iterable
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
from .discovery import get_story_source_paths
|
|
11
|
+
|
|
12
|
+
ALLOWED_PLANES = ["auth", "api", "ui", "integrations", "ops"]
|
|
13
|
+
|
|
14
|
+
MANDATORY_CONTRACT_FORMATION_MODE_LINE = (
|
|
15
|
+
"CONTRACT FORMATION MODE: implementation is irrelevant; do not compare against current code/UI. "
|
|
16
|
+
"Define user-expected outcomes and test oracles only."
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@dataclass(frozen=True)
|
|
21
|
+
class PlaneOracle:
|
|
22
|
+
plane: str
|
|
23
|
+
oracle: str
|
|
24
|
+
anchor: str
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass(frozen=True)
|
|
28
|
+
class StoryContract:
|
|
29
|
+
story_uuid: str
|
|
30
|
+
story_id: str
|
|
31
|
+
title: str
|
|
32
|
+
required_planes: list[str]
|
|
33
|
+
contract_formation_mode_line_present: bool
|
|
34
|
+
plane_oracles: list[PlaneOracle]
|
|
35
|
+
raw_text: str
|
|
36
|
+
source_path: str
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dataclass(frozen=True)
|
|
40
|
+
class ParsedStoryBlock:
|
|
41
|
+
"""A story contract plus the approximate line where it started (for diagnostics)."""
|
|
42
|
+
|
|
43
|
+
contract: StoryContract
|
|
44
|
+
start_line: int
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
_KEY_RE = re.compile(r"^(story_uuid|story_id|title|required_planes)\s*:\s*(.+?)\s*$")
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _parse_required_planes(value: str) -> list[str]:
|
|
51
|
+
# Accept either bracket-list syntax: [auth, api] or comma-separated: auth, api
|
|
52
|
+
v = value.strip()
|
|
53
|
+
inner = v[1:-1].strip() if v.startswith("[") and v.endswith("]") else v
|
|
54
|
+
if not inner:
|
|
55
|
+
return []
|
|
56
|
+
parts = [p.strip().strip("\"'") for p in inner.split(",")]
|
|
57
|
+
return [p for p in parts if p]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _parse_plane_oracles(lines: list[str], *, start_index: int) -> tuple[list[PlaneOracle], int]:
|
|
61
|
+
# Parses a canonical list block:
|
|
62
|
+
# plane_oracles:
|
|
63
|
+
# - plane: auth
|
|
64
|
+
# oracle: "..."
|
|
65
|
+
# anchor: "..."
|
|
66
|
+
i = start_index
|
|
67
|
+
if i >= len(lines) or lines[i].strip() != "plane_oracles:":
|
|
68
|
+
return ([], start_index)
|
|
69
|
+
i += 1
|
|
70
|
+
|
|
71
|
+
oracles: list[PlaneOracle] = []
|
|
72
|
+
current: dict[str, str] = {}
|
|
73
|
+
|
|
74
|
+
def flush() -> None:
|
|
75
|
+
nonlocal current
|
|
76
|
+
if not current:
|
|
77
|
+
return
|
|
78
|
+
plane = current.get("plane", "").strip()
|
|
79
|
+
oracle = current.get("oracle", "").strip()
|
|
80
|
+
anchor = current.get("anchor", "").strip()
|
|
81
|
+
oracles.append(PlaneOracle(plane=plane, oracle=oracle, anchor=anchor))
|
|
82
|
+
current = {}
|
|
83
|
+
|
|
84
|
+
while i < len(lines):
|
|
85
|
+
line = lines[i]
|
|
86
|
+
stripped = line.strip()
|
|
87
|
+
if stripped == "":
|
|
88
|
+
i += 1
|
|
89
|
+
continue
|
|
90
|
+
|
|
91
|
+
# stop if we hit the start of another story header
|
|
92
|
+
if stripped.startswith("story_uuid:"):
|
|
93
|
+
break
|
|
94
|
+
|
|
95
|
+
if stripped.startswith("-"):
|
|
96
|
+
flush()
|
|
97
|
+
# allow "- plane: auth" or "-plane: auth" (we'll normalize)
|
|
98
|
+
rest = stripped[1:].strip()
|
|
99
|
+
if rest and ":" in rest:
|
|
100
|
+
k, v = rest.split(":", 1)
|
|
101
|
+
current[k.strip()] = v.strip().strip("\"'")
|
|
102
|
+
i += 1
|
|
103
|
+
continue
|
|
104
|
+
|
|
105
|
+
if ":" in stripped:
|
|
106
|
+
k, v = stripped.split(":", 1)
|
|
107
|
+
k = k.strip()
|
|
108
|
+
v = v.strip().strip("\"'")
|
|
109
|
+
if k in {"plane", "oracle", "anchor"}:
|
|
110
|
+
current[k] = v
|
|
111
|
+
i += 1
|
|
112
|
+
continue
|
|
113
|
+
|
|
114
|
+
# Any other non-empty line ends the list block.
|
|
115
|
+
break
|
|
116
|
+
|
|
117
|
+
flush()
|
|
118
|
+
return (oracles, i)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def parse_story_contracts_from_markdown(text: str, *, source_path: str) -> list[ParsedStoryBlock]:
|
|
122
|
+
lines = text.splitlines()
|
|
123
|
+
|
|
124
|
+
# Heuristic boundary: each story starts at a line that begins with story_uuid:
|
|
125
|
+
blocks: list[tuple[int, int]] = []
|
|
126
|
+
starts: list[int] = [idx for idx, line in enumerate(lines) if line.strip().startswith("story_uuid:")]
|
|
127
|
+
if not starts:
|
|
128
|
+
return []
|
|
129
|
+
|
|
130
|
+
for si, start in enumerate(starts):
|
|
131
|
+
end = starts[si + 1] if si + 1 < len(starts) else len(lines)
|
|
132
|
+
blocks.append((start, end))
|
|
133
|
+
|
|
134
|
+
parsed: list[ParsedStoryBlock] = []
|
|
135
|
+
for start, end in blocks:
|
|
136
|
+
block_lines = lines[start:end]
|
|
137
|
+
fields: dict[str, str] = {}
|
|
138
|
+
contract_mode_present = False
|
|
139
|
+
|
|
140
|
+
# First pass: parse key fields anywhere in the block (header generally near top).
|
|
141
|
+
for bl in block_lines:
|
|
142
|
+
if bl.strip() == MANDATORY_CONTRACT_FORMATION_MODE_LINE:
|
|
143
|
+
contract_mode_present = True
|
|
144
|
+
m = _KEY_RE.match(bl.strip())
|
|
145
|
+
if m:
|
|
146
|
+
fields[m.group(1)] = m.group(2).strip().strip("\"'")
|
|
147
|
+
|
|
148
|
+
required_planes = _parse_required_planes(fields.get("required_planes", ""))
|
|
149
|
+
|
|
150
|
+
# Parse plane_oracles list block (find first occurrence)
|
|
151
|
+
po: list[PlaneOracle] = []
|
|
152
|
+
for idx, bl in enumerate(block_lines):
|
|
153
|
+
if bl.strip() == "plane_oracles:":
|
|
154
|
+
po, _ = _parse_plane_oracles(block_lines, start_index=idx)
|
|
155
|
+
break
|
|
156
|
+
|
|
157
|
+
c = StoryContract(
|
|
158
|
+
story_uuid=fields.get("story_uuid", ""),
|
|
159
|
+
story_id=fields.get("story_id", ""),
|
|
160
|
+
title=fields.get("title", ""),
|
|
161
|
+
required_planes=required_planes,
|
|
162
|
+
contract_formation_mode_line_present=contract_mode_present,
|
|
163
|
+
plane_oracles=po,
|
|
164
|
+
raw_text="\n".join(block_lines).strip() + "\n",
|
|
165
|
+
source_path=source_path,
|
|
166
|
+
)
|
|
167
|
+
parsed.append(ParsedStoryBlock(contract=c, start_line=start + 1))
|
|
168
|
+
|
|
169
|
+
return parsed
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def iter_canonical_story_paths(repo_root: Path) -> Iterable[Path]:
|
|
173
|
+
yield from get_story_source_paths(repo_root)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def _as_list(value: Any) -> list[str]:
|
|
177
|
+
if isinstance(value, str):
|
|
178
|
+
text = value.strip()
|
|
179
|
+
return [text] if text else []
|
|
180
|
+
if not isinstance(value, list):
|
|
181
|
+
return []
|
|
182
|
+
items: list[str] = []
|
|
183
|
+
for item in value:
|
|
184
|
+
text = str(item).strip()
|
|
185
|
+
if text:
|
|
186
|
+
items.append(text)
|
|
187
|
+
return items
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def _append_block(lines: list[str], heading: str, body_lines: list[str]) -> None:
|
|
191
|
+
lines.append(heading)
|
|
192
|
+
lines.extend(body_lines if body_lines else ["- TODO"])
|
|
193
|
+
lines.append("")
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def render_canonical_story_markdown(story: dict[str, Any]) -> str:
|
|
197
|
+
story_uuid = str(story.get("story_uuid") or "").strip()
|
|
198
|
+
story_id = str(story.get("story_id") or "").strip()
|
|
199
|
+
title = str(story.get("title") or story_id or "Untitled story").strip()
|
|
200
|
+
required_planes = _as_list(story.get("required_planes"))
|
|
201
|
+
contract_mode = str(story.get("contract_formation_mode") or MANDATORY_CONTRACT_FORMATION_MODE_LINE).strip()
|
|
202
|
+
|
|
203
|
+
evidence_anchors = _as_list(story.get("evidence_anchors"))
|
|
204
|
+
scope_items = _as_list(story.get("scope"))
|
|
205
|
+
if not scope_items:
|
|
206
|
+
if required_planes:
|
|
207
|
+
scope_items.append(f"Required planes: {', '.join(required_planes)}.")
|
|
208
|
+
primary_actor = story.get("primary_actor")
|
|
209
|
+
if isinstance(primary_actor, dict):
|
|
210
|
+
actor_label = str(primary_actor.get("label") or primary_actor.get("id") or "").strip()
|
|
211
|
+
if actor_label:
|
|
212
|
+
scope_items.append(f"Primary actor: {actor_label}.")
|
|
213
|
+
if evidence_anchors:
|
|
214
|
+
scope_items.extend(f"Evidence anchor: {anchor}" for anchor in evidence_anchors)
|
|
215
|
+
source_analysis_id = str(story.get("source_analysis_id") or "").strip()
|
|
216
|
+
if source_analysis_id:
|
|
217
|
+
scope_items.append(f"Source analysis id: {source_analysis_id}.")
|
|
218
|
+
out_of_scope = _as_list(story.get("out_of_scope") or story.get("non_goals")) or [
|
|
219
|
+
"Do not infer unsupported implementation details beyond the reconciled live story JSON."
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
plane_oracles = []
|
|
223
|
+
for item in story.get("plane_oracles") or []:
|
|
224
|
+
if not isinstance(item, dict):
|
|
225
|
+
continue
|
|
226
|
+
plane = str(item.get("plane") or "").strip()
|
|
227
|
+
if not plane:
|
|
228
|
+
continue
|
|
229
|
+
plane_oracles.append(
|
|
230
|
+
{
|
|
231
|
+
"plane": plane,
|
|
232
|
+
"oracle": str(item.get("oracle") or f"{title}: user-observable outcome stays satisfied for the {plane} plane.").strip(),
|
|
233
|
+
"anchor": str(item.get("anchor") or (evidence_anchors[0] if evidence_anchors else f"story:{story_id}:{plane}")).strip(),
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
if not plane_oracles:
|
|
237
|
+
for plane in required_planes:
|
|
238
|
+
plane_oracles.append(
|
|
239
|
+
{
|
|
240
|
+
"plane": plane,
|
|
241
|
+
"oracle": f"{title}: user-observable outcome stays satisfied for the {plane} plane.",
|
|
242
|
+
"anchor": evidence_anchors[0] if evidence_anchors else f"story:{story_id}:{plane}",
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
acceptance_criteria = _as_list(story.get("acceptance_criteria")) or [
|
|
247
|
+
f"{title}: satisfy the documented outcome across {', '.join(required_planes) if required_planes else 'the required'} plane coverage."
|
|
248
|
+
]
|
|
249
|
+
contract_specs = _as_list(story.get("contract_test_spec"))
|
|
250
|
+
if not contract_specs:
|
|
251
|
+
contract_specs = [f"Given the story contract for {story_id or title}"]
|
|
252
|
+
for criterion in acceptance_criteria:
|
|
253
|
+
contract_specs.append(f"Then {criterion}")
|
|
254
|
+
|
|
255
|
+
intent_lines = [str(story.get("intent") or story.get("story_statement") or title).strip()]
|
|
256
|
+
user_value_text = str(story.get("user_value_statement") or story.get("user_value") or "").strip()
|
|
257
|
+
user_value_lines = user_value_text.splitlines() if user_value_text else ["User value is carried by the reconciled live story JSON."]
|
|
258
|
+
|
|
259
|
+
lines: list[str] = [
|
|
260
|
+
f"story_uuid: {story_uuid}",
|
|
261
|
+
f"story_id: {story_id}",
|
|
262
|
+
f"title: {title}",
|
|
263
|
+
f"required_planes: [{', '.join(required_planes)}]",
|
|
264
|
+
"",
|
|
265
|
+
contract_mode,
|
|
266
|
+
"",
|
|
267
|
+
]
|
|
268
|
+
_append_block(lines, "## Intent", intent_lines)
|
|
269
|
+
_append_block(lines, "## User value", user_value_lines)
|
|
270
|
+
_append_block(lines, "## Scope", [f"- {item}" for item in scope_items])
|
|
271
|
+
_append_block(lines, "## Out of scope", [f"- {item}" for item in out_of_scope])
|
|
272
|
+
|
|
273
|
+
lines.append("plane_oracles:")
|
|
274
|
+
for oracle in plane_oracles:
|
|
275
|
+
lines.append(f"- plane: {oracle['plane']}")
|
|
276
|
+
lines.append(f" oracle: \"{oracle['oracle']}\"")
|
|
277
|
+
lines.append(f" anchor: \"{oracle['anchor']}\"")
|
|
278
|
+
lines.append("")
|
|
279
|
+
|
|
280
|
+
_append_block(
|
|
281
|
+
lines,
|
|
282
|
+
"## Acceptance criteria",
|
|
283
|
+
[f"{index}. {item}" for index, item in enumerate(acceptance_criteria, start=1)],
|
|
284
|
+
)
|
|
285
|
+
_append_block(
|
|
286
|
+
lines,
|
|
287
|
+
"## Contract test specs",
|
|
288
|
+
[f"{index}. {item}" for index, item in enumerate(contract_specs, start=1)],
|
|
289
|
+
)
|
|
290
|
+
return "\n".join(lines).rstrip() + "\n"
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
def is_uuid4(value: str) -> bool:
|
|
294
|
+
try:
|
|
295
|
+
u = uuid.UUID(value)
|
|
296
|
+
except Exception:
|
|
297
|
+
return False
|
|
298
|
+
return u.version == 4
|