Expand description
Typed envelope structs for the JSON output contract. Live here rather
than in fallow-types because the body fields reach into fallow-core
and into this crate’s own health_types.
Typed envelope structs for the JSON output contract.
This module is the schema-side source of truth for fallow’s top-level JSON envelopes.
Structs§
- Audit
Output fallow audit --format jsonenvelope.- Boundaries
List Logical Group - A pre-expansion
autoDiscoverlogical group surfaced for observability (issue #373). Captured duringexpand_auto_discoverso consumers can see the user-authored parent name and grouping intent after expansion would otherwise flatten it out ofBoundariesListing::zones. - Boundaries
List Rule - A boundary import rule, expanded to operate on concrete child zone
names after
autoDiscoverflattening. The user’s pre-expansion rule (keyed on the logical parent name, if any) is preserved on the correspondingBoundariesListLogicalGroup::authored_rule. - Boundaries
List Zone - A boundary zone after preset and
autoDiscoverexpansion. Each entry classifies files into a single zone via glob patterns. - Boundaries
Listing boundariesblock carried byListBoundariesOutput.- Check
Grouped Entry - Single resolver bucket inside
CheckGroupedOutput. Carries the group’s identifier, optional section owners, and a per-group flattenedAnalysisResults. - Check
Grouped Output - Envelope emitted by
fallow dead-code --group-by ... --format json. - Check
Output - Envelope emitted by
fallow dead-code --format json(plus thecheckblock inside the combined and audit envelopes). - Code
Climate Issue - Single CodeClimate-compatible issue inside
CodeClimateOutput. - Code
Climate Lines lines.beginforCodeClimateLocation.- Code
Climate Location - Location block inside
CodeClimateIssue::location. - Code
Climate Output - Envelope emitted by
fallow --format codeclimateandfallow --format gitlab-codequality. GitLab Code Quality consumes the same shape. The wire form is a bare JSON array, not an object. - Combined
Meta - Combined
Output - Bare
fallow --format jsonenvelope. - Coverage
Analyze Output - Coverage
Setup File ToEdit - Coverage
Setup Member - Coverage
Setup Output fallow coverage setup --jsonenvelope.- Coverage
Setup Snippet - Dupes
Output - Explain
Output - Envelope emitted by
fallow explain <issue-type> --format json. - GitHub
Review Comment - GitHub pull-request review comment.
- GitLab
Review Comment - GitLab merge-request discussion comment.
- GitLab
Review Position positionblock insideGitLabReviewComment. Mirrors the GitLab merge-request discussion-position API.- Health
Output - Envelope emitted by
fallow health --format json(plus thehealthblock inside the combined and audit envelopes). - List
Boundaries Output - Envelope emitted by
fallow list --boundaries --format json. Surfaces the architecture boundary zones, rules, and (issue #373) the user’s pre-expansionautoDiscoverlogical groups so consumers can render grouping intent thatexpand_auto_discoverwould otherwise flatten out ofzones[]. - Review
Envelope Meta metablock insideReviewEnvelopeOutput.- Review
Envelope Output - Envelope emitted by
fallow --format review-github/review-gitlab. - Review
Envelope Summary - Summary block on
ReviewEnvelopeOutput. - Review
Reconcile Output - Envelope emitted by
fallow ci reconcile-review --format json. Used by CI integrations to drive comment carry-over and stale-comment cleanup across PR / MR revisions.
Enums§
- Audit
Command - Code
Climate Issue Kind - Discriminator value for
CodeClimateIssue::kind. - Code
Climate Severity - CodeClimate severity scale.
- Coverage
Analyze Schema Version - Coverage
Setup Framework - Coverage
Setup Package Manager - Coverage
Setup Runtime Target - Coverage
Setup Schema Version - Envelope
Mode - Fallow
Output - Typed root of every fallow JSON envelope shape that serializes as a JSON
object and participates in the documented
FallowOutputcontract. The schema derived from this enum drives the document-rootoneOfindocs/output-schema.json. - GitHub
Review Side - Singleton side discriminator for
GitHubReviewComment::side. - GitLab
Review Position Type - Singleton position-type discriminator for
GitLabReviewPosition. - Group
ByMode - Resolver mode label for grouped envelopes (dead-code, dupes, health).
- Review
Check Conclusion meta.check_conclusionfor the GitHub review envelope. Maps to the GitHub Checks API conclusion field.- Review
Comment - Per-line review comment. Schema is an
anyOfbetween GitHub and GitLab shapes; at runtime every entry in a single envelope comes from the same provider because the envelope is built from one provider’s branch incrates/cli/src/report/ci/review.rs::render_review_envelope. - Review
Envelope Event - Singleton GitHub review-event marker.
- Review
Envelope Schema - Schema-version discriminator for the review envelope.
- Review
Provider - Review-envelope provider tag.
- Review
Reconcile Schema - Schema-version discriminator for the review reconcile envelope.
Constants§
- MARKER_
REGEX_ FLAGS_ V2 - Canonical v2 marker-regex flags.
- MARKER_
REGEX_ V2 - Canonical v2 marker-regex literal.
Functions§
- apply_
root_ kind - default_
marker_ regex - Default for
ReviewEnvelopeOutput::marker_regex. - default_
marker_ regex_ flags - Default for
ReviewEnvelopeOutput::marker_regex_flags. - is_
false - Helper for
skip_serializing_if = "is_false"ontruncatedfields above. Serde callsskip_serializing_ifwith&T, so the reference signature is dictated by the trait and cannot be changed to pass-by-value. Uses#[allow]rather than#[expect]per.claude/rules/code-quality.md:trivially_copy_pass_by_refis a pedantic lint that fires inconsistently across build configurations (lib vs bin), which would triggerunfulfilled_lint_expectationsunder#[expect]. - remove_
root_ kind - Remove only the document-root discriminator for the one-cycle
compatibility mode. Nested objects may carry their own meaningful
kindfields, so this intentionally does not recurse. - serialize_
root_ output - serialize_
root_ output_ with_ mode - set_
legacy_ envelope