Commit graph

40 commits

Author SHA1 Message Date
rcourtman
d877763fde test(integration): restart managed runtime for verify 2026-03-28 23:36:49 +00:00
rcourtman
e918cca2c9 test(repo): generalize docs drift guard 2026-03-28 22:15:12 +00:00
rcourtman
fb3b72f6e8 test(repo): broaden docs drift guard 2026-03-28 22:09:06 +00:00
rcourtman
d809b0d6d9 test(scripts): run python smoke tests 2026-03-28 21:53:09 +00:00
rcourtman
bab308ff1e test(repo): add docs drift guard 2026-03-28 21:40:25 +00:00
rcourtman
0b98a0d3e0 fix(deploy): pin docs links to release refs 2026-03-28 21:32:11 +00:00
rcourtman
2cde5c71ec Share integration browser default helper 2026-03-25 17:02:41 +00:00
rcourtman
5d08a917f6 Prefer managed browser shell in integration defaults 2026-03-25 16:53:55 +00:00
rcourtman
aef1bd41fa Clarify local browser targets in dev docs 2026-03-25 16:44:09 +00:00
rcourtman
c087db5da5 Delegate frontend dev runtime to root wrapper 2026-03-25 16:39:17 +00:00
rcourtman
88f27f6dfc Stabilize managed dev verify runtime 2026-03-25 12:14:39 +00:00
rcourtman
3f6c910f3a Stabilize hot-dev watcher restarts 2026-03-25 11:17:01 +00:00
rcourtman
2880c73619 Prove managed owner-process recovery 2026-03-25 09:08:04 +00:00
rcourtman
dd818164d6 Supervise managed dev runtime restarts 2026-03-25 08:47:38 +00:00
rcourtman
9d74c943c7 Expand managed dev browser proof pack 2026-03-24 21:48:34 +00:00
rcourtman
4a5b5d5fde Clarify hot-dev-bg usage entrypoints 2026-03-24 21:39:08 +00:00
rcourtman
5f11a2f4e5 Route Makefile dev targets through npm wrappers 2026-03-24 21:37:28 +00:00
rcourtman
811e497d60 Make hot-dev-bg startup output teach browser entrypoint 2026-03-24 21:34:06 +00:00
rcourtman
25a28e3f27 Route recovery proof docs through backend wrapper 2026-03-24 21:31:12 +00:00
rcourtman
bab1b8ad5f Route hot-dev-bg launchd guidance through npm wrapper 2026-03-24 21:28:13 +00:00
rcourtman
d0246dcf70 Route hot-dev-bg guidance through npm wrappers 2026-03-24 21:21:51 +00:00
rcourtman
959777e9c6 Align hot-dev-bg managed entry guidance 2026-03-24 21:19:56 +00:00
rcourtman
9fb7c15ebf Govern dashboard storage presentation helper 2026-03-24 16:21:24 +00:00
rcourtman
b8fd73cf5b Prefer managed runtime controls in launchd helper 2026-03-24 16:01:14 +00:00
rcourtman
4212a5ad0e Make dev-check use managed runtime status 2026-03-24 15:57:41 +00:00
rcourtman
9b9ee97f85 Route mock alert cleanup through managed runtime 2026-03-24 15:49:29 +00:00
rcourtman
1b1900e8bb Supervise launchd dev runtime through hot-dev-bg 2026-03-24 15:39:55 +00:00
rcourtman
b783c2d564 Route dev helpers through managed runtime 2026-03-24 15:17:12 +00:00
rcourtman
a63543ba8a Align frontend workspace dev runtime commands 2026-03-24 15:01:12 +00:00
rcourtman
6e8ab4cd64 Unify frontend dev entrypoints with managed runtime 2026-03-24 14:57:12 +00:00
rcourtman
c9b3ade048 Expose managed dev runtime entrypoint 2026-03-24 14:46:58 +00:00
rcourtman
530b2f215e Add one-command dev runtime verify 2026-03-24 14:41:38 +00:00
rcourtman
f4a8ac4773 Add managed dev-runtime recovery proof 2026-03-24 14:15:38 +00:00
rcourtman
848ec63c0e Fix hot-dev managed takeover 2026-03-24 12:00:19 +00:00
rcourtman
01648d93a7 Harden dev runtime status semantics 2026-03-24 11:28:58 +00:00
rcourtman
736c2efa87 Harden managed dev runtime ownership 2026-03-24 10:08:15 +00:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
rcourtman
d4a6c0d2e8 refactor: remove legacy pulse-sensor-proxy temperature monitoring
The sensor proxy approach for temperature monitoring has been superseded
by the unified agent architecture where host agents report temperature
data directly. This removes:

