Raven Scott
caa60e3167
fix(openssh): widen SFTP path policy and return real dir/file metadata
...
Allow SFTP clients to reach the same logical paths as the shell (system
image, pseudo, home, mounts), deny mutating OPEN on typical read-only
prefixes, merge file/dir handle IDs to avoid collisions, implement FSTAT,
stat-based READDIR NAME attrs/longnames, and improve REALPATH.
Add brittle tests for path policy and wire test.bare-openssh-sftp.js into
npm test.
2026-04-21 16:44:31 -04:00
Raven Scott
6b1555eea9
fixes
2026-04-09 20:48:03 -04:00
Raven Scott
c8c877f688
Holesail Service Daemon + Bin Client
2026-04-09 20:42:54 -04:00
Raven Scott
3a69906046
fix(bare-openssh): send CR before command output on SSH PTY after line submit
...
Fish and bare-readline end the edited line with LF only; many SSH PTYs do not
return the cursor to column 0, so ls/man and other command output started
mid-row. Write `\r` after releasing the line editor and before execShellLine
to align output with the peer terminal.
2026-04-09 01:24:07 -04:00
Raven Scott
a86432deff
Prefer createFishReadLine for interactive SSH shells (history, arrows,
...
completion) when BARE_OS_FISH is not 0, matching the in-app terminal.
Keep bare-readline + per-command recycle only as fallback. Wire
suspendReplForSubprocess / resumeReplAfterSubprocess on the SSH child ctx to
suspendFishStdinForSubprocess / resume on the channel stream so baretop and
edit release the correct stdin.
Teardown: disableFishRawMode + releaseFishStdin when the session ends.
2026-04-09 01:16:25 -04:00
Raven Scott
01eddc84bf
fix(bare-openssh): stop syncing TERM from PTY to fix SSH TUIs (baretop)
...
PTY env sync now only updates COLUMNS and LINES. Writing the client TERM
(e.g. xterm-256color) into the forked session env enabled baretop’s default
incremental line-diff, which mis-renders over SSH. Inherited guest TERM is
unchanged, matching in-app terminal behavior.
2026-04-09 01:03:19 -04:00
Raven Scott
2b9a10e371
Normalize embedded newlines to CRLF in SSH child ctx console log/error so
...
multiline output (e.g. man, bare-slice pager) matches real PTY behavior and
avoids misaligned lines vs the peer terminal.
Mirror pty-req TERM and dimensions into forked session vfs.env (COLUMNS,
LINES) when bareOsForkShellEnv is used; clear target on session end.
Add bare-openssh-pty-console helper module and brittle tests; re-export
formatter from bare-openssh for API parity.
2026-04-09 00:53:45 -04:00
Raven Scott
b1607f78fa
fix(kernel-runner): bind console to ctx.console in eval'd user scripts
...
AsyncFunction bodies used global console.log, so ./script.js output over SSH
went to Pear instead of the session TTY. Prepend var console = ctx.console
when ctx.console is present.
2026-04-09 00:10:51 -04:00
Raven Scott
a08e1891d3
fix(bare-openssh): drop stray ">" after commands (readline PS1 on recycle)
...
bare-readline treats empty prompt as falsy and defaults to ">"; each SSH
readline recycle painted that before setPrompt. Pass initialPrompt from
the real PS1, defer first attach until after profile/barerc, and skip the
extra \\r\\n after recycled bare-readline.
2026-04-08 23:59:39 -04:00
Raven Scott
277300b716
fix(bare-openssh): recycle readline after TUIs (e.g. baretop) on SSH
...
Close bare-readline before each execShellLine and attach a new session
afterward so fullscreen apps own stdin; avoids a corrupted KeyDecoder
and a frozen prompt when baretop/edit exit.
2026-04-08 23:51:20 -04:00
Raven Scott
85bb26fb57
fix(bare-openssh): apply SSH pty size to channel stream for TUIs
...
Wire pty-req and window-change to set columns/rows on the session
stream so /bin/edit (nano) and similar apps use the real terminal
geometry instead of defaulting to 80x24.
2026-04-08 23:42:48 -04:00
Raven Scott
1ff94f0b48
fix(bare-openssh): bind repl TTY streams to SSH session for edit/nano
...
Route replStdin, replStdout, and stdout to the SSH channel Duplex so
/bin/edit (nano) and other TUI tools use the remote terminal instead of
Pear CLI. Mark exec channels as TTY for ssh ... nano style invocations.
2026-04-08 23:35:08 -04:00
Raven Scott
198b1b02e3
Allow Multi Session SSH
2026-04-08 23:28:05 -04:00
Raven Scott
8d9f79600c
Auto Create Autorized_Keys
2026-04-08 23:07:07 -04:00
Raven Scott
4ad6c08129
Updates
2026-04-08 22:48:55 -04:00
Raven Scott
28323589a8
Update
2026-04-08 22:37:38 -04:00
Raven Scott
710859eaa4
Tests
2026-04-08 22:28:59 -04:00
Raven Scott
f4b7798e5d
Packaging Tests
2026-04-08 22:11:08 -04:00
Raven Scott
d51ed58189
Fix imports
2026-04-08 21:53:33 -04:00
Raven Scott
dfeb925776
Closer SSH
2026-04-08 21:43:08 -04:00
Raven Scott
7739b21043
SSH Updates
2026-04-08 21:24:04 -04:00
Raven Scott
385fc80894
Updates
2026-04-08 20:53:38 -04:00
Raven Scott
f6fb3179f3
Further fixes SSH
2026-04-08 20:19:05 -04:00
Raven Scott
4757b2a4b0
Starting work on Implementing SSH Server Service
2026-04-08 20:02:12 -04:00
Raven Scott
dc85aed876
Fix Terminal Cursor
2026-04-06 08:37:38 -04:00
Raven Scott
f2a58ddb67
AutoComplete Engine
2026-04-06 08:24:21 -04:00
Raven Scott
8322f304d8
Update Manpage
2026-04-06 07:32:05 -04:00
Raven Scott
6d0d1b8049
Update Docs
2026-04-06 06:31:59 -04:00
Raven Scott
72e0c9c881
feat(booter): ctx 1.54.0, process table v9, and Holepunch/POSIX proc parity
...
- Bump BARE_OS_CTX_API_VERSION to 1.54.0 and POSIX profile to 1.0.19
- Process table schema 9: nice/accountingSource, logical maps/threads /proc builders, renice
- disk.os: replication_operator_sketch v8, HyperDHT address sketch, pkg index surfaces
- Protomux operator sketch v4, security_posture v7, corestore snapshot UX hint, pear_stage_pointer v2
- Swarm: BARE_OS_SWARM_ATTEMPT_BURST_PER_SEC; HDMS: host booter warn logging; shell wait exit codes
- getconf/sysconf: additional _SC_* via bareOsGetconfSysconf; socketMsgSurface v6 (iovec/SUSv4 refs)
- Identity: vault rotation audit includes pathcap trusted key count
- CI/docs: holepunch drift report env, kernel STRUCTURE note, verify-bundle-throws comment, matrices and examples
2026-04-05 23:14:08 -04:00
Raven Scott
071edccfb3
Expand bounded awk/expr/test toward Issue 7; refresh man, profile 1.0.18,
...
posix matrix/dashboard, and syscalls/process_table schema alignment (v8).
Booter: replication_operator_sketch/corestore hints, HRPC allowlist tests,
Protomux cap channel 65536-byte bound + export, Wasm posix_profile_peek,
swarm-disk and security_posture docs.
Coreutils/kernel: pkg-swarm-index pathCapabilityEnvelopeVerify on get;
pathcap-verify --trusted failure hint; rebuild bins and sync seeder.
Docs: KERNEL_CONTRACT, kernel-extensions, capabilities index, environment
appendix (warm-cache tuning, cap channel, Wasm env), handbook observability,
vault threat model (multisig), developer-guide ctx/HRPC/Wasm, DOCUMENTATION
release-checklist note, release-checklist optional tier1 drift.
Changelog maintenance in bare-os-booter and bare-os-protocol.
2026-04-05 23:01:54 -04:00
Raven Scott
8f61d0bea8
HDMS - RO,RW
2026-04-05 22:45:21 -04:00
Raven Scott
028725c113
Updates to HDMS
2026-04-05 21:52:22 -04:00
Raven Scott
cd2f9209a0
Updates to HDMS
2026-04-05 19:41:19 -04:00
Raven Scott
a529ca1ed2
Update btop
2026-04-05 17:38:46 -04:00
Raven Scott
f3c8ef1fc5
Update btop
2026-04-05 17:07:57 -04:00
Raven Scott
7c6b77ed62
Update btop
2026-04-05 16:34:58 -04:00
Raven Scott
64a1270d18
- disk.os: replication_operator_sketch schema 7 + corestoreSnapshotUxHint; wire corestore into bridge
...
- HRPC: bare_os.pkg_index_get, route table schema 3; pkg-swarm-index list/get; pathcap-verify --trusted
- POSIX: profile 1.0.17, ctx API 1.53.0, syscalls.json schema 11 + susv4Refs; JSON schemas + matrix/dashboard
- Feature bits: BARE_OS_KERNEL_FEATURE_BITS_DOC 16; contract + verify scripts; ctx.d.ts + gen helper sync
- Ops: BARE_OS_HOLEPUNCH_DRIFT_TIER1 + tier1Repos; mktemp avoids false XXX marker; /proc boot_budget_summary test list
- Docs: contract spine, env appendix, handbook, compatibility matrix, boot budget schema, vault threat model notes
Covers bare-os P2P roadmap items 1–20 where implemented in-tree; kernel/lib/bare/README left minimal per maintainer edit.
2026-04-05 15:52:59 -04:00
Raven Scott
41526508df
- disk.os: path manifest search, metrics schema bump, docs
...
- HRPC: bare_os.search_local, route table/schema updates; ctx API 1.52.0
- VFS: optional path-capability enforcement; pathcap-verify coreutil
- Replication/boot: warm-cache adaptive metrics, boot budget NDJSON v2
- Identity: savevault pre-snapshot host hint
- POSIX: profile 1.0.16, socket connect timeout env, Wasm ctx API peek import
- Security/ops: peer admission test, personal-drive path policy verifier in pretest
- P2P UX: pkg-swarm-index; multisig rc.proposals/enabled gate + audit rows
- Docs/scripts: README, handbook, env appendix, developer-guide, ctx helper sync
- Examples: syscalls.example ctx version; seeder kernel rsync parity
2026-04-05 15:27:39 -04:00
Raven Scott
169df862f7
feat(booter): complete P2P POSIX roadmap items and doc alignment
...
- ADRs under docs/adr/; KERNEL_CONTRACT + env appendix + handbook updates
- socketMsgSurface schema 5; replication_snapshot schema 2; syscall/example + tests
- MBR pacing docs/microbench; export mbrReadTimeoutMsForDisk; shell passthrough envs
- verify-ctx-api-feature-bits: syscall schema vs posix-compliance-matrix
- Wasm hostname import, disk.os snapshot hints, kernel-ext resolution docs
- coreutils nice + matrix/dashboard; syscalls.example ctxApiVersion 1.51.1
- Seeder kernel rsync parity; assorted booter/protocol doc fixes
2026-04-05 15:04:59 -04:00
Raven Scott
39dbf0f1be
CI/docs: placeholder-baseline --check, seeder↔kernel sync script and docs,
...
holepunch lockfile drift Markdown dashboard + doc links
- disk.os / ctx: replication_operator_sketch schema 5 + corestore stats;
protomux extensions proc versioning; HRPC allowlist_sketch schema 3 +
versioned stock route table; swarm_health proc + runtime caps paths
- Session: BARE_OS_HOSTNAME_SET + ctx.bareOsSetSessionHostname, hostname man,
security_posture; export -p in shell
- kernel.ext.d: optional provides[] version conflict detection (strict boot);
resolver parity + tests; BARE_OS_INIT_DEFER_KERNEL_EXT_GRAPH documented
- VFS/policy: mirror/aux read tests, GUEST_BARE_READ_ALL edge negative test;
adaptive warm-cache window env documented; microbench note
- POSIX: syscalls.json schema 10, posix_fadvise no-op, getconf + conformance
matrix sync; posix-issue7-traceability index; handbook/profile/matrix updates
- Seeder: pear.multisig hint tests; SCM_RIGHTS unit coverage extended
- Regenerated kernel bundle, seeder kernel mirror, posix dashboard, coreutils
build/man; booter CHANGELOG maintenance row updated
Full npm test / pretest green.
2026-04-05 14:45:01 -04:00
Raven Scott
8bde745191
feat: complete 20-track kernel roadmap (P2P ops, POSIX, HRPC, CI, docs)
...
- Add optional Holepunch clone lag gate (holepunch-freshness-gate.json,
verify-holepunch-clone-freshness.mjs) and wire into pretest/docs.
- Extend stock ctx.bareOsHrpcRequest with disk.os replication routes;
bump hrpc_allowlist_sketch proc to schema 2 with stockRoutes list.
- Security posture: blindRelayAudit; hyper_multisig_trust_pointer schema 2
+ vault multisig continuity env; login/unlock audit hook.
- Syscalls schema 9 alignment (JSON schema, compatibility matrix, conformance
matrix clock_gettime); boot budget telemetry schema 2 in metrics_live.
- Coreutils hostname -s/--short man/options; rebuild kernel bins/man.
- POSIX + P2P dashboard section in docs/README; handbook/DOCUMENTATION/
release-checklist/OTA/KERNEL_CONTRACT/PEAR-RUN and related reference updates.
- verify-boot-policy-extension-signer-pins: scan kernel init fragments.
Note: vendor drift section removed from kernel/lib/bare/README.md (intentional).
2026-04-05 14:17:20 -04:00
Raven Scott
c15e8fa5be
feat(booter): POSIX/P2P roadmap — profile 1.0.14, ctx 1.50.0, docs & tests
...
- Sync declared POSIX profile, compliance matrix, syscalls examples, dashboard
- Extend holepunch clone sync reporting; bump protomux/hyperswarm lock fixture schema
- Optional shell read builtin (BARE_OS_SHELL_READ_*); host env passthrough
- Expand bareOsGetconfSysconf / getconf; pathconf for acct/union/mirror
- Wasm optional bare_os_monotonic_ms; replication live snapshot hints schema
- Socket bridge SO_RCVBUF/SO_SNDBUF; mq priority + FIFO ordering + tests
- Extract cooperative fcntl lock helpers; FIFO waiter drain tests
- Peer admission audit helpers, rate limit + redaction tests; security_posture schema
- CI: verify-ctx requires CHANGELOG row, d.ts version mention, compatibility matrix
- Warm-cache microbench (vfs suite); boot budget / metrics cohesion (prior work)
- Handbook, KERNEL_CONTRACT, kernel-program, env appendix, README, users-manual, schemas
Kernel bundle + seeder rsync + coreutils build verified via npm test.
2026-04-05 13:50:07 -04:00
Raven Scott
551d68ac6c
- Peer admission: denylist, require-caps JSON, schema-2 results; optional
...
NDJSON audit + rate limit; env passthrough and handbook/appendix/docs
- /proc/bare_os/security_posture.json schema 4: vaultCryptoPrimitives,
bareCryptoReportedVersion, expanded peerAdmission
- /proc/bare_os_features: pearIpcConservativeAdvertisement (names only)
- Syscall select returns pollClock with timeout; coreutils test -u/-g/-k
- Host env: BARE_OS_CTX_BARE_SUBPROCESS_SPAWN,
BARE_OS_REPLICATION_PEER_PRIORITY_JSON, peer audit keys
- Placeholder scan: rename expandCmdsubstEmbedded; sendmsg wording
- Docs: vault threat model, preface Mermaid, protocol/changelog, posix
matrix, holepunch clone audit refresh, developer-guide/kernel-program Wasm
- ctx.d.ts + gen-ctx-client-helper; booter CHANGELOG maintenance notes
2026-04-05 13:15:12 -04:00
Raven Scott
e89c55da25
chore(booter): complete P2P/POSIX roadmap — ctx 1.48, VFS, shell, docs
...
- Bump bareOsCtxApiVersion to 1.48.0; sync CHANGELOG, compatibility matrix,
syscalls.example.json, ctx d.ts, generated ctx-client helper
- POSIX: getconf _SC_NPROCESSORS_ONLN; shell set -o pipefail + BARE_OS_PIPESTATUS;
posix_utilities schema v2 + JSON Schema; generated dashboard refresh
- Host/subprocess: bare-subprocess then Node child_process spawn; optional
backend on ctx.bareOsTrySpawnHostSubprocess; bin-worker WASM wall budget
- VFS: BARE_OS_VFS_SYSTEM_IMAGE_WRITE for system image writes + warm-cache
eviction path; guest /.bare/account EACCES test; environ TOKEN redaction test
- Docs: corestore snapshot non-goal in package-bare-os-booter; PEAR-RUN links
→ docs/PEAR-RUN.md; POSIX pretest matrix in scripts/README + dev guide;
environment appendix (PIPESTATUS, WASM_MS, system image write)
- Seeder: keep kernel/ mirror in sync after bundle + coreutils builds
Verified: npm test -w bare-os-booter, npm run pretest
2026-04-05 12:52:06 -04:00
Raven Scott
c1013c3852
MBR READ 60 Seconds default
2026-04-05 04:50:28 -04:00
Raven Scott
904ad7e7fd
Updates
2026-04-05 04:33:14 -04:00
Raven Scott
4af98ef97b
feat(booter): harden guest vs user isolation and POSIX/P2P parity
...
- Guest-safe legacy personal-root migration with state file and env gates
- VFS guest deny for sensitive /.bare paths; warm-cache clear on identity switch
- Optional acct/<hash>/ personal layout, guest scrub, vault exclude alignment
- Shell session reset + errexit; fish history reload hook; replication metric
- Audit NDJSON for migration/scrub; structured booter logging paths
- Bump POSIX profile; getconf keys; syscall/socket contract + handbook/docs pass
- Booter tests (Bare vs Node split for identity-session); release-checklist audit hook
2026-04-05 03:16:33 -04:00
Raven Scott
6a4790591d
Updates
2026-04-05 03:00:43 -04:00
Raven Scott
6f923f72d1
Implement roadmap items across booter, protocol, kernel bundle, coreutils, and docs.
...
- Hyperswarm connection caps (env + /proc + disk.os replication_operator_sketch)
- Protomux operator metrics schema; warm-cache invalidation on replication
- ctx.bareOsSyscall nanosleep; socket bridge getsockopt/setsockopt (keepalive/nodelay)
- Extension signer pin verification before kernel.ext.d scripts; ctx/DTS updates
- Structured seeder logging (BARE_OS_SEED_LOG_*); release-checklist holepunch drift
- POSIX profile/matrix/conformance lists + handbook/env appendix/kernel-extensions
- Coreutils printf golden tests; sync kernel ↔ seeder parity after bundle
2026-04-05 02:38:24 -04:00
Raven Scott
ae6f1cf8ac
Implement the 20-task Bare OS POSIX + P2P roadmap: holepunch lockfile drift
...
reporting and audit:holepunch-clones docs; placeholder baseline automation;
maintainer kernel-image sync script; protomux schema coupling in protocol
tests; disk.os RPC hints (replication_operator_sketch, hyperblobs/blind v3);
union/mirror VFS + warm-cache selective eviction tests; extension resolver
coverage; curl/wget fall through PATH when BARE_OS_DELEGATE_ALLOW excludes
delegates (kernel-runner) with handbook/ctx docs; socket contract / Wasm /
boot budget strict path / hrpc allowlist tests; subprocess bridge meta;
shell until gate + tar stat metadata; POSIX profile triplet pretest verifier;
regenerate kernel bundle, seeder parity, and audit artifacts as needed.
Covers KERNEL_CONTRACT, POSIX_DECLARED_PROFILE, handbook, developer-guide,
scripts/README, and related reference docs.
2026-04-05 02:21:07 -04:00