Skip to content

docs(openspec): name no node in the monitoring-collectors spec #5339

Open

Description

@dan-petty

Update 2026-11-26 (infra move): k8s/monitoring/k8s-monitoring-values.yaml deploys from dan-petty/homelab, and #7290 deletes the copy here. The monitoring-collectors spec then describes files that this repository does not hold. Prefer a delta that REMOVES the requirements about those values to a rename of one requirement.


Problem

#5336 (for #3785, merged 2026-11-13) left the living spec openspec/specs/monitoring-collectors/spec.md with a requirement name "The alloy-profiles pod does not run on the node hawk" and a scenario name "The affinity excludes the node" above text that says the profiler holds no affinity and runs on every node. The refine criterion of #3785 says the spec holds no requirement or scenario that names that node. The stage review of 2026-11-12T18:04Z flagged this; nobody fixed it. The design of the change says "a delta refuses a modified name", which is false: openspec/config.yaml permits RENAMED and REMOVED, and archived changes use them (for example 2026-10-30-2645-config-unset-removes-plaintext).

Proposed solution

A docs(openspec) change on main with ## RENAMED Requirements (FROM the old name TO "The alloy-profiles pod runs on every node") and MODIFIED under the new name, or REMOVED plus ADDED. The scenario gets a name that names no node, for example "Only alloy-metrics holds a node affinity". Correct the reason in the archived design only if the archive rules allow it; otherwise record it in the new change. Add a check that the monitoring-collectors spec text names no node.

Acceptance

  • git grep -n hawk -- openspec/specs/monitoring-collectors/ finds nothing.
  • uv run devops openspec check passes.

Alternatives check of 2026-11-17: not-applicable.
Class: docs, no search.
Tool: none found.

Proposed design

Problem statement

The living spec openspec/specs/monitoring-collectors/spec.md names the node hawk in one requirement name and implies a node exclusion in one scenario name. The text below that name says the alloy-profiles profiler holds no affinity and runs on every node. The archived design of #3785 says a delta refuses a modified name. That claim is false: openspec/config.yaml permits RENAMED and REMOVED. A docs(openspec) change renames the requirement and its scenario, records the correct rule in its design, and leaves the archive unchanged. A check that the spec names no node is not workable as written, because the repository holds no list of node names; this proposal defers that check.

Acceptance criteria

Requirement: The living spec names no node

The monitoring-collectors living spec SHALL hold no requirement name, scenario name or text that names the node hawk.

Scenario: The archived spec is searched for the node name

  • WHEN ! git grep -n hawk -- openspec/specs/monitoring-collectors/ runs after the change is archived
  • THEN the command exits 0 and prints nothing

Requirement: The requirement name names no node

The change SHALL rename the requirement "The alloy-profiles pod does not run on the node hawk" to "The alloy-profiles pod runs on every node".

Scenario: The archived spec holds the new requirement name

  • WHEN git grep -n "The alloy-profiles pod runs on every node" -- openspec/specs/monitoring-collectors/ runs after the archive
  • THEN the command exits 0 and prints the new requirement name

Requirement: The scenario name names no node

The change SHALL rename the scenario "The affinity excludes the node" to "Only alloy-metrics holds a node affinity".

Scenario: The archived spec holds the new scenario name

  • WHEN ! git grep -n "The affinity excludes the node" -- openspec/specs/monitoring-collectors/ runs after the archive
  • THEN the command exits 0 and prints nothing

Requirement: The change passes OpenSpec validation

The change SHALL pass uv run devops openspec check with its RENAMED and MODIFIED delta.

Scenario: The change is validated against the base spec

  • WHEN uv run devops openspec check runs
  • THEN the command exits 0 and reports no error

Requirement: The new design records the correct rename rule

The design of the new change SHALL state that openspec/config.yaml permits RENAMED and REMOVED, and that the archived design's claim that a delta refuses a modified name is false.

Scenario: The design text is searched for the correction

  • WHEN git grep -n "permits RENAMED and REMOVED" -- openspec/changes/ runs
  • THEN the command exits 0 and prints the correction line

Existing Tool Considered

