Skip to content

Tracker: consolidate security, policy, approvals and sandboxing into the tinysecurity bus module (+ tinybox audit) #7328

Closed as not planned

Description

@senamakel

Tracker

Phase order: 0 characterization tests → 1 module wiring → 2 config + policy → 3 redaction/SSRF/egress → 4 approvals + auto-approve → 5 sandbox (needs tinybox work) → 6 middleware consolidation → 7 audit + dead-code cleanup → 8 crypto → 9 docs. The tinysecurity and tinybox PRs for a phase merge and release first; only then is OpenHuman repinned (digests copied verbatim from the release checksum.toml, never from a local build).

Why

OpenHuman's security code is duplicated, partially unwired and confusing:

  • 8+ redactors with independent secret-pattern lists: security/core.rs, util/redact.rs, approval/redact.rs, security/scrub.rs, security/pii, core/log_redaction.rs, tools/registry/denials.rs, integrations/composio/tools/redact.rs, agent/tinyagents/middleware/credential_scrub.rs; plus five URL-redaction helpers.
  • 4 SSRF/private-host checks. util/url.rs::host_is_local misses 169.254.x (cloud metadata), CGNAT and IPv6 private/link-local; tinytools_std::url_guard is the complete one; two more loopback checks exist; no resolved-IP/DNS-rebinding check.
  • 3–4 tool-policy layers: tools/agent_policy/, tools/rules/, agent/tool_policy.rs, and the middleware pair approval.rs / tool_policy.rs; ToolPolicyPosture and policy_info_payload copy AutonomyConfig; disallowed_tools is checked in three places.
  • 3 crypto stacks: encryption/ (AES-GCM + Argon2), keyring/crypto.rs, devices/crypto.rs.
  • Unenforced config: max_cost_per_day_cents; Firejail/Bubblewrap + firejail_args + empty ResourceLimitsConfig; SecurityConfig/DaemonConfig.security/AuditConfig unreachable from Config (audit not configurable, covers only shell); PrivacyMode::Sensitive == Standard; from_config hard-codes PrivacyMode::Standard.
  • Dead/confusing: pii::scan has no non-test caller; security/secrets.rs is a one-line alias; security.policy_info exposes 6 of 13+ fields; #[allow(unused_imports)] re-exports hide dead items; overloaded names (core, rpc, policy).
  • tinybox barely used: only tinybox-jail, one Docker one-shot and shell scanners. Cron shell jobs, tinymcp stdio, tinyruntime pools, command hooks, the tinyflows script runner, agent/host_runtime.rs and helper processes run with policy only. agent/host_runtime.rs:181 hand-builds docker run. With no jail, commands run unconfined and report Inactive.

Target architecture

  • Bus-only. OpenHuman depends on exactly one tinysecurity crate, tinysecurity-bus. The module is a compiled native module loaded at boot (LoadPolicy::Boot), reached through attested_proxy (tinybus attestation + registry digest). No tinysecurity library is linked into the host; no dependency is shared. A new CI check (beside scripts/ci/check-crate-chain.mjs) fails if any OpenHuman manifest depends on another tinysecurity-* crate.
  • Host-served callbacks (the modules/memory_host.rs pattern): approval persistence on the storage backend, approval prompt/await, audit forwarding, keyring consent. Init config carries policy and the Jev judge endpoint/credential (resolved through resolve_backend_credential, never in call args).
  • OpenHuman keeps: config schema and one translator to the module's PolicyConfig; RPC namespaces (approval.*, security.*, sandbox.*, encryption.*, which are wire contracts and unchanged); one TinySecurityMiddleware; credentials/auth; SaaS gateway/profiles; pairing UX; executing sandbox plans through tinybox.
  • Fail closed. Module missing/faulted/timed out ⇒ external-effect calls denied; no in-process retry of a faulted module. A tiny host-side deny-list of the credential-store floor remains only until the module is a mandatory boot dependency.
  • Hot path. Every tool call and in-tool path/command check now crosses the bus. Mitigate with coarse Evaluate, batched Check, and a host decision cache keyed by (policy generation, call fingerprint) invalidated on PolicyChanged. A latency benchmark gate (p50/p99, calls per turn) lands before any caller is migrated; if too slow the fix is batching/caching, not linking the library.

Step-by-step plan

Phase 0: Characterization tests (precondition for every move)

Add Rust tests that pin current behavior so migrations are provably neutral:

  1. tests/json_rpc_e2e.rs-style coverage for approval.* (list_pending, decide, preauthorize_flow, get_gate_state), security.policy_info, sandbox.*, encryption.*. Add [[test]] entries in crates/openhuman-cli/Cargo.toml (path = "../../tests/<name>.rs"), pnpm rust:layout clean.
  2. Gate behavior: allowlist short-circuit, park/decide/TTL (10 min; copilot/sub-agent 3 min) fail-closed, restart survival, cron origin denies external effects, auto_approve_all bypass (document that it writes no audit row today), flow-trust grants.
  3. Policy: command classes, forbidden/trusted roots, always-forbidden floor with autonomy disabled, rate limiter.
  4. Sandbox resolution: SaaS ⇒ sandboxed, env override, agent mode precedence, Noop ⇒ Inactive.
  5. Redaction corpus: one shared fixture of secrets/PII/paths run against every existing redactor, recording what each catches (this becomes the acceptance corpus for the unified redactor and exposes the gaps).
  6. Bus latency baseline for the existing in-process path.

