devflow-engine 1.2.4__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.
- devflow_engine/__init__.py +1 -1
- devflow_engine/errors/error_solver_dag.py +74 -1
- {devflow_engine-1.2.4.dist-info → devflow_engine-1.2.6.dist-info}/METADATA +1 -1
- {devflow_engine-1.2.4.dist-info → devflow_engine-1.2.6.dist-info}/RECORD +6 -6
- {devflow_engine-1.2.4.dist-info → devflow_engine-1.2.6.dist-info}/WHEEL +0 -0
- {devflow_engine-1.2.4.dist-info → devflow_engine-1.2.6.dist-info}/entry_points.txt +0 -0
devflow_engine/__init__.py
CHANGED
|
@@ -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,
|
|
@@ -677,7 +730,12 @@ def _git_changes_since(repo_root: Path, *, unix_ts: int | None) -> dict[str, Any
|
|
|
677
730
|
|
|
678
731
|
def _load_prior_runs(*, store: ExecutionStore, repo_root: Path, error_task_id: str, fingerprint: str | None) -> dict[str, Any]:
|
|
679
732
|
if not fingerprint:
|
|
680
|
-
return {
|
|
733
|
+
return {
|
|
734
|
+
"resolvedSiblings": [],
|
|
735
|
+
"latestResolved": None,
|
|
736
|
+
"gitChangesSinceLatestResolved": {"summary": "", "commits": []},
|
|
737
|
+
"devJournal": {"entries": [], "summary": ""},
|
|
738
|
+
}
|
|
681
739
|
|
|
682
740
|
resolved_rows: list[dict[str, Any]] = []
|
|
683
741
|
with store._connect() as conn:
|
|
@@ -718,6 +776,13 @@ def _load_prior_runs(*, store: ExecutionStore, repo_root: Path, error_task_id: s
|
|
|
718
776
|
)
|
|
719
777
|
|
|
720
778
|
latest = resolved_rows[0] if resolved_rows else None
|
|
779
|
+
if latest is None:
|
|
780
|
+
return {
|
|
781
|
+
"resolvedSiblings": [],
|
|
782
|
+
"latestResolved": None,
|
|
783
|
+
"gitChangesSinceLatestResolved": {"summary": "", "commits": []},
|
|
784
|
+
"devJournal": {"entries": [], "summary": ""},
|
|
785
|
+
}
|
|
721
786
|
latest_ts = int(latest["updatedAt"]) if latest and latest.get("updatedAt") else None
|
|
722
787
|
return {
|
|
723
788
|
"resolvedSiblings": resolved_rows,
|
|
@@ -882,6 +947,14 @@ class BuildObservabilityNode(Node):
|
|
|
882
947
|
|
|
883
948
|
if cached_observation is not None:
|
|
884
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}
|
|
885
958
|
else:
|
|
886
959
|
fn: Callable[[dict[str, Any]], dict[str, Any]] = funcs["build_observability_fn"]
|
|
887
960
|
out = fn(context)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
devflow_engine/__init__.py,sha256=
|
|
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=
|
|
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.
|
|
386
|
-
devflow_engine-1.2.
|
|
387
|
-
devflow_engine-1.2.
|
|
388
|
-
devflow_engine-1.2.
|
|
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,,
|
|
File without changes
|
|
File without changes
|