Repository navigation
feat: TaskFrontmatter.Cluster() accessor - #115
Merged
Merged
Conversation
bborbe
marked this pull request as ready for review
October 20, 2026 21:07
Contributor
There was a problem hiding this comment.
Based on my review of the changes:
Summary: The Cluster() accessor adds a typed getter for the optional cluster frontmatter field, following the established patterns in the file. The implementation correctly handles absent keys and non-string values by returning "", and tests cover both cases. Documentation and CHANGELOG are updated appropriately.
{
"verdict": "approve",
"summary": "The Cluster() accessor is a clean addition following existing patterns. Absent-field and non-string cases are handled correctly and tested. CHANGELOG and docs are updated.",
"comments": [],
"concerns_addressed": [
{
"concern": "correctness: Cluster() accessor must handle absent field, non-string YAML node, and canonical value validation",
"disposition": "not-an-issue",
"detail": "Implementation (agent_task-frontmatter.go:62-65) handles absent field and non-string YAML node by returning empty string. Canonical value validation is not performed, consistent with other accessors like Stage() that also skip validation."
},
{
"concern": "correctness: Tests cover absent, string, and non-string cases per PR description — verify edge case coverage",
"disposition": "not-an-issue",
"detail": "agent_task-frontmatter_test.go lines 79-94: tests cover absent key (returns \"\"), string value (\"nukedev\"), and non-string value (42 returns \"\")."
}
]
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
TaskFrontmatter.Cluster()for the optionalclusterfrontmatter field (canonical valuesnukedev,nukeprod,sun; absent or non-string reads as""). It is documented in the Terminology table ofdocs/task-flow-and-failure-semantics.md, with Ginkgo tests for absent, string and non-string values. It changes no behaviour; consumers are bborbe/agent-task-executor#82 and the agent-task-controller publish-side filter.Implemented through dark-factory prompt 238. A follow-up commit reverts three unrelated spec-status flips that the run made.