phronomy 0.33.0 → 0.34.0

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/CONTRIBUTING.md +5 -5
  4. data/README.md +15 -2
  5. data/RELEASE_CHECKLIST.md +3 -1
  6. data/SECURITY.md +1 -1
  7. data/VERIFY.sh +1 -9
  8. data/docs/architecture/error-api-review.md +6 -2
  9. data/docs/architecture/structured-output-and-scope.md +3 -4
  10. data/docs/decisions/016-semantic-multi-agent-handoff.md +6 -5
  11. data/docs/features.md +2 -2
  12. data/docs/migrations/cleanup-audit.md +89 -0
  13. data/docs/migrations/legacy-format-removal.md +55 -0
  14. data/docs/migrations/r8-unit6.md +4 -2
  15. data/docs/migrations/vector-async-clients.md +6 -1
  16. data/docs/shared-state-sharing.md +14 -4
  17. data/lib/phronomy/agent/execution/agent_invocation.rb +0 -4
  18. data/lib/phronomy/agent/handoff/transfer_projection.rb +0 -9
  19. data/lib/phronomy/agent/journal/journal_record.rb +2 -2
  20. data/lib/phronomy/agent/recovery/recovery_rules.rb +0 -12
  21. data/lib/phronomy/agent/store.rb +3 -8
  22. data/lib/phronomy/agent/tool_execution/tool_invocation.rb +0 -3
  23. data/lib/phronomy/context/context_policy.rb +3 -7
  24. data/lib/phronomy/context/llm_input_manifest.rb +3 -3
  25. data/lib/phronomy/engine/runtime/shutdown_result.rb +0 -5
  26. data/lib/phronomy/execution/execution.rb +0 -11
  27. data/lib/phronomy/multi_agent/shared_state.rb +5 -8
  28. data/lib/phronomy/version.rb +1 -1
  29. metadata +4 -11
  30. data/lib/phronomy/execution/scheduler_reentrancy_error.rb +0 -9
  31. data/lib/phronomy/persistence/migration/initial_format_migration.rb +0 -226
  32. data/scripts/add_to_h_to_token_doubles.rb +0 -33
  33. data/scripts/add_to_h_unnamed_doubles.rb +0 -27
  34. data/scripts/migrate_generator_verifier_result.rb +0 -18
  35. data/scripts/migrate_spec_agent_definition.rb +0 -108
  36. data/scripts/migrate_spec_agent_definition_pass2.rb +0 -53
  37. data/scripts/migrate_spec_inline_pass3.rb +0 -24
  38. data/sig/phronomy/persistence/migration.rbs +0 -13
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- # Adds agent_definition to single-line inline anonymous blocks like:
5
- # Class.new(Phronomy::Agent::Base) { model "test-model" }
6
-
7
- counter = 300
8
- files = Dir.glob("spec/**/*.rb").sort
9
-
10
- files.each do |f|
11
- content = File.read(f)
12
- modified = content.gsub(
13
- /Class\.new\(Phronomy::Agent::Base\) \{ ([^{}]+) \}/
14
- ) do
15
- body = $1
16
- next $& if body.include?("agent_definition")
17
- counter += 1
18
- "Class.new(Phronomy::Agent::Base) { agent_definition id: \"test-agent-#{counter}\", version: 1; #{body} }"
19
- end
20
- if modified != content
21
- File.write(f, modified)
22
- puts " patched: #{f}"
23
- end
24
- end
@@ -1,13 +0,0 @@
1
- module Phronomy
2
- class Persistence
3
- module Migration
4
- module InitialFormatMigration
5
- def self.agent_root: (Hash[untyped, untyped] hash) -> Storage::DurableRecord
6
- def self.agent_execution: (Hash[untyped, untyped] hash) -> Storage::DurableRecord
7
- def self.journal_record: (Hash[untyped, untyped] hash) -> Storage::DurableRecord
8
- def self.workflow_state: (workflow_instance_id: String, revision: Integer, snapshot: Hash[untyped, untyped]) -> Storage::DurableRecord
9
- def self.llm_input_manifest: (Hash[untyped, untyped] hash) -> Hash[String, untyped]
10
- end
11
- end
12
- end
13
- end