Skip to content

feat(modify): wire --set-description flag + clearer usage (#359, #360)#365

Merged
avrabe merged 1 commit into
mainfrom
feat/req-136-modify-set-description
May 31, 2026
Merged

feat(modify): wire --set-description flag + clearer usage (#359, #360)#365
avrabe merged 1 commit into
mainfrom
feat/req-136-modify-set-description

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 31, 2026

Closes the #360 dead-end (and improves #359): description is a top-level base field, but the CLI had no --set-description flag — so --set-field description=... was rejected with a hint pointing at a flag that didn't exist. The core already supported it (ModifyParams.set_description + yaml_edit); only the clap wiring was missing.

  • rivet modify <ID> --set-description "text" now works.
  • rivet modify --help shows --set-* examples + a 'positionals not valid' note.

Regression test + verified end-to-end. (REQ-136.)

🤖 Generated with Claude Code

#360)

Agent-reported. `description` is a top-level base field but the CLI exposed no
`--set-description` flag, so updating it forced `--set-field description=...`,
which mutate then REJECTED with a hint pointing at a `--set-description` flag
that did not exist — a dead-end loop. The core (`ModifyParams.set_description`,
`yaml_edit`) already applied it; only the clap wiring was missing.

- `rivet modify <ID> --set-description "<text>"` now works (#360).
- `rivet modify --help` shows `--set-*` examples + a note that positionals
  (`modify <ID> status approved`) are not valid (#359; the bare clap error
  still directs to --help, which now teaches the pattern).

Regression test modify_applies_set_description_param. Verified end-to-end.

Implements: REQ-136
Verifies: REQ-136
Refs: REQ-007

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📐 Rivet artifact delta

No artifact changes in this PR. Code-only changes (renderer, CLI wiring, tests) don't touch the artifact graph.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 523d3a6 Previous: bc2f32a Ratio
store_lookup/1000 24708 ns/iter (± 70) 19294 ns/iter (± 341) 1.28
diff/1000 729161 ns/iter (± 3082) 600716 ns/iter (± 8617) 1.21
query/1000 6963 ns/iter (± 49) 5266 ns/iter (± 57) 1.32

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit bcc6d69 into main May 31, 2026
19 of 39 checks passed
@avrabe avrabe deleted the feat/req-136-modify-set-description branch May 31, 2026 11:15
avrabe added a commit that referenced this pull request May 31, 2026
…erged) (#367)

REQ-136 (#359/#360 modify ergonomics) shipped via #365. rivet validate PASS.

Refs: REQ-136
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