The alternatives check of 2026-11-17 in the issue body gives verdict not-applicable (class docs, no search) and names no tool. OpenSpec, the open spec tool that the repository already uses, covers the rename with ## RENAMED Requirements and ## MODIFIED Requirements. No tool covers a check that a spec names no node; the proposal defers that check. The change builds no code and has no build cost.

Key questions

  • Which OpenSpec operation renames the requirement and changes its scenario name?: Use ## RENAMED Requirements from The alloy-profiles pod does not run on the node hawk to The alloy-profiles pod runs on every node, and ## MODIFIED Requirements under the new name with the scenario Only alloy-metrics holds a node affinity. openspec/config.yaml permits RENAMED and MODIFIED, and archived changes use RENAMED and REMOVED. (best practice) [sources: openspec/config.yaml, openspec/specs/monitoring-collectors/spec.md]
    • Chosen: RENAMED plus MODIFIED. openspec/config.yaml permits RENAMED and MODIFIED. The requirement keeps its identity and text, and the MODIFIED block changes only the scenario name.
    • Rejected: REMOVED plus ADDED. It loses the requirement's identity and the archive shows a removal and an addition for a rename.
    • Rejected: MODIFIED alone. MODIFIED matches the requirement by name, so it cannot change the name.
  • Does the change edit the archived design of fix(k8s): find the source of the hawk host crashes #3785 to correct its false reason?: No. The new change's design records the correction. The project amends a record with a status history instead of rewriting it, as docs/adr/0001-github-is-the-roadmap-source.md and docs/adr/0004-ci-is-the-authoritative-gate.md do. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, docs/adr/0004-ci-is-the-authoritative-gate.md, openspec/config.yaml]
    • Chosen: Record the correction in the new change's design. The project amends a record with a status history instead of rewriting it, as docs/adr/0001-github-is-the-roadmap-source.md and docs/adr/0004-ci-is-the-authoritative-gate.md do.
    • Rejected: Edit the archived design of fix(k8s): find the source of the hawk host crashes #3785. It rewrites the record of a delivered change. The archive is the record.
    • Rejected: Leave the false reason. The issue asks to correct it, and the new design can state the rule.
  • Which scenario name replaces The affinity excludes the node?: Use Only alloy-metrics holds a node affinity. The scenario asserts that alloy-profiles, alloy-logs and alloy-singleton hold no node affinity, and that alloy-metrics holds one term with the control-plane label DoesNotExist. (best practice) [sources: openspec/specs/monitoring-collectors/spec.md]
    • Chosen: Only alloy-metrics holds a node affinity. The scenario asserts that the three other collectors hold no affinity and alloy-metrics holds one term. The name names no node.
    • Rejected: The affinity excludes the node. It says a node is excluded, but the text says the profiler holds no affinity and runs on every node.
    • Rejected: No node affinity on three collectors. It omits the alloy-metrics term that the scenario asserts.
  • Can the change add a check that the monitoring-collectors spec text names no node?: Not as written. The repository holds no list of node names, and openspec/config.yaml forbids writing an internal hostname; it asks for roles such as <storage-node>. A check for hawk alone covers one name. The proposal defers the general check and keeps the concrete git grep -n hawk in the acceptance. (best practice) [sources: openspec/config.yaml]
    • Chosen: Defer the general check. The repository holds no list of node names, and openspec/config.yaml forbids writing a hostname. A check for hawk alone would not cover a new node name.
    • Rejected: Add a test that greps for hawk. It covers one name only and does not check that the spec names no node.
    • Rejected: Add no check. The issue asks for a check that the spec text names no node.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#6495

Activity

  1. added
    source/agent
    type/docs
    scope/openspec
    status/new
    value/low
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P3-Low. A spec name contradicts its own body but does not block a build or break a user workflow.
    • Related: fix(roadmap): Detect obsolete spec requirements on command rename #3287, which asks for a different change. Both deal with spec requirements that are stale or wrong, but #3287 adds a detection mechanism for command renames while this candidate fixes a specific spec text and adds a grep check.
  3. added
    priority/p3-low
    on Nov 13, 2026
  4. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: docs. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-17. A person decides what this means for the item. The check changes no label and closes no issue.

  5. added
    status/ready
    and removed
    status/new
    on Nov 20, 2026
  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p3-lowscope/openspecsource/agentstatus/readytype/docsvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions