Skip to content

Revisit Task.spec.goal #594

Closed
Closed

Description

@rakyll

Goal currently has a single field, spec, and it is a plain string:

message Goal {
  string spec = 1;
}

so manifests write spec.goal.spec: "Fix the failing unit tests.".

spec being a string isn't a good choice. In every other kind, spec is a
message that holds the resource's definition, so goal.spec reads as if it
should be structured, and a bare string leaves no room to add fields without a
breaking change. The text goal should live at goal.spec, but spec should
be a message with the text as one of its fields.

Maybe something like what's below is better:

message Goal {
  string text = 1;
}

Activity

  1. added a commit that references this issue on Nov 16, 2026
    8b1c2e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions