Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

docs(breg): configure/breg.mdx lists stages for a request_lifecycle when, which bregctl refuses

Open Beginner friendly
#1,574 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
documentation

Research direction

Start in docs/site/src/content/docs/configure/breg.mdx at the hooks member table and its when row. Check registry-project.v1alpha1.schema.json and the cited change_request.rs test to confirm the supported request_lifecycle members. Remove stages from the documentation, then verify the example with bregctl check and ensure the row lists only transitions and toStates.

Written by the indexing model from the issue text.

Description

agent-ready area:breg area:docs criticality:p3 documentation triage:needs-implementation

docs/site/src/content/docs/configure/breg.mdx (hooks member table, when row) says a kind: request_lifecycle test takes transitions, toStates, and stages. On v0.34.0 and current main, stages is not an accepted member:

  • registry-project.v1alpha1.schema.json has only kind, toStates and transitions for the request_lifecycle form of when.
  • crates/registry-breg/src/change_request.rs has the test obsolete_stages_and_application_modes_are_not_authoring_inputs.
  • bregctl check refuses it:
# products/breg nursing-register example, with this added to the request_lifecycle hook:
#   "when": {"kind": "request_lifecycle", "stages": ["review"]}
$ bregctl check <copy> --format json | jq -c '.diagnostics[] | {code, message}'
{"code":"source.yaml.invalid","message":"the YAML source is structurally invalid: entities[1].hooks[0]: unknown field `stages`, expected `transitions` or `toStates` at line 382 column 9"}

The same hook with "toStates": ["submitted"] passes. Suggested fix: drop , and stages from that row (with transitions and toStates).

Found by bregctl 0.34.0 while auditing breg-skills against the vendored docs.

Dominant language
Rust
Stars
2
Forks
0
Avg merge
7h 46m
Merged PRs (30d)
199

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from registrystack/registry-stack

All issues in registrystack/registry-stack

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.