Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

ci: bound ShellCheck scans and clarify JT repository routing - #97

Merged
JTInventory merged 15 commits into
mainfrom
codex/jt-war-room-routing
Aug 14, 2026
Merged

JTInventory merged 15 commits into
mainfrom
codex/jt-war-room-routing

Conversation

@JTInventory

@JTInventory JTInventory commented Aug 13, 2026 •

Copy link
Copy Markdown
Owner

Intent

Route JT app, UI, Firebase Hosting, and storage-protection changes to JTInventory/jt-war-room while keeping all pipeline and data changes on JTInventory/Openclaw-Backup; make repository guidance unambiguous, preserve existing Firstmate behavior, repair the memory-bounded lint gate, and publish and validate PR #97 through no-mistakes so its signature passes.

What Changed

  • Added explicit ownership and precedence guidance for JT app/UI, Firebase Hosting and storage protection, and pipeline/data changes across JTInventory/jt-war-room and JTInventory/Openclaw-Backup.
  • Made bin/fm-lint.sh the canonical ShellCheck entrypoint and bounded test-file scans while preserving production-library expansion.
  • Stabilized fm-update fixtures with deterministic primary-session attestation and portable ps stubbing, and suppressed false-positive SC2034 warnings in sourced tests.

Risk Assessment

✅ Low: The change is bounded to repository guidance, sequential lint dispatch, and executable updater fixtures; no source-verifiable defect remains.

Testing

Baseline and focused behavior tests passed. Routing guidance maps JT app/UI and Firebase/storage files to JTInventory/jt-war-room, and pipeline/data work to JTInventory/Openclaw-Backup. The lint wrapper correctly bounds test scans while preserving production expansion. PR publication, signature validation, and CI remain outer no-mistakes responsibilities.

Evidence: Lint wrapper contract

fm-lint wrapper contract evidence Pinned version: 0.11.0 Test paths: no -x Production paths: -x SHELLCHECK_OPTS: unset

fm-lint wrapper contract evidence
Pinned version:
0.11.0
Wrapper version banner:
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
ShellCheck invocations (opts-state|arguments):
  unset|--norc -P SCRIPTDIR -S warning tests/fm-update.test.sh
  unset|--norc -P SCRIPTDIR -S warning /root/.no-mistakes/worktrees/7f0ec18181b6/01M00DV35KYTJ6X0Z6DNQS637E/tests/fm-update.test.sh
  unset|--norc -x -P SCRIPTDIR -S warning bin/fm-update.sh
Assertions: test paths omit -x; production path retains -x; SHELLCHECK_OPTS is unset before every invocation.
Evidence: Focused update behavior
ok - T1 main + secondmate fast-forward (single-parent), reread + nudge signalled
ok - T3 reread gates on instruction surface, nudge on advancement
ok - T4 dirty secondmate skipped, local edit preserved
ok - T5 diverged secondmate skipped, local commit preserved
ok - T6 idempotent: a second run is a no-op
ok - T7 registry backstop resolves, dedups meta+registry, excludes the firstmate repo
ok - T9 firstmate off its default branch is skipped, not forced
ok - T10 firstmate detached HEAD is skipped
ok - T11 unsafe secondmate home is not fast-forwarded
ok - T12 interrupted update obligations persist until acknowledged
ok - T13 real predecessor requires the installed updater pass
ok - T14 stale acknowledgements cannot clear newer generations
ok - T15 Herdr acknowledgements resolve exact live metadata
ok - T16 ancestor obligations remain acknowledgeable and retries are durable
ok - T17 skipped updates retain acknowledgement generations
ok - T18 future legacy generations survive concurrent acknowledgements
ok - T19 future-only legacy generations recover on the first retry
# all fm-update tests passed
Evidence: Routing guidance review
JT app vs pipeline routing contract (manual review of agent-facing guidance)
Precedence and explicit ownership:
   301	
   302	
   303	### JT app vs pipeline routing
   304	
   305	JT Inventory's app code and its data pipeline now live in two different repos.
   306	Before opening a PR or dispatching a change, resolve which repo owns the work using this
   307	precedence order: explicit file ownership, explicit semantic domain, project-name hints,
   308	directory hints, then deployment target. Earlier rules always beat later ones.
   309	
   310	- These exact Firebase Hosting and storage-protection files go to `JTInventory/jt-war-room`:
   311	  `firebase.json`, `storage.rules`, `scripts/prepare-firebase-hosting.mjs`, and
   312	  `.github/workflows/deploy.yml`. A merge on its `main` deploys Firebase Hosting automatically.
   313	- JT app/UI/design work goes to `JTInventory/jt-war-room`. `app/`, `components/`,
   314	  `design-system/`, and `docs/design/` are directory hints for that domain, not overrides for
   315	  a more specific semantic match.
   316	- All pipeline and data changes, including pipeline/data generators and secrets, go to
   317	  `JTInventory/Openclaw-Backup` (the OpenClaw monorepo). A pipeline/data generator under
   318	  `app/`, `lib/`, or another broad path stays there; a non-hosting workflow or `lib/` file
   319	  serving the pipeline/data domain also stays there. A `lib/` or workflow path alone does not
   320	  decide ownership.
   321	
   322	Explicit file and semantic-domain ownership beats broad directory globs, explicit project-name
   323	hints, and deployment-target fallback. A mixed-repository request must be split into coordinated
   324	PRs in the owning repositories; keep each PR scoped to its repository, document the dependency
   325	and merge order, and cross-link the PRs. If ownership remains mixed or unresolved, escalate before
   326	dispatching instead of guessing. Use deployment target only as a final fallback for a clearly
   327	single-repository change.
   328	
   329	The canonical definition lives in `jt-war-room`'s README (section « Hébergement ») and in
   330	`Openclaw-Backup`'s `AGENTS.md`; prefer reading those sources over copied detail.
