Repository navigation
feat(bootstrap): make Treehouse pool report opt-in - #8033
Conversation
[Low impact] The PR appears safe to merge; no new actionable issues were found. Reviews (15) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
c3331f7 to
5386743
Compare
5386743 to
9497f2d
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1, this is a careful, read-only report. On head Waiting on you for one thing: Greptile's latest thread on Contract-class (my own read): new-default. Every unconfigured bootstrap now runs this scan and prints a new report line. So once the thread is settled and the Full suite is green, this goes to Kun for the decision. That part is waiting on Kun, not you. VISION: it aligns. It's a read-only, script-owned report that leaves pruning to the operator (authority, scripts/judgment), and it helps nothing fall through the cracks. The startup cost is the one point I'm watching (token and attention efficiency). |
9497f2d to
2e8f8e2
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1. Head Waiting on you for one thing: live evidence on this head. Your earlier head had an isolated live Heads-up, nothing for you to do: #8035 (yours) also changes Contract-class (my own read): new-default, unchanged. Every unconfigured bootstrap runs the scan and can print a new report line. Once the live run is posted and the full suite is green, this goes to Kun for the decision. That part waits on Kun, not you. VISION: it aligns. It's a read-only, script-owned report and pruning stays with the operator, and the startup cost is now linear. |
2e8f8e2 to
bd1ddd3
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1 for the re-raise. Head Waiting on you for two things:
Heads-up, nothing for you to do: #8052 moves Herdr spawns onto durable Contract-class (my own read): new-default, unchanged. Every unconfigured bootstrap with Treehouse state runs the scan and can print a new report line. Once the threads and the live run are settled and the full suite is green, this goes to Kun for the decision. That part waits on Kun, not you. VISION: it aligns. The report is read-only and script-owned, pruning stays with the operator, and the startup cost is linear. |
bd1ddd3 to
264bc0c
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1, this round settles everything. On head
Greptile is 5/5 with every thread resolved. The attestation binds this head with no skipped steps, and the live step drove detect-only bootstrap against real Treehouse pools with checksums unchanged. That's exactly the evidence I was after, thank you. It merges cleanly with main I've added the |
|
Speaking as Kun's firstmate: thanks @Dematom1. The
Waiting on you: a push that drops the unused |
|
Live validation evidence (2026-11-01): detect-only bootstrap ran with FM_LIVE=0 in an isolated home and root containing four pools created by the installed Treehouse CLI from disposable repositories. The report emitted unregistered-pool, duplicate-clone, old-unowned-slot, test-leftover, and scanned-four-pools findings. Before/after file listings and SHA-256 checksums for the throwaway pool root and fixture repositories matched. The FM_LIVE=0 bootstrap test file completed locally on macOS before the credential-output follow-up. On the pushed head, the pool-report assertions and credential-bearing-origin test passed; the full bootstrap test file exceeded a 180-second timeout during later cases. No Linux runtime was available. The full-suite CI check requires the maintainer-owned |
18628a7 to
6b46d86
Compare
6b46d86 to
4d0e0fe
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1. The Full suite is green on head |
…heckout path instead of the origin URL. Added a behavioral test with credentialed HTTPS origins; it passed. The bootstrap test suite timed out after 180 seconds during later tests; pool-report assertions passed
1fe0791 to
941f11a
Compare
# Conflicts: # docs/configuration.md
# Conflicts: # bin/fm-bootstrap.sh # tests/fm-bootstrap.test.sh
|
Speaking as Kun's firstmate: this is merged. Thank you @Dematom1 — really appreciate you taking the time on this. |
Intent
convert the 10 to opt in
Context: our open upstream PR #8033 ("report Treehouse pool hygiene at bootstrap", fork branch Dematom1:fm/fm-hyg-u6-pool-report, head 4d0e0fe7) is classed new-default by the maintainer: "new-default, because every bootstrap with Treehouse state now prints a pool report". The decision is to convert it to opt-in. The pool orphan/duplicate report block in bin/fm-bootstrap.sh runs only when a new home-local presence flag (config/, in the house pattern like config/pr-register-scan) exists. Without the flag, bootstrap behaves exactly like main and does no extra reads. FM_POOL_ORPHAN_DAYS stays as tuning. The conversion is pushed to the existing PR through a fresh validated run.
What Changed
config/treehouse-pool-reportflag; bootstrap skips all Treehouse state reads and pool reporting when absent.FM_POOL_ORPHAN_DAYStunes the stale-slot threshold.Risk Assessment
✅ Low: The change gates the read-only pool scan behind the specified home-local flag, and its classification and opt-in paths are bounded and consistent with the documented behavior.
Testing
The earlier legacy lab stopped during setup because it expected reports without creating the opt-in flag. Ran the opt-in-aware lab instead: absent-flag output matched origin/main, opted-in findings appeared with and without Treehouse on PATH, and fixture checksums remained unchanged. Retained the live output; no UI surface was involved.
Evidence: Pool-report opt-in live lab
Source: Pool-report opt-in live lab
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found ✅
bin/fm-bootstrap.sh:1575- If atreehouse-state.jsonfile is malformed or jq fails, thiscontinueskips the function’s onlyrm -f "$records"; with multiple bad pool files, each bootstrap leaves afm-pool-records.*file in TMPDIR. Clean up the temporary file on this path as well (the success path already removes it).✅ No issues found.
🔧 **Test** - 3 issues found → no changes applied (2) ✅
bin/fm-bootstrap.sh:1- The supplied legacy lab aborts after an empty report with Treehouse on PATH because it expects reporting by default; this is consistent with the opt-in change but prevents that lab from reaching its Treehouse-absent pass.tests/fm-bootstrap.test.sh:1- The targeted bootstrap test runner timed out at 300 seconds after repeatedfatal: not a git repositorydiagnostics; it did not complete.pool-live-lab.shoutput ended immediately after=== treehouse available ===and exited 1; noTREEHOUSE_POOL_REPORT:lines were emitted.config/treehouse-pool-reportand stops on its default-on assertion before its no-Treehouse case. A separate live opt-in fixture run was not completed; the available…FM_TEST_REPO="$(pwd -P)" TMPDIR=~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u6-pool-report/tmp bash ~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u6-pool-report/pool-live-lab.sh(exited 1 on the lab's default-on expectation)FM_LIVE=0 bash bin/fm-test-run.sh tests/fm-bootstrap.test.sh(timed out at 300 seconds)🔧 No changes applied.
2 warnings still open:
bin/fm-bootstrap.sh:1648- The supplied live lab cannot validate the current opt-in behavior as written: it never createsconfig/treehouse-pool-report, and it stops at=== treehouse available ===before driving bootstrap. No product failure established; requested lab evidence remains unavailable.FM_TEST_REPOset to this worktree. The lab aborts before invoking bootstrap; its scenario setup lacks the required opt-in flag and references a PAT…config/treehouse-pool-reportflag, so it cannot exercise opted-in reporting; no live report/checksum-…FM_TEST_REPO="$(pwd -P)" TMPDIR=~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u6-pool-report/tmp bash ~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u6-pool-report/pool-live-lab.sh(exit 1 before bootstrap)🔧 No changes applied.
✅ Re-checked - no issues remain.
TMPDIR="$PWD/.pool-lab/tmp" bash .pool-lab/optin-live-lab.sh "$PWD"(isolated lab copied from the supplied script; exit 0)✅ No issues found.
TMPDIR="$PWD/.lab-live/tmp" bash ~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u6-pool-report/optin-live-lab.sh "$PWD"Verified emitted report lines and unchanged fixture checksums in the retained lab log.✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.