devworkspace 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -2
- package/README.md +57 -509
- package/dist/agents/claude/adapter.js +0 -1
- package/dist/agents/claude/content.js +0 -1
- package/dist/agents/codex/adapter.js +0 -1
- package/dist/agents/copilot/adapter.js +0 -1
- package/dist/agents/cursor/adapter.js +0 -1
- package/dist/agents/index.js +0 -1
- package/dist/agents/shared.js +0 -1
- package/dist/agents/types.js +0 -1
- package/dist/cli/args.d.ts +16 -0
- package/dist/cli/args.js +5 -1
- package/dist/cli/help.js +59 -17
- package/dist/cli/main.js +0 -1
- package/dist/cli/prompt.d.ts +15 -0
- package/dist/cli/prompt.js +113 -0
- package/dist/cli/render.d.ts +10 -0
- package/dist/cli/render.js +174 -4
- package/dist/cli/run.d.ts +3 -0
- package/dist/cli/run.js +366 -17
- package/dist/config/feature-gate.d.ts +15 -0
- package/dist/config/feature-gate.js +77 -0
- package/dist/config/feature-registry.d.ts +49 -0
- package/dist/config/feature-registry.js +451 -0
- package/dist/config/schemas.js +0 -1
- package/dist/config/settings.d.ts +54 -0
- package/dist/config/settings.js +293 -0
- package/dist/config/validate.js +0 -1
- package/dist/core/artifacts.js +0 -1
- package/dist/core/contracts.js +0 -1
- package/dist/core/migrations.js +0 -1
- package/dist/core/version.js +0 -1
- package/dist/core/versioned.js +0 -1
- package/dist/core/workspace.d.ts +1 -0
- package/dist/core/workspace.js +1 -1
- package/dist/decisions/decision.js +0 -1
- package/dist/discovery/cache.js +0 -1
- package/dist/discovery/commands.js +0 -1
- package/dist/discovery/detect.js +0 -1
- package/dist/discovery/docs.js +0 -1
- package/dist/discovery/entrypoints.js +0 -1
- package/dist/discovery/ignore.js +0 -1
- package/dist/discovery/scan.js +0 -1
- package/dist/discovery/types.js +0 -1
- package/dist/dx/dashboard.js +2 -1
- package/dist/dx/guidance.js +0 -1
- package/dist/dx/guided-setup.d.ts +102 -0
- package/dist/dx/guided-setup.js +508 -0
- package/dist/dx/index.js +0 -1
- package/dist/dx/onboarding.js +0 -1
- package/dist/dx/types.js +0 -1
- package/dist/errors/index.js +0 -1
- package/dist/features/schema.js +0 -1
- package/dist/features/types.js +0 -1
- package/dist/features/validate.js +0 -1
- package/dist/git/git.js +0 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.js +10 -2
- package/dist/integrations/adapters/agent-skills.js +0 -1
- package/dist/integrations/adapters/claudePlugin.js +0 -1
- package/dist/integrations/adapters/graphify.js +0 -1
- package/dist/integrations/adapters/omniroute.js +0 -1
- package/dist/integrations/adapters/pluginSkill.js +0 -1
- package/dist/integrations/adapters/ponytail.js +0 -1
- package/dist/integrations/exec.js +0 -1
- package/dist/integrations/index.js +0 -1
- package/dist/integrations/manager.d.ts +2 -1
- package/dist/integrations/manager.js +22 -3
- package/dist/integrations/notices.js +0 -1
- package/dist/integrations/persistentPath.js +0 -1
- package/dist/integrations/protect.js +0 -1
- package/dist/integrations/state.js +0 -1
- package/dist/integrations/types.d.ts +1 -1
- package/dist/integrations/types.js +1 -1
- package/dist/intelligence/agents/profiles.js +0 -1
- package/dist/intelligence/agents/registry.js +0 -1
- package/dist/intelligence/agents/types.js +0 -1
- package/dist/intelligence/observability/tracer.js +0 -1
- package/dist/intelligence/observability/types.js +0 -1
- package/dist/intelligence/orchestration/engine.d.ts +13 -4
- package/dist/intelligence/orchestration/engine.js +332 -54
- package/dist/intelligence/orchestration/lock-manager.js +0 -1
- package/dist/intelligence/orchestration/store.js +0 -1
- package/dist/intelligence/orchestration/types.d.ts +28 -1
- package/dist/intelligence/orchestration/types.js +0 -1
- package/dist/intelligence/routing/matcher.js +0 -1
- package/dist/intelligence/routing/router.js +0 -1
- package/dist/intelligence/routing/types.js +0 -1
- package/dist/intelligence/runtime/adk/adapter.js +1 -2
- package/dist/intelligence/runtime/adk/detector.js +0 -1
- package/dist/intelligence/runtime/auth-provider.d.ts +63 -0
- package/dist/intelligence/runtime/auth-provider.js +201 -0
- package/dist/intelligence/runtime/boundary.d.ts +118 -6
- package/dist/intelligence/runtime/boundary.js +720 -38
- package/dist/intelligence/runtime/changes.d.ts +59 -0
- package/dist/intelligence/runtime/changes.js +362 -0
- package/dist/intelligence/runtime/external.d.ts +1 -0
- package/dist/intelligence/runtime/external.js +9 -6
- package/dist/intelligence/runtime/native.js +0 -1
- package/dist/intelligence/runtime/types.d.ts +64 -2
- package/dist/intelligence/runtime/types.js +0 -1
- package/dist/intelligence/security/audit.js +8 -2
- package/dist/intelligence/security/policy.js +0 -1
- package/dist/intelligence/security/types.d.ts +8 -0
- package/dist/intelligence/security/types.js +0 -1
- package/dist/intelligence/skills/builtins.js +0 -1
- package/dist/intelligence/skills/loader.js +0 -1
- package/dist/intelligence/skills/registry.js +0 -1
- package/dist/intelligence/skills/types.js +0 -1
- package/dist/intelligence/verification/engine.d.ts +10 -2
- package/dist/intelligence/verification/engine.js +53 -9
- package/dist/intelligence/verification/reviewer.d.ts +18 -2
- package/dist/intelligence/verification/reviewer.js +356 -4
- package/dist/intelligence/verification/types.d.ts +60 -0
- package/dist/intelligence/verification/types.js +0 -1
- package/dist/knowledge/facts.js +0 -1
- package/dist/mcp/protocol.js +0 -1
- package/dist/mcp/server.js +38 -2
- package/dist/mcp/setup.js +5 -2
- package/dist/mcp/tools.js +0 -1
- package/dist/mcp/types.js +0 -1
- package/dist/mcp/verify.js +0 -1
- package/dist/portability/bundle.js +0 -1
- package/dist/prompts/onboarding.js +0 -1
- package/dist/prompts/refresh.js +0 -1
- package/dist/prompts/requirements.js +0 -1
- package/dist/security/files.js +0 -1
- package/dist/security/redact.js +0 -1
- package/dist/services/agent.js +2 -1
- package/dist/services/analysis.js +0 -1
- package/dist/services/common.js +0 -1
- package/dist/services/doctor.js +13 -2
- package/dist/services/drift.js +0 -1
- package/dist/services/features.js +5 -1
- package/dist/services/graph.js +4 -1
- package/dist/services/init.js +0 -1
- package/dist/services/integrations.d.ts +2 -1
- package/dist/services/integrations.js +29 -6
- package/dist/services/intelligence.d.ts +2 -2
- package/dist/services/intelligence.js +38 -36
- package/dist/services/knowledge.js +0 -1
- package/dist/services/migrate.js +0 -1
- package/dist/services/modules.d.ts +85 -0
- package/dist/services/modules.js +313 -0
- package/dist/services/portability.js +0 -1
- package/dist/services/records.js +5 -1
- package/dist/services/refresh.js +0 -1
- package/dist/services/reset.js +0 -1
- package/dist/services/settings.d.ts +36 -0
- package/dist/services/settings.js +102 -0
- package/dist/services/setup.d.ts +4 -5
- package/dist/services/setup.js +40 -28
- package/dist/services/standards.js +10 -1
- package/dist/services/status.js +0 -1
- package/dist/services/taskContext.js +0 -1
- package/dist/services/tasks.js +9 -1
- package/dist/services/verify.js +7 -2
- package/dist/sessions/session.js +0 -1
- package/dist/standards/acquisition/ingest.js +0 -1
- package/dist/standards/applicability/engine.js +0 -1
- package/dist/standards/builtin/code-quality.js +0 -1
- package/dist/standards/builtin/database-safety.js +0 -1
- package/dist/standards/builtin/index.js +0 -1
- package/dist/standards/builtin/security-baseline.js +0 -1
- package/dist/standards/builtin/testing-contracts.js +0 -1
- package/dist/standards/builtin/undo-kit.js +0 -1
- package/dist/standards/config/config.js +0 -1
- package/dist/standards/distribution/cache.js +0 -1
- package/dist/standards/distribution/index.js +0 -1
- package/dist/standards/distribution/keys.js +0 -1
- package/dist/standards/distribution/package.js +0 -1
- package/dist/standards/distribution/server.js +0 -1
- package/dist/standards/distribution/sync.js +0 -1
- package/dist/standards/distribution/types.js +0 -1
- package/dist/standards/engine/compliance.js +0 -1
- package/dist/standards/engine/engine.js +0 -1
- package/dist/standards/engine/reporter.js +0 -1
- package/dist/standards/index.js +0 -1
- package/dist/standards/registry/registry.js +0 -1
- package/dist/standards/schema/types.js +0 -1
- package/dist/standards/schema/validate.js +0 -1
- package/dist/standards/templates/index.js +0 -1
- package/dist/standards/validators/database.js +0 -1
- package/dist/standards/validators/quality.js +0 -1
- package/dist/standards/validators/registry.js +0 -1
- package/dist/standards/validators/security.js +0 -1
- package/dist/standards/validators/testing.js +0 -1
- package/dist/standards/validators/types.js +0 -1
- package/dist/standards/validators/undo-kit.js +0 -1
- package/dist/tasks/routing.js +0 -1
- package/dist/tasks/task.js +0 -1
- package/dist/utils/cleanup.js +0 -1
- package/dist/utils/fs.js +0 -1
- package/dist/utils/lock.js +92 -49
- package/dist/utils/logger.js +0 -1
- package/dist/utils/paths.js +0 -1
- package/dist/utils/proc.d.ts +8 -0
- package/dist/utils/proc.js +54 -46
- package/dist/verification/safety.js +0 -1
- package/dist/verification/scope.js +0 -1
- package/docs/architecture/global-standards-architecture.md +287 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_AUDIT.md +99 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md +138 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md +100 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md +219 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md +184 -0
- package/docs/configuration.md +67 -0
- package/docs/contributing.md +15 -4
- package/docs/development/EXECUTION_STATE.md +50 -0
- package/docs/features.md +80 -0
- package/docs/getting-started.md +69 -111
- package/docs/guides/global-standards-migration.md +100 -0
- package/docs/integrations.md +7 -0
- package/docs/security/THIRD_PARTY_LICENSES.md +41 -0
- package/docs/testing/FINAL_CORRECTION_AND_CLEANUP_REPORT.md +92 -0
- package/docs/testing/global-standards-real-project-tests.md +218 -0
- package/docs/testing/global-standards-test-report.md +89 -0
- package/docs/testing/global-standards-verification-matrix.md +174 -0
- package/docs/troubleshooting.md +3 -0
- package/package.json +1 -1
- package/dist/agents/claude/adapter.js.map +0 -1
- package/dist/agents/claude/content.js.map +0 -1
- package/dist/agents/codex/adapter.js.map +0 -1
- package/dist/agents/copilot/adapter.js.map +0 -1
- package/dist/agents/cursor/adapter.js.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/shared.js.map +0 -1
- package/dist/agents/types.js.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/render.js.map +0 -1
- package/dist/cli/run.js.map +0 -1
- package/dist/config/schemas.js.map +0 -1
- package/dist/config/validate.js.map +0 -1
- package/dist/core/artifacts.js.map +0 -1
- package/dist/core/contracts.js.map +0 -1
- package/dist/core/migrations.js.map +0 -1
- package/dist/core/version.js.map +0 -1
- package/dist/core/versioned.js.map +0 -1
- package/dist/core/workspace.js.map +0 -1
- package/dist/decisions/decision.js.map +0 -1
- package/dist/discovery/cache.js.map +0 -1
- package/dist/discovery/commands.js.map +0 -1
- package/dist/discovery/detect.js.map +0 -1
- package/dist/discovery/docs.js.map +0 -1
- package/dist/discovery/entrypoints.js.map +0 -1
- package/dist/discovery/ignore.js.map +0 -1
- package/dist/discovery/scan.js.map +0 -1
- package/dist/discovery/types.js.map +0 -1
- package/dist/dx/dashboard.js.map +0 -1
- package/dist/dx/guidance.js.map +0 -1
- package/dist/dx/index.js.map +0 -1
- package/dist/dx/onboarding.js.map +0 -1
- package/dist/dx/types.js.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/features/schema.js.map +0 -1
- package/dist/features/types.js.map +0 -1
- package/dist/features/validate.js.map +0 -1
- package/dist/git/git.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/adapters/agent-skills.js.map +0 -1
- package/dist/integrations/adapters/claudePlugin.js.map +0 -1
- package/dist/integrations/adapters/graphify.js.map +0 -1
- package/dist/integrations/adapters/omniroute.js.map +0 -1
- package/dist/integrations/adapters/pluginSkill.js.map +0 -1
- package/dist/integrations/adapters/ponytail.js.map +0 -1
- package/dist/integrations/exec.js.map +0 -1
- package/dist/integrations/index.js.map +0 -1
- package/dist/integrations/manager.js.map +0 -1
- package/dist/integrations/notices.js.map +0 -1
- package/dist/integrations/persistentPath.js.map +0 -1
- package/dist/integrations/protect.js.map +0 -1
- package/dist/integrations/state.js.map +0 -1
- package/dist/integrations/types.js.map +0 -1
- package/dist/intelligence/agents/profiles.js.map +0 -1
- package/dist/intelligence/agents/registry.js.map +0 -1
- package/dist/intelligence/agents/types.js.map +0 -1
- package/dist/intelligence/observability/tracer.js.map +0 -1
- package/dist/intelligence/observability/types.js.map +0 -1
- package/dist/intelligence/orchestration/engine.js.map +0 -1
- package/dist/intelligence/orchestration/lock-manager.js.map +0 -1
- package/dist/intelligence/orchestration/store.js.map +0 -1
- package/dist/intelligence/orchestration/types.js.map +0 -1
- package/dist/intelligence/routing/matcher.js.map +0 -1
- package/dist/intelligence/routing/router.js.map +0 -1
- package/dist/intelligence/routing/types.js.map +0 -1
- package/dist/intelligence/runtime/adk/adapter.js.map +0 -1
- package/dist/intelligence/runtime/adk/detector.js.map +0 -1
- package/dist/intelligence/runtime/boundary.js.map +0 -1
- package/dist/intelligence/runtime/external.js.map +0 -1
- package/dist/intelligence/runtime/native.js.map +0 -1
- package/dist/intelligence/runtime/types.js.map +0 -1
- package/dist/intelligence/security/audit.js.map +0 -1
- package/dist/intelligence/security/policy.js.map +0 -1
- package/dist/intelligence/security/types.js.map +0 -1
- package/dist/intelligence/skills/builtins.js.map +0 -1
- package/dist/intelligence/skills/loader.js.map +0 -1
- package/dist/intelligence/skills/registry.js.map +0 -1
- package/dist/intelligence/skills/types.js.map +0 -1
- package/dist/intelligence/verification/engine.js.map +0 -1
- package/dist/intelligence/verification/reviewer.js.map +0 -1
- package/dist/intelligence/verification/types.js.map +0 -1
- package/dist/knowledge/facts.js.map +0 -1
- package/dist/mcp/protocol.js.map +0 -1
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/setup.js.map +0 -1
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/types.js.map +0 -1
- package/dist/mcp/verify.js.map +0 -1
- package/dist/portability/bundle.js.map +0 -1
- package/dist/prompts/onboarding.js.map +0 -1
- package/dist/prompts/refresh.js.map +0 -1
- package/dist/prompts/requirements.js.map +0 -1
- package/dist/security/files.js.map +0 -1
- package/dist/security/redact.js.map +0 -1
- package/dist/services/agent.js.map +0 -1
- package/dist/services/analysis.js.map +0 -1
- package/dist/services/common.js.map +0 -1
- package/dist/services/doctor.js.map +0 -1
- package/dist/services/drift.js.map +0 -1
- package/dist/services/features.js.map +0 -1
- package/dist/services/graph.js.map +0 -1
- package/dist/services/init.js.map +0 -1
- package/dist/services/integrations.js.map +0 -1
- package/dist/services/intelligence.js.map +0 -1
- package/dist/services/knowledge.js.map +0 -1
- package/dist/services/migrate.js.map +0 -1
- package/dist/services/portability.js.map +0 -1
- package/dist/services/records.js.map +0 -1
- package/dist/services/refresh.js.map +0 -1
- package/dist/services/reset.js.map +0 -1
- package/dist/services/setup.js.map +0 -1
- package/dist/services/standards.js.map +0 -1
- package/dist/services/status.js.map +0 -1
- package/dist/services/taskContext.js.map +0 -1
- package/dist/services/tasks.js.map +0 -1
- package/dist/services/verify.js.map +0 -1
- package/dist/sessions/session.js.map +0 -1
- package/dist/standards/acquisition/ingest.js.map +0 -1
- package/dist/standards/applicability/engine.js.map +0 -1
- package/dist/standards/builtin/code-quality.js.map +0 -1
- package/dist/standards/builtin/database-safety.js.map +0 -1
- package/dist/standards/builtin/index.js.map +0 -1
- package/dist/standards/builtin/security-baseline.js.map +0 -1
- package/dist/standards/builtin/testing-contracts.js.map +0 -1
- package/dist/standards/builtin/undo-kit.js.map +0 -1
- package/dist/standards/config/config.js.map +0 -1
- package/dist/standards/distribution/cache.js.map +0 -1
- package/dist/standards/distribution/index.js.map +0 -1
- package/dist/standards/distribution/keys.js.map +0 -1
- package/dist/standards/distribution/package.js.map +0 -1
- package/dist/standards/distribution/server.js.map +0 -1
- package/dist/standards/distribution/sync.js.map +0 -1
- package/dist/standards/distribution/types.js.map +0 -1
- package/dist/standards/engine/compliance.js.map +0 -1
- package/dist/standards/engine/engine.js.map +0 -1
- package/dist/standards/engine/reporter.js.map +0 -1
- package/dist/standards/index.js.map +0 -1
- package/dist/standards/registry/registry.js.map +0 -1
- package/dist/standards/schema/types.js.map +0 -1
- package/dist/standards/schema/validate.js.map +0 -1
- package/dist/standards/templates/index.js.map +0 -1
- package/dist/standards/validators/database.js.map +0 -1
- package/dist/standards/validators/quality.js.map +0 -1
- package/dist/standards/validators/registry.js.map +0 -1
- package/dist/standards/validators/security.js.map +0 -1
- package/dist/standards/validators/testing.js.map +0 -1
- package/dist/standards/validators/types.js.map +0 -1
- package/dist/standards/validators/undo-kit.js.map +0 -1
- package/dist/tasks/routing.js.map +0 -1
- package/dist/tasks/task.js.map +0 -1
- package/dist/utils/cleanup.js.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/lock.js.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/proc.js.map +0 -1
- package/dist/verification/safety.js.map +0 -1
- package/dist/verification/scope.js.map +0 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# DevWorkspace Global Engineering Standards — Security Report
|
|
2
|
+
|
|
3
|
+
**Report Type:** Independent Security Audit
|
|
4
|
+
**Date:** 2026-11-30
|
|
5
|
+
**Scope:** `src/standards/`, `src/security/`, CLI integration, real-world project validation
|
|
6
|
+
**Auditor:** Independent (zero trust in prior claims)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Security Architecture Overview
|
|
11
|
+
|
|
12
|
+
The Global Engineering Standards subsystem enforces a zero-dependency, locally-executed security model:
|
|
13
|
+
|
|
14
|
+
- **No network calls** at runtime
|
|
15
|
+
- **No LLM/cloud dependencies** (confirmed: `"dependencies": {}`)
|
|
16
|
+
- **No secret storage** — `findSecrets()` returns type and index, never the secret value
|
|
17
|
+
- **Path traversal prevention** in all file scanners
|
|
18
|
+
- **Critical standard bypass prevention** enforced at both service and config-loading layers
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. Vulnerability Scan Results
|
|
23
|
+
|
|
24
|
+
### 2.1 Secret Detection in Standards Source Code
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
npm run release:check → "no TODO/FIXME/stub/placeholder markers in src/" ✅ PASS
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Manual inspection of all 24 `src/standards/` files: **zero hardcoded credentials, tokens, or keys found.**
|
|
31
|
+
|
|
32
|
+
### 2.2 Dependency Audit
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
npm run audit:security → "dependency audit passes (production deps)" ✅ PASS
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`"dependencies": {}` — no production runtime dependencies to audit.
|
|
39
|
+
|
|
40
|
+
### 2.3 Path Traversal in Validators
|
|
41
|
+
|
|
42
|
+
All file validators use:
|
|
43
|
+
```typescript
|
|
44
|
+
const relPath = path.relative(ctx.workspaceDir, fullPath).replace(/\\/g, '/');
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Relative path is used for display only. All actual file operations use `path.join(ctx.workspaceDir, relDir)` which is bounded to the workspace directory tree. **No traversal vectors identified.**
|
|
48
|
+
|
|
49
|
+
The ingest service uses `path.resolve(filePath)` for input, which is correct — it must accept absolute paths from the CLI. The output is bounded to `path.join(workspaceDir, '.devworkspace', 'standards', 'custom', ...)`.
|
|
50
|
+
|
|
51
|
+
### 2.4 Security Bypass Prevention
|
|
52
|
+
|
|
53
|
+
#### Test D Result
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
// Attempting to disable security-baseline via service layer:
|
|
57
|
+
await StandardsConfigManager.disableStandard(tmpDir, 'security-baseline');
|
|
58
|
+
// → throws DevWorkspaceError('SECURITY', 'Critical standard "security-baseline" cannot be disabled globally…')
|
|
59
|
+
✅ PASS
|
|
60
|
+
|
|
61
|
+
// Attempting to tamper via config.json on disk:
|
|
62
|
+
fs.writeFileSync(configPath, JSON.stringify({ disabledStandards: ['security-baseline'] }))
|
|
63
|
+
const loaded = await StandardsConfigManager.loadConfig(tmpDir);
|
|
64
|
+
loaded.disabledStandards // → []
|
|
65
|
+
✅ PASS — sanitised on load
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Two-layer protection:** service-level guard AND config-load sanitisation. Neither layer can be bypassed without modifying source code.
|
|
69
|
+
|
|
70
|
+
### 2.5 Standards Schema Injection
|
|
71
|
+
|
|
72
|
+
Ingested standards are validated via `validateStandard()` before being persisted. This enforces:
|
|
73
|
+
- ID must match `/^[a-z][a-z0-9-]+$/` (no path separators, no shell metacharacters)
|
|
74
|
+
- Category must be one of 15 known values
|
|
75
|
+
- Status must be one of 5 known values
|
|
76
|
+
- All string fields are `.trim()`'d
|
|
77
|
+
|
|
78
|
+
**No injection vector identified** for schema fields. The standard file name is derived from the validated `id`, which is alphanumeric-and-hyphens only.
|
|
79
|
+
|
|
80
|
+
### 2.6 Registry Collision Attack (Built-in Shadowing)
|
|
81
|
+
|
|
82
|
+
**Pre-audit:** An attacker could craft a custom standard with `id: "security-baseline"` and ingest it, causing the custom (possibly weakened) version to shadow the built-in in the registry Map.
|
|
83
|
+
|
|
84
|
+
**Post-audit fix:**
|
|
85
|
+
```typescript
|
|
86
|
+
const BUILTIN_STANDARD_IDS = new Set([
|
|
87
|
+
'security-baseline',
|
|
88
|
+
'database-destructive-change-prevention',
|
|
89
|
+
'deployment-safety-and-rollback',
|
|
90
|
+
'code-quality',
|
|
91
|
+
'testing-standards',
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
if (BUILTIN_STANDARD_IDS.has(validated.id)) {
|
|
95
|
+
throw new DevWorkspaceError('USAGE', `Cannot ingest standard with ID "${validated.id}": conflicts with built-in standard.`);
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Test verified:** `standards-cli.test.ts` — "rejects ingestion colliding with built-in standard IDs" ✅ PASS
|
|
100
|
+
|
|
101
|
+
> [!NOTE] The registry Map uses `validated.id` as the key, so the last writer wins. The ingestion guard prevents custom standards from shadowing built-ins during `add`, but a manually crafted `.devworkspace/standards/custom/security-baseline.json` file would still be loaded by `loadProjectStandardsSync`. This is an acceptable limitation for a local developer tool — an attacker with write access to the workspace can already modify anything.
|
|
102
|
+
|
|
103
|
+
### 2.7 Sensitive File Scanning (`.env` Findings)
|
|
104
|
+
|
|
105
|
+
The ERP_V2 audit found 51 credential-pattern matches in `backend/.env`. Investigation:
|
|
106
|
+
|
|
107
|
+
- The file is correctly git-ignored (`.gitignore` has `*.env`)
|
|
108
|
+
- The file is a local development configuration file
|
|
109
|
+
- The validator intentionally scans all files on disk (belt-and-suspenders)
|
|
110
|
+
- The findings are **true positives** for a tool designed to prevent accidental commits
|
|
111
|
+
|
|
112
|
+
**Risk level:** LOW — the file is git-ignored; no actual exposure risk. Findings are expected and correct.
|
|
113
|
+
|
|
114
|
+
### 2.8 Credential Pattern Accuracy
|
|
115
|
+
|
|
116
|
+
Updated patterns in `src/security/redact.ts`:
|
|
117
|
+
|
|
118
|
+
| Pattern | Type | Before | After |
|
|
119
|
+
|---------|------|--------|-------|
|
|
120
|
+
| `sk_live_*` Stripe keys | `stripe-key` | Missed in nested dirs | ✅ Fixed |
|
|
121
|
+
| `sk-*` OpenAI-style keys | `api-key` | Present | Present |
|
|
122
|
+
| AWS access keys | `aws-access-key` | Present | Present |
|
|
123
|
+
| GitHub tokens | `github-token` | Present | Present |
|
|
124
|
+
| JWT tokens | `jwt` | Present | Present |
|
|
125
|
+
| Generic secrets | `generic-secret` | Present | Present |
|
|
126
|
+
|
|
127
|
+
**False-positive test:** Documentation examples with `sk_live_YOUR_KEY_HERE` → NOT flagged (regex requires real entropy characters, not placeholder text). ✅ PASS
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 3. Credential Files in ERP_V2 Git History
|
|
132
|
+
|
|
133
|
+
The previous `devworkspace doctor` audit noted:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
⚠ WARN Credential-like files are tracked by Git: backend/src/modules/identity/domain/credentials.ts
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
This is a pre-existing condition in the ERP_V2 project, not a DevWorkspace defect. The standards engine correctly detects and flags this via `security.credentials-in-code` rule. **Remediation for ERP_V2:**
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
git filter-repo --path backend/src/modules/identity/domain/credentials.ts --invert-paths
|
|
143
|
+
# Then rotate all exposed credentials
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 4. Security Recommendations
|
|
149
|
+
|
|
150
|
+
### For DevWorkspace Itself
|
|
151
|
+
|
|
152
|
+
1. **Consider adding `--only-tracked` flag** to `standards audit` to suppress warnings about git-ignored files. This would reduce noise for well-configured projects while maintaining strict-by-default behaviour.
|
|
153
|
+
|
|
154
|
+
2. **Add `BEFORE TRUNCATE ON` trigger context detection** to the destructive DDL validator to eliminate false positives for PostgreSQL trigger declarations.
|
|
155
|
+
|
|
156
|
+
3. **Consider adding the actual built-in ID list to the error message** when rejecting ingestion collisions, so users know exactly which IDs are reserved.
|
|
157
|
+
|
|
158
|
+
### For ERP_V2
|
|
159
|
+
|
|
160
|
+
| Priority | Action |
|
|
161
|
+
|----------|--------|
|
|
162
|
+
| CRITICAL | Rotate all credentials that may have been in `credentials.ts` if it was ever pushed |
|
|
163
|
+
| HIGH | Create `ROLLBACK.md` using `devworkspace standards apply deployment-safety-and-rollback` |
|
|
164
|
+
| HIGH | Configure verification contracts in `.devworkspace/project.json` |
|
|
165
|
+
| MEDIUM | Review the 5 `DROP TABLE`/`TRUNCATE` migration statements for rollback compatibility |
|
|
166
|
+
| LOW | Add `devworkspace standards approve` workflow to team contribution guide |
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 5. Security Compliance Summary
|
|
171
|
+
|
|
172
|
+
| Security Control | Status |
|
|
173
|
+
|-----------------|--------|
|
|
174
|
+
| Zero production dependencies | ✅ |
|
|
175
|
+
| No network calls at runtime | ✅ |
|
|
176
|
+
| Secret detection (committed files) | ✅ |
|
|
177
|
+
| Secret detection (env files) | ✅ |
|
|
178
|
+
| Security standard bypass prevention | ✅ |
|
|
179
|
+
| Config tamper sanitisation | ✅ |
|
|
180
|
+
| Built-in standard collision guard | ✅ |
|
|
181
|
+
| Path traversal prevention | ✅ |
|
|
182
|
+
| Schema injection prevention | ✅ |
|
|
183
|
+
| No secrets in source code | ✅ |
|
|
184
|
+
| npm audit (production deps) | ✅ N/A (zero deps) |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Configuration & Settings
|
|
2
|
+
|
|
3
|
+
DevWorkspace stores project setup choices cleanly in `.devworkspace/settings.json` alongside workspace identity in `.devworkspace/project.json`.
|
|
4
|
+
|
|
5
|
+
## Presets
|
|
6
|
+
|
|
7
|
+
| Preset | Core Context & Security | Agent Connection | Built-In Workflows & Tools | External Helper Installs |
|
|
8
|
+
|---|---|---|---|---|
|
|
9
|
+
| `minimal` | Enabled | None | Disabled by default | None |
|
|
10
|
+
| `recommended` | Enabled | One selected/detected agent | `workflow.tasks`, `workflow.decisions` | None |
|
|
11
|
+
| `full` | Enabled | One selected/detected agent | All built-in modules (`standards`, `features`, `graph`, `orchestrate`, `dashboard`) | Consent required (`--yes --only ...`) |
|
|
12
|
+
| `custom` | Enabled | Optional | User-selected capabilities | Consent required (`--yes --only ...`) |
|
|
13
|
+
|
|
14
|
+
Core privacy, credential redaction, safe path checks, and verification truthfulness are always enabled regardless of preset.
|
|
15
|
+
|
|
16
|
+
## `.devworkspace/settings.json` Schema
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"schemaVersion": 1,
|
|
21
|
+
"preset": "recommended",
|
|
22
|
+
"agent": {
|
|
23
|
+
"selected": "claude-code",
|
|
24
|
+
"method": "mcp",
|
|
25
|
+
"scope": "project"
|
|
26
|
+
},
|
|
27
|
+
"enabledFeatures": [
|
|
28
|
+
"core.workspace",
|
|
29
|
+
"core.discovery",
|
|
30
|
+
"core.security",
|
|
31
|
+
"workflow.tasks",
|
|
32
|
+
"workflow.decisions",
|
|
33
|
+
"agent.mcp"
|
|
34
|
+
],
|
|
35
|
+
"disabledFeatures": [],
|
|
36
|
+
"integrationsConsented": [],
|
|
37
|
+
"featureConfig": {},
|
|
38
|
+
"updatedAt": "2026-12-02T00:00:00.000Z",
|
|
39
|
+
"source": "wizard"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- **No secrets:** Keys resembling tokens, secrets, passwords, credentials, or API keys are rejected if added to `featureConfig`.
|
|
44
|
+
- **Strict feature coherence:** `.devworkspace/settings.json` validates every feature ID against `FEATURE_REGISTRY`, rejects unknown IDs, enforces mandatory core capabilities (`core.*`), verifies transitive dependencies, and blocks conflicting selections on load and before any gated capability executes.
|
|
45
|
+
- **Safe recovery:** If `.devworkspace/settings.json` is malformed or invalid on disk, `devworkspace settings show` / `devworkspace modules list` report a recovery warning without silently overwriting the file, while gated mutations fail closed until resolved.
|
|
46
|
+
- **Older workspaces:** Workspaces initialized before `settings.json` infer safe defaults cleanly from `.devworkspace/project.json` and existing agent files without modifying user-authored files.
|
|
47
|
+
|
|
48
|
+
## Project vs. User Scope
|
|
49
|
+
|
|
50
|
+
- **Project scope (`--scope project`, default):** Changes are isolated inside the repository directory (`.devworkspace/`, `.mcp.json`, `.codex/config.toml`, `.cursor/rules/`, `.github/copilot-instructions.md`).
|
|
51
|
+
- **User scope (`--scope user` / `--user`):** Changes outside the repository (such as Antigravity `~/.gemini/...` or user-level plugins) never run without explicit interactive confirmation or non-interactive `--yes`.
|
|
52
|
+
|
|
53
|
+
## Managing Modules & Non-Secret Config
|
|
54
|
+
|
|
55
|
+
Toggle capabilities incrementally with `devworkspace modules`:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx devworkspace modules list
|
|
59
|
+
npx devworkspace modules enable intelligence.graph
|
|
60
|
+
npx devworkspace modules disable workflow.decisions --dry-run
|
|
61
|
+
npx devworkspace modules configure agent.mcp --key scope --value project
|
|
62
|
+
npx devworkspace modules configure workflow.standards --key autoDetect --value true
|
|
63
|
+
npx devworkspace modules configure intelligence.orchestration --key maxRetries --value 2
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- **Safe data preservation:** Disabling a module stops runtime execution and MCP exposure for that capability while leaving `.devworkspace/` data files intact.
|
|
67
|
+
- **Full catalog & dependency rules:** See [Modular Features & Toggles](features.md).
|
package/docs/contributing.md
CHANGED
|
@@ -57,10 +57,21 @@ Small, focused commits with imperative subjects. PRs should describe the behavio
|
|
|
57
57
|
|
|
58
58
|
Versioning is semver. Workspace schema changes need a migration and are at least a minor release (major if downgrades break).
|
|
59
59
|
|
|
60
|
-
1. Update `CHANGELOG.md` (move *Unreleased* under `## [X.Y.Z] - YYYY-MM-DD`) and bump `"version"` in `package.json`
|
|
61
|
-
2.
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
1. **Prepare release commit:** Update `CHANGELOG.md` (move *Unreleased* under `## [X.Y.Z] - YYYY-MM-DD`) and bump `"version"` cleanly in both `package.json` and `package-lock.json` (`npm install --package-lock-only`).
|
|
61
|
+
2. **Local validation (non-publishing):**
|
|
62
|
+
- Run `node scripts/release-check.mjs --dry-run` before creating the release tag, OR create the annotated tag locally (`git tag -a vX.Y.Z -m "Release vX.Y.Z"`) and run strict `npm run release:check`.
|
|
63
|
+
- Run `npm publish --dry-run --access public` to inspect the packed archive without touching npm.
|
|
64
|
+
3. **Automated CI validation & release (`main` push or tag push):**
|
|
65
|
+
- Pushing to `main` triggers the `validate` job in [`.github/workflows/release.yml`](../.github/workflows/release.yml), which checks `package.json == package-lock.json == HEAD` consistency, runs `node scripts/release-check.mjs --dry-run`, and checks `devworkspace@X.Y.Z` via fail-closed `scripts/check-registry.mjs`.
|
|
66
|
+
- If `devworkspace@X.Y.Z` is already `PUBLISHED`, the `publish` job skips cleanly so normal commits on `main` never fail or re-publish.
|
|
67
|
+
- If `devworkspace@X.Y.Z` is `NOT_PUBLISHED`, the `publish` job runs automatically after `validate` passes:
|
|
68
|
+
- **Required GitHub Repository Settings (`Settings -> Environments -> publish`):**
|
|
69
|
+
- Restrict deployment branches and tags strictly to `main` and `v[0-9]+.[0-9]+.[0-9]+*`.
|
|
70
|
+
- Leave *Required reviewers* empty for zero-click automatic npm publication on `main` pushes, or configure reviewer(s) if you prefer manual sign-off before `npm publish`.
|
|
71
|
+
- **npm Trusted Publisher binding:** Configure npmjs.com Trusted Publishing exclusively for workflow `release.yml` and environment `publish` (`id-token: write` exists ONLY inside the `publish` job).
|
|
72
|
+
- `publish` creates annotated tag `vX.Y.Z` on `HEAD` if absent (never `git tag -f` / `git push -f`), verifies optional `RELEASE_TAG_ALLOWED_SIGNERS` signatures when set, runs strict `npm run release:check`, and executes `npm publish --access public`.
|
|
73
|
+
- Manual `workflow_dispatch` defaults to `dry_run: true`; setting `dry_run: false` with `confirm_publish: PUBLISH` also validates, tags, and publishes unpublished releases cleanly.
|
|
74
|
+
4. **Manual fallback (only with explicit owner authorisation):** `npm publish --access public --provenance` from a clean, validated checkout of annotated tag `vX.Y.Z`.
|
|
64
75
|
|
|
65
76
|
## Support Lifecycle, Vulnerability Reporting & Release Rollback
|
|
66
77
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Execution State — DevWorkspace `0.5.2` Final Concurrency & Release Certification
|
|
2
|
+
|
|
3
|
+
**Updated:** 2026-12-02
|
|
4
|
+
**Release Version:** `0.5.2` (`package.json`, `package-lock.json`, and `CHANGELOG.md` aligned at `0.5.2`; verified `NOT_PUBLISHED` via `scripts/check-registry.mjs`)
|
|
5
|
+
**Prior Published Releases:** `0.5.0` (`6678faa`), `0.5.1` (`814134c`, `refs/tags/v0.5.1` live on `origin` and npm)
|
|
6
|
+
**Authoritative Release Report:** [`RELEASE_DOSSIER_0.5.2.md`](../../reports/production-readiness/RELEASE_DOSSIER_0.5.2.md) *(supersedes historical `0.5.0` dossier [`FINAL_RELEASE_DOSSIER.md`](../../reports/production-readiness/FINAL_RELEASE_DOSSIER.md) and [`RELEASE_DOSSIER_0.5.1.md`](../../reports/production-readiness/RELEASE_DOSSIER_0.5.1.md))*
|
|
7
|
+
**Setup & Modular Feature Report:** [`FINAL_SETUP_AND_FEATURE_SELECTION_REPORT.md`](../../reports/setup-ux/FINAL_SETUP_AND_FEATURE_SELECTION_REPORT.md)
|
|
8
|
+
**Final Corrections & Cleanup Report:** [`FINAL_CORRECTION_AND_CLEANUP_REPORT.md`](../testing/FINAL_CORRECTION_AND_CLEANUP_REPORT.md)
|
|
9
|
+
**Verdict:** **Ready for automatic release on push to `main`** *(all local Windows 11 quality, security, setup/module gating, packaging, and dry-run gates pass; pushing `main` now triggers `validate` and `publish` automatically in GitHub Actions to tag `v0.5.2` and publish `devworkspace@0.5.2` via npm OIDC Trusted Publishing, subject only to any reviewer settings configured on GitHub's `publish` environment)*
|
|
10
|
+
|
|
11
|
+
## Hardening & Files Changed Across `0.5.2` Certification
|
|
12
|
+
7. **Setup UX & Modular Feature Selection (Phases 0-2):**
|
|
13
|
+
- Added [`src/cli/prompt.ts`](../../src/cli/prompt.ts), [`src/dx/guided-setup.ts`](../../src/dx/guided-setup.ts), [`src/config/feature-registry.ts`](../../src/config/feature-registry.ts), [`src/config/feature-gate.ts`](../../src/config/feature-gate.ts), [`src/config/settings.ts`](../../src/config/settings.ts), [`src/services/settings.ts`](../../src/services/settings.ts), [`src/services/modules.ts`](../../src/services/modules.ts), runtime module gating across CLI/MCP/services, rewritten [`README.md`](../../README.md), [`docs/features.md`](../features.md), [`docs/configuration.md`](../configuration.md), and unit tests ([`setup-wizard.test.ts`](../../tests/unit/setup-wizard.test.ts), [`modular-features.test.ts`](../../tests/unit/modular-features.test.ts)).
|
|
14
|
+
1. **P0 — Fix Approval Stage-Scope Bypass (`BLK-025`):**
|
|
15
|
+
- [`src/intelligence/runtime/boundary.ts`](../../src/intelligence/runtime/boundary.ts) (`evaluateStageScope`, `evaluateApprovalGrants`), [`src/intelligence/orchestration/engine.ts`](../../src/intelligence/orchestration/engine.ts), [`src/intelligence/runtime/types.ts`](../../src/intelligence/runtime/types.ts)
|
|
16
|
+
2. **P0 — Real Approver Authentication & Cryptographic Grant Signing (`BLK-026`):**
|
|
17
|
+
- Added [`src/intelligence/runtime/auth-provider.ts`](../../src/intelligence/runtime/auth-provider.ts) (`HmacApprovalAuthProvider`, `Ed25519ApprovalAuthProvider`, `createEnvApprovalAuthProvider`, `getEnvApproverCredentials`)
|
|
18
|
+
- Updated [`src/intelligence/runtime/types.ts`](../../src/intelligence/runtime/types.ts), [`src/intelligence/runtime/boundary.ts`](../../src/intelligence/runtime/boundary.ts), [`src/intelligence/orchestration/types.ts`](../../src/intelligence/orchestration/types.ts), [`src/intelligence/orchestration/engine.ts`](../../src/intelligence/orchestration/engine.ts), [`src/services/intelligence.ts`](../../src/services/intelligence.ts), [`src/intelligence/security/types.ts`](../../src/intelligence/security/types.ts), [`src/index.ts`](../../src/index.ts)
|
|
19
|
+
3. **P1 — Revocation Concurrency Serialization (`BLK-028`):**
|
|
20
|
+
- Extracted synchronous process-spawn starter `startRun()` in [`src/utils/proc.ts`](../../src/utils/proc.ts) and introduced shared `withRevocationAuthLock()` in [`src/intelligence/runtime/boundary.ts`](../../src/intelligence/runtime/boundary.ts) (backed by `withLock` on `revocation-auth.lock`) across `revokeApprovalGrant()`, `OrchestrationEngine.approve()` / destructive gate, and `executeBoundedCommand()` through synchronous OS `spawn()`.
|
|
21
|
+
- Verified with concurrent race & post-revocation replay tests (`AC-13` in [`tests/unit/real-agent-runtime-orchestration.test.ts`](../../tests/unit/real-agent-runtime-orchestration.test.ts)).
|
|
22
|
+
4. **P1 — Full Dependency Security Audit (`BLK-027`):**
|
|
23
|
+
- Resolved all `10` devDependency vulnerabilities cleanly via `npm audit fix` without `--force` in [`package-lock.json`](../../package-lock.json); both `npm audit` and `npm audit --omit=dev` exit `0` with `0 vulnerabilities`.
|
|
24
|
+
5. **P1 — Release Workflow Clarity, Mandatory Signed Tags & Manual Path Hardening (`BLK-024`, `BLK-029`):**
|
|
25
|
+
- Hardened [`.github/workflows/release.yml`](../../.github/workflows/release.yml) (`tag_verified == 'true'` required in `validate` and `publish`, rejecting untagged/unsigned manual candidates before `publish`, enforcing `REQUIRE_SIGNED_TAGS: 'true'` and `RELEASE_TAG_ALLOWED_SIGNERS`, and documenting signed-tag sequence, manual sequence, reviewers, branch protection, and npm OIDC Trusted Publishing) and [`docs/contributing.md`](../contributing.md).
|
|
26
|
+
6. **P2 — Documentation Reconciliation & Tests:**
|
|
27
|
+
- Marked [`reports/production-readiness/FINAL_RELEASE_DOSSIER.md`](../../reports/production-readiness/FINAL_RELEASE_DOSSIER.md) as historical `0.5.0` archive and reconciled [`RELEASE_DOSSIER_0.5.2.md`](../../reports/production-readiness/RELEASE_DOSSIER_0.5.2.md), [`RELEASE_BLOCKER_REGISTER.md`](../../reports/production-readiness/RELEASE_BLOCKER_REGISTER.md), and [`CHANGELOG.md`](../../CHANGELOG.md).
|
|
28
|
+
|
|
29
|
+
## Exact Verified Commands & Outcomes (Latest Local Win32 Certification)
|
|
30
|
+
- `node scripts/check-registry.mjs devworkspace 0.5.1 --json`: exit `0` (`state: PUBLISHED`, `publishedVersion: 0.5.1`)
|
|
31
|
+
- `node scripts/check-registry.mjs devworkspace 0.5.2 --json`: exit `0` (`state: NOT_PUBLISHED`, `E404`)
|
|
32
|
+
- `npm ci`: exit `0` (`142` packages installed, `found 0 vulnerabilities`)
|
|
33
|
+
- `npm audit` (full tree): exit `0` (`found 0 vulnerabilities`)
|
|
34
|
+
- `npm run audit:security` (`npm audit --omit=dev --audit-level=high`): exit `0` (`found 0 vulnerabilities`)
|
|
35
|
+
- `npm run typecheck`: exit `0`
|
|
36
|
+
- `npm run lint`: exit `0`
|
|
37
|
+
- `npm run test:unit`: exit `0` (`63 passed (63)` files, `1072 passed | 1 skipped (1073)` — POSIX-only symlink test in `tests/unit/integrations-plugins.test.ts:449` skipped on `win32`)
|
|
38
|
+
- `npm run test:integration`: exit `0` (`7 passed (7)` files, `126 passed (126)`)
|
|
39
|
+
- `npm run test:e2e`: exit `0` (`2 passed (2)` files, `61 passed (61)`)
|
|
40
|
+
- `npm run coverage`: exit `0` (`Test Files 72 passed (72)`, `Tests 1259 passed | 1 skipped (1260)`; Statements `83.67%`, Branches `75.11%`, Functions `87.98%`, Lines `85.01%`)
|
|
41
|
+
- `npm run eval`: exit `0` (`10/10 cases passed`, `14516ms`)
|
|
42
|
+
- `npm run build`: exit `0`
|
|
43
|
+
- `npm run smoke`: exit `0` (`devworkspace-0.5.2.tgz`: `388 files, 554 kB packed`, `Smoke test PASSED`)
|
|
44
|
+
- `npm publish --dry-run --access public`: exit `0` (`+ devworkspace@0.5.2`, `388` files, `567.5 kB` packed / `2.1 MB` unpacked)
|
|
45
|
+
- Post-commit `node scripts/release-check.mjs --dry-run` & strict `npm run release:check`: executed directly after committing cleanly on `main`.
|
|
46
|
+
|
|
47
|
+
## Remaining Limitations & Non-Publish Hold
|
|
48
|
+
- **Multi-OS CI:** Verified on Windows 11 locally (macOS and Linux CI runners not executed locally for the `0.5.2` commits). Native `ubuntu-latest`, `windows-latest`, and `macos-latest` runs execute via `.github/workflows/ci.yml` + `release.yml` (`validate`) only after authorized push.
|
|
49
|
+
- **Remote GitHub & npm UI Settings Unverified Locally (`NO_GH_CLI`):** Live GitHub `publish` environment reviewers/branch rules, `main` branch protection, `RELEASE_TAG_ALLOWED_SIGNERS`, and npm OIDC Trusted Publishing pairing could not be inspected from the local workspace.
|
|
50
|
+
- **No Unapproved Publish / Tag / Push:** Commits remain local on `main` without pushing commits, creating/pushing tags, or running live `npm publish`.
|
package/docs/features.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Modular Features & Capability Selection
|
|
2
|
+
|
|
3
|
+
DevWorkspace separates **always-on core safety & context** from **optional capabilities and external integrations**. You can select a setup preset up front or enable, disable, and configure individual modules at any time via `devworkspace modules`.
|
|
4
|
+
|
|
5
|
+
> Note on installation footprint vs. runtime activation: DevWorkspace ships as a single zero-runtime-dependency npm package (`0` external npm dependencies). Presets and `devworkspace modules` control which capabilities run, which MCP tools and files are written, and whether third-party external tools may be installed—not separate npm downloads.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Managing Modules
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# List all registered modules and current ON/OFF state
|
|
13
|
+
npx devworkspace modules list
|
|
14
|
+
|
|
15
|
+
# Inspect module dependencies, data paths, and config keys
|
|
16
|
+
npx devworkspace modules show intelligence.graph
|
|
17
|
+
|
|
18
|
+
# Enable an optional module (auto-enables required dependencies)
|
|
19
|
+
npx devworkspace modules enable workflow.standards
|
|
20
|
+
|
|
21
|
+
# Preview disabling a module safely (existing data on disk is preserved)
|
|
22
|
+
npx devworkspace modules disable dx.dashboard --dry-run
|
|
23
|
+
|
|
24
|
+
# Configure a non-secret module setting
|
|
25
|
+
npx devworkspace modules configure agent.mcp --key scope --value project
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Core Capabilities (Always Enabled)
|
|
31
|
+
|
|
32
|
+
Core capabilities cannot be disabled because project integrity, privacy, and honest verification depend on them:
|
|
33
|
+
|
|
34
|
+
| Module ID | Name | Purpose |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `core.workspace` | Workspace & Identity | Initialize, validate, migrate, export/import, inspect settings/modules, safely reset `.devworkspace/` |
|
|
37
|
+
| `core.discovery` | Discovery & Basic Context | Offline repository scanning, facts, testing contract detection, core MCP read tools |
|
|
38
|
+
| `core.security` | Privacy, Security & Verification Truthfulness | Secret exclusion & redaction, symlink/path bounds, shell-less execution guards, vacuous-pass rejection |
|
|
39
|
+
|
|
40
|
+
Attempting `devworkspace modules disable core.security` (or `core.workspace` / `core.discovery`) fails closed with an explanatory error.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Optional Built-In & Agent Modules
|
|
45
|
+
|
|
46
|
+
| Module ID | Default Preset(s) | Requires | Preserved Data Path(s) |
|
|
47
|
+
|---|---|---|---|
|
|
48
|
+
| `agent.mcp` | `recommended` (with MCP agent), `full` | `core.workspace`, `core.discovery`, `core.security` | `.mcp.json`, `.codex/config.toml` |
|
|
49
|
+
| `agent.instructions` | `recommended` (with instruction agent), `full` | `core.workspace` | `CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`, `.github/copilot-instructions.md` |
|
|
50
|
+
| `workflow.tasks` | `recommended`, `full` | `core.workspace`, `core.discovery`, `core.security` | `.devworkspace/tasks/active/`, `.devworkspace/tasks/completed/`, `.devworkspace/state/test-env.json` |
|
|
51
|
+
| `workflow.decisions` | `recommended`, `full` | `core.workspace` | `.devworkspace/decisions/`, `.devworkspace/sessions/` |
|
|
52
|
+
| `workflow.standards` | `full` | `core.workspace`, `core.security` | `.devworkspace/standards/config.json` |
|
|
53
|
+
| `intelligence.features` | `full` | `core.workspace`, `core.discovery` | `.devworkspace/context/features.json` |
|
|
54
|
+
| `intelligence.graph` | `full` | `intelligence.features`, `core.security` | `.devworkspace/graph/graph.json` |
|
|
55
|
+
| `intelligence.orchestration` | `full` | `core.workspace`, `core.security`, `workflow.tasks` | `.devworkspace/orchestration/` |
|
|
56
|
+
| `dx.dashboard` | `full` | `core.workspace`, `core.discovery` | `.devworkspace/local/dashboard.html` |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Optional Third-Party Integrations (Explicit Consent Only)
|
|
61
|
+
|
|
62
|
+
External integrations never install automatically under `minimal`, `recommended`, or `full`. Enabling one requires `--yes` confirmation:
|
|
63
|
+
|
|
64
|
+
| Module ID | Availability | Prerequisites | Entry Points |
|
|
65
|
+
|---|---|---|---|
|
|
66
|
+
| `integration.graphify` | Optional | Python 3.10+ or `uv`/`pipx`; `--yes` | `devworkspace setup --integrations --only graphify --yes` |
|
|
67
|
+
| `integration.agent-skills` | Optional | Claude Code CLI or `npx`; `--yes` | `devworkspace setup --integrations --only agent-skills --yes` |
|
|
68
|
+
| `integration.ponytail` | Optional | Claude Code CLI; `--yes` | `devworkspace setup --integrations --only ponytail --yes` |
|
|
69
|
+
| `integration.omniroute` | Experimental | Local OmniRoute CLI; `--yes` | `devworkspace setup --integrations --only omniroute --yes` |
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Runtime Gating & Data Preservation
|
|
74
|
+
|
|
75
|
+
1. **Real runtime enforcement & strict config validation:** Once `.devworkspace/settings.json` exists, it is strictly validated on load and before any gated capability executes (rejecting unknown IDs, disabled core modules, missing dependencies, and conflicting selections). Disabled modules fail closed across CLI subcommands, programmatic APIs, and the local MCP server (`agent.mcp` gates MCP tool exposure/calls; `intelligence.graph` gates `trace_symbol_dependencies` in `tools/list` and `tools/call`; disabled `integration.*` adapters report `DISABLED` without launching external commands unless `--all` is explicitly passed to `integrations status`).
|
|
76
|
+
2. **Legacy workspace compatibility:** Older repositories without `.devworkspace/settings.json` keep built-in workflows working until configured, and `devworkspace settings` / `devworkspace modules list` infer safe non-destructive defaults. Bare non-interactive `devworkspace setup` persists `Minimal` (`preset: "minimal"`) explicitly into `.devworkspace/settings.json`.
|
|
77
|
+
3. **Zero silent data loss:** Disabling a module updates `.devworkspace/settings.json` (`disabledFeatures`) without deleting tasks, decisions, feature maps, graphs, or generated HTML files on disk. Re-enabling recovers access immediately.
|
|
78
|
+
4. **Dependency safety:** Disabling a dependency with active dependents (e.g. `intelligence.features` while `intelligence.graph` is enabled, or `workflow.tasks` while `intelligence.orchestration` is enabled) is blocked unless you disable dependents first or pass `--force`.
|
|
79
|
+
|
|
80
|
+
See also: [Configuration & Settings](configuration.md), [Getting Started](getting-started.md), and [Integrations](integrations.md).
|