Phase 1: Module wiring (follows migrate-to-submodule)

  1. git submodule add https://github.com/tinyhumansai/tinysecurity vendor/tinysecurity pinned to the released tag; .gitmodules entry.
  2. Registry record in crates/openhuman-core/src/modules/registry/ (copy records_docs_wallet.rs shape): bus_name = ai.tinyhumans.tinysecurity.Policy, object_path, version, release_url, 11 PlatformAssets (sha256 verbatim from checksum.toml), load: LoadPolicy::Boot; wire into registry.rs ALL; case in registry_tests.rs.
  3. scripts/ci/check-module-pins.mjs: add tinysecurity: { submodule: "vendor/tinysecurity" } to PIN_MAP; run check-submodule-monotonic.mjs.
  4. crates/openhuman-core/Cargo.toml: tinysecurity-bus = { path = "../../vendor/tinysecurity/crates/tinysecurity-bus", optional = true }; feature security-module = ["modules", "dep:tinysecurity-bus"]; forward through openhuman-embed, openhuman-tinyhumans, openhuman-rpc, openhuman-cli, openhuman-tui and the app's forwarded set; add to scripts/ci/product-features.txt (it ships; consider default-on); check-feature-forwarding.mjs green; test gate on and off.
  5. Host adapter crates/openhuman-core/src/modules/security.rs (+ security_tests.rs): ensure_loaded, attested_proxy, typed client over tinysecurity-bus constants (no string literals), init/reinit with PolicyConfig, host-callback server for store/prompt/audit/consent.
  6. CI: build the native test module in ci-full.yml and test-reusable.yml (as tinysearch does), export a TINYSECURITY_TEST_MODULE override; release-staging/production workflows list the bundled module version.
  7. New CI check enforcing the bus-only dependency rule.

Phase 2: Config consolidation + policy

  1. One [security] table (autonomy, sandbox, privacy, audit, approval TTLs, auto-approve/judge) with a single translator to PolicyConfig in the host; remove the unreachable SecurityConfig/DaemonConfig.security; expose AuditConfig in Config. Keep migrations in config/migrations/ for renamed fields.
  2. Fix from_config (no hard-coded PrivacyMode::Standard); make security.policy_info return the complete effective policy from the module.
  3. Replace SecurityPolicy / ToolPolicyPosture / policy copies with bus Evaluate/Check; tools (shell, filesystem, network gates) call Check through a small host client with the decision cache. tinybox_core::shell::{classify,scan} calls in security/policy/command_checks.rs go away (moved into the module).
  4. Decide max_cost_per_day_cents: enforce in the module (needs a cost callback) or delete the field with a migration.
  5. live_policy.rs becomes the init/reinit driver + generation counter for the cache.

Phase 3: Redaction, SSRF, egress/privacy

  1. Delete the 8+ redactors and URL-redaction helpers; route to bus Redact with a mode enum. Local helpers needed in hot logging paths (Sentry scrub_secrets, rpc_log) call the module through a cached, batched client or keep a minimal documented floor (decision recorded in an ADR).
  2. Delete util/url.rs::host_is_local and the extra loopback helpers; use bus UrlGuard incl. resolved-IP check; tools/impl/network/host.rs, modules/browser.rs, composio loopback checks migrate.
  3. PrivacyMode::Sensitive: implement per the module spec or remove; egress descriptors/enforcement via bus EgressCheck; web_chat/egress_surface.rs and inference/provider/factory use it.
  4. Prompt-injection (agent/bus.rs, session_host/runtime/run_loop.rs, mcp/registry) via bus ScanPrompt/ScanToolDefinition; reconcile with tinymcp sanitize and tinyskills scan (call them from the module or document the split).

