Repository navigation
docs(issues): [#2943] add the figment Jail environment issue spec as EPIC #2392 order 11 - #2944
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.
Copilot review overview
2 open issues
What changed in this PR
Adds a new documentation issue spec under EPIC #2392 to track and resolve figment::Jail-related test interference, and updates the EPIC ordering/log to include the new issue (#2943).
Changes:
- Added issue spec #2943 documenting the
figment::Jailenvironment/cwd interference, scope, options, and execution plan. - Updated EPIC #2392 to include order 11 for #2943 and updated progress log / acceptance-criteria evidence accordingly.
| File | Description |
|---|---|
| docs/issues/open/2943-2392-figment-jail-process-environment/ISSUE.md | New spec describing the figment::Jail test-isolation problem, reproduction approach, and candidate designs. |
| docs/issues/open/2392-test-isolation/EPIC.md | Adds #2943 as order 11 and records rationale/status updates in the EPIC. |
Review effort: Lite
|
ACK 6bce0d6 |
|
ACK 6a962ac |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6a962ac77982589556db54f3c02ff2ff3f67ea37. Recomputed from the bytes at this head, against the merge base 00b55c81c; git merge-tree against develop 976518e6c writes a tree with no conflict, and develop has not touched any file of this PR since the base.
Process: a bug spec under an EPIC, governed by create-issue (with the sections fix-bug and write-unit-test require), open-pull-request for the description and history, and process-pr-review for the review record. The folder name, the -spec branch, the frontmatter, the draft-then-move history and the Related to links follow them. The audit record keeps the template's verbatim sections and field order, records both threads with replies on their own threads, and its verification commands recompute. The validator's logic, run offline with the PR's commit range as the commit listing, reports 2 rows, 2 log entries and 0 failures.
The change against its claim: ISSUE.md is new, and EPIC.md gains order 11, a frontmatter link, a Delivery Strategy paragraph, a log entry and the AC1 and AC4 evidence, as the description says. The audit's G2 quote, the 38 = 28 + 1 + 5 + 3 + 1 split, figment 0.10.19, edition 2024, the 159 tests, the two test_config_<uuid>.toml writers, the G1 location and the clear_env() and set_env() counts recompute. The Jail::expect_with counts do not (F1).
Consistency: every related-artifact path and template exists at this head and at 976518e6c; the evidence section the spec cites carries the finding at 976518e6c; nothing moves; no dictionary change.
Hygiene: Conventional subjects in the [#N] form, author equal to committer, git diff --check clean, the commit-id check prints nothing, and no closing keyword in the title, description or commit messages. Each of the four commits carries one attribution footer line (no rule in the tree on it); the description carries one attribution footer line too.
Findings: F1 (Major), F2 and F3 (Minor). F1 blocks, because the options table the maintainer decides from in T2 doubles Option B's cost.
Checked, no finding: the 2024-edition claim and its Edition Guide page (the link checker fetches it); last-updated-utc left unchanged by the spec's last commit (no rule requires a refresh); three commits without a body (optional in commit-changes); the record's Minor (inferred) severities (the source comments carry no bracket).
Checks
On the loop's compute node at this head, against the merge base 00b55c81c (receipt server-gates-kranich-1190): the repository's pre-commit gate and lint roster exit 0 (59 s wall), and the audit validator passes this pull request's record (2 rows, 2 log entries, 0 failures). The PR changes documentation only, so no package tests apply. F1 checked against the bytes at posting: grep -cE 'Jail::expect_with\(' prints 18, 8 and 25 for lib.rs, v2_0_0/mod.rs and v3_0_0/mod.rs, while a plain grep -c 'Jail::expect_with', which also matches the #[allow(... reason = "figment::Jail::expect_with ...")] line above each call, prints the table's 36, 16 and 50. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 4497837e6.
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
2 open issues
2 resolved since last review
Review effort: Lite
|
ACK f918288 |
…nt issue Co-Authored-By: Claude Fable 5.2 <[email protected]>
… order 11 The maintainer approved the draft. The GitHub issue is torrust#2943; the spec moves to docs/issues/open/ and the EPIC torrust#2392 gets order 11. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…te the edition guide Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…le 5 and mark the /tmp file as inferred Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…n the PR 2944 audit The refresh after resolving the round 2 threads showed two unresolved threads of a later Copilot review, not none. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…d require the toolchain version in the evidence Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ues/closed after the rebase Co-Authored-By: Claude Fable 5.2 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6465156af44f138dbccc17c35f0e22a8ab6eb222. Recomputed from the bytes at this head, against the merge base 00b55c81c; git merge-tree against develop 4497837e6 writes a tree with no conflict, and develop has not touched any file of this PR since the base.
Process: since 6a962ac77 the branch adds the fixes f918288d1 and 0ae0f72bd and the audit commits 24622142b, 67d6e28de and 6465156af. create-issue and fix-bug govern the spec, open-pull-request the history, and process-pr-review with its template the record.
The change against its claim: f918288d1 fixes the earlier F1 to F3. The table has 18, 8 and 25 calls. Fifty tests call Jail and the helper's two callers call none of their own, so 52 of the 159 tests run in a jail and 107 outside one. Option B says about 50 tests move. Rule 5 is quoted from EPIC.md:142-143 with its own column. The /tmp file is marked as inferred. 0ae0f72bd gives the usage table a date and a command, which prints exactly the three files, and has the evidence policy ask for rustc -Vv and cargo -V.
Record: rows F1 to F7 cover all seven threads. Each has its reply on its own thread and is resolved; severities match the source brackets, and the verification commands of F3 to F7 recompute. The verbatim sections still match the template. The validator's logic, run offline, reports 7 rows, 6 log entries and 0 failures.
Consistency and hygiene: no path, link or dictionary change. Each commit is Conventional, with author equal to committer and one attribution footer line (no rule in the tree on it); the description carries one too and is unchanged. git diff --check is clean, the commit-id check prints nothing, and there is no closing keyword in the title, description or commits.
Findings: F4 and F5 (Minor). Neither blocks: both leave true statements in two logs that are meant to be append-only, and the author can repair them after the merge.
Checked, no finding: the spec's last-updated-utc left at 14:12 (no rule requires a refresh); +stable kept, with the version now recorded with each result; the issue-body corrections the record mentions (outside the tree).
Checks
On the loop's compute node at this head, against the merge base 00b55c81c (receipt server-gates-kranich-1198): the repository's pre-commit gate and lint roster exit 0 (64 s wall), and the audit validator passes this pull request's record (7 rows, 6 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Round 1's F1 checked against the bytes at posting: the spec's table now gives 18, 8 and 25 Jail::expect_with calls, which grep -cE 'Jail::expect_with\(' prints for the three files; and the audit record at this head carries seven finding rows. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 2f249d7e0.
|
ACK 6465156 — the spec's Jail counts, rule 5 citation and evidence claims recomputed, and all seven review threads carry a reply, an audit row and a resolution, with the validator logic passing |
…an after the approval Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 1b2d308eeded8005840cdd0b03997642a391076c. Recomputed from the bytes at this head, against the merge base 2f249d7e0; git merge-tree against develop 96923f0d2 writes a tree with no conflict, and develop has not touched any file of this PR since the base.
Process: since a66cbae3e the branch adds 0e6532f92, which answers the last round's F10 in the spec and its evidence file, and the audit commit 1b2d308ee. fix-bug, the evidence template and process-pr-review govern them.
The change against its claim: 0e6532f92 does what its subject says. The spec and the evidence say the reproduction ran during this PR's review, after the approval at 13:23 UTC. A run at 15:43 UTC records each step's start and end and the full rustc +stable -Vv and cargo +stable -V output, and the first run's output is kept for comparison. The counts (2.24 to 2.34 million reads, thousands of unset reads in each, 159 tests passing beside the failing probe) match the spec's summary. F10 is fixed.
Record: rows F13 to F16 record reviews 5958844326 and 5959029017. They have reassigned IDs, severities matching the brackets, and replies on their own threads. All sixteen threads have a reply, a row and a resolution, the log is in time order, and the verbatim sections match the template. The validator's logic, run offline, reports 16 rows, 13 log entries and 0 failures. F8, F9 and F11 are fixed.
Hygiene: sixteen Conventional commits, each with author equal to committer and one attribution footer line (no rule in the tree on it); the description carries one too. git diff --check is clean, the commit-id check prints nothing, and there is no closing keyword.
Findings: F13 and F14 (Minor). Neither blocks: both are statements the author can correct after the merge, and neither misleads a reader of the spec.
Checked, no finding: review 5960140136, posted after this head's audit commit, which has a summary and no thread; gh-bot in the F14 row's command, a wrapper that earlier merged records use as well.
Checks
On the loop's compute node at this head, against the merge base 2f249d7e0 (receipt server-gates-kranich-1207): the repository's pre-commit gate and lint roster exit 0 (57 s wall), and the audit validator passes this pull request's record (16 rows, 13 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: docs/pr-reviews/pr-2944-review/PR-REVIEW.md at this head carries sixteen finding rows, including the two of review 5958844326 that round 5 held on. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: in_progress/pending". At posting, develop is 96923f0d2.
|
ACK 1b2d308 — the timed reproduction and the corrected labels verified, and all sixteen review threads carry a reply, an audit row and a resolution, with the validator logic passing |
…t counted their own line Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
ACK 36ccef2 |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 36ccef2866daeb2044fdf15dd059fbe92f83b83f. Recomputed from the bytes at this head, against the merge base 2f249d7e0; git merge-tree against develop 96923f0d2 writes a tree with no conflict, and develop has not touched any file of this PR since the base.
Process: since 1b2d308ee the branch adds 36ccef286, which answers the last round's F14 in the record. process-pr-review governs it.
The change against its claim: 36ccef286 does what its subject says. It changes only the two Current-tree verification lines of record rows F13 and F16, which now read grep -c '^- Source review ID: …'. Both print 2 at this head, so F14 is fixed. The description's #2943 item now says "repeat the reproduction made during the review", and the description no longer contains "drafting", so F13 is fixed. Every finding of this review, F1 to F14, is fixed at this head.
Record: the validator's logic, run offline, reports 16 rows, 13 log entries and 0 failures. It checks only the rows that exist.
Hygiene: seventeen Conventional commits, each with author equal to committer and one attribution footer line (no rule in the tree on it); the description carries one too. git diff --check is clean, the commit-id check prints nothing, and there is no closing keyword.
Findings: none new. Approval waits for the audit rows of review 5960255602. It was posted at 15:59:25Z, before this head's audit commit (17:25:24Z), and its two threads, r4616933192 and r4616933219, have replies (17:29:23Z, 17:29:26Z) and resolutions. But the record has no rows for them and no Processing Log entry for this round. process-pr-review records each finding with its reply URL before the thread is resolved. Two rows with detail entries, plus a log entry, clear this; I raise it here rather than in a new thread, which would itself need a row.
Checked, no finding: the description edit, which leaves only the one changed line and a trailing blank line.
Checks
On the loop's compute node at this head, against the merge base 2f249d7e0 (receipt server-gates-kranich-1208): the repository's pre-commit gate and lint roster exit 0 (50 s wall), and the audit validator passes this pull request's record (16 rows, 13 log entries, 0 failures); the missing rows for review 5960255602's two threads are a gap the validator does not check. The PR changes documentation only, so no package tests apply. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 96923f0d2.
|
ACK 5fc6ee9 |
…un and correct the option B visibility Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
ACK 1e7b920 |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at a8faa7878293e7ca940b0dbfb3502a0fa2b6c5b7. Recomputed from the bytes at this head, against the merge base 2f249d7e0; git merge-tree against develop 7a4c16eaf writes a tree with no conflict, and develop has not touched any file of this PR since the base.
Process: since 36ccef286 the branch adds the audit commits 5fc6ee948 and a8faa7878 and the spec commit 1e7b92044. fix-bug and process-pr-review govern them.
The change against its claim: 1e7b92044 does what its subject says. New task T3 adds the check T2 chooses and records its red run on the unfixed tests, before T4 isolates them, and T6 records it green with V2. That is the sequence fix-bug asks for (its SKILL.md, lines 152-153). Every task reference after the renumbering points at the right task, including V2 "after T4" and the commit points. Option B now says that an integration-test target is a separate crate that sees only the public API, which is correct.
Record: rows F17 to F20 record review 5960255602 and review 5963262753. They have reassigned or carried IDs, severities matching the brackets, replies on their own threads and the fixing commits' subjects or reply URLs, and their verification commands recompute. All twenty threads have a reply, a row and a resolution. The log is in time order, and the verbatim sections match the template. The validator's logic, run offline, reports 20 rows, 17 log entries and 0 failures. F13 and F14 of the last approval are fixed.
Hygiene: twenty Conventional commits, each with author equal to committer and one attribution footer line (no rule in the tree on it); the description carries one too. git diff --check is clean, the commit-id check prints nothing, and there is no closing keyword.
Findings: none.
Checked, no finding: the request in this review's previous body, already met by the round 7 audit commit, which the round 8 summary notes; the spec's last-updated-utc left at 15:43 (no rule requires a refresh); review 5963628267, posted after this head's audit commit, with no thread.
Checks
On the loop's compute node at this head, against the merge base 2f249d7e0 (receipt server-gates-kranich-1210): the repository's pre-commit gate and lint roster exit 0 (481 s wall), and the audit validator passes this pull request's record (20 rows, 17 log entries, 0 failures). The PR changes documentation only, so no package tests apply. The head was confirmed with git ls-remote before posting, and the cited fix-bug skill lines (152-153) were re-read at this head. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 7a4c16eaf.
|
ACK a8faa78 — the regression-check task and the option B correction verified, and all twenty review threads carry a reply, an audit row and a resolution, with the validator logic passing |
|
ACK a8faa78 |


Summary
Spec-only. No code changes.
While implementing #2907, its session found that the tests using
figment::Jailinpackages/configurationchange the process environment and the current directory while other tests of the same test binary run. The shared-resource audit (#2394) had classified this resource (finding G2) as isolated. The maintainer approved the spec before the issue was created.figment::Jailtests from changing the environment other tests see #2943, new (docs/issues/open/2943-2392-figment-jail-process-environment/ISSUE.md): repeat the reproduction made during the review (a probe test outsideJail), isolate the tests with the design the maintainer chooses in T2 (three candidates are listed), recheck audit finding G1, and correct the G2 row of the audit inventory.docs/issues/open/2392-test-isolation/EPIC.md:figment::Jailtests from changing the environment other tests see #2943 as a sub-issue.The branch keeps its history: the draft, the move to
docs/issues/open/after the approval, the fixes of each review round, and the review audit commits. The reproduction made during the review is inmanual-verification-evidence.mdof the new issue folder.Validation
linter allpasses, and the pre-commit hook passes on each of the branch's commits.Related to #2392
Related to #2943
Related to #2907
🤖 Generated with Claude Code