clone guard: -o path that is a symlink into the checkout is followed, still overwrites the repo AGENTS.md (follow-up to #238/#275)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
Research direction
Start with adapters/codex/install.sh and reproduce the symlink case from the issue against a checkout containing AGENTS.md. Trace the -o path handling through the directory-resolution guard, then add the requested symlink test. Done means the target inside the checkout is refused with exit 2 and no file or backup is written.
Written by the indexing model from the issue text.
Description
From the PR #275 review (Cyra). #275 refuses in-checkout AGENTS.md writes by resolving the directory of -o. The guard does not resolve the final path component, so a symlink whose target lives inside the checkout is followed and the write lands in the repo anyway.
Repro on pr-275 (a9508c82):
cd /path/to/coco-checkout
ln -s "$PWD/AGENTS.md" /tmp/outlink.md
bash adapters/codex/install.sh -o /tmp/outlink.md
# exit 0, no refusal; /path/to/coco-checkout/AGENTS.md replaced (1294 lines), backup written as /tmp/outlink.md.backup-<ts>
Expected: same refusal as PR #275's other cases (-o inside the checkout), exit 2, nothing written.
Actual: the tracked contributor guide is overwritten through the symlink.
Lower severity than #238 — it needs a deliberately planted symlink, not the README path — so it does not block #275. Fix would be resolving the target (e.g. readlink loop / python3 -c os.path.realpath) before the inside $repo_root_phys comparison, plus a test case.
P2, non-blocking for #275. Evidence above, reproduced 2026-09-27.
- Dominant language
- HTML
- Stars
- 347
- Forks
- 12
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 95
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coco-research/coco
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coco-research/coco#539 ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coco-research/coco#538 ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
coco-research/coco#537 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coco-research/coco#530 ·
Maintainers usually reply within 1 day
-
check-asset-counts: bare 149 tripwire collides with a real active-assets count of 149Possibly taken @aryankalantri claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coco-research/coco#473 ·
Maintainers usually reply within 1 day
All issues in coco-research/coco
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nutmos/expensetrackr#157 ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
qte77/cc-senses-plugin#163 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
Maintainers usually reply within 1 day
-
checks: `delegate-call-risk` matches a non-existent `env.try_call` and misses `try_invoke_contract`Openbug checks-crate good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SorobanGuard/Guard-CLI#1063 ·
-
bug platform-desktop platform-windows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Termix-SSH/Termix#1951 · 2 comments ·
Maintainers usually reply within 1 day