Repository navigation
docs(issues): add specification for #2175 - #2176
Conversation
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.
Pull request overview
Adds a folder-style issue specification for #2175 describing how the vendored maintainer merge tool should support explicit, tree-sourced symlink exceptions, plus cspell dictionary updates needed by the spec text.
Changes:
- Added new issue spec document under
docs/issues/open/2175-merge-tool-symlink-exceptions/. - Extended
project-words.txtwith three new dictionary words used in the spec.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/issues/open/2175-merge-tool-symlink-exceptions/ISSUE.md | New spec defining the proposed .symlinks.json manifest, enforcement rules, and implementation/verification plan |
| project-words.txt | Adds Buildah, containerignore, and topo to repository word list |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
josecelano
left a comment
There was a problem hiding this comment.
Address Copilot's suggestions by strictly following the process described in the repo.
|
Both Copilot suggestions were processed per |
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
josecelano
left a comment
There was a problem hiding this comment.
I found one blocking specification ambiguity that should be resolved before merging:
--symlinks <path> is documented as optional with a default manifest path, which implies that omitting it loads .symlinks.json when present. However, AC8 and the final rule require a run without --symlinks to retain the current behavior of rejecting all symlinks. These contracts conflict.
Please define one behavior and align the rules, implementation plan, automated tests, and manual scenarios:
- omit the option disables manifest processing, with the wrapper passing the default manifest explicitly; or
- omit the option loads
.symlinks.json, with AC8 revised accordingly.
The specification documented `--symlinks <path>` as optional with a default of `.symlinks.json` while also requiring a run without the argument to keep refusing every symbolic link; both cannot hold, because a default makes the presence of a file in the merged tree decide the outcome. The argument now carries no default value: an omitted `--symlinks` disables declaration processing entirely, so the vendored tool keeps its current behavior for any invocation that does not ask for the new one, and an exemption from a security refusal is visible in the invocation that grants it instead of depending on an invisible fallback path. The tracker's declaration path is therefore stated once, in the `merge-pull-request.sh` wrapper that already holds repository-specific wiring, and the reasoning is recorded as AD2 and propagated through the scope, ownership review, implementation plan, rules, acceptance criteria, and manual scenarios.
|
The ambiguity is resolved in favour of the first option: omitting Two reasons decided it. The vendored tool keeps its current behaviour for any invocation that does not ask for the new one, so the diff against the file we vendored stays small and reviewable and the single provenance statement in AD1 stays honest about how far the copy has moved. And an exemption from a security refusal should be visible in the invocation that grants it: a built-in default would make the difference between "every link refused" and "these links admitted" depend on whether a file happens to be present in the tree, which is the invisible condition an exception mechanism should not have. This supersedes the wording in the earlier (now resolved) thread on the Rules section, which described Commit: a6eaf7e Sections aligned in that commit:
|
|
One follow-up before I can approve: please update the PR description. It still says |
|
PR description updated to the resolved contract: |
josecelano
left a comment
There was a problem hiding this comment.
Confirmed: the PR description now matches the resolved contract. Approved.
|
ACK a6eaf7e |
Summary
Spec-only PR: adds the folder-style specification for #2175, explicit symlink exceptions for the vendored maintainer merge tool, under
docs/issues/open/2175-merge-tool-symlink-exceptions/ISSUE.md, plus the three dictionary words its text needs. No tool, wrapper, or test changes; implementation follows in a separate PR once this specification is merged.The specification proposes a root
.symlinks.jsonmanifest (shared format namespacecom.torrust.repository.symlinks) listing each accepted symbolic link with its exact target and reason; an optional--symlinks <path>argument ongithub-merge.pynaming a tree path inside the final merged tree, with every admitted link printed before sign-off — the argument carries no default inside the tool, so a run without it performs no declaration processing and keeps today's unconditional refusal; andmerge-pull-request.shpassing--symlinks .symlinks.jsonunconditionally, as the single place the repository's declaration path is stated. Three properties carry the design: the manifest is read from the final merged tree only, never from the working directory or any branch; every commit the merge introduces (pull/<n>/base..pull/<n>/headplus the merge commit) is checked against that single manifest, with refusals naming the carrying commit; and targets that are absolute or contain..are never accepted whatever the manifest says. A consequence the spec states explicitly: removing a declared link is a two-step change, since pre-deletion commits are judged against the final manifest.The specification also records the resolved architectural decision AD1: the vendored tool becomes an ordinary repository file maintained under normal review, with
README-github-merge.mdreduced to a single permanent provenance statement (origin, MIT license, original SHA-256, introducing commit 833a416) and no re-hashing, byte-identity, or divergence tracking.Files touched
docs/issues/open/2175-merge-tool-symlink-exceptions/ISSUE.md— the specification (drafted underdocs/issues/drafts/, moved toopen/with the issue number per thecreate-issueskill).project-words.txt—Buildah,containerignore,topo, added with the repository formatter.Validation
linter all(torrust-linting 0.2.0): all linters passed, including markdownlint, lychee local links, and cspell.contrib/dev-tools/git/github-merge.pywith cited line numbers.Related to #2175 (spec-only; implementation follows separately).