← Planning Hub

Woodsman Achievement

Built 2026-10-30 (branch worktree-gtl-woodsman). A knife-safety checklist on the profile of every Trailman Mountain Lion and older. A parent or leader goes through it with him, one parent consents, then the Troopmaster or TML signs off — and he may carry a knife at troop events.

Status: Live on gracetraillife.org (rules + hosting deployed 2026-10-30). Group check-off (below) is live too (hosting, 2026-10-30). 11-item checklist from the official Woodsman Requirements (Doc 528, updated 11/1/2025) is live too (rules with dullKnife + hosting, 2026-10-30).

How it works

  • Pages: /dashboard/woodsman.html?id=<trailman id> (families + leaders) and /dashboard/woodsman-roster.html (leaders; in the menu as “Woodsman”). Summary cards on family.html (each son) and trailman.html; a Woodsman badge + filter on Trailmen (admin-trailmen.html).
  • Eligibility: program group from programGroup.js resolveGroup (group override → grade → age) is Mountain Lion, Navigator or Adventurer. No grade and no birthday = “can’t tell” (leaders see it, families don’t). Admins can force eligible / not eligible with a reason (logged).
  • Checklist: the 11 items of the official Trail Life USA Woodsman Requirements (Doc 528, last updated 11/1/2025; Mountain Lions Outdoor Skills Core Step 05 Edge Tools), in its order and wording: tool not a toy; Part 1 where/when to carry; Part 2 Safety Circle, passing and receiving an open knife, opening/closing, cutting; Part 3 why a dull knife is dangerous, sharpening with a stone, oiling, cleaning and drying, storing safely. (Updated 2026-10-30 from the older 10-item guide: “dull knife” split out of the old “keep it sharp” item as new key dullKnife; sharp now means the sharpening demo; other keys unchanged; passing now requires the open-knife pass for every Mountain Lion. Needs the firestore.rules wmKeys change deployed. No live records existed at the change.) Any linked family adult (father, mother, grandparents, other family) or any leader checks them; each shows who and when. Unchecking is allowed until earned, logged, and clears parent consents.
  • Parent consent: unlocks when every item is checked. One linked father/mother (with their own login) agrees for themselves — that completes the step; the other parent sees who agreed and when. They can withdraw until he has earned it. (Changed 2026-10-30 per Brett: was “every parent” + an admin single-parent waiver; both removed.)
  • Troopmaster / TML sign-off: there was no troop-position field, so admins pick who holds those positions on the Woodsman roster (stored in org_settings/woodsman.approvers, admin-write, change log kept). Admins can always sign off as the fallback. Sign-off is the last step and earns it.
  • Revoke: any leader, reason required, shown to the family. A parent and the TM/TML then agree again.
  • Data: woodsman/{trailman id} + append-only log subcollection. Every change is one batched write of both; the rules check every stamp is the caller at request.time.
  • Group check-off (added 2026-10-30, branch gtl-woodsman-group, woodsman-group.js): the “Group check-off” button on the Woodsman roster (or woodsman-roster.html?group=1). A leader picks the boys who are here (tap, Select all, or “Select who checked in” — check-ins for the event within ~16 hours of now, matched by name like the check-in report), then steps through the 11 items once. On each item every picked boy is ticked; untick anyone not ready, tap “Check off for N”, confirm, saved. Boys who already have that item are shown and skipped; younger boys, boys with no grade, Woodsmen and boys whose checklist is done are listed as left out. Each boy gets his own record patch + log entry (note “Group check-off (N Trailmen)”) with the leader’s name and server time — same as his own page; they go in one batch (chunks of 10 boys). Parent consent and TM/TML sign-off stay per boy. Rules unchanged; emulator test tests/rules/woodsman_group.test.mjs. Not in the iOS app yet.
  • App: mirrored natively in App-iOS (Rules/Woodsman.swift, WoodsmanView); see App-iOS/PARITY.md.

Demo (staging / local only)

  • /dashboard/woodsman.html?demo=start|progress|consent|leader|earned|revoked, add &as=dad|mom|leader|troopmaster|admin to switch who’s looking.
  • /dashboard/woodsman-roster.html?demo=1&as=admin
  • /dashboard/woodsman-roster.html?demo=1&group=1 — group check-off; “Select who checked in” uses a sample check-in list.
  • Sample data in memory only — no sign-in, nothing saved. Ignored on gracetraillife.org / grace-trail-life.web.app.

Deploy checklist (needs Brett)

  1. firebase deploy --only firestore:rules — adds match /woodsman (emulator-tested in tests/rules/woodsman.test.mjs).
  2. On the Woodsman roster, add the Troopmaster and TML.
  3. Try one Trailman on staging, then merge and deploy hosting:production.

Ready-for-sign-off notification

When a Trailman has every item checked and a parent has agreed, the onWoodsmanReady Cloud Function sends a push and a Notifications-page entry that opens his Woodsman page. It goes to the people listed on the roster under “Who signs off” (admins only if nobody is listed), once per time he becomes ready. Anyone can turn it off in Notification Settings. Needs: firebase deploy --only functions:onWoodsmanReady, then hosting for the settings toggle. A Trailman already waiting when it deploys isn’t announced.

Open questions

  • Admin fallback is every admin (there’s no Brett-only id in the code). Narrow it to Brett’s uid?
  • Grandparents raising a Trailman can check items but not consent. Should guardians other than father/mother count as parents?
  • Check-in kiosk badge not added: kiosk rows are names from RSVPs, not member ids.
Built 2026-10-30 · live · group check-off on staging