Skip to content

Fix agent memory artifact scope export#2083

Merged
chubes4 merged 2 commits into
mainfrom
fix/agent-memory-artifact-scope
May 18, 2026
Merged

Fix agent memory artifact scope export#2083
chubes4 merged 2 commits into
mainfrom
fix/agent-memory-artifact-scope

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 18, 2026

Summary

  • Preserve the resolved agent memory scope in agent_memory tool results.
  • Use the resolved scope when building job artifact memory exports so agent-scoped memory does not fall back to agent_id: 0.
  • Extend the job artifact smoke coverage for resolved memory scopes.

Testing

  • php tests/job-artifacts-daily-memory-smoke.php
  • php -l inc/Engine/AI/Tools/Global/AgentMemory.php
  • php -l inc/Engine/AI/conversation-loop.php
  • php -l inc/Core/JobArtifacts.php
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Diagnosed the artifact scope regression and drafted the code/test changes; Chris requested the fix and remains responsible for review and merge.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 18, 2026

Homeboy Results — data-machine

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since d356812

Test

test — passed

  • 769 passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine --from lint --write
ℹ️ Collect coverage: homeboy test data-machine --coverage
ℹ️ Save test baseline: homeboy test data-machine --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine --changed-since d356812

Audit

audit — passed

  • requested_detectors — 148 finding(s)
  • test_coverage — 29 finding(s)
  • dead_code — 10 finding(s)
  • intra-method-duplication — 6 finding(s)
  • dead_guard — 2 finding(s)
  • Directives — 1 finding(s)
  • Retention — 1 finding(s)
  • Total: 197 finding(s)

Deep dive: homeboy audit data-machine --changed-since d356812

Tooling versions
  • Homeboy CLI: homeboy 0.182.0+4a401166
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 6419aa5f
  • Action: unknown@unknown

@chubes4 chubes4 merged commit f1a23d9 into main May 18, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/agent-memory-artifact-scope branch May 18, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant