devflow-engine 1.2.5__py3-none-any.whl → 1.2.6__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.
@@ -1,3 +1,3 @@
1
1
  __all__ = ["__version__"]
2
2
 
3
- __version__ = "1.2.5"
3
+ __version__ = "1.2.6"
@@ -314,6 +314,59 @@ def _validate_ui_observability_repro(
314
314
  return True, None
315
315
 
316
316
 
317
+ def _load_sandbox_observability_artifact(
318
+ *,
319
+ repo_root: Path,
320
+ error_task_id: str,
321
+ runtime_context: dict[str, Any] | None,
322
+ ) -> dict[str, Any] | None:
323
+ obs_dir = repo_root / ".devflow" / "observability" / error_task_id
324
+ output_path = obs_dir / "repro_output.txt"
325
+ if not output_path.is_file():
326
+ return None
327
+
328
+ candidates = [
329
+ p for p in sorted(obs_dir.iterdir())
330
+ if p.is_file() and p.name != "repro_output.txt" and p.suffix.lower() in {".py", ".js", ".jsx", ".ts", ".tsx"}
331
+ ]
332
+ if not candidates:
333
+ return None
334
+
335
+ artifact = candidates[0]
336
+ rel_artifact = artifact.relative_to(repo_root).as_posix()
337
+ output = output_path.read_text(encoding="utf-8", errors="replace")[-12000:]
338
+ report = _as_dict(_as_dict(runtime_context or {}).get("user_report"))
339
+ title = str(report.get("title") or "").strip()
340
+ command = (
341
+ f"cd /workspace && npx playwright test {rel_artifact} --reporter=list"
342
+ if artifact.suffix.lower() in {".js", ".jsx", ".ts", ".tsx"}
343
+ else f"cd /workspace && python {rel_artifact}"
344
+ )
345
+ return {
346
+ "observed": True,
347
+ "confidence": "high",
348
+ "summary": "Recovered existing sandboxed observability repro artifacts.",
349
+ "likely_location": title,
350
+ "affected_files": [],
351
+ "deferred_questions": [],
352
+ "repro_artifact_path": rel_artifact,
353
+ "repro_run_command": command,
354
+ "repro_output": output,
355
+ "repro_oracles": [
356
+ "Sandboxed repro output captures the reported failing behavior before fix dispatch."
357
+ ],
358
+ "repro_tests": [
359
+ {
360
+ "file": rel_artifact,
361
+ "name": artifact.stem,
362
+ "language": artifact.suffix.lstrip("."),
363
+ "rationale": "Recovered from .devflow/observability sandbox artifacts.",
364
+ }
365
+ ],
366
+ "artifact_recovery": True,
367
+ }
368
+
369
+
317
370
  def _persist_fix_proof(
318
371
  *,
319
372
  store: ExecutionStore,
@@ -894,6 +947,14 @@ class BuildObservabilityNode(Node):
894
947
 
895
948
  if cached_observation is not None:
896
949
  out: dict[str, Any] = {"observable": True, "observation": cached_observation, "cache_hit": True}
950
+ elif source_kind == "user_report" and (
951
+ recovered_observation := _load_sandbox_observability_artifact(
952
+ repo_root=repo_root,
953
+ error_task_id=error_task_id,
954
+ runtime_context=context.get("runtimeContext") if isinstance(context.get("runtimeContext"), dict) else None,
955
+ )
956
+ ) is not None:
957
+ out = {"observable": True, "observation": recovered_observation, "artifact_recovery": True}
897
958
  else:
898
959
  fn: Callable[[dict[str, Any]], dict[str, Any]] = funcs["build_observability_fn"]
899
960
  out = fn(context)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devflow-engine
3
- Version: 1.2.5
3
+ Version: 1.2.6
4
4
  Summary: DevFlow v2 CLI-first engine (projects, stories, execution store, review packets)
5
5
  Author: DevFlow
6
6
  License: Proprietary
@@ -1,4 +1,4 @@
1
- devflow_engine/__init__.py,sha256=BjG-4A0W5jUNLQNn-VOizHHitPlUgD8ycR4OdIzqiVA,49
1
+ devflow_engine/__init__.py,sha256=ZH4TwASRH68hz0j2AIAMiU7a1BLsHc0C-1mpWNEszRU,49
2
2
  devflow_engine/agentic_prompts.py,sha256=z5F0lzlrpscG4UBs8chZapF3iAk6eE16yv9i6m1tO3g,4424
3
3
  devflow_engine/agentic_runtime.py,sha256=omfRST0LB6jvULs6ItavtOnqhWI1ZujzWfYqpe57-yI,13912
4
4
  devflow_engine/api_key_flow_harness.py,sha256=LBvibkcgTcTWCgsesvkHXZ2t902iicOab_FlH-Qzdy4,21468
@@ -32,7 +32,7 @@ devflow_engine/devin2/agent_definition.py,sha256=pCp915tojwPlepRpvjlU1DoPuT_anxR
32
32
  devflow_engine/devin2/pi_runner.py,sha256=xRl-qA3RgMFgiR5fnG6fTwwL95PMk6zVdRdFa-fXy2E,7466
33
33
  devflow_engine/error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  devflow_engine/error/remediation.py,sha256=Z4LJQzZPzb7_6tea_XtasDvFYQiEdpkFlyxoCEO1I2k,548
35
- devflow_engine/errors/error_solver_dag.py,sha256=3AwSXowKCvN2qPfmdQpGlP1vZs1484K3ucFMg7gM5Zw,61744
35
+ devflow_engine/errors/error_solver_dag.py,sha256=YBco6kg0mpEvqQhY-tyehBTevHeFTOnwD6iZV6if0JQ,64135
36
36
  devflow_engine/errors/question_classifier.py,sha256=oBJ29hszG--TUna62BQHnNmi6hPwf-wEE8eGLmgS624,9729
37
37
  devflow_engine/errors/repo_quality_judge.py,sha256=LVBaXN6AsID-x8qb-IriQKYY1c9AMMRNo-tWMeiuMaA,9962
38
38
  devflow_engine/errors/runtime_observability.py,sha256=Do93Ah3vxLEocYtC0JpnRIRQN6uNAOkYjBz0pmOqg5g,29719
@@ -382,7 +382,7 @@ devflow_engine/prompts/source_doc_mutation/source_doc_enrichment_coherence/promp
382
382
  devflow_engine/prompts/source_doc_mutation/user_workflows/prompt.md,sha256=2Bv-EkZwzxtPSsDGdw9YuuuzT1c_2R9c6HPSMdP-MD0,406
383
383
  devflow_engine/prompts/source_scope/doctrine/prompt.md,sha256=AJk1gfePTdaBSw5DHvCr7Sigsk2orGaRVNZ3Dj3NdcQ,837
384
384
  devflow_engine/prompts/ui_grounding/doctrine/prompt.md,sha256=0L5y-QjjquPABqxAHZNPkcjyHMZQSDRVncNDQa2app0,409
385
- devflow_engine-1.2.5.dist-info/METADATA,sha256=7Y7iTfjy7KVMpz9VahpEnY-SAPITRsNliQ7kNf3WQ5s,7755
386
- devflow_engine-1.2.5.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
387
- devflow_engine-1.2.5.dist-info/entry_points.txt,sha256=U5Pw4y4v4u4xcRS5DbXfemBg0RKp74kMxcnEoL0MACY,99
388
- devflow_engine-1.2.5.dist-info/RECORD,,
385
+ devflow_engine-1.2.6.dist-info/METADATA,sha256=3Ft8UBgEf8l5FGLTmhZzDEyHeRPd6CVETsIh9Mct-9w,7755
386
+ devflow_engine-1.2.6.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
387
+ devflow_engine-1.2.6.dist-info/entry_points.txt,sha256=U5Pw4y4v4u4xcRS5DbXfemBg0RKp74kMxcnEoL0MACY,99
388
+ devflow_engine-1.2.6.dist-info/RECORD,,