devflow-cli 10.2.4__py3-none-any.whl → 10.2.5__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_cli/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """devflow CLI — workflow de développement adaptatif."""
2
2
 
3
- VERSION = "10.2.4"
3
+ VERSION = "10.2.5"
4
4
 
5
5
  ACTIVITY_LINEAR_MAPPING = {
6
6
  "assess": "Backlog",
@@ -1235,7 +1235,10 @@ def _operational_status(
1235
1235
  result_file, result = _latest_activity_result(feature_dir, state.currentActivity)
1236
1236
  blockers = result.get("blockers", []) if isinstance(result, dict) else []
1237
1237
  risks = latest_remaining_risks(feature_dir, state)
1238
- if not isinstance(blockers, list):
1238
+ if not isinstance(blockers, list) or (
1239
+ result_file == activity_result_file(feature_dir, state.currentActivity)
1240
+ and _blocked_result_lifted(result, state)
1241
+ ):
1239
1242
  blockers = []
1240
1243
  stale: set[str] = set()
1241
1244
  if state.status != "completed": # aucune gate ne consulte la peremption apres done
@@ -1284,6 +1287,39 @@ def _operational_status(
1284
1287
  }
1285
1288
 
1286
1289
 
1290
+ def _parse_utc(value: object) -> datetime | None:
1291
+ try:
1292
+ return datetime.strptime(str(value), "%Y-%m-%dT%H:%M:%SZ")
1293
+ except ValueError:
1294
+ return None
1295
+
1296
+
1297
+ def _blocked_result_lifted(result: dict, state: AdaptiveWorkflowState) -> bool:
1298
+ """KKS-727 (D4) : un resultat bloque anterieur a un verify --refresh reussi est leve.
1299
+
1300
+ Le fichier n'est pas touche ; sans horodatage lisible, le blocage reste affiche.
1301
+ """
1302
+ if result.get("status") != "blocked":
1303
+ return False
1304
+ observation = result.get("observation")
1305
+ observed = (
1306
+ _parse_utc(observation.get("observedAt"))
1307
+ if isinstance(observation, dict) else None
1308
+ )
1309
+ if observed is None:
1310
+ return False
1311
+ for entry in state.evidence.values():
1312
+ recorded = _parse_utc(entry.get("recordedAt"))
1313
+ if (
1314
+ entry.get("source") == "devflow"
1315
+ and entry.get("outcome") == "passed"
1316
+ and recorded is not None
1317
+ and recorded > observed
1318
+ ):
1319
+ return True
1320
+ return False
1321
+
1322
+
1287
1323
  def _print_operational_status(payload: dict) -> None:
1288
1324
  console.rule(f"[bold]devflow — {payload['issueId']}[/bold]")
1289
1325
  console.print(f"Profil : [bold]{payload['profile']}[/bold]")
@@ -181,6 +181,16 @@ def run_current_activity(
181
181
  validate_preflight_evidence(
182
182
  feature_dir / "preflight-evidence.md", newer_than=upstream
183
183
  )
184
+ if contract.activity in {"review", "rollback-check"}:
185
+ # KKS-727 (D1) : des preuves de verify deja perimees donneraient le refus
186
+ # d'apres agent ; meme code et meme texte, sans lancer l'agent. Le
187
+ # controle a l'application du resultat reste (D2).
188
+ try:
189
+ ensure_fresh_devflow_evidence(feature_dir, state, contract.activity)
190
+ except ValueError as exc:
191
+ return AdaptiveRunOutcome(
192
+ "transition-refused", contract.activity, contract.activity, str(exc)
193
+ )
184
194
  except BaseObservationError as exc:
185
195
  return AdaptiveRunOutcome(
186
196
  exc.reason, state.currentActivity, state.currentActivity, str(exc)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-cli
3
- Version: 10.2.4
3
+ Version: 10.2.5
4
4
  Summary: Workflow adaptatif pour Claude Code : profils, preuves et contrats d'activité
5
5
  Project-URL: Homepage, https://github.com/sopequenoteck/devflow
6
6
  Project-URL: Repository, https://github.com/sopequenoteck/devflow
@@ -1,10 +1,10 @@
1
- devflow_cli/__init__.py,sha256=_Fbfdy4HxavVa8uh0Wxlrd9xyRwsaxn-tNMxxw7Pv3s,871
1
+ devflow_cli/__init__.py,sha256=qI2n_r6YMtaHylUEp0IK7p9sSfj_z-y4zGv2VQ8Huy0,871
2
2
  devflow_cli/cli.py,sha256=QQktLkHK1cEAj0ZlEuGKYumm3xJUHM-aeC-E2RgfcEY,2136
3
3
  devflow_cli/adapters/__init__.py,sha256=z1J7_YJHcgak2a6dTZpOUKKwf-K7UwRqGzS8XY9duC0,299
4
4
  devflow_cli/adapters/agents.py,sha256=-9zmNlFmQfP2pOGxA3_SSKij8ScR76J4-sgv4GMBWEI,18530
5
5
  devflow_cli/adapters/linear.py,sha256=xHKjMuL3fFJEDBF65pPJ-yWHpXom999UAU2A0C7_QeI,8362
6
6
  devflow_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- devflow_cli/commands/adaptive.py,sha256=J2QS249_0T-B1__ST3qTG3GW3lxDX9WQNZYjCEz_uTc,66416
7
+ devflow_cli/commands/adaptive.py,sha256=1U9bY-Amxl3mD4Zho9eV0O6vOpAvd788bYDDfzW4TAc,67600
8
8
  devflow_cli/commands/assess.py,sha256=V-E3ft41ljCrqp2WLjR1Dqw-JtswcqsK2nD1-euNbNE,5655
9
9
  devflow_cli/commands/check.py,sha256=nJOHVFvgT3Nq70g-4QGrSDZVwCSetu6g7snZcfLFf9I,4421
10
10
  devflow_cli/commands/docs_sync.py,sha256=Xc0mulpNTjDyeUDumKL7VNG0eumAf3016wEM_dqXpSU,1021
@@ -17,7 +17,7 @@ devflow_cli/commands/upgrade_cmd.py,sha256=7GYe1T7SWzkDSYW9x1G-Dznw9qwKT2uI1gJUc
17
17
  devflow_cli/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  devflow_cli/core/activity_base.py,sha256=eEC_YIr5O7WhCglA7xAEPypVzhcdC6f2h9d-SDDecVA,20475
19
19
  devflow_cli/core/activity_contracts.py,sha256=wL0Y0OnyTptQtFZ1d4BpPiJA2eCK0-8h9cksYdnUAfU,40278
20
- devflow_cli/core/adaptive_runner.py,sha256=AkXtcE-lOjxDnabKdxvv5knx9giZXvvhzuv9LKLS7Mc,49727
20
+ devflow_cli/core/adaptive_runner.py,sha256=pBwcV6u1RaG1VWSvMFGkR4BMdrmu7mpMAynVoooG0Mo,50347
21
21
  devflow_cli/core/adaptive_workflow.py,sha256=DU8iciNOeEDco5uwQUeX9E9Kc2WwaVPoRfWxdpRJyJ4,14416
22
22
  devflow_cli/core/agent_failure.py,sha256=iX4q249lAHeVdD_ZF1aObmU-FX6sjfYP9dfLSnWGAD0,3771
23
23
  devflow_cli/core/agent_run_marker.py,sha256=QW3ScA2ZpqfQdUo5ANTbenDVyY2iHpB_wTaN6VUKlzc,3451
@@ -58,8 +58,8 @@ devflow_cli/utils/strings.py,sha256=bfFXCwBDnFxshgZOYfy6mtysnjiaWO1wFnqBf7HLg4o,
58
58
  devflow_cli/resources/commands/devflow.md,sha256=XLSvVlp0qNicP-SwiDI89jOTmquXzYH5hz1lXF4DGqA,3905
59
59
  devflow_cli/resources/commands/devflow.status.md,sha256=tqjQ1IboU99ztG6C4nunBHGJCvMn3qDqx3AoF4SPjCk,338
60
60
  devflow_cli/resources/templates/constitution-template.md,sha256=uSzNuwF-xIRx8cHt9gloynRjNgDGmnN5z2Xck6fCOsI,2102
61
- devflow_cli-10.2.4.dist-info/METADATA,sha256=fIAIsN_CykKKaChlhNwc4y2inDpE_fRZZUi9LyGokmk,6674
62
- devflow_cli-10.2.4.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
63
- devflow_cli-10.2.4.dist-info/entry_points.txt,sha256=GVJ6bMvFpqyO5589iC4nFKeGTpGIW8aKn_QPPpSZ6kU,48
64
- devflow_cli-10.2.4.dist-info/licenses/LICENSE,sha256=v79PvnmqOdKhQiOa_QcWxng4q8GuGscLOwi7ygUpwpo,1070
65
- devflow_cli-10.2.4.dist-info/RECORD,,
61
+ devflow_cli-10.2.5.dist-info/METADATA,sha256=8m9KC6B51YxFJIoeITDau83dwK7st5SPS-tNb3N3bug,6674
62
+ devflow_cli-10.2.5.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
63
+ devflow_cli-10.2.5.dist-info/entry_points.txt,sha256=GVJ6bMvFpqyO5589iC4nFKeGTpGIW8aKn_QPPpSZ6kU,48
64
+ devflow_cli-10.2.5.dist-info/licenses/LICENSE,sha256=v79PvnmqOdKhQiOa_QcWxng4q8GuGscLOwi7ygUpwpo,1070
65
+ devflow_cli-10.2.5.dist-info/RECORD,,