Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema: spec-driven
created: 2026-11-02
skip_specs: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Design

## Decisions

- **Replace the false sentence in place.**: A correction beside the false sentence leaves two opposite statements in the security policy.
- **Keep the paragraph under principle 11.**: The --url option is the accepted case of the MCP input rule, so the paragraph belongs there.
- **Name the six tools in the paragraph.**: docs/MCP_TOOLS.md lists them, so a reader can check the claim.
- **Keep the note that valkey keys, valkey backup and valkey cli are not MCP tools.**: The note is true (`tests/ai/mcp/test_mcp.py` lists the three as excluded) and tells a reader which commands a model cannot reach.
- **Check the result with `git grep`, not with a test of the prose.**: A test that reads SECURITY.md would freeze the words of a policy document. The rule itself is held in code: the `valkey-endpoint` requirement `The MCP Valkey tools publish no URL` and its tests.

## Rejected alternatives

- **Keep the sentence and add a correction below it.**: SECURITY.md principle 11 would then hold two opposite statements about the same commands.
- **Delete the whole --url paragraph.**: The paragraph records the accepted case of the --url option, which principle 11 needs.
- **Add a requirement to the `valkey-endpoint` spec for the text of the paragraph.**: `openspec/specs/valkey-endpoint/spec.md` line 104 already holds the rule for the tools. A second requirement about prose would repeat it, and `openspec/config.yaml` gives a document-only change no spec delta.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Proposal

## Why

SECURITY.md principle 11 states that the devops valkey commands are not MCP tools (#2670). Six of the nine commands are MCP tools, so a reader may think that a model cannot reach a Valkey command. The rule that matters is different: the six tools publish no URL, and a person types --url at the command line.

## What Changes

- Rewrite the --url paragraph under principle 11 of SECURITY.md.
- Name the six valkey commands that are MCP tools: valkey_ping, valkey_stats, valkey_info, valkey_get, valkey_set and valkey_flush.
- State that the six tools publish no url option.
- State that a person types --url at the command line and no model gives the URL.
- Keep the note that valkey keys, valkey backup and valkey cli are not MCP tools.
- Remove the sentence 'Those commands are not MCP tools.'
- The change has no spec delta and sets `skip_specs: true`. It edits the prose of a policy document, and no consumer observes prose as a behavior. The requirement `The MCP Valkey tools publish no URL` of the `valkey-endpoint` spec (line 104) already holds the rule in code terms: the same six tools, no `url` parameter, and `--url` kept on the nine commands.
- The change fits one pull request.

## Capabilities

### New Capabilities

None.

### Modified Capabilities

None.

## Impact

- Documents: `SECURITY.md`

## Feasibility

Checked on 2026-11-02 at `origin/main` (24ef67ac).

- The false sentence exists. `git grep -n "Those commands are not MCP tools" SECURITY.md` prints line 34, the last sentence of the `--url` paragraph under principle 11. No other Markdown file outside the archive and `CHANGELOG.md` holds it (`git grep -n "not MCP tools"`).
- Six commands are MCP tools. `git grep -n '("valkey", ' src/devops_cli/config/constants.py` finds six rows of `CONST_MCP_EXPOSURE_TABLE` (lines 401-406): flush, get, info, ping, set and stats. `docs/MCP_TOOLS.md` is generated from this table and lists `valkey_flush`, `valkey_get`, `valkey_info`, `valkey_ping`, `valkey_set` and `valkey_stats` (lines 145-150).
- Nine commands exist. `git grep -c '^@app.command' src/devops_cli/commands/valkey.py` prints 9. The table has no row for `keys`, `backup` or `cli`, and `tests/ai/mcp/test_mcp.py` (lines 644-646) lists the three as excluded from MCP. So the note about these three stays true.
- The six tools publish no `url`. `_PATH_PARAM_RESTRICTIONS` in `src/devops_cli/ai/mcp/generator.py` (lines 34-45) allows only `section`, `key`, `value`, `ex`, `all_databases` and `dry_run`. The tool sections of `docs/MCP_TOOLS.md` (lines 2340-2412) list no `url` row.
- The issue has no acceptance criteria of its own: the `Acceptance criteria` heading sits inside the refine block, which the criteria check cuts off (`acceptance_criteria` in `src/devops_cli/roadmap/stage_criteria.py`). So the plan has no `## Criteria` section.
- The change edits one paragraph of SECURITY.md and needs no code, no cluster and no network.

## Existing Tool Considered

No open tool or library covers this need. The change corrects a factual error in the project's own security policy document. The cost is one edited paragraph in SECURITY.md: about 3,000 tokens to read the paragraph and the table and to write the new text, no code to keep or fix, and about 5 minutes of one session. The change deletes no internal code.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Tasks

## 1. Correct the Valkey paragraph in SECURITY.md

Reads: `SECURITY.md`, `docs/MCP_TOOLS.md`, `src/devops_cli/config/constants.py`. Changes: `SECURITY.md`.

- [ ] 1.1 Rewrite the --url paragraph under principle 11 of `SECURITY.md`. State that six of the nine `devops valkey` commands are MCP tools: `valkey_ping`, `valkey_stats`, `valkey_info`, `valkey_get`, `valkey_set` and `valkey_flush`. State that these tools publish no `url` option. State that a person types `--url` at the command line and no model gives the URL. State that `valkey keys`, `valkey backup` and `valkey cli` are not MCP tools. Remove the sentence `Those commands are not MCP tools.`, and verify that `! git grep -n "Those commands are not MCP tools" SECURITY.md` passes, that `for n in valkey_ping valkey_stats valkey_info valkey_get valkey_set valkey_flush; do git grep -q -w -e $n -- SECURITY.md || echo "missing $n"; done` prints nothing, and that `uv run devops ci docs` passes
Loading