Phase 4: Approvals + auto-approve

  1. Migrate ApprovalGate (security/approval/*, ~4.8k LOC): parking future stays host-side, state machine/TTL/log in the module; ApprovalStore served from the host storage backend (approval/store*.rs become the host callback impl); keep approval.* RPC and ApprovalRequested/ApprovalDecided events (bump EVENTS_VERSION only if the event shape changes).
  2. ApprovalSecurityMiddleware → calls Evaluate, parks on RequireApproval(request_id), resumes on Decide.
  3. Auto-approve: move autonomy.auto_approve, auto_approve_all, flow trust, approve_always_for_tool persistence (config save + live reload) behind the module. auto_approve_all must write audit rows. Add the Jev judge setting ([security.auto_approve.judge]: enabled, per-origin opt-in, thresholds, endpoint via backend credential); off by default; fail-to-human on any error; UI shows auto:jev decisions in the log.
  4. SaaS: today SaaS bypasses approval parking ("no per-user approval surface yet"). Decide and implement the SaaS approval path (per-user prompt channel or Jev-only with strict thresholds), documented.
  5. Frontend: approval log view shows judge verdicts; i18n for all locales (useT(), pnpm i18n:check).

Phase 5: Sandbox (depends on tinyhumansai/tinybox#27)

  1. Module returns SandboxPlan; host adapter SandboxPlan → tinybox BoxSpec/Placement (Resources, NetworkPolicy, grants incl. the credential-store floor). sandbox/ops.rs resolve_* logic moves to the module; execution (execute_in_sandbox, spawn_with) stays host-side.
  2. Fail closed: untrusted tiers refuse Noop using SandboxCapabilities::is_suitable_for_untrusted_code(); surface in sandbox.* RPC and UI.
  3. Replace agent/host_runtime.rs DockerRuntime hand-built docker run with tinybox_docker::OneShot.
  4. Wire tinybox-linux so Firejail/Bubblewrap config values work (map to namespace) or remove them and firejail_args/ResourceLimitsConfig with migration.
  5. Route unsandboxed spawners through the jail at minimum: cron shell_job.rs, tinymcp stdio, tinyruntime pools/pyserver, command hooks, tinyflows script runner, install_tool; route untrusted sources (MCP-installed servers, downloaded skills) to microvm where KVM exists. Browser/tinycomputer processes: assess and document.
  6. OPENHUMAN_SANDBOX=off: never applies under SaaS (test pins sandbox/ops.rs:59 ordering); boot_guard keeps protecting it.

Phase 6: Middleware consolidation

One TinySecurityMiddleware (beside agent/tinyagents/middleware/approval.rs, registered before the other tinyagents middleware) maps module Decision → tinyagents PolicyDecision. Remove tools/agent_policy/, the duplicate parts of agent/tool_policy.rs, ToolPolicyMiddleware wrapper duplicates and the three disallowed_tools checks; keep ToolRules as the declarative input (built on tinytools, single copy). Upstream-first for anything generic (tinytools/tinyagents), per CLAUDE.md ownership.

Phase 7: Audit + dead-code cleanup

  1. One audit log (approvals, shell, sandbox decisions, judge verdicts, policy changes) through the module; mcp/audit becomes a facade or stays tinymcp-owned (decision recorded).
  2. Delete: pii::scan (unless adopted), security/secrets.rs alias, security/core.rs, #[allow(unused_imports)] re-exports, dead config from the list above; rename overloaded modules; remove each old test file with its code.
  3. Wire tinycomputer consequence/payment gates and tinyskills scan verdicts into the approval/policy path (or document why not).

Phase 8: Crypto/keyring/pairing

Move encryption/core, keyring backends/crypto, devices/crypto, pairing behavior into the module (tinysecurity T11); keep keychain consent UX, credentials/auth and device sockets host-side. web3 (web3/seams.rs, x402/seams.rs) calls encryption.* RPC unchanged.

Phase 9: Docs

CLAUDE.md submodule-ownership row for tinysecurity and the module/bus-contract table; gitbooks/developing/loadable-modules.md (record count, 11 builds), gitbooks/features/approval-gate.md, gitbooks/features/privacy-and-security.md; crates/openhuman-core/src/security/README.md and approval/README.md reduced to host adapters; platform/about_app/ for user-visible capability changes (Jev auto-approve); pnpm docs:generate + docs:check.

Cross-OS end-to-end tests (required)

Each phase's PR includes e2e on Linux, macOS and Windows using the real released module artifact (no mocking of the module or of OS isolation); mock backend only for network services. Matrix runs in CI Full (ubuntu-24.04, macos-15/macos-26, windows-2025; arm64 where the release matrix has it).

Flow Linux macOS Windows
Module load at boot .so digest admission; tampered digest ⇒ deny external effects .dylib (+ quarantine/codesign) .dll; locked-file replacement on update
Approval round trip (RPC + UI event) park → decide → TTL → restart survival same same, path/locking differences
Auto-approve + stub Jev judge allow, low-confidence ⇒ human, timeout ⇒ human, Deny never overridden same same
Path policy through tools floor for ~/.ssh; symlink/.. escapes APFS case-insensitivity, /private/var drive/UNC/\\?\/8.3/reserved names
Shell tool classification sh/bash zsh PowerShell + cmd quoting via platform_shell.rs
Sandbox execution through tinybox Landlock/bwrap/microvm (KVM job)/docker Seatbelt/docker AppContainer/docker; untrusted tier refuses Noop
Redaction in logs/Sentry/approval rows /home/x /Users/x C:\Users\x, %USERPROFILE%
SSRF (http_request, browser) metadata IP, rebinding same same incl. IPv6 zone IDs
Keyring/crypto Secret Service / file Keychain Credential Manager
Fail closed module killed ⇒ external effects denied; no retry same same

Frontend flows additionally get mocked-desktop e2e under app/test/e2e/specs/ (approval prompt, log, judge badge); E2E code uses helpers/element-helpers.ts.

Definition of done

  • The only tinysecurity dependency is tinysecurity-bus; CI enforces it.
  • One redactor, one URL guard, one policy/approval path, one audit log; the lists above are deleted.
  • Every config field is enforced or removed; policy_info is complete.
  • tinybox is used through BoxSpec/plans for every untrusted spawner; no silent Noop for untrusted tiers.
  • Characterization suite green before and after each phase; three-OS e2e green; pnpm rust:layout, pin/feature-forwarding checks, pnpm docs:check green.
  • Bus latency budget met (benchmark committed).

Activity

  1. added
    security-work
    rust-core
    on Oct 10, 2026
  2. senamakel commented on Oct 14, 2026

    @senamakel
    MemberAuthor

    Tool-policy placement note (from #7627, tinytools#66, OpenHuman #7726/#7773/#7787).

    Current split, at the pins on main:

    • Generic classification engine (ToolPolicyEngine, ToolPolicySession, agent_policy vocabulary, registry types/denials, deferred exposure) lives in tinytools (nested vendor/tinyagents/vendor/tinytools). It is a kernel library: no bus contract, no [components] toggle, no registry record.
    • OpenHuman keeps only host policy: tools/rules (operator deny/allow layers, deny-overrides, child inherits operator layers only), tools/policy_session.rs (builds the session from host config and traces under [tool-policy]), the approval gate, and AutonomyConfig.

    Proposed placement for #7328:

    1. Keep the tool-classification engine in tinytools. tinysecurity should not absorb it, because tinytools is a dependency of tinyagents and tinysecurity sits above it.
    2. tinysecurity owns the decision inputs it already plans to take: autonomy posture, approvals, redaction, SSRF, sandbox. It should expose them as plain data that the host feeds into ToolPolicyEngine (posture and deny/allow rules in, classification out), not by reimplementing the engine.
    3. The "3-4 tool-policy layers" cleanup in Tracker: consolidate security, policy, approvals and sandboxing into the tinysecurity bus module (+ tinybox audit) #7328 (agent/tool_policy.rs, the approval/tool_policy middleware pair, disallowed_tools in three places) is host-side and belongs in phase 2/6 there; it should consume tinytools::ToolPolicyEngine rather than add a second engine.
    4. ToolPolicyPosture / policy_info_payload copying AutonomyConfig should be replaced by tinysecurity's config type in phase 2.

    Nothing further is needed in #7627. Closing it, with #7702 and #7541 whose checklists are done (#7623, #7624, #7627, #7628). Open follow-ups live in #7328.

  3. senamakel commented on Oct 15, 2026

    @senamakel
    MemberAuthor

    Progress on PR #7331 (draft, Part of this issue). Done: phases 0 and 1 (characterization suite, module wiring, registry/pins, bus-only CI check, security-module default-on) and part of phase 2 (scoped policy via bus). Pinned to tinysecurity v0.7.0 and tinybox 0.1.34. Remaining: authenticated authority for RegisterPathPolicy, the measured latency gate, the shell/network gate migration, phases 3-9, three-OS e2e. No checklist items are ticked because none of the Definition of done items is fully met. Details in the PR body.

  4. senamakel commented on Oct 18, 2026

    @senamakel
    MemberAuthor

    Handoff, 2026-10-18. Draft PR #7331 is now at the fork epic tip a58464dfc6, pinned to tinysecurity v0.14.0 (contract 1.21). Its body holds the full handoff: what has merged, the remaining steps in order, the rules, and the open decisions.

    Where it stands

    Next steps

    1. Finish fix(policy): Windows-normalized parent segments count as traversal tinysecurity#33 and merge it once CI is green.
    2. Release tinysecurity v0.15.0.
    3. Merge the three host branches into the epic, never rebasing them.
    4. Re-pin to v0.15.0 with release-and-repin.mjs --version 0.15.0.
    5. Run the full gates, including the full lib suite and the released-archive ignored tests.
    6. Merge upstream main into the epic, push to security-bus-7328, and mark feat(security): vendor TinySecurity and migrate filesystem authorization #7331 ready.

    Still open

  5. self-assigned this
    on Oct 18, 2026
  6. senamakel commented on Oct 18, 2026

    @senamakel
    MemberAuthor

    core-shrink audit: rows handed to this tracker

    The reworked #7390 audited every non-test file in crates/openhuman-core/src/ that no domain epic owns (198.6k lines, 2026-10-18 on main a48737721c). These rows match this tracker's tinysecurity target, so #7390 files no leaves for them. They are listed here so your phases can pick them up. Paths are relative to crates/openhuman-core/src/.

    File Lines Verdict Target / upstream symbol
    config/schema/channels.rs 96 RELOCATE config/schema/security.rs (new name)
    config/schema/privacy.rs 54 REIMPLEMENT tinysecurity_bus::egress::PrivacyMode (~/work/tinysecurity/crates/tinysecurity-bus/src/egress.rs:7)
    config/ops/sandbox.rs 170 REIMPLEMENT vendor/tinybox/crates/tinybox-jail/src/detect.rs::pick_backend
    security/secret_storage/encrypted_file_backend/key_source.rs 130 REIMPLEMENT ~/work/tinysecurity/crates/tinysecurity-crypto/src/keyring/mod.rs (MasterResolver, MasterMint, LegacySource) and tsd `file::{HexK...
    security/secret_storage/encrypted_file_backend.rs 680 REIMPLEMENT tsd file::{FileImportSource, prepare_file_import, cleanup_file_import, recover_file_import_source} (file/migration.rs) and `load_or_c...
    security/secret_storage/encrypted_store.rs 715 REIMPLEMENT ~/work/tinysecurity/crates/tinysecurity-crypto/src/secretstore/mod.rs (SecretCipher: enc2, legacy enc:, decrypt_and_migrate) via ...
    security/approval/flow_surface.rs 21 REIMPLEMENT tinysecurity-bus approval_scopes (RegisterApprovalScope2 / RetireApprovalScope2), #7328 phase 4
    security/approval/gate_state.rs 514 REIMPLEMENT tinysecurity-bus Decide2 / RecordExecution2 / ListApprovals2 / PreauthorizeFlow2
    security/approval/redact.rs 252 DELETE tinysecurity-bus RedactMode::StructuredArguments / HomePath (module impl: `~/work/tinysecurity/crates/tinysecurity-redact/src/struc...
    security/approval/store_flow_trust.rs 78 REIMPLEMENT tinysecurity-bus PreauthorizeFlow2 and the auto:flow-grant scope
    security/approval/store_import.rs 330 REIMPLEMENT tinysecurity-bus ImportApprovalHistory2
    security/audit.rs 340 REIMPLEMENT tinysecurity-audit (sink.rs, event.rs, rotation.rs) via tinysecurity-bus audited
    security/core.rs 12 DELETE tinysecurity-bus RedactMode::LegacyMask
    security/live_policy.rs 330 REIMPLEMENT tinysecurity-module SDK reinit (generation plus PolicyChanged)
    security/policy/command_checks.rs 616 REIMPLEMENT tinysecurity-policy command_shell/* and command_registry.rs
    security/policy/path_checks.rs 728 REIMPLEMENT tinysecurity-policy path.rs, path_scope.rs, scoped.rs via bus CheckPath / ValidatePath / RegisterPathPolicy
    security/policy/types.rs 431 REIMPLEMENT bus PolicyInfo and policy config, with SecurityPolicy as a thin host view
    security/scrub.rs 32 REIMPLEMENT tinysecurity-bus RedactMode (Text, CredentialsOnly)
    security/devices/crypto.rs 362 REIMPLEMENT tinysecurity_crypto::device (KeyPair, SessionKeys, Role, seal/open, seal_handshake/open_handshake/seal_ack/open_ack) in `~/wo...
    security/egress/enforce.rs 147 REIMPLEMENT tinysecurity_egress::privacy::check and tinysecurity_bus::{PrivacyMode, EgressPolicy, ScopedEgressRequest} (#7328)
    security/encryption/core.rs 89 DELETE Replacement is tinysecurity-crypto/src/password.rs (same Argon2id and AES-256-GCM scheme) if it is ever needed
    security/prompt_injection/detector.rs 528 REIMPLEMENT tinysecurity-redact prompt Scanner, ScanPromptRequest and ScanToolDefinitionRequest through tinysecurity-bus (`tinysecurity-bus...
    util/redact.rs 66 DELETE tinysecurity_redact::Redactor (#7328), or tinymemory_core::util::redact
    core/log_redaction.rs 66 REIMPLEMENT tinysecurity tinysecurity-redact (crates/tinysecurity-redact/src/patterns.rs and lib.rs::Redactor::redact), through tinysecurity-bus
    core/rpc_log.rs 60 REIMPLEMENT tinysecurity tinysecurity-redact (structured.rs, structured JSON redaction)
    integrations/composio/tools/redact.rs 141 REIMPLEMENT ~/work/tinysecurity/crates/tinysecurity-redact/src/lib.rs (Redactor, RedactorConfig.secrets), reached via tinysecurity-bus (#7328)
    hosting/tools.rs 224 UPSTREAM vendor/tinyhosts/crates/tinyhosts-bus (launch and rollback orchestration); tinyagents-harness-tools (#8088) for the Tool adapter

    Findings the audit adds for your phases:

  7. senamakel commented on Oct 18, 2026

    @senamakel
    MemberAuthor

    Progress after the handoff:

    TinySecurity #1, TinyBox #27, and TinyBus #76 remain open. None of the unfinished platform enforcement or migration work is being treated as complete.

  8. senamakel commented on Oct 18, 2026

    @senamakel
    MemberAuthor

    TinySecurity v0.15.0 (contract 1.22) is published at 26db0d31d47a6d09d87e1095a53574da5379e5ba. Release run 39169878119 passed all 16 platform bundles and verification of the published module through TinyBus. All 16 archive hashes match the published checksum manifest and GitHub asset digests.

    The local host integration is re-pinned in 31bc1297fff3fc289ee71677d5141992d087b167; strict default Clippy, default/no-default core checks, documentation and static checks passed. This commit is not yet in #7331's published head, which remains draft at a58464dfc6.

    TinyBus #92 is merged and #76 closed; TinySecurity #38 consumes the fix and removes the advisory exceptions. TinySecurity #37 is also merged. Current-main integration has 133 conflicts and needs an upstream TinyAgents terminal-outcome hook for reliable failure/cancellation auditing.

    Phase 8 remains full scope: existing paired channels need module-owned import of their distinct encrypted core keys, plus recovery of durable confirmations whose responses are lost. Both are being implemented before host migration. TinyBox #96 has one final availability regression being fixed; #98/#101 prepare the required deprecation release. TinyBox #27's actual platform enforcement remains unfinished. The expanded current-work section in #7331 records these details.

  9. senamakel commented on Oct 18, 2026

    @senamakel
    MemberAuthor

    Current integration findings and owning-repository work:

    • TinyAgents #498 is open and ready for review. It reports approved-call terminal outcomes, including typed failure/cancellation and abandoned futures, exactly once while preserving the original result/control. The old cancellation path reproduced zero callbacks; the final focused suite passes 29 tests and strict Clippy. Host consumption waits for the upstream dependency.
    • TinySecurity Work on closing the conscious loop #35 has green CI, but merge is held for a confirmed clock-ordering problem: concurrent workers sample time before the registry mutex, and a delayed earlier sample can permanently fault all device scopes. The fix samples inside the registry transition and keeps frame crypto outside the mutex. A deterministic regression and full gates are required before merge.
    • The new phase-8 import/recovery native module builds, but its loaded-module fixture currently fails while preparing legacy ciphertexts. Focused bus/crypto tests are not being counted as runtime completion. Existing device pairing explicitly used encryption-enabled SecretStore, so the actual available legacy key records are encrypted even when the general secrets encryption setting was disabled.
    • A fresh browser audit confirmed an additional required owning-repository capability: TinyComputer #111. Current TinyComputer documents that DNS is not resolved and subresources are not checked. OpenHuman navigation preflight therefore cannot prove connection-time SSRF/rebinding enforcement. This remains in scope and needs module transport enforcement and real browser tests.

    The published OpenHuman PR remains a draft. Main integration preserves the newer hosted-layer and TinyAgents ownership extractions; the existing three-OS module policy fixture is only part of the epic’s required end-to-end coverage.

  10. 18 remaining items

  11. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    OpenHuman exact-head validation update (2026-10-23)

    OpenHuman PR #619 head 18b87d3d16139e06afa316b0fe50d68a82572173 now has a successful Security Browser Egress run: the loaded-module TinySecurity callback test and real Chromium/TinyComputer egress controls passed. All six module-bundle staging targets also passed.

    I reran only the failed Markdown Link Check job on the same head (attempt 2 of PR Quality run 39941496564). It again exhausted the built-in retries for the existing MITRE CWE-250 endpoint in docs/gitbooks/en/developing/release-policy.md:129. The other PR Quality jobs passed. No production-code failure remains in these exact-head checks; PR #619 stays draft pending component acceptance and canonical release-backed pins.

  12. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    Follow-up progress (2026-10-23)

    The OpenHuman exact-head security browser workflow and all six module staging targets remain green. A fresh PR Quality run triggered by the PR description update again passed the checklist, coverage-matrix and AppImage/libxdo jobs; Markdown Link Check again exhausted retries for the existing MITRE CWE-250 URL (docs/gitbooks/en/developing/release-policy.md:129). This is a soft check and no code defect was reported.

    TinyBox #27 next slice is a live NamespaceSandbox network control: through the public create/exec path, prove an Egress child reaches a local listener and a Denied child cannot. The test now passes locally, has an explicit required-live gate that errors rather than silently skips when prerequisites are missing, and is wired into the Linux feature-test script. The worker is preparing the fork-epic PR; this slice does not claim network allowlist or DNS-rebinding coverage.

  13. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    TinyBox namespace network proof merged (2026-10-23)

    TinyBox fork-epic PR #46 merged at e1e9cde6909f7ad8cc8d21c5cb57f313da0d04b8 from reviewed head da95f84a188a8a06f14a9f1e4a0fd37bcfdc391a. It adds a required live NamespaceSandbox test through the public create/exec path: Egress reaches a controlled local listener and default Denied cannot. It does not claim allowlist or DNS-rebinding coverage.

    The exact-head hosted run 39944510308, attempt 3 passed all 19 checks after targeted Windows Server and macOS reruns. Local focused tests, Clippy, build, formatting and script checks passed; review had no unresolved threads or change requests. The merge used --admin only for the required approval gate; no CI checks were bypassed. Initial platform failures were in unchanged tests and cleared on exact-head reruns.

    TinyBox #27 remains open for the broader allowlist/DNS-rebinding, cross-platform resource/backend, event/bus and release acceptance. Windows CPU enforcement remains deferred as Unsupported. OpenHuman PR #619 stays draft pending the component acceptance and release-backed pins.

  14. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    Component PR progress (2026-10-23)

    • TinyBox fork-epic PR #46 merged at e1e9cde6909f7ad8cc8d21c5cb57f313da0d04b8; all 19 exact-head checks passed after targeted platform reruns. It proves NamespaceSandbox Egress can reach a controlled local listener while default Denied cannot. TinyBox Need to get the production ready to enable us to give out the API keys #27 remains open for broader network, resource/backend, event/bus and release acceptance; Windows CPU enforcement remains deferred as Unsupported.
    • Canonical TinyComputer PR #165 now points to 9e0d7fbe7da49f4e593d984bcec2d9968363c981. The test fixtures use separate OS-assigned loopback ports instead of 127.0.0.2; the oversized live-browser test file is split by topic per repository guidance. Local browser tests (53), loaded-module live tests (6), formatting and both focused Clippy lanes pass. Exact-head run 39951120527 is pending. Review feedback was addressed and replied to; PR [Bug] Voice replies fail to play ("Failed to play voice reply") #165 retains Closes #111.
    • Canonical TinySecurity PR #43 now merges current main at 3e7175983e4d854b84e14ea437b59ec316a20b5b via merge commit c49f856e6865adbaf1b849c02c5264426d14e6fe; it is conflict-free. Formatting, strict all-target Clippy, all-target build, docs, and the all-features suite pass locally. The audit sink suite required umask 0022 because its tests deliberately reject group-writable temporary directories; the unadjusted session umask 0002 caused the earlier environment-only failures. Exact-head hosted runs 39950922105 and 39950914885 are in progress; fresh CodeRabbit review is pending.

    OpenHuman PR #619 remains draft. No canonical PR has been merged and no release-backed OpenHuman module pin has changed.

  15. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    Component PR progress (2026-10-23)

    • Canonical TinyComputer PR #165 is at 8b5eb8e277a7478562ca94e0061b8cc64a6fd41f. The same-port/different-address rebinding fixture now proves the IP check independently of port rejection. Local browser and loaded-module tests, Clippy, formatting, and diff checks pass. Exact-head run 39951698886 has passed format, Clippy, docs, coverage, supply-chain, MSRV, workspace test and TinySweeper; platform feature and module-E2E suites remain in progress. CodeRabbit review was rate-limited and posted no fresh review; no unresolved threads. PR [Bug] Voice replies fail to play ("Failed to play voice reply") #165 still links TinyComputer refactor: replace dynamic imports with static imports in app/src #111 and is unmerged.
    • Canonical TinySecurity PR #43 remains at merge commit c49f856e6865adbaf1b849c02c5264426d14e6fe, including current main at 3e7175983e4d854b84e14ea437b59ec316a20b5b. Local formatting, all-features tests (under umask 0022), strict Clippy, build and docs pass. Exact-head runs 39950922105 and 39950914885 continue on Linux/macOS/Windows; no failing jobs observed. The two old CodeRabbit change requests are still visible while a fresh review is pending; no unresolved inline threads and no merge.
    • Canonical TinyBox PR #125 adds a live Docker connection proof: host positive control and Egress reach a controlled bridge-gateway listener, while default Denied cannot connect. Its required Ubuntu Docker lane passed on exact head f5312113308381a4cf36cc80813ea8f1d5f11957 (job 120408518136); formatting, Clippy, docs, MSRV, coverage, supply-chain and the Ubuntu module E2E also pass. Remaining cross-platform tests are in progress. This proves Egress-vs-Denied connectivity only, not allowlist or DNS-rebinding behavior. TinyBox Need to get the production ready to enable us to give out the API keys #27 remains open.

    OpenHuman PR #619 remains draft and its module pins are unchanged pending component acceptance and canonical releases. TinyBox Windows CPU enforcement remains deferred as Unsupported.

  16. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    Component validation update (2026-10-23)

    OpenHuman PR #619 remains draft with release-backed pins unchanged. TinyBox Windows CPU enforcement remains deferred as Unsupported.

  17. senamakel commented on Oct 23, 2026

    @senamakel
    MemberAuthor

    TinyBox loopback allowlist validation (2026-10-23)

    Canonical TinyBox PR #127 is at exact head 0c3886f6fcab5bbe226a7b208bf3598f72b61b5e. It rejects explicit loopback targets in EgressAllowlist: IPv4/IPv6 and IPv4-mapped IPv6 literals, scoped IPv6 loopback, localhost aliases, and common resolver legacy numeric IPv4 spellings (127.1, 2130706433, 0x7f000001, 0177.0.0.1). Regression tests for legacy numeric and scoped IPv6 forms failed against the prior code, then passed after the fix. Rustdoc and the public contract 1.19 spec describe the new validation and its boundary: this does not resolve DNS or implement full allowlist enforcement.

    Exact-head run 39962544302 passed all 14 jobs across Linux, macOS and Windows, including Docker connectivity, coverage, module E2E, docs, MSRV and Clippy. Codex findings were fixed and both threads resolved; TinySweeper approved. CodeRabbit’s remaining changes-requested verdict is tied to the superseded 87c0235 head; its current check is rate-limited and the review was re-requested. PR #127 remains open and unmerged with no unresolved threads.

    TinyBox PR #125 remains merged to canonical main at 1d02ee441cb18706fc8fc195769c1f8afc92a12e. TinyBox #27 remains open for broader network allowlist/DNS rebinding, cross-platform enforcement, events/bus and release acceptance; Windows CPU stays deferred as Unsupported. OpenHuman PR #619 remains draft and release-backed pins are unchanged.

  18. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    Component update (2026-10-24)

    • TinyBox fork-epic PR #54 merged at 091e46bcd8517ba9687dd8ae95bb8f193e384149; exact-head run 40055666744 passed all 20 checks. It updates the install guide to contract 2.5. TinyBox Need to get the production ready to enable us to give out the API keys #27 remains open for resource, network, event, cross-OS and release/checksum acceptance. Windows CPU remains deferred as Unsupported.
    • OpenHuman PR #619 is still draft at 0117741419c2dc9cf062bc3a1e2f7cb516301f85. Tool Policy Diagnostics now reads active security_policy_info and reports loading/unavailable/not-built states without hiding inventory, MCP or denial data; panel tests 6/6 and i18n coverage 79/79 pass. Exact-head browser callback, module bundle and PR Quality checks pass; the final PR Quality rerun after body correction 40060966502 also passed. The PR preserves the requested merge of OpenHuman main (a612c7aefce2b4ad236a98a9ee6925f2ebb0bdf6) and now accurately records that canonical TinyComputer refactor: replace dynamic imports with static imports in app/src #111 closed through PR [Bug] Voice replies fail to play ("Failed to play voice reply") #165.
    • Supplemental TinyComputer fork-epic PR #23 adds loaded-module/real-Chromium coverage that caller-supplied options cannot replace host egress identity. Canonical TinyComputer main was merged into its branch to resolve the base's RUSTSEC-2026-0386 Tokio 1.53.1 advisory; Tokio 1.53.3 is now present. The focused live test passes 1/1, cargo deny check advisories passes (with existing yanked-package warnings), and exact-head cross-OS CI run 40061795605 is running. The superseded pre-fix run was cancelled.

    OpenHuman PR #619 remains draft until TinyBox publishes a compatible contract 2.5 release/checksum and remaining TinyBox acceptance is complete. No Windows CPU support is claimed.

  19. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    TinyComputer browser-egress acceptance merged (2026-10-24)

    TinyComputer fork-epic PR #23 merged to epic/7328-security-bus at 33587b7b6adb28d88dcedfda74f6704910a391da. All 13 exact-head checks passed on 42d885051262175e53ce90b69e2ed87232666351, including Linux/macOS/Windows feature tests and loaded-module Chromium E2E.

    The PR adds live module coverage that caller-supplied browser options cannot replace the host-selected egress policy identity or generation. It also merges canonical main to carry Tokio 1.53.3 and resolves a Windows-only fixture race by preventing an implicit favicon request from being counted as the deliberate DNS-rebinding request. The focused caller-identity and DNS-rebinding Chromium tests pass locally; cargo deny check advisories, fmt and diff checks pass. Canonical TinyComputer #111 remains closed by PR #165; this supplemental test makes no direct TCP/UDP/QUIC or process-level confinement claim.

    OpenHuman PR #619 remains draft at 0117741419c2dc9cf062bc3a1e2f7cb516301f85; its exact-head callback, module-bundle, and PR Quality checks are green. TinyBox contract 2.5 release/checksum and remaining TinyBox cross-OS acceptance remain the OpenHuman integration blockers. Windows CPU enforcement remains deferred as Unsupported.

  20. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    Progress update (2026-10-24)

    • OpenHuman PR #619 now includes latest canonical main at 23c0a37340872a3c23765cc74135d745185467e0, merged as 1d559283ed34a7873e053dde53a130b7d44472a8. Exact-head Security Browser Egress, six-target module staging, and PR Quality checks pass. It remains draft pending TinyBox Need to get the production ready to enable us to give out the API keys #27 release-backed acceptance.
    • TinyBox fork-epic PR #55 adds a live Windows AppContainer check that denies outside-file reads through a \\?\ verbatim DOS path after confirming the host control can read the same file. The dedicated Windows AppContainer job passes on head 6935118e22b65c16c1049de47d3568b54d49e4f3; format, Clippy, docs, MSRV and supply-chain checks also pass. Linux/macOS/Windows E2E and coverage jobs are still running.
    • The first PR Get documentation added to the rust files #55 workflow run exposed a stale TinyBus checkout introduced during the automatic checkpoint; it was corrected in follow-up commits without rewriting history. The new run is on the corrected TinyBus 0.1.6 pin and has cleared its early checks.
    • Win-Custody PR #5 still has first-time workflow approval required. TinyBox's own safe AppContainer path is already landed through the epic PRs, so this epic work is proceeding independently.

    Windows CPU enforcement remains deferred and typed Unsupported as agreed.

  21. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    TinyBox AppContainer path-alias acceptance merged (2026-10-24)

    TinyBox fork-epic PR #55 merged at e9c7d369b617ceb04a5873625e316bdfe5ef6410 from exact head 6935118e22b65c16c1049de47d3568b54d49e4f3. It adds a host-side read control and a live AppContainer child check proving an outside file remains unreadable through the Windows \\?\ verbatim DOS path form.

    All 20 hosted checks passed on run 40066456449, attempt 2, including Linux/macOS/Windows E2E, Windows 11 ARM64, Windows Server 2025, dedicated AppContainer, coverage, Clippy and supply-chain. One macOS cancellation test failed on the first exact-head attempt (195 passed, 1 failed) and passed on the exact-head rerun. The merge used --admin only for the fork epic branch's required-approval gate; no CI checks were bypassed.

    OpenHuman PR #619 remains draft at 1d559283ed34a7873e053dde53a130b7d44472a8; latest-main integration and its exact-head checks are green. TinyBox #27 remains open for remaining cross-platform enforcement and compatible release/checksum work. Windows CPU enforcement remains deferred as typed Unsupported.

  22. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    Progress update (2026-10-24)

    • TinyBox fork-epic PR #55 merged at e9c7d369b617ceb04a5873625e316bdfe5ef6410 with 20/20 hosted checks. It proves AppContainer denies an outside-file read through a verbatim \\?\ path.
    • TinyBox PR #56 merged at dd0107e67ae068b5af790adc754579a1e353405f with 20/20 checks; it proves parent traversal cannot read a sibling secret.
    • TinyBox PR #57 merged at 975df572ab61be3944ffd5c7a4321b91fa8fdffb with 20/20 checks, including ten required AppContainer probes on Windows 11 ARM64.
    • TinyBox PR #58 is open at 85af375520d7ef32064def33a2288754bf096ea2. It adds an 8.3 short-name alias read-denial proof on Windows Server 2025 x64 and Windows 11 ARM64. The dedicated x64 AppContainer and ARM64 acceptance tests pass. On the first full run, the x64 feature lane hit an unrelated 10-second tinybox-ssh timeout test; only that lane is being rerun in attempt 2. No review feedback is open.
    • OpenHuman PR #619 is still draft at 2cab8fc6f02628402110aae633c90a48edda1e51, pins TinyBox 975df572, and merges OpenHuman main 63b2dde2 through 169790a6. Exact-head browser egress, six-target module bundle, and PR Quality checks pass; there are no unresolved comments. It remains draft pending a compatible TinyBox release/checksum and the remaining TinyBox acceptance.
    • Canonical TinyComputer refactor: replace dynamic imports with static imports in app/src #111 is closed by upstream PR [Bug] Voice replies fail to play ("Failed to play voice reply") #165. Supplemental fork-epic TinyComputer PR #23 merged at 33587b7b with all 13 checks passed.

    TinyBox #27 remains open for the broader network, resource/event, bus-contract and release acceptance. Windows CPU enforcement remains typed Unsupported as agreed; the Win-Custody PR's first-time Actions approval is not blocking this work.

  23. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    TinyBox 8.3 alias acceptance merged (2026-10-24)

    TinyBox fork-epic PR #58 merged at bab4731aa49659171c26765b076ed760a271d9f5 from exact head 85af375520d7ef32064def33a2288754bf096ea2. It adds live AppContainer denial for an outside secret reached through its 8.3 short-name alias on Windows Server 2025 x64 and Windows 11 ARM64. All 20 exact-head checks passed on run 40071995370, attempt 2; the first attempt's unrelated SSH timing failure passed on rerun.

    OpenHuman PR #619 now pins TinyBox epic tip bab4731 at head dfe17f7a58180ccbad951f4857d4387d3fdb50fb. Its module bundle, Security Browser Egress and PR Quality checks have restarted on the exact updated head. It remains draft pending a compatible TinyBox release/checksum and broader TinyBox acceptance. Windows CPU remains Unsupported as agreed.

  24. senamakel commented on Oct 24, 2026

    @senamakel
    MemberAuthor

    Superseded by #8369, which redesigns this tracker as a file-by-file migration epic: every one of the 140 non-test files (30,879 lines) under security/, sandbox/ and the related scattered files on main ae18f8b769 gets a verdict, a target and an owning sub-issue. The work is ordered as bugs/deletes → relocations → upstream (tinysecurity, tinybox, tinystoragedrivers, tinytools) → host adoption, so it lands on main in one-PR slices instead of one integration branch. The unlanded integration drafts (#7331, senamakel#619) are each adoption leaf's reference implementation and close at the end of #8369 (leaf senamakel#659). The phase plan above stays here for history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

rust-coresecurity-work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions