Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/hud-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
- 'scripts/*hermes-hud*'
- 'scripts/runtime-selection.*'
- 'scripts/hud-launch.mjs'
- 'scripts/workspace-*.mjs'
- 'scripts/workspace-audit.py'
- 'scripts/workspace-runtime/**'
- 'tests/fixtures/workspace-203/**'
- 'tests/test_workspace_runtime_203.py'
- '.github/workflows/hud-ci.yml'
push:
branches: [main]
Expand All @@ -36,10 +41,21 @@ jobs:
cache: npm
cache-dependency-path: ui/netclaw-visual/package-lock.json
- run: npm ci
- name: Install pinned private workspace test datastore
run: |
archive="$RUNNER_TEMP/rqlite-v10.8.1-linux-amd64.tar.gz"
curl --fail --show-error --silent --location --retry 2 \
https://github.com/rqlite/rqlite/releases/download/v10.8.1/rqlite-v10.8.1-linux-amd64.tar.gz -o "$archive"
echo "74071c12c41e7cbb83c844fcbcd2f1adde578bbb9549be0cf18c0a3616e8b4ea $archive" | sha256sum --check --status
tar -xzf "$archive" -C "$RUNNER_TEMP" rqlite-v10.8.1-linux-amd64/rqlited
echo "NETCLAW_TEST_RQLITED=$RUNNER_TEMP/rqlite-v10.8.1-linux-amd64/rqlited" >> "$GITHUB_ENV"
- run: npm test
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Verify private subject worker policy
working-directory: .
run: python -m unittest discover -s tests -p test_workspace_runtime_203.py
- name: Canvas terminal contracts, Python mocks and bundle budget
working-directory: .
run: bash tests/canvas-terminal/run-tests.sh
Expand Down
2 changes: 1 addition & 1 deletion .specify/feature.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"feature_directory": "specs/199-aws-multicloud-ha"
"feature_directory": "specs/203-multi-user-isolation"
}
8 changes: 6 additions & 2 deletions .specify/scripts/bash/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ find_feature_dir_by_prefix() {
if [[ -d "$specs_dir" ]]; then
for dir in "$specs_dir"/"$prefix"-*; do
if [[ -d "$dir" ]]; then
if [[ "${dir##*/}" == "$branch_name" ]]; then
echo "$dir"
return
fi
matches+=("$(basename "$dir")")
fi
done
Expand All @@ -172,9 +176,9 @@ find_feature_dir_by_prefix() {
# Exactly one match - perfect!
echo "$specs_dir/${matches[0]}"
else
# Multiple matches - this shouldn't happen with proper naming convention
# A shortened branch name cannot select between independently numbered specs.
echo "ERROR: Multiple spec directories found with prefix '$prefix': ${matches[*]}" >&2
echo "Please ensure only one spec directory exists per prefix." >&2
echo "Set SPECIFY_FEATURE to the full name of the intended spec directory." >&2
return 1
fi
}
Expand Down
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# NetClaw Operating Instructions

## R14 and R15 source integration — 2026-11-30

The owner authorized merging the completed R14, R15a and R15b source into `main`. When selecting Spec201, use its full directory name. [Enterprise Border authority](specs/201-enterprise-border-authority/spec.md) and [NerdGram](specs/201-nerdgram-skill/spec.md) have distinct qualification records. R16 is the next enterprise roadmap item. The coordinated 2.0 release hold continues.

## Spec203 · R15b private workspaces — 2026-11-29

All nine engineering tasks passed. Risk members remain machine-only. Named users enter through a Border and own their chats, files, Canvas, terminals and jobs across HUD, VS Code and Mobile. OpenClaw and Hermes were qualified on premises. A GCP Border outage moved private content access to Azure while the on-prem voter independently verified the original and new work. The CPU model and read-only SSH witnesses used synthetic incidents. Mobile native acceptance used an iOS simulator. Both cloud deployments, the local runtime workers and the client fixtures were retired. The conservative combined allocation is USD 1.74264 with zero open reservations and final billing pending. Preserve original uncertain operations and the private receipt archive. [Verification](specs/203-multi-user-isolation/verification.md) · [Receipt index](specs/203-multi-user-isolation/acceptance-20261129.json)

The next standalone roadmap item is R16, bring-your-own SSO. R17 covers fine-grained resource permissions and delegated approvals. The coordinated 2.0 release hold continues.

## Spec202 · R15a named Border accounts — 2026-11-29

All eight engineering tasks passed. Administrators manage named users from HUD, VS Code and Mobile. Risk members expose zero NetClaw human entry points. A standalone Border owns its accounts. Each named HA group has a quorum-backed identity namespace. Bootstrap and custodian recovery use trusted Border management. Qualification covered standalone on-prem and GCP, a local three-voter HA group, Chrome, a real VS Code extension host and the iOS simulator. Both fresh GCP campaigns and the local HA/client resources are retired. Combined conservative allocation was USD 0.52218 against USD 2, with provider billing pending. See [qualification](specs/202-border-local-login/verification.md) and [receipts](specs/202-border-local-login/acceptance-20261129.json). R15b owns multi-user isolation, R16 owns SSO, and R17 owns resource permissions and delegated approvals. The coordinated release hold continues.

## Spec201 · standalone R14 enterprise Border authority — 2026-11-29

All 14 engineering tasks passed for the owner-defined R14 scope. GCP and a Mac-hosted Ubuntu guest qualified standalone owner operation, hybrid signed-device routing, external export withdrawal and cold-member recovery. The isolated resources and campaign OS Login key have been retired. See [verification](specs/201-enterprise-border-authority/verification.md) and the [original receipt index](specs/201-enterprise-border-authority/acceptance-20261129.json). Preserve the original unknown and its fence. Continue the identity roadmap with R15a named local login and audited emergency recovery. Global nine-Border takeover, source integration and release remain separate.

## Spec199 closed for the owner-approved Ohio scope — 2026-11-26

39/39 tasks complete; all five stages accepted and retired. Final nine-Border mesh passed27 named cells, original result/ACK verification, native recovery and late guard/quorum faults. All83 tracked final cloud resources/DNS and final local operation containers/networks are absent;23 private archives are verified. True AWS cross-region resilience remains deferred; AWS qualification is three distinct Ohio AZs. Azure/GCP retain three regions each.
Expand Down Expand Up @@ -266,6 +284,8 @@ When unsure about severity or approach: escalate. Say "I'd recommend verifying t
- Spec200 planned: Private owner-scoped SQLite ledger and bounded artifacts,0700 directories/0600 files; existing GAIT. Reuse qualified private atomic-write/ownership conventions, not federation authority tables. (200-genie-network-worlds)
- Python3.10+ stdlib host tooling; isolated Python3.12 federation; existing Node24.19/React/TypeScript clients. + Existing AWS CLI2.35.24, NCFED/FastMCP/MCP, SQLite, OpenShell/DefenseClaw, Docker, pinned OpenClaw/Sonnet and Ollama reference closures; external etcd3.6.16. No new Python dependency/MCP server/UI framework. (199-aws-multicloud-ha)
- Private0700 campaign directory;0600 packets, ledgers, consistent SQLite exports and credentials; secret-free source examples. (199-aws-multicloud-ha)
- Existing isolated Python 3.12 federation runtime, Python 3.10+ installer and supported HUD, VS Code and Flutter clients. + Existing authenticated NCFED/iN2N channels, HA admission and enrollment, selected installer and native client recovery surfaces. (201-enterprise-border-authority)
- Existing private member status file and operation ledger, plus private acceptance receipts outside installation homes. (201-enterprise-border-authority)

- Spec 148 implementation: JavaScript ESM/Express/React HUD; HUD Node >=24.19 <25 or >=26.1; isolated bridge/tool Python 3.12 and companion Python 3.14; official MCP Node client 2.3.1 and isolated FastMCP 4.0.11/MCP Python SDK 2.3.0. General OpenClaw installer Node policy remains >=24.16 <25 or >=26.1.
- Qualified Hermes baseline: v0.21.6, source 818c13be1dc4fd28987e1e881a9408224afd4535. Private MCP bridge/protected companion, schema-2 owned HUD bindings, SQLite admission/evidence records and installation-scoped browser storage. Mac and Ubuntu 26.04 WSL live/browser qualification is recorded in specs/148-hermes-hud-integration/closure.md; broader tool and platform qualification is not implied.
Expand Down
2 changes: 2 additions & 0 deletions USER.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## Preferences

- 2026-11-29 enterprise 2.0 direction. Support cloud and standalone on-prem Borders, named local accounts before BYO SSO, and local emergency recovery when SSO or cloud accounts are unavailable. When one provider hosts all eligible HA Borders and cloud claws, losing it leaves surviving on-prem members cold for controlled work. They keep checking for authenticated restoration. Drive each capability through a separate full Spec Kit feature and bounded Ralph reviews. See the [2.0 sequence](docs/roadmap/issue-310/README.md) and [Spec201](specs/201-enterprise-border-authority/spec.md).

- 2026-11-26 Spec199 closeout: merge all completed Spec199 source into main, reconcile upstream, retire the completed branch, and provide a separate NET CLAW MULTI CLOUD writeup. The approved AWS scope is three real Ohio availability zones; actual cross-region resilience remains deferred. Preserve Spec200 and existing services; no runtime activation or version/package publication requested.

- 2026-11-26 Spec199: owner personally initiated the AWS upgrade/activation,
Expand Down
2 changes: 1 addition & 1 deletion config/components/effects.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema": 1,
"sourceSha256": "de532c59acce3a82f2f5952fb7858501b528bb6ae32f1e46ecf1152d54606c22",
"sourceSha256": "c13e631fa40d6cedaff0fccb027714fb152a7e7d179569cad2071fc7bd618967",
"components": [
{
"id": "hermes-hud",
Expand Down
20 changes: 20 additions & 0 deletions docs/roadmap/issue-310/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# NetClaw roadmap: cloud mesh → multi-cloud → multi-user (closes #310)

## Enterprise 2.0 direction · 2026-11-29

NetClaw 2.0 targets organizations that run Borders on premises, in the cloud, or across both. An on-prem Border is a supported deployment target in this program. The earlier cloud-only topology below describes the original campaign. Its [three-cloud acceptance](../../../specs/199-aws-multicloud-ha/closure-20261126.md) covers three cloud authorities and 27 signed paths. GCP and Azure each used three regions. AWS used three availability zones in Ohio. AWS cross-region qualification remains deferred.

| Delivery order | Scope of the individual spec | Evidence a reviewer should be able to inspect |
|---|---|---|
| R14 enterprise Border authority · [Spec201](../../../specs/201-enterprise-border-authority/spec.md) | Qualified GCP and standalone on-prem Borders, same-enterprise routing in both directions, external grant withdrawal, and single-provider cold/restoration behavior. The earlier [global-cluster topology](briefs/R14-multi-cloud-stitch.md) retains its separate qualification gate. | [Actual outage timings, original signed receipts and native client recovery](../../../specs/201-enterprise-border-authority/verification.md). Spec202 carries R15a identity and recovery. |
| R15a · [Named Border login and administration](../../../specs/202-border-local-login/spec.md) | Named accounts, trusted custodian recovery and user management in HUD, VS Code and Mobile on a standalone Border or quorum-backed HA group. Risk members accept machine work only. | [Placement, native client and outage evidence](../../../specs/202-border-local-login/verification.md). |
| R15b · [Spec203 · Multi-user isolation](../../../specs/203-multi-user-isolation/spec.md) | Private chats, Canvas, files, terminals, background jobs and quotas per named user. Both OpenClaw and Hermes support isolated workers. | Two equal-display-name accounts exercised private work and original-owner upgrades. After GCP stopped, Azure resumed the original history and accepted new work. [Client and runtime verification](../../../specs/203-multi-user-isolation/verification.md) · [Provider failover](../../../specs/203-multi-user-isolation/cloud-verification.md) |
| R16 · [Bring-your-own SSO](briefs/R16-byo-sso.md) | Provider configuration, account linking, group changes and deprovisioning. Cover Entra ID, Google, GitHub and generic OIDC, including a customer-hosted provider. | Actual test-provider logins, tenant restrictions, revocation, outage behavior and native-client sign-in. |
| R17a · [Roles and fine-grained permissions](briefs/R17-rbac-delegation-audit.md) | Map users and groups to actions on scoped resources. Cover device, site, member, Border, tool, integration and workflow. Enforce the effective permissions at request and execution time. | An engineer can diagnose devices in site A, cannot change them or access site B, and loses access when the grant is revoked. Test direct and delegated requests as well as the UI. |
| R17b · Delegated approvals and audit | Carry the initiating principal, target, action and conditions to the executing member. Separate requester and approver, enforce production change control and record the result. | A named engineer prepares a scoped change, a second authorized person approves, and an auditor can reconstruct the outcome. Revoked, expired and self-approved requests are refused before execution. |
| R18 · [Personal memory](briefs/R18-personal-memory.md) | Let a user inspect, correct, export and erase private memories across supported placements. | A second user cannot retrieve the first user's memory. Erasure is verified against indexes and replicas. |
| R19 · [Shared knowledge](briefs/R19-shared-knowledge-base.md) | Publish a personal finding with author consent, review, attribution and a freshness check. | A second engineer can find the approved entry and verify its applicability. Unpublished material stays private. |
| R20 · [2.0 release qualification](briefs/R20-issue-310-closure.md) | Trace every supported deployment and user journey to versioned evidence. Document upgrade, recovery, limits and the operator experience in HUD, VS Code and Mobile. | Rehearse upgrade from a supported 1.x install, recovery and rollback with retained history. Exercise concurrent engineers, revocation, protected operations and audit across the supported clients. Record the release decision separately. |

Each row gets its own numbered Spec Kit feature when it starts. R15a/b and R17a/b are delivery splits of the original briefs. Each feature goes through specification, clarification, research and design, contracts, dependency-ordered tasks, consistency analysis, implementation, verification and review. The first accepted login or SSO flow alone cannot enable multi-user protected execution. The existing R17 authorization gate and coordinated release hold apply.

Use bounded Ralph review loops for each feature. Repeat the same feature objective, reread the spec, tasks and evidence, fix the highest-impact open discrepancy and rerun the affected check. Record the change and result for each pass. Stop on demonstrated acceptance, a decision requiring the owner, or the iteration bound with remaining gaps listed. An expended operation or a live action with an unknown outcome retains its original identity and cannot be replayed by a loop.

This folder turns the cloud-first roadmap and issue #310 into 21 ordered feature
briefs for Spec Kit (R01–R20 plus R04a), with a proposed R04b follow-up. VS Code and Mobile integration are
continuing delivery objectives alongside the cloud, federation and user features.
Expand Down
21 changes: 11 additions & 10 deletions docs/roadmap/issue-310/briefs/R15-multi-user-foundation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Authorization and audit start here, not later. Until R17, only the owner or an
administrator can approve protected execution; other users can chat and read.
Access to a Border never implies administrator rights. Every action is attributed
to its principal in GAIT. Authentication goes through a pluggable authenticator
interface; this feature ships the existing owner binding and a test-only provider,
and R16 adds real identity providers.
interface. The owner selected [named local accounts and emergency recovery](R15a-local-login-recovery.md)
for cloud and standalone on-prem on 2026-11-29. R15b uses those principals for isolation.
R16 adds enterprise identity providers.

User stories:
- P1: Engineer A investigates an ISE issue while Engineer B investigates an ASA
Expand All @@ -37,18 +38,16 @@ implementation/verification work under [G12/G13](../README.md#global-invariants-
Record a reasoned no-change disposition for an unaffected client; affected
integration gaps remain part of this feature.

## Clarify: decisions (recommended default first)
## Spec203 owner decisions

1. Isolation under OpenClaw: per-user agent session namespace, per-user workspace
directory and per-user sandbox for exec and terminals; shared configuration is
read-only. Research OpenClaw's current session and trust model first. [research]
2. Hermes runtime: single-user only; multi-user recorded as unqualified. [HUMAN]
3. User data placement across nine Borders: a user data store (not etcd) with a
home region per user; any Border serves the user from it; data residency is a
setting. [HUMAN]
4. Bootstrap authentication before R16: the owned-HUD binding becomes the owner
principal; additional users only through a test OIDC provider in development.
No local passwords as a product feature.
2. The owner requires concurrent named-user qualification for both OpenClaw and Hermes. Each principal receives an independently confined runtime.
3. Each subject has a customer-approved residency cohort. On home loss, a surviving approved majority can serve the original history and admit new work. Without an approved majority the workspace pauses. Cross-provider qualification uses fresh resources.
4. Bootstrap before R16 through R15a. Bind the existing installation owner's history to
the verified owner and support additional named local users. The isolated on-prem case
must work without cloud authentication.
5. Per-principal budgets and concurrency limits.
6. Migration: the owner's existing history becomes the owner principal's history.

Expand Down Expand Up @@ -76,3 +75,5 @@ integration gaps remain part of this feature.
| Compatibility | Single-user mode unchanged with the flag off |
| VS Code integration | Explicit G12 impact/disposition and evidence: Signed-in user, server-owned session and account switching preserve cross-user isolation |
| Mobile integration | Explicit G13 impact/disposition and evidence: Affected identity/session/account-switch flows preserve per-user isolation and revoke stale access; reasoned no-impact outcome if unaffected |

The numbered [R15b specification](../../../../specs/203-multi-user-isolation/spec.md) records the owner decisions and [qualification](../../../../specs/203-multi-user-isolation/verification.md).
Loading
Loading