feat: auto-deploy guided servers on run registration

This commit is contained in:
npc0-hue
2026-07-28 16:57:09 +08:00
parent e2d0bc0595
commit 7f64765c1c
15 changed files with 191 additions and 55 deletions
@@ -0,0 +1,28 @@
## ADDED Requirements
### Requirement: Guided creation authorizes automatic initial deployment
The Platform SHALL queue one fenced `process.install` job when the dedicated Run for a target-bound draft with a `guided-install` definition successfully registers.
#### Scenario: Dedicated Run registers for a guided draft
- **WHEN** the Run presents the valid server-scoped component identity for a guided draft
- **THEN** the Platform persists the session and queues the guided install using the stored deployment revision
- **AND** the server transitions to `installing` without another browser action
#### Scenario: The dedicated Run reconnects
- **WHEN** the Run registers again after the automatic installation has been queued
- **THEN** the Platform does not create another installation job for the same deployment revision
### Requirement: Automatic registration dispatch is non-destructive outside guided installs
The Platform SHALL NOT automatically reinstall existing-server or custom-command deployments solely because their Run registers.
#### Scenario: Existing server Run registers
- **WHEN** a target-bound draft uses `existing-server` and its dedicated Run registers
- **THEN** the Platform records the Run session without creating an installation job
### Requirement: Normal server management does not require a manual deployment click
The management console SHALL present guided deployment as automatically pending after dedicated Run registration rather than as a Deploy or Retry deploy button.
#### Scenario: Guided draft awaits Run registration
- **WHEN** an operator opens a newly created guided draft before its dedicated Run has registered
- **THEN** the console directs the operator to generate and start the dedicated Run
- **AND** it does not offer a separate Deploy or Retry deploy action