atomicguard 2.1.0__py3-none-any.whl → 2.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.
atomicguard/__init__.py CHANGED
@@ -74,7 +74,7 @@ from atomicguard.infrastructure.persistence import (
74
74
  InMemoryArtifactDAG,
75
75
  )
76
76
 
77
- __version__ = "2.1.0"
77
+ __version__ = "2.2.0"
78
78
 
79
79
  __all__ = [
80
80
  # Version
@@ -67,5 +67,17 @@ class ActionPair:
67
67
  artifact = self._generator.generate(
68
68
  context, self._prompt_template, action_pair_id, workflow_id
69
69
  )
70
+
71
+ # If the generator flagged an error (e.g. PydanticAI validation failure),
72
+ # skip the domain guard — the generator error IS the rejection.
73
+ generator_error = artifact.metadata.get("generator_error")
74
+ if generator_error:
75
+ result = GuardResult(
76
+ passed=False,
77
+ feedback=generator_error,
78
+ guard_name="GeneratorValidation",
79
+ )
80
+ return artifact, result
81
+
70
82
  result = self._guard.validate(artifact, **dependencies)
71
83
  return artifact, result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomicguard
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: A Dual-State Agent Framework for reliable LLM code generation with guard-validated loops
5
5
  Author-email: Matthew Thompson <thompsonson@gmail.com>
6
6
  Maintainer-email: Matthew Thompson <thompsonson@gmail.com>
@@ -1,6 +1,6 @@
1
- atomicguard/__init__.py,sha256=d_MmOyFifgrIxZLZZsu6N0ANHS92J1RhHQb1o5Tmg98,3207
1
+ atomicguard/__init__.py,sha256=0tqh7H3Fer-0pLd0xr65DMZFTrEJoo5i3lcECOLRuZ0,3207
2
2
  atomicguard/application/__init__.py,sha256=ttnQx0Jd_G2EsSoc2TNq8VdeoY2k4Q0LK3iRpe0O8Ck,643
3
- atomicguard/application/action_pair.py,sha256=e-yilKIY1TNDn1JBbMq3fM0IDP82lIwHCDuMRog8fnc,2206
3
+ atomicguard/application/action_pair.py,sha256=k8VNjTm1dqGZ-whMLfAACaLYUs5fUm-jTq5eqzYGFxs,2665
4
4
  atomicguard/application/agent.py,sha256=DpK-ZtXp-DhPYkziI9c0hucIw4LZRPWCMlRhOS2oCfc,5912
5
5
  atomicguard/application/checkpoint_service.py,sha256=F4EoWmWWIonwc4HAre01EPk9rwTWpLL-gDp-Vvcfs6c,4580
6
6
  atomicguard/application/resume_service.py,sha256=H6fvIm8b3BuyF9d8lscVIHi9En37xlmSOkURbrmWpO8,8143
@@ -34,9 +34,9 @@ atomicguard/infrastructure/persistence/checkpoint.py,sha256=MS4qpJ_jcl6Ibw7h3Knc
34
34
  atomicguard/infrastructure/persistence/filesystem.py,sha256=ZLudEu0HvhnicciGZzOG_xX85UptfcawJGg-5V1LU1Q,14988
35
35
  atomicguard/infrastructure/persistence/memory.py,sha256=r-vTR9GdThLV4EGMNM_LAxO7KhXZvh11W-Jdfp6hmk0,2342
36
36
  atomicguard/schemas/__init__.py,sha256=9z3gWBHsq8FHD2qE_TPy31wkTa_qXPfVgJrNdIu8p4g,3735
37
- atomicguard-2.1.0.dist-info/licenses/LICENSE,sha256=ROMMFVruZ18U24pKTNte9AK_YIqoMfXnMzoxqBNmKS4,1073
38
- atomicguard-2.1.0.dist-info/METADATA,sha256=OTxM_cwYw-KkjzDM1ypk-Z2KHLOqnFGyB_gig_qO6eQ,7078
39
- atomicguard-2.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
40
- atomicguard-2.1.0.dist-info/entry_points.txt,sha256=MMVrkEyWFFCMoNIlpSWRY9FJYlEMGmaauvzMxEjwzTI,226
41
- atomicguard-2.1.0.dist-info/top_level.txt,sha256=J_6ENELjnacSYJ5N3FGwomp-sVeAJQohPkJBh6pu6iY,12
42
- atomicguard-2.1.0.dist-info/RECORD,,
37
+ atomicguard-2.2.0.dist-info/licenses/LICENSE,sha256=ROMMFVruZ18U24pKTNte9AK_YIqoMfXnMzoxqBNmKS4,1073
38
+ atomicguard-2.2.0.dist-info/METADATA,sha256=JqrVMhe2JJqff015ZzKlTWL6UKUMLWLZlXaO6P_11l0,7078
39
+ atomicguard-2.2.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
40
+ atomicguard-2.2.0.dist-info/entry_points.txt,sha256=MMVrkEyWFFCMoNIlpSWRY9FJYlEMGmaauvzMxEjwzTI,226
41
+ atomicguard-2.2.0.dist-info/top_level.txt,sha256=J_6ENELjnacSYJ5N3FGwomp-sVeAJQohPkJBh6pu6iY,12
42
+ atomicguard-2.2.0.dist-info/RECORD,,