Skip to content

feat: rivet add --link and --description for agent ergonomics#42

Merged
avrabe merged 1 commit intomainfrom
feat/agent-ergonomics
Mar 18, 2026
Merged

feat: rivet add --link and --description for agent ergonomics#42
avrabe merged 1 commit intomainfrom
feat/agent-ergonomics

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 18, 2026

Summary

Highest-friction agent ergonomics fix: rivet add now supports --link and --description flags.

Before (3 commands per artifact):

rivet add -t cybersecurity-req --title "Secure boot validation"
rivet link CR-17 --type derives-from --target CG-13
rivet link CR-17 --type derives-from --target CG-9

After (1 command):

rivet add -t cybersecurity-req --title "Secure boot validation" \
  --description "The system shall verify firmware signatures..." \
  --link "derives-from:CG-13" --link "derives-from:CG-9"

Multiple --link flags allowed. Links validated against schema before write.

Also includes cross-repo sync fix (git -c instead of --config for older git versions).

Test plan

  • All tests pass
  • clippy clean
  • Pre-commit hooks pass

🤖 Generated with Claude Code

Add --link "type:target" flag for creating artifacts with links in one
command. Eliminates the need for follow-up rivet link calls:

  rivet add -t cybersecurity-req --title "..." \
    --link "derives-from:CG-13" --link "derives-from:CG-9" \
    --description "Detailed requirement text"

Multiple --link flags allowed. Links validated against schema before
write (same as rivet link command).

Also adds --description flag for setting description from CLI without
needing rivet modify or manual YAML editing.

Implements: FEAT-054
Refs: REQ-031

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 18828a6 into main Mar 18, 2026
@avrabe avrabe deleted the feat/agent-ergonomics branch March 18, 2026 06:17
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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