samagotchi 0.107.0 → 0.108.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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -1
  3. data/docs/architecture.md +3 -2
  4. data/docs/internals/engine.md +17 -6
  5. data/docs/internals/participants.md +5 -2
  6. data/docs/internals/working-set.md +2 -1
  7. data/docs/memory.md +20 -0
  8. data/docs/plugins.md +9 -2
  9. data/docs/releasing.md +11 -6
  10. data/docs/sessions.md +3 -3
  11. data/docs/sub-agent.md +1 -1
  12. data/docs/testing.md +5 -1
  13. data/lib/samagotchi/bridge/turn_accumulator.rb +3 -2
  14. data/lib/samagotchi/bridge.rb +3 -2
  15. data/lib/samagotchi/bundles/cost-cap/manifest.yml +2 -2
  16. data/lib/samagotchi/bundles/cost-cap/plugin.rb +51 -9
  17. data/lib/samagotchi/bundles/system/manifest.yml +2 -2
  18. data/lib/samagotchi/bundles/system/memory_guide.md +1 -1
  19. data/lib/samagotchi/bundles/work-cap/manifest.yml +2 -2
  20. data/lib/samagotchi/bundles/work-cap/plugin.rb +50 -14
  21. data/lib/samagotchi/child_reports.rb +2 -1
  22. data/lib/samagotchi/cli/parent_wait.rb +1 -1
  23. data/lib/samagotchi/context_sources.rb +1 -6
  24. data/lib/samagotchi/continue_offer.rb +8 -6
  25. data/lib/samagotchi/engine.rb +36 -25
  26. data/lib/samagotchi/guardrail_wiring.rb +9 -6
  27. data/lib/samagotchi/idle_scheduler.rb +17 -2
  28. data/lib/samagotchi/last_turn.rb +7 -0
  29. data/lib/samagotchi/log_subscriber.rb +2 -1
  30. data/lib/samagotchi/memory_orphans.rb +74 -0
  31. data/lib/samagotchi/memory_paths.rb +4 -4
  32. data/lib/samagotchi/parent_report.rb +11 -3
  33. data/lib/samagotchi/reply_wait.rb +7 -2
  34. data/lib/samagotchi/send_command/busy.rb +5 -2
  35. data/lib/samagotchi/send_command/wait_target.rb +16 -11
  36. data/lib/samagotchi/session_inbox.rb +12 -8
  37. data/lib/samagotchi/session_metrics.rb +7 -6
  38. data/lib/samagotchi/session_participants.rb +3 -1
  39. data/lib/samagotchi/steer.rb +11 -1
  40. data/lib/samagotchi/terminal_ui/attached_loop.rb +30 -26
  41. data/lib/samagotchi/terminal_ui/formatting.rb +2 -2
  42. data/lib/samagotchi/terminal_ui/one_shot_sink.rb +5 -1
  43. data/lib/samagotchi/tools/memory.rb +16 -9
  44. data/lib/samagotchi/turn_origin.rb +68 -0
  45. data/lib/samagotchi/version.rb +1 -1
  46. data/lib/samagotchi/web/app.rb +2 -0
  47. data/lib/samagotchi/web/grants.rb +2 -1
  48. data/lib/samagotchi/web/participant_access.rb +6 -116
  49. data/lib/samagotchi/web/participant_view.rb +7 -13
  50. data/lib/samagotchi/web/participants_admin.rb +129 -0
  51. data/lib/samagotchi/web/public/participant.js +2 -2
  52. data/lib/samagotchi/web/public/participant_model.js +5 -0
  53. data/lib/samagotchi/web/public/participant_names.js +2 -2
  54. data/lib/samagotchi/web/public/participants_panel.js +2 -2
  55. data/lib/samagotchi/worker.rb +30 -25
  56. data/lib/samagotchi/worker_inbound.rb +12 -9
  57. data/lib/samagotchi/working_set.rb +3 -2
  58. metadata +4 -1
@@ -94,8 +94,9 @@ module Samagotchi
94
94
  # A stale stub that an edit (not a later read) made: the model wrote
95
95
  # the file, so what it has of it is still current (llm_context.stale_edits).
96
96
  BY_EDIT = /superseded by a later (?:edit|write)\z/
97
- # A partial memory_read's last part (Tools::MemoryRead.call).
98
- MISSING = /\AError: memory not found: (.*)\z/m
97
+ # A partial memory_read's last part (Tools::MemoryRead.call): its first
98
+ # line only, since an orphaned-folder hint may follow on the next.
99
+ MISSING = /\AError: memory not found: ([^\n]*)/
99
100
 
100
101
  # What one paired run touched: its item's identity and op, whether its
101
102
  # output is content, its stored and sent texts, its stamp.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samagotchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.108.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dedov
@@ -446,6 +446,7 @@ files:
446
446
  - lib/samagotchi/memory_bundle/trash.rb
447
447
  - lib/samagotchi/memory_bundle/uninstaller.rb
448
448
  - lib/samagotchi/memory_command.rb
449
+ - lib/samagotchi/memory_orphans.rb
449
450
  - lib/samagotchi/memory_paths.rb
450
451
  - lib/samagotchi/message_parts.rb
451
452
  - lib/samagotchi/model_catalog.rb
@@ -679,6 +680,7 @@ files:
679
680
  - lib/samagotchi/turn_checkpoint.rb
680
681
  - lib/samagotchi/turn_flow.rb
681
682
  - lib/samagotchi/turn_note.rb
683
+ - lib/samagotchi/turn_origin.rb
682
684
  - lib/samagotchi/turn_state.rb
683
685
  - lib/samagotchi/turn_tally.rb
684
686
  - lib/samagotchi/update_command.rb
@@ -700,6 +702,7 @@ files:
700
702
  - lib/samagotchi/web/participant_review.rb
701
703
  - lib/samagotchi/web/participant_stream_filter.rb
702
704
  - lib/samagotchi/web/participant_view.rb
705
+ - lib/samagotchi/web/participants_admin.rb
703
706
  - lib/samagotchi/web/principal.rb
704
707
  - lib/samagotchi/web/public/activity.js
705
708
  - lib/samagotchi/web/public/annotate_actions.js