Intake precedence after ownership:
   336	**Resolve the project first.**
   337	The captain will rarely name the project explicitly, and may juggle several projects across messages.
   338	Resolve each message independently; never assume the last-discussed project out of habit.
   339	Use these signals in order after applying the authoritative file/domain routing rules above:
   340	
   341	1. An explicit project name in the message wins when it does not conflict with file/domain ownership.
   342	2. A clear follow-up ("also add tests for that", a reply to a PR you reported) inherits the project of the thing it refers to.
   343	3. Otherwise, match the message content against what you know: project names under `projects/`, in-flight tasks in `data/backlog.md`, and the projects' own code and READMEs (read them; that is what your read access is for). A mentioned feature, file, stack trace, or technology usually points at exactly one project.
   344	4. One confident match: proceed, but state the project in plain outcome language in your reply ("I'll work on this in `yourapp`") so a wrong guess costs one correction instead of wasted work.
   345	5. More than one plausible match, or none: ask a one-line question. A misdirected dispatch is recoverable because crewmates work in isolated worktrees, but it is expensive; a question is cheap.
Reviewer conclusion: exact Firebase/storage files and JT app/UI/design map to JTInventory/jt-war-room; pipeline/data domains map to JTInventory/Openclaw-Backup; mixed or unresolved work is split/escalated; project-name hints cannot override file/domain ownership.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 2 issues found → auto-fixed ✅
  • ⚠️ bin/fm-lint.sh:40 - run_shellcheck only recognizes tests/* and ./tests/* at [bin/fm-lint.sh:40]. An absolute selected test path falls through to the -x invocation, so source expansion and the memory failure remain reachable. Normalize paths or match absolute paths under $ROOT/tests/.
  • ⚠️ tests/fm-update.test.sh:141 - The fixture writes a |fallback lock at [tests/fm-update.test.sh:141] even though its fake ps makes the harness ancestry verifiable. The updater tests therefore skip the normal harness-owner PID validation. Create the lock through fm-lock.sh bootstrap, and cover fallback ownership separately if required.

🔧 Fix: Fixed lint path routing and session-lock fixture ownership
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • bash tests/fm-worker-isolation.test.sh && bash tests/fm-watch-session.test.sh && bash tests/fm-slot-occupant-proof.test.sh && FM_TEARDOWN_TEST_FOCUS=s1 bash tests/fm-teardown.test.sh
  • Baseline command supplied by the outer executor
  • bash tests/fm-update.test.sh
  • bin/fm-lint.sh --required-version
  • Lint-wrapper tests using a pinned-version fake ShellCheck consumer
  • Manual review of JT routing precedence in AGENTS.md
✅ **Document** - passed

✅ No issues found.

🔧 **Lint** - 1 issue found → auto-fixed (4) ✅
  • ⚠️ linter found issues (exit code 1)

🔧 Fix: Suppress false-positive SC2034 for sourced daemon test root
1 warning still open:

  • ⚠️ linter found issues (exit code 1)

🔧 Fix: Suppress sourced-test lint warnings
1 warning still open:

  • ⚠️ linter found issues (exit code 1)

🔧 Fix: Suppress sourced-helper TMP_ROOT lint warning
1 warning still open:

  • ⚠️ linter found issues (exit code 1)

🔧 Fix: Suppress sourced-test SC2034 warnings
✅ Re-checked - no issues remain.

✅ **Push** - passed

✅ No issues found.

@JTInventory
JTInventory force-pushed the codex/jt-war-room-routing branch from 09107bc to 5b493e9 Compare August 13, 2026 23:53
@JTInventory JTInventory changed the title docs: routage JT app vs pipeline (jt-war-room vs Openclaw-Backup) ci: bound ShellCheck scans and clarify JT repository routing Aug 14, 2026
@JTInventory
JTInventory merged commit 208841e into main Aug 14, 2026
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant