# Demeter stub-target audit (V1-P2-2700)

Audit produced by running the §2.6 mandatory stub-indicator regex
(`scripts/stub-indicator-scan.sh`) plus the broader CLAUDE.md scan over
`apps/demeter/` (api, mobile, web) and `libs/demeter/` (analytics, automation,
community, core, hydroponics, intelligence, inventory, journal, planner, plants,
preservation, sensors, tasks, weather) on **2026-05-04**.

The strict pre-commit scan
(`scripts/stub-indicator-scan.sh apps/demeter/ libs/demeter/`) returns **exit
0** for both `--mode=stubs` and `--mode=all`.

## Counts

| Bucket                                          | Files | Line hits |
| ----------------------------------------------- | ----- | --------- |
| Strict scan (`stub-indicator-scan.sh` defaults) | 0     | 0         |
| Strict scan (`--mode=all`, includes random)     | 0     | 0         |
| Broader CLAUDE.md grep (production source)      | 101   | ~280      |

The TODO description's "23 total stub sites" figure refers to a prior snapshot;
the current broader-grep count is higher because of UI input `placeholder`
attributes (HTML, not stub markers) and i18n locale keys.

## Per-file checklist (all hits ≥ 2)

- [ ] `apps/demeter/web/src/pages/tasks/TaskCreationModal.tsx` — 9 hits
      (form-input placeholders).
- [ ] `apps/demeter/web/src/pages/sensors/SensorsPage.tsx` — 9 hits.
- [ ] `apps/demeter/mobile/src/screens/journal/ObservationEntryScreen.tsx` — 9
      hits.
- [ ] `apps/demeter/api/src/routes/auth.ts` — 9 hits.
- [ ] `libs/demeter/sensors/src/integrations.ts` — 8 hits. Sensor protocol
      integration; check whether hits indicate missing real-hardware adapters.
- [ ] `apps/demeter/web/src/pages/profile/ProfilePage.tsx` — 8 hits (form
      placeholders).
- [ ] `apps/demeter/mobile/src/screens/sensors/SensorDetailScreen.tsx` — 8 hits.
- [ ] `apps/demeter/api/src/routes/weather.ts` — 8 hits. Weather data route;
      check whether hits indicate missing weather provider integration.
- [ ] `apps/demeter/web/src/components/form/Select.tsx` — 7 hits (component
      placeholder API; legitimate).
- [ ] `libs/demeter/sensors/src/protocols.ts` — 6 hits.
- [ ] `apps/demeter/web/src/pages/tasks/CalendarPage.tsx` — 6 hits.
- [ ] (~85 additional files at 2–5 hits each)

## Summary of action types

| Class                          | Approximate count                             |
| ------------------------------ | --------------------------------------------- |
| Real stubs to wire             | ~5–10 (sensors, weather provider integration) |
| Legitimate UI input attributes | ~70                                           |
| Already-correct, comment-only  | ~20                                           |

V1-P2-2701 will iterate this list. The strict scanner's exit-0 status is the
source-of-truth signal for completion per CLAUDE.md project policy.
