2.3 KiB
2.3 KiB
ADDED Requirements
Requirement: SCUM declares safe file workspace catalog
The SCUM plugin SHALL declare logical configuration and log directories/files and a bounded modeled configuration-field catalog without raw host paths, secrets, credentials, sockets, or arbitrary schemas.
Scenario: Default configuration scope is declared
- WHEN an authorized operator opens the SCUM file-and-configuration page
- THEN the page MUST select the plugin-declared configuration directory and list only its declared logical files
Scenario: Unsafe declaration is rejected
- WHEN a plugin manifest includes an absolute path, traversal key, secret-like value, or unsupported field control
- THEN Platform MUST reject the manifest before it is registered
Requirement: Modeled SCUM fields are configuration-first
The SCUM workbench SHALL render modeled fields with Chinese label, explanation, input type, constraint, default, restart impact, and owning file, and SHALL keep unmodeled fields read-only.
Scenario: Operator changes a modeled field
- WHEN an operator changes a declared editable field
- THEN the workbench MUST compose only that field into the owning configuration file and require a diff preview before approval
Scenario: Unknown configuration is encountered
- WHEN the loaded configuration includes a key outside the declared field catalog
- THEN the workbench MUST show it as read-only and MUST NOT present it as a safe editable control
Requirement: Logs are file scope in the same workbench
The SCUM workbench SHALL present plugin-declared log files as a log-file scope and display their Platform-mediated stream content.
Scenario: Operator opens a declared log file
- WHEN an operator selects a declared SCUM log file
- THEN the page MUST query only its declared Platform log stream and show readable file content without host-path disclosure
Requirement: Legacy SCUM pages migrate safely
The frontend SHALL migrate legacy SCUM overview, config, logs, and operations page keys to the files-config page while leaving non-SCUM routing unchanged.
Scenario: Legacy SCUM operations link is opened
- WHEN a user opens a SCUM plugin URL with the legacy
operationskey - THEN the frontend MUST resolve it to the declared
files-configworkbench for the same server context