M2 "Machine Management UX": full N-machine management from UI plus runtime resilience. All 3 screens now live (dashboard, detail, config). Core: - PollingEngine offline detection: consecutive-fail threshold emits a synthetic Disconnected snapshot (no-spam, resets on recovery). - MachineMonitor dynamic API: AddOrUpdateMachineAsync / RemoveMachineAsync start/restart/stop a machine's polling live (no app restart); idempotent. - MachineMonitor.AvailableProtocols exposes loaded protocol ids. App: - Machine detail screen: full current snapshot, reachable from dashboard row, live-refreshing, Back nav. - Config screen: add / edit / delete machines with validation; Save upserts + reloads monitor live; Delete two-state confirm + stops polling. - Dashboard: "Add machine" button, per-row Details, reload after mutation. Repo hygiene: - Untrack stray src/Junction.App/plugins/ build artifact (real output goes to bin/*/plugins via build target); add to .gitignore. PAUL: initialized .paul/ (PROJECT/ROADMAP/STATE + paul.json) as cross-session system-of-record. v0.1 shipped, v0.2 complete, v0.3 OPC UA next. Build 0 warn/0 err (net48 + net8.0). Tests: 125 unit + 2 docker integration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
64 lines
2.5 KiB
Markdown
64 lines
2.5 KiB
Markdown
# Project State
|
|
|
|
## Project Reference
|
|
|
|
See: .paul/PROJECT.md (updated 2026-07-21)
|
|
|
|
**Core value:** Operators see live state of every configured machine across heterogeneous protocols in one place, adding machines/protocols without code.
|
|
**Current focus:** v0.2 complete (commit pending) → next v0.3 OPC UA
|
|
|
|
## Current Position
|
|
|
|
Milestone: v0.2 Machine Management UX
|
|
Phase: 2 of 2 (Machine Management UX) — COMPLETE
|
|
Plan: 02-A ✓ 02-B ✓ 02-C ✓
|
|
Status: Complete (commit pending) — build 0/0, 125 tests + 2 docker-skip
|
|
Last activity: 2026-07-21 — M2 done: detail screen, config CRUD, offline detection, dynamic monitor reload. 3 screens live.
|
|
|
|
Progress:
|
|
- Milestone v0.2: [██████████] 100%
|
|
- Phase 2: 3 of 3 plans done
|
|
|
|
## Loop Position
|
|
|
|
```
|
|
PLAN ──▶ APPLY ──▶ UNIFY
|
|
✓ ✓ ◉ [Unifying — verified; awaiting commit]
|
|
```
|
|
|
|
## Accumulated Context
|
|
|
|
### Decisions
|
|
|
|
| Decision | Phase | Impact |
|
|
|----------|-------|--------|
|
|
| net48 mandatory (Win7/8 fleet) | 1 | Constrains all deps; Avalonia 11.3.x, Dapper not EF Core |
|
|
| App multi-target net48;net8.0 (no DevHead) | 1 | Dev on Linux net8.0, ship net48 |
|
|
| Dynamic plugins Assembly.LoadFrom | 1 | Add protocols without touching core |
|
|
| Monitor dynamic API (AddOrUpdate/Remove) | 2 | Config changes take effect live, no restart |
|
|
|
|
### Deferred Issues
|
|
|
|
| Issue | Origin | Effort | Revisit |
|
|
|-------|--------|--------|---------|
|
|
| HttpClient created per driver in MTConnect factory | 1 | S | If drivers recreated frequently (socket exhaustion) |
|
|
| Robust disconnection UX (state flip nuances) | 2 | S | After config CRUD lands |
|
|
|
|
### Blockers/Concerns
|
|
|
|
None.
|
|
|
|
## Boundaries (Active)
|
|
|
|
- M2-C touches: src/Junction.App/* (config VM/View, nav, dashboard/detail buttons, Bootstrapper) + src/Junction.Core (AvailableProtocols only) + tests.
|
|
- Do NOT touch Domain/Persistence/Protocols in M2-C.
|
|
|
|
## Session Continuity
|
|
|
|
Last session: 2026-07-21
|
|
Stopped at: M2 complete — 3 screens (dashboard/detail/config), offline detection, dynamic monitor reload. Build 0/0, 125 tests + 2 docker-skip. NOT yet committed.
|
|
Next action: commit + push v0.2 (code + .paul/) when user authorizes → then plan v0.3 OPC UA (/paul:plan). Note: OPC UA research Likely (SDK on net48).
|
|
Resume context: Manager mode (dotnet-manager), all code delegated to subagents. Full detail in ~/.claude memory/junction-project.md. v0.1 committed 507753f on origin/main; v0.2 uncommitted.
|
|
|
|
---
|
|
*STATE.md — Updated after every significant action*
|