Skip to content

Commit 6f71449

Browse files
authored
Merge branch 'master' into feat/g502-hero-support
2 parents 3c5dc1b + 59ac734 commit 6f71449

89 files changed

Lines changed: 8450 additions & 2574 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Owner: orchestrator::ForcedReapply — what the next inventory refresh forces
2+
# after a system wake or an unobserved reconnect. Its transitions
3+
# (settings_reset, device_reconnected, system_resumed) coalesce requests, and
4+
# the refresh reads budget() and rearms_every_capture() off the one drained
5+
# value.
6+
id: agent-forced-reapply-owner
7+
language: rust
8+
severity: error
9+
message: Change and read the forced re-apply through orchestrator::ForcedReapply's transitions and its budget / rearms_every_capture decisions; do not name its variants here.
10+
note: |
11+
The latch was two fields, a confirm budget and a capture-rearm flag, that
12+
every request and the refresh had to keep in step: a rearm without a budget
13+
was representable. Writing or matching a variant outside its impl skips the
14+
coalescing (largest budget wins, a pending resume keeps its rearm) or splits
15+
the refresh's two decisions again. See "Single source of truth" in AGENTS.md.
16+
files:
17+
- crates/openlogi-agent-core/src/orchestrator.rs
18+
- crates/openlogi-agent-core/src/orchestrator/**/*.rs
19+
rule:
20+
all:
21+
- any:
22+
- all:
23+
- any:
24+
- kind: scoped_identifier
25+
- kind: scoped_type_identifier
26+
- regex: '(^|::)ForcedReapply::(Quiet|ReapplyPending|ResumePending)$'
27+
# Inside a macro such as `matches!` the path is loose tokens.
28+
- all:
29+
- kind: identifier
30+
- regex: '^(Quiet|ReapplyPending|ResumePending)$'
31+
- inside:
32+
kind: token_tree
33+
stopBy: end
34+
- follows:
35+
pattern: '::'
36+
follows:
37+
kind: identifier
38+
regex: '^ForcedReapply$'
39+
- not:
40+
inside:
41+
kind: impl_item
42+
stopBy: end
43+
has:
44+
field: type
45+
regex: '^ForcedReapply$'

0 commit comments

Comments
 (0)