- cmd/pulse-sensor-proxy/ - standalone proxy daemon
- internal/tempproxy/ - client library
- internal/api/*temperature_proxy* - API handlers and tests
- internal/api/sensor_proxy_gate* - feature gate
- internal/monitoring/*proxy_test* - proxy-specific tests
- scripts/*sensor-proxy* - installation and management scripts
- security/apparmor/, security/seccomp/ - proxy security profiles

Temperature monitoring remains available via the unified agent approach.
2026-01-21 11:59:04 +00:00
rcourtman
61f011af1d Improve temperature proxy diagnostics and tests 2025-11-13 22:31:53 +00:00
rcourtman
0fcfad3dc5 feat: add shared script library system and refactor docker-agent installer
Implements a comprehensive script improvement infrastructure to reduce code
duplication, improve maintainability, and enable easier testing of installer
scripts.

## New Infrastructure

### Shared Library System (scripts/lib/)
- common.sh: Core utilities (logging, sudo, dry-run, cleanup management)
- systemd.sh: Service management helpers with container-safe systemctl
- http.sh: HTTP/download helpers with curl/wget fallback and retry logic
- README.md: Complete API documentation for all library functions

### Bundler System
- scripts/bundle.sh: Concatenates library modules into single-file installers
- scripts/bundle.manifest: Defines bundling configuration for distributables
- Enables both modular development and curl|bash distribution

### Test Infrastructure
- scripts/tests/run.sh: Test harness for running all smoke tests
- scripts/tests/test-common-lib.sh: Common library validation (5 tests)
- scripts/tests/test-docker-agent-v2.sh: Installer smoke tests (4 tests)
- scripts/tests/integration/: Container-based integration tests (5 scenarios)
- All tests passing ✓

## Refactored Installer

### install-docker-agent-v2.sh
- Reduced from 1098 to 563 lines (48% code reduction)
- Uses shared libraries for all common operations
- NEW: --dry-run flag support
- Maintains 100% backward compatibility with original
- Fully tested with smoke and integration tests

### Key Improvements
- Sudo escalation: 100+ lines → 1 function call
- Download logic: 51 lines → 1 function call
- Service creation: 33 lines → 2 function calls
- Logging: Standardized across all operations
- Error handling: Improved with common library

## Documentation

### Rollout Strategy (docs/installer-v2-rollout.md)
- 3-phase rollout plan (Alpha → Beta → GA)
- Feature flag mechanism for gradual deployment
- Testing checklist and success metrics
- Rollback procedures and communication plan

### Developer Guides
- docs/script-library-guide.md: Complete library usage guide
- docs/CONTRIBUTING-SCRIPTS.md: Contribution workflow
- docs/installer-v2-quickref.md: Quick reference for operators

## Metrics

- Code reduction: 48% (1098 → 563 lines)
- Reusable functions: 0 → 30+
- Test coverage: 0 → 8 test scenarios
- Documentation: 0 → 5 comprehensive guides

## Testing

All tests passing:
- Smoke tests: 2/2 passed (8 test cases)
- Integration tests: 5/5 scenarios passed
- Bundled output: Syntax validated, dry-run tested

## Next Steps

This lays the foundation for migrating other installers (install.sh,
install-sensor-proxy.sh) to use the same pattern, reducing overall
maintenance burden and improving code quality across the project.
2025-10-20 15:13:38 +00:00