Repository navigation
docs(issues): [#2645] specify labelling optional and self dependency edges - #2646
Conversation
…ndency edges Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
What changed in this PR
Updates #2482 (row 8 / #2645) documentation to reference the newly created open issue for labeling optional and self-dependency edges in the coupling tooling.
Changes:
- Update row-8 references/links from the draft spec to the open spec location (#2645)
- Mark row 8 as IN_PROGRESS in the #2482 EPIC and append a delivery-log entry
- Refresh the row-8 spec content to clarify feature/optional labeling and diagram documentation targets
| File | Description |
|---|---|
| docs/issues/open/2482-1669-reorganize-shared-test-support/test-support-inventory.md | Updates row-8 link to point at the open #2645 spec. |
| docs/issues/open/2482-1669-reorganize-shared-test-support/EPIC.md | Marks subissue 8 as #2645 / IN_PROGRESS and logs the update. |
| docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-10-06.md | Updates coupling-report reference to the open #2645 spec. |
| docs/issues/drafts/2482-label-optional-and-self-dependency-edges/ISSUE.md | Changes metadata/content to reflect #2645 and new diagram targets. |
Review effort: Lite
|
ACK 6e5fdfa |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6e5fdfaf89458b7da36eded5eeb0d1cbc8d3b265 (post-merge). Recomputed from the bytes at the merged head, against the merge base 8407306aa; the PR merged on 2026-10-25 at 08:02:51Z as 5304d2379.
Label: POST_MERGE_FINDINGS — this account's review was requested at 07:00:55Z, and the PR merged before this round ran. The findings below stand at the merged head for a follow-up, and no ACK follows a merged PR. Where #2648, the implementation, already answers a finding, the finding says so.
The promotion from draft.
create-issue(v1.1) is followed in these respects:- The directory became
open/2645-2482-…bygit mv, a 73 % rename. github-issue,spec-path, the H1 number andstatus: planned(a value the validator accepts) were set.- Three checkpoints were ticked.
- The EPIC row, the inventory row and the coupling report link were retargeted, and no file under
docs/,.github/orcontrib/still names thedrafts/path.
- The directory became
- Inside the file, the change rewrites the In Scope bullets. It defines the input (the
featurestable), the label forms and the self-edge skip, and it moves the diagram target todocs/media/packages/dependencies-workspace-packages.md. branch:departs from the skill (F4).
The spec as a spec.
- Its sections follow
docs/templates/ISSUE.md, like the #2628 spec. Every file, heading and command it names exists at8407306aa. - Its statements about Cargo are correct for the dependency's own
featureslist,dep:and a path dev-dependency on the package itself. - It is wrong about the bare
["c"]form in this edition-2024 workspace (F1). - It leaves "enabled only by" undefined for feature chains,
c/f,c?/fand a feature named like the dependency (F2). Each was later decided in #2648, one of them wrongly. - AC2's "not counted as a runtime edge" has no counter in the tool (F3). #2482 AC8 supports a reading by label, which #2648 recorded.
The EPIC and the other records.
- Row 8 names #2645 and links the open spec, and the inventory row keeps
Open. - The dated 2026-10-06 report changes only a link target, as five earlier commits did for that file.
- The two
last-updated-utcstamps postdate their commit (F5). - All 57 relative links in the four files resolve.
Hygiene.
- One Conventional commit,
docs(issues), tagged[#2645]. Author equals committer, andgit diff --checkis clean. - The body is the attribution footer naming the review bot's account. The commit skill marks a body optional, and no rule in the tree governs the footer.
- The commit-id check prints nothing.
- The description says "Related to #2645" and carries no closing keyword, as a spec-only PR should.
The review bot. Its only review is an overview with a timeout warning and no inline comment. Its file table lists the moved spec under its old drafts/ path. It checked no spec content.
Findings: F1 and F2 (Minor), F3 to F5 (Nit), inline.
Checked, no finding:
- the directory name;
github-issue,spec-pathand the status value;- the H1 against the issue title, which drops only the "(#2482 subissue 8)" suffix;
- the references;
- the self-edge statement;
- the diagram claim for
docs/packages.mdandpackages/AGENTS.md, which hold layer diagrams and a rules table, not generated edges; - EPIC row 8
IN_PROGRESS; - the closing keyword;
project-words.txt, which is unchanged.
Checks
On the loop's compute hub at the merged head, against the merge base 8407306aa, the #2643 merge (receipt server-gates-sojka-458; develop has since moved to 5124c66e2, the #2647 merge): pre-commit profile gate exit 0 (86 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 16 errors / 4 warnings at this head and 16 / 4 at the base re-measured, the same 20 diagnostics by path and category, none in the four files this PR touches, so moving the spec from drafts/ to open/ changed no diagnostic. No Rust changes, so no cargo step. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5124c66e2.
| - The tool reads each dependency's `optional` field and each package's `features` table from `cargo | ||
| metadata` (the dependency's own `features` list names what the consumer enables, not what enables | ||
| the dependency, so the table is the source). A normal dependency that is optional and enabled only | ||
| by the `testing` feature (`testing = ["dep:c"]` or `["c"]`) is labelled `optional (testing)` and is |
There was a problem hiding this comment.
[Minor][F1] ["c"] is the pre-2024 implicit-feature form. Every workspace member inherits edition 2024 (Cargo.toml:73). In that edition Cargo creates no implicit feature, and a feature cannot name an optional dependency bare; it must use dep:c. This is stated from the edition rules; no cargo runs in this lane.
The implementation in PR #2648 followed this sentence: its first fix and three of its tests model the implicit feature, and its rule for hiding that feature became the unconditional removal its review found.
A follow-up should drop ["c"] here and say that rows 3 to 7 write testing = ["dep:c"].
| - The tool skips a self edge (a package depending on itself). | ||
| - The tool reads each dependency's `optional` field and each package's `features` table from `cargo | ||
| metadata` (the dependency's own `features` list names what the consumer enables, not what enables | ||
| the dependency, so the table is the source). A normal dependency that is optional and enabled only |
There was a problem hiding this comment.
[Minor][F2] "enabled only by the testing feature" is not defined for the cases the tool meets:
- a feature that enables
testing(default = ["testing"]); c/feature, which enablesc;- the weak
c?/feature, which does not; - a feature named like the dependency.
PR #2648 had to decide each case. The review bot's first review there found the default chain, and the same-name case is still mislabelled there.
A follow-up could state that "enabled by" is transitive over the features table, name the forms that enable a dependency, and say what the label shows for a same-name feature.
| metadata` (the dependency's own `features` list names what the consumer enables, not what enables | ||
| the dependency, so the table is the source). A normal dependency that is optional and enabled only | ||
| by the `testing` feature (`testing = ["dep:c"]` or `["c"]`) is labelled `optional (testing)` and is | ||
| not counted as a runtime edge. Another optional dependency is labelled `optional (<feature>)` |
There was a problem hiding this comment.
[Nit][F3] "not counted as a runtime edge" (here and in AC2) has no counter to test against. At 8407306aa the tool counts only "Workspace deps" per package, which includes dev and build edges (main.rs:343), plus the leaf list.
AC8 of #2482 asks the regenerated report to "show no test-only runtime edge", which reads as a condition on the label. PR #2648 recorded "never labelled normal" in its completion review, which answers this finding in practice. AC2 could say so directly.
| branch: "{issue-number}-2482-label-optional-and-self-dependency-edges" | ||
| github-issue: 2645 | ||
| spec-path: docs/issues/open/2645-2482-label-optional-and-self-dependency-edges/ISSUE.md | ||
| branch: "2645-2482-label-optional-and-self-dependency-edges" |
There was a problem hiding this comment.
[Nit][F4] branch: names the reserved implementation branch, but this spec-only PR's head was 2645-2482-label-optional-and-self-dependency-edges-spec. create-issue v1.1 (SKILL.md:257-259 and 301-304) sets branch: to the -spec name while the spec-only PR is open.
PR #2648 used this name for its implementation, so nothing broke. The #2606 spec followed the rule, so the two specs differ.
| branch: "2645-2482-label-optional-and-self-dependency-edges" | ||
| related-pr: null | ||
| last-updated-utc: "2026-10-23 07:32" | ||
| last-updated-utc: "2026-10-25 06:59" |
There was a problem hiding this comment.
[Nit][F5] last-updated-utc: "2026-10-25 06:59", here and in the EPIC's frontmatter, is later than the commit that carries both (06:58:14Z). It is also later than the two log entries this commit adds, both stamped 06:55.
A stamp should be no later than its commit and should match the latest log entry.
Related to #2645
Spec-only PR for row 8 of sub-EPIC #2482: label optional and self-dependency edges in the coupling tool and the dependency diagram.