Skip to content

Conversation

@cboone
Copy link
Owner

@cboone cboone commented Feb 12, 2026

Summary

  • include agent registry install metadata (name, install script, credentials dir) in computeRecipeHash so agent changes mark cached images stale
  • add TestComputeRecipeHash coverage to verify agent registration changes the recipe hash
  • add the corresponding plan/todo note documenting the bug and verification steps

Validation

  • go test ./...
  • make lint
  • go test ./internal/container -run 'TestComputeRecipeHash|TestIsStale' -count=1

computeRecipeHash did not account for agent install scripts or
credential directories, so changes to the agent registry (new agents,
updated install URLs) were invisible to IsStale and the cached image
was silently reused. Add agent name, install script, and credentials
directory to the hash so that agent changes trigger an image rebuild.
Copilot AI review requested due to automatic review settings February 12, 2026 04:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates container image staleness detection so cached images are invalidated when the set of registered agents (and their install metadata) changes, preventing reuse of images with outdated agent installs.

Changes:

  • Include agent registry install metadata (name, install script, credentials dir) in computeRecipeHash.
  • Add a unit test asserting agent registration changes the recipe hash.
  • Add a plan/todo note documenting the bug and verification steps.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
internal/container/image.go Extends computeRecipeHash to hash agent install inputs for staleness detection.
internal/container/image_name_test.go Adds TestComputeRecipeHash coverage to ensure agent registry changes affect the hash.
docs/plans/todo/fix-recipe-hash-missing-agent-data.md Documents the issue, intended fix, and verification steps.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@cboone cboone merged commit 11a0b2c into main Feb 12, 2026
11 checks passed
@cboone cboone deleted the fix/absent-agent branch February 12, 2026 13:56
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