mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-19 09:51:34 +00:00
Layer (b1) of the authoring platform (#934), the first half of the split runtime layer: - **Runtime bindings**: agent type + config + tool allowlist per draft, persisted as JSONB and structurally validated at save time, managed via GET/PUT /drafts/{id}/runtime. MCP server declarations are validated structurally (name/transport/endpoint format); the SSRF policy, stdio gate and envRef allowlist that guard them arrive with the MCP+security layer. - **CONFIG and BEHAVIOR validation layers**: validation.yaml spec parsing (defensive YAML), assertion syntax checks; script tasks execute through the local-script adapter — inline (cleared environment, isolated workspace, interpreter allowlist, path confinement) or docker (locked container: no network, dropped capabilities, read-only root, resource caps, tmpfs; workspace permissions and uid:gid mapping so container files stay readable and deletable on hardened hosts). - The orchestrator keeps every piece of the upstream lifecycle hardening: one FutureTask per run, wall-clock watchdog, settle-first cancellation. Verified: spec-parser and assertion-evaluator suites (20), docker isolation against real containers (4, auto-skipped without a daemon), the upstream orchestrator lifecycle suite against the extended constructor (5), and the execution flow integration test (script-only three-layer validation with inline execution). Signed-off-by: zjncs <18910855655@163.com> |
||
|---|---|---|
| .. | ||
| .mvn | ||
| scripts | ||
| skillhub-app | ||
| skillhub-auth | ||
| skillhub-domain | ||
| skillhub-github-sync | ||
| skillhub-infra | ||
| skillhub-notification | ||
| skillhub-search | ||
| skillhub-storage | ||
| .dockerignore | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||