Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
251 commits
Select commit Hold shift + click to select a range
6601663
feat(host): add config, activation, journal, and language planning mo…
senamakel Nov 25, 2026
0526faa
feat(config): expose host configuration types publicly
senamakel Nov 25, 2026
1e4490c
refactor(config): inject harness rules into plan validation
senamakel Nov 25, 2026
c036847
refactor(language): split plan lowering into a module
senamakel Nov 25, 2026
114c411
feat(host): add tool test suite for host tools
senamakel Nov 25, 2026
19b55b7
feat(host): add process tree supervision and host module scaffolding
senamakel Nov 25, 2026
e76c59d
feat(tools): add belt for executing hive tools
senamakel Nov 25, 2026
b87e558
test(host): add conformance tests with a fake harness
senamakel Nov 25, 2026
64e89a8
feat(process): track instance processes by pid and start time
senamakel Nov 25, 2026
f08bb63
fix(process): treat einval from pidfd_open as process gone
senamakel Nov 25, 2026
11e211c
feat(process): add pipe module and move test helper into test module
senamakel Nov 25, 2026
3dd1235
feat(host): add bounded JSON line pipes and tool call plumbing
senamakel Nov 25, 2026
cfecd67
refactor(openhuman): delegate tool belt and host bridge to tinyhivemi…
senamakel Nov 25, 2026
e94ece1
feat(process): expose instance directory, error, and launch types
senamakel Nov 25, 2026
6fa0bab
refactor(openhuman): re-export ConfigError from the config module
senamakel Nov 25, 2026
cb0e582
fix(process): stop treating a reaped root's pid as a group id
senamakel Nov 25, 2026
70f2a9a
chore(examples): update openhuman lockfile dependencies
senamakel Nov 25, 2026
64aec16
chore(examples): downgrade ureq and getrandom in openhuman lockfile
senamakel Nov 25, 2026
65aa0a5
chore(deps): downgrade webpki-roots to 1.0.10
senamakel Nov 25, 2026
0f77325
refactor(process): extract root and scope handling into their own mod…
senamakel Nov 25, 2026
1c37e92
feat(host): add harness-neutral host crate and enforce purity
senamakel Nov 25, 2026
d3e5a0e
test(host): cover cancelling a child that already exited
senamakel Nov 25, 2026
a063b42
fix(process): abort log pumps and reap unreleased children on drop
senamakel Nov 25, 2026
cc21e92
test(process): cover stopping a group whose leader has exited
senamakel Nov 25, 2026
244da7e
fix(process): stop waiting on the child's zombie in group scope
senamakel Nov 25, 2026
1dd2e43
test(process): cover dropping and sampling of running instances
senamakel Nov 25, 2026
8af920a
test(harness): add test module for harness payloads and seat
senamakel Nov 25, 2026
5e02ded
feat(harness): add harness port trait and shared seat machinery
senamakel Nov 25, 2026
882f6e9
refactor(harness): split seat turn admission from execution
senamakel Nov 25, 2026
d2cf142
test(host): add conformance tests with fake child, client, and subject
senamakel Nov 25, 2026
28ee86a
feat(harness): add conformance suite for client implementations
senamakel Nov 25, 2026
4518b11
fix(conformance): retry the timeout case with longer limits
senamakel Nov 25, 2026
f89a7bb
test(host): return results from host tests instead of unwrapping
senamakel Nov 25, 2026
0d9b215
chore(host): apply rustfmt formatting across process and harness tests
senamakel Nov 25, 2026
43ac3b4
test(host): return results from process and harness tests
senamakel Nov 25, 2026
c15450f
test(host): propagate errors from seat and process test helpers
senamakel Nov 25, 2026
15e3208
test(host): return results from seat and process tree tests
senamakel Nov 25, 2026
0b2befb
test(host): make fake harness helpers fallible and poison-tolerant
senamakel Nov 25, 2026
badba1a
test(host): propagate errors from conformance cases instead of unwrap…
senamakel Nov 25, 2026
395e3c7
test(host): propagate errors from runtime block_on in drop tests
senamakel Nov 25, 2026
7443b99
refactor(host): simplify control flow and tighten test helpers
senamakel Nov 25, 2026
c99a3dd
feat(tinyhivemind-host): add conformance feature and fake harness binary
senamakel Nov 25, 2026
61f731e
docs(process): document instance lifecycle and containment guarantees
senamakel Nov 25, 2026
f070767
test(host): tighten assertions in refused actor management test
senamakel Nov 25, 2026
c970d54
docs(host): link process and harness module readmes
senamakel Nov 25, 2026
4797ab5
refactor(process): make patience required and tidy directory error ma…
senamakel Nov 25, 2026
8b3fb65
docs(process): clarify polling and sleep conventions in test readme
senamakel Nov 25, 2026
2d40c4a
test(process): cover processes appearing mid-scan and late environments
senamakel Nov 25, 2026
c482d8a
fix(process): rescan the process table until a listing is complete
senamakel Nov 25, 2026
fd23bd3
fix(process): ignore member enumeration errors during graceful stop
senamakel Nov 25, 2026
f5366ee
Merge branch 'process-harnesses' into tinyhivemind-host
senamakel Nov 25, 2026
3601aab
docs(specs): document linux process tree containment for harness stop
senamakel Nov 25, 2026
a42a852
docs(specs): document harness stop method
senamakel Nov 25, 2026
934c118
refactor(process): split process tree scanning into scan and stat mod…
senamakel Nov 25, 2026
a993335
fix(process): report unproven stops instead of claiming the tree is gone
senamakel Nov 25, 2026
8dd673c
fix(process): keep tracking descendants of signalled members
senamakel Nov 25, 2026
a9693a9
chore(process): add debug trace to tree scan round
senamakel Nov 25, 2026
384a5ec
fix(process): wait for unsure pids before declaring a scan final
senamakel Nov 25, 2026
937f615
fix(process): avoid misclassifying children of non-member processes a…
senamakel Nov 25, 2026
6f23cdb
fix(process): report unreadable process tables as unproven
senamakel Nov 25, 2026
f98687b
feat(process): report when a child's log ends early
senamakel Nov 25, 2026
40b83a2
feat(harness): move harness kind to lang and extend verification
senamakel Nov 25, 2026
31c99ec
test(conformance): update expected message for new session case
senamakel Nov 25, 2026
ca2a2bc
fix(process): settle tree scans in turns and retry timed conformance …
senamakel Nov 25, 2026
5847fa8
test(host): cover package loading and management debug output
senamakel Nov 25, 2026
a851620
fix(process): release the directory lock explicitly instead of closin…
senamakel Nov 25, 2026
c0d6fb8
fix(process): bound supervisor queries and stops with a timeout
senamakel Nov 25, 2026
7dc54b4
refactor(host): extract lowering failure into a finding helper
senamakel Nov 25, 2026
5d7f6c3
fix(conformance): retry process scans until complete and drop timeout…
senamakel Nov 25, 2026
97a5fba
test(document): cover argv template placeholder parsing
senamakel Nov 25, 2026
7e333a2
test(document): drop empty and spaced placeholders from argv fixture
senamakel Nov 25, 2026
8220be8
Merge remote-tracking branch 'origin/main' into tinyhivemind-host
senamakel Nov 25, 2026
5789961
docs(specs): document sandbox, autonomy and hook recording rules
senamakel Nov 25, 2026
66eaec9
docs(specs): clarify autonomy gating and hook retry semantics
senamakel Nov 25, 2026
85e2a0c
fix(process): match tmpdir by identity rather than exact environment …
senamakel Nov 25, 2026
0b9a308
test(host): tighten process and seat test fixtures
senamakel Nov 25, 2026
b54ccf7
fix(harness): report how an unsettled turn ended and settle only its …
senamakel Nov 25, 2026
0f154e3
fix(harness): record the reason a turn could not be settled
senamakel Nov 25, 2026
3980dd6
fix(process): report unproven when a request is never taken up
senamakel Nov 25, 2026
f925dc3
fix(process): distinguish a stuck supervisor from a gone one
senamakel Nov 25, 2026
d0a132d
fix(process): avoid method reference in timeout result mapping
senamakel Nov 25, 2026
cfa6b23
refactor(process): only notify busy watchers when state changes
senamakel Nov 25, 2026
79aa946
docs(process): document visibility assumptions for membership checks
senamakel Nov 25, 2026
9a7b90b
docs(process): clarify ancestor visibility assumption in module docs
senamakel Nov 25, 2026
dbd8efe
test(storage): cover running turn call records and legacy snapshots
senamakel Nov 25, 2026
0228117
feat(storage): record identified calls on running turns
senamakel Nov 25, 2026
b84b6a9
test(storage): qualify BTreeMap path in retention test
senamakel Nov 25, 2026
f74d14d
test(storage): rename running turn test to describe empty calls
senamakel Nov 25, 2026
eafc9a7
test(coordinator): add tests for hive call handling
senamakel Nov 25, 2026
1a403f6
test(coordinator): simplify retry test setup and teardown
senamakel Nov 25, 2026
d393ed3
refactor(coordinator): extract state mutation helpers from coordinato…
senamakel Nov 25, 2026
5472a78
refactor(coordinator): remove redundant reference in hive comparison
senamakel Nov 25, 2026
830dac3
refactor(coordinator): extract message admission and acceptance helpers
senamakel Nov 25, 2026
73d6b48
feat(coordinator): add identified turn calls with replay and reuse ch…
senamakel Nov 25, 2026
8c3ed09
feat(coordinator): add calls module for coordinator hive
senamakel Nov 25, 2026
fcd536e
test(coordinator): import CallRecord in calls test module
senamakel Nov 25, 2026
ad3aa26
test(coordinator): hold only the first turn in the holding helper
senamakel Nov 25, 2026
7343964
refactor(storage): add constructor for freshly claimed running turns
senamakel Nov 25, 2026
94e0cdf
test(coordinator): use assert_eq for empty collection checks
senamakel Nov 25, 2026
87dd32b
test(lang): add content id tests
senamakel Nov 25, 2026
a26a2fb
docs(hives): document identified turn calls
senamakel Nov 25, 2026
5dd0c26
feat(host): add identified tool test module
senamakel Nov 25, 2026
31dc4e3
test(tools): register identified test module
senamakel Nov 25, 2026
a8354ed
feat(tools): route identified tool calls through coordinator turn calls
senamakel Nov 25, 2026
41691b7
feat(workspace): add openhuman-process crate and reqwest dependency
senamakel Nov 25, 2026
a9e210a
test(content-ids): pin real content ids for harness-less packages
senamakel Nov 25, 2026
33e3a7f
test(hook): cover tool matcher lookups on a runner
senamakel Nov 25, 2026
d0bf86f
feat(host): add refused error variant for unsupported seats
senamakel Nov 25, 2026
a791c23
test(host): cover refused seat preserving the client error
senamakel Nov 25, 2026
c665df3
feat(hook): add matches_tool to check whether a tool has hooks
senamakel Nov 25, 2026
3baf629
test(harness): cover harness wire format round trips
senamakel Nov 25, 2026
15d2492
feat(capability): add capability module for openhuman process
senamakel Nov 25, 2026
411e0e2
feat(harness): add harness types and default isolation
senamakel Nov 25, 2026
6b12d97
feat(document): add harness selection to manifest, seats and profiles
senamakel Nov 25, 2026
143eecc
test(capability): add tests for capability handling
senamakel Nov 25, 2026
1187146
refactor(lang): narrow document re-exports and widen harness exports
senamakel Nov 25, 2026
e176ea1
feat(config): add openhuman process config module
senamakel Nov 25, 2026
a737666
feat(config): add toml config loader
senamakel Nov 25, 2026
39f77b8
feat(mcp): add tinyhivemind-mcp crate to the workspace
senamakel Nov 25, 2026
2c91a71
feat(config): add tests for openhuman process config
senamakel Nov 25, 2026
8b0d173
feat(harness): resolve each seat's harness from seat, profile, runtim…
senamakel Nov 25, 2026
5e9caec
feat(openhuman-process): add crate for spawning and supervising OpenH…
senamakel Nov 25, 2026
b1f750d
test(mcp): add shared support module for integration tests
senamakel Nov 25, 2026
0dc7dce
feat(examples): add mixed-harnesses hive example
senamakel Nov 25, 2026
acd29a3
test(capability): tighten fixtures for unsupported field checks
senamakel Nov 25, 2026
56ce235
test(mcp): add http transport integration tests
senamakel Nov 25, 2026
1fc1485
test(validation): expose example loader and diagnostic helper for reuse
senamakel Nov 25, 2026
028c3c7
test(openhuman-process): add http test support helper
senamakel Nov 25, 2026
997a70b
test(mcp): add settle and written helpers to the hive test support
senamakel Nov 25, 2026
1b11fa4
test(validation): add harness for validation tests
senamakel Nov 25, 2026
6c97ce1
test(validation): register harness test module
senamakel Nov 25, 2026
3175248
test(mcp): add tool and hook fixture builders
senamakel Nov 25, 2026
4d19cf8
feat(tests): add fake surface for openhuman process tests
senamakel Nov 25, 2026
1e9938d
feat(fixture): add openhuman process fixture
senamakel Nov 25, 2026
6d52c48
test(mcp): add end-to-end tests for programs and seats
senamakel Nov 25, 2026
f47d6fd
test(rpc): add tests for openhuman rpc process handling
senamakel Nov 25, 2026
5a1ab56
test(tinyhivemind-mcp): drop unused request receiver in test harness
senamakel Nov 25, 2026
c0cde4c
test(rpc): fix malformed sse fixture in split-frame test
senamakel Nov 25, 2026
8f9d0a0
feat(harness): add capability table and harness validation
senamakel Nov 25, 2026
536c541
feat(validation): add capability validation module
senamakel Nov 25, 2026
818dc0a
refactor(validation): simplify limit layer lookup in capability judge
senamakel Nov 25, 2026
cf904e1
feat(mcp): add error type for the MCP server
senamakel Nov 25, 2026
3a4fccd
feat(seat): add bearer token seat authentication
senamakel Nov 25, 2026
15e86a7
feat(lang): re-export harness capability and support types
senamakel Nov 25, 2026
87cfb3e
feat(seat): add seat module for MCP server
senamakel Nov 25, 2026
766c564
fix(validation): deduplicate capability findings by location
senamakel Nov 25, 2026
ed659d2
feat(mcp): add tools module
senamakel Nov 25, 2026
6159f3a
feat(mcp): add ledger tool for recording and querying entries
senamakel Nov 25, 2026
f532fe4
feat(mcp): add gate tool for approval checkpoints
senamakel Nov 25, 2026
09c272f
test(check): add shared harness module for check tests
senamakel Nov 25, 2026
9e96d5e
feat(mcp): add tool dispatch module
senamakel Nov 25, 2026
6b204e7
feat(check): require integration class for seat moves
senamakel Nov 25, 2026
fb385a5
feat(mcp): add server module
senamakel Nov 25, 2026
16e4855
refactor(mcp): read header timeout from shared options
senamakel Nov 25, 2026
7a7a4f3
feat(openhuman-process): add rpc module and test fixtures
senamakel Nov 25, 2026
5c9bb16
feat(split): allow harnesses in agents.json
senamakel Nov 25, 2026
43967b2
feat(mcp): add http server module for mcp transport
senamakel Nov 25, 2026
60809be
feat(mcp): add rpc module for server request handling
senamakel Nov 25, 2026
89e3655
test: cover harness validation and deployment refusal cases
senamakel Nov 25, 2026
6e7555e
feat(turn): add turn module for openhuman process
senamakel Nov 25, 2026
01f534e
fix(openhuman-process): keep the active turn when a failure is not te…
senamakel Nov 25, 2026
cad73d7
feat(mcp): add seat-scoped tool server with HTTP transport
senamakel Nov 25, 2026
cb344c0
test(instance): add coverage for process instance handling
senamakel Nov 25, 2026
8f60877
test(http): cover host header validation with multiple headers
senamakel Nov 25, 2026
ab9e06b
feat(openhuman-process): add error and instance modules
senamakel Nov 25, 2026
ff71a88
fix(mcp): reject requests carrying more than one Host header
senamakel Nov 25, 2026
39b1c2f
test(deploy): qualify harnesses calls with crate path
senamakel Nov 25, 2026
a2f603a
test(fake): clear subscribers when the fake surface is dropped
senamakel Nov 25, 2026
86e4b27
refactor(turn): carry the thread on the active turn
senamakel Nov 25, 2026
05a8458
feat(instance): start and verify an openhuman instance
senamakel Nov 25, 2026
121852d
feat(deploy): reject unsupported harnesses and conflicting declarations
senamakel Nov 25, 2026
e5c88a8
feat(mcp): add tinyhivemind-mcp crate to the workspace
senamakel Nov 25, 2026
382155e
refactor(instance): simplify launch argument construction and probe h…
senamakel Nov 25, 2026
36ef0cc
docs: document the mcp crate and in-turn tool calls
senamakel Nov 25, 2026
534298b
feat(harness): add harness module for openhuman process
senamakel Nov 25, 2026
cee5a35
test(deploy): share an openhuman-only package fixture across harness …
senamakel Nov 25, 2026
7d54319
docs(specs): record what the MCP server settled and how calls are rec…
senamakel Nov 25, 2026
f7ca461
feat(harness): add seat module for openhuman process
senamakel Nov 25, 2026
ecaaaa7
test(deploy): expect claw as the conflicting harness id
senamakel Nov 25, 2026
71fe5f7
feat(examples): add broken harnesses example package
senamakel Nov 25, 2026
969d5a3
feat(openhuman): add resume and render errors and document the harness
senamakel Nov 25, 2026
56999f3
refactor(mcp): flatten admission result handling in http server
senamakel Nov 25, 2026
59f19bd
docs(harness): document harness kinds, seat resolution and capability…
senamakel Nov 25, 2026
870a073
test(openhuman-process): add conformance suite over a fake core child
senamakel Nov 25, 2026
39492b7
test(live): allow dead code in shared http test helper
senamakel Nov 25, 2026
0b562ca
test(mcp): build tool fixture args after json literal
senamakel Nov 25, 2026
4b7eb00
test: share seat and process helpers across conformance suites
senamakel Nov 25, 2026
50227ba
chore(lang): rename shadowed bindings and fix doc comment casing
senamakel Nov 25, 2026
5b388e4
docs(tinyhivemind-openhuman): format `OpenHuman` in deploy error doc …
senamakel Nov 25, 2026
1bec2b9
test(live): run the conformance cases against the pinned core
senamakel Nov 25, 2026
fadd238
fix(openhuman-process): disable tool-output compaction in the written…
senamakel Nov 25, 2026
4ef18be
feat(ci): add harness fetch script and lock file
senamakel Nov 25, 2026
e9376b7
fix(ci): suppress sha256sum stderr during harness cache check
senamakel Nov 25, 2026
922be66
ci(assert-pure): include process harness client in host crates
senamakel Nov 25, 2026
7b6efc9
fix(ci): exclude the checked crate's own line from purity check
senamakel Nov 25, 2026
b8b0e34
chore(deps): refresh unused patch entries in lockfile
senamakel Nov 25, 2026
0f31431
chore(deps): refresh lockfile patch entries
senamakel Nov 25, 2026
0944efc
docs(tinyhivemind-openhuman-process): add READMEs for crate modules a…
senamakel Nov 25, 2026
70af08d
docs(harnesses): document the openhuman process runner
senamakel Nov 26, 2026
191bac3
style(tinyhivemind-openhuman-process): apply rustfmt formatting
senamakel Nov 26, 2026
a075c67
feat(harness): track additional spec capabilities in the support matrix
senamakel Nov 26, 2026
930afb5
test(seat): add unit and policy tests for bearer and send policy
senamakel Nov 26, 2026
a9d91d1
test(policy): rename local variable in send policy test
senamakel Nov 26, 2026
caee5e5
feat(harness): reject fields the spec does not decide
senamakel Nov 26, 2026
d863b30
feat(validation): judge seat capabilities field by field against defa…
senamakel Nov 26, 2026
cdcc64b
fix(lang): drop deny lists from broken harness fixture and assert jud…
senamakel Nov 26, 2026
399a4a3
docs(harness): document the default-deny field map for capability checks
senamakel Nov 26, 2026
17dbaf0
docs(validation): update capability table description
senamakel Nov 26, 2026
5644ace
refactor(harness): fold builtin tool rules into the rejected capabili…
senamakel Nov 26, 2026
86835ee
test(host): cover send and management policy refusals
senamakel Nov 26, 2026
cdc93b6
feat(tools): authorize tool calls before running package hooks
senamakel Nov 26, 2026
47d5fa3
chore: document new test modules and reformat dispatch signature
senamakel Nov 26, 2026
18a970e
test(mcp): add helper to hold a second turn for agent a
senamakel Nov 26, 2026
9cea1ff
test(capability): read declared fields from the decoder
senamakel Nov 26, 2026
35cd974
test(validation): cover harness rejection reasons and seat sections
senamakel Nov 26, 2026
a38c9d1
test(mcp): cover approval-time turn changes and idle socket handling
senamakel Nov 26, 2026
01367fc
feat(harness): default unlisted tool groups off when a harness is named
senamakel Nov 26, 2026
bfef649
fix(validation): report capability findings once per rejecting harnes…
senamakel Nov 26, 2026
8fb62c5
refactor(tinyhivemind-openhuman-process): move error module into a di…
senamakel Nov 26, 2026
99a6752
feat(deploy): derive per-seat tool groups from toolpack listings
senamakel Nov 26, 2026
f231fa6
test(openhuman): include captured requests in seat deploy failure mes…
senamakel Nov 26, 2026
7fb3251
test(openhuman): route judged seat deploy through fixture provider
senamakel Nov 26, 2026
a7a26c0
feat(host): skip re-authorization for recorded identified calls
senamakel Nov 26, 2026
7410814
feat(mcp): add schema tool for exposing tool input schemas
senamakel Nov 26, 2026
2d0a0bb
feat(ledger): bound per-seat records and reject stale turns
senamakel Nov 26, 2026
6607b53
fix(tools): validate arguments before running and record pending call…
senamakel Nov 26, 2026
570f6f0
feat(seat): honour tools.allow and reject unsupported schemas
senamakel Nov 26, 2026
cfac434
docs(tinyhivemind-mcp): document call bounds, schema checks and ledge…
senamakel Nov 26, 2026
82cd428
fix(deploy): judge harness declarations by kind and isolation
senamakel Nov 26, 2026
dcb60b9
docs(error): add README for the error module
senamakel Nov 26, 2026
7c66eb8
refactor(capability): extract hook validation into its own method
senamakel Nov 26, 2026
004ab8d
test(instance): cover every tool source the start check must see
senamakel Nov 26, 2026
75fdc8f
fix(openhuman-process): resolve visible tools from the chat agent's a…
senamakel Nov 26, 2026
375b7c6
test(conformance): cover a failed first turn leaving the seat startable
senamakel Nov 26, 2026
05bee5b
refactor(ledger): rename Turn struct to Records
senamakel Nov 26, 2026
239ec55
test(review): borrow call arguments instead of moving them
senamakel Nov 26, 2026
ea4cf99
fix(seat): report a failed first turn as having no session
senamakel Nov 26, 2026
e50ade1
test(mcp): cover absent and unknown arguments on read tools
senamakel Nov 26, 2026
b448a96
fix(openhuman-process): redact secrets from debug output
senamakel Nov 26, 2026
37271bc
fix(harness): reserve seats before starting and stop instances starte…
senamakel Nov 26, 2026
d1ea13c
fix(instance): harden key and config file handling and surface stop f…
senamakel Nov 26, 2026
de44427
docs: document seat reservation, visible-tool computation and approva…
senamakel Nov 26, 2026
6b38ad5
refactor(instance): rename chmod helper and drop unused import
senamakel Nov 26, 2026
b77c6bc
Merge pull request #137 from tinyhumansai/harness-schema
sanil-23 Nov 26, 2026
bb54fae
Merge tinyhivemind-host into hive-tool-server
sanil-23 Nov 26, 2026
09e2f70
Merge pull request #138 from tinyhumansai/hive-tool-server
sanil-23 Nov 26, 2026
72acb30
Merge tinyhivemind-host into openhuman-process
sanil-23 Nov 26, 2026
44bf3b6
Merge pull request #139 from tinyhumansai/openhuman-process
sanil-23 Nov 26, 2026
0ebb18a
build(deps): bump rustix 1.1.5 to 1.1.6 for RUSTSEC-2026-0486
sanil-23 Nov 26, 2026
756a9ff
docs(host): say what Instance::members reports under group containment
sanil-23 Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 18 additions & 4 deletions .github/scripts/assert-pure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ set -euo pipefail
# whose vocabulary dependency includes `anyhow` and `async-trait`.
pure_crates=("tinyhivemind-core" "tinyhivemind-lang")
tool_crates=("tinyhivemind-tools")
# Host and the process harness clients run harnesses as processes (ADR 0035),
# and the MCP server serves them hive tools over loopback (ADR 0036), so they may
# hold a runtime, a listener and an HTTP client, but none may link a harness.
host_crates=("tinyhivemind-host" "tinyhivemind-mcp" "tinyhivemind-openhuman-process")

forbidden_pure='tokio|futures|async-trait|axum|hyper|reqwest|ureq|curl|anyhow|rusqlite|git2|openhuman|tinyagents|tinytools'
# Whole families: `openhuman-embed`, `tinyagents-harness` and so on.
forbidden_host='(openhuman|tinyagents|tinyflows|tinymemory|tinyhivemind-openhuman)(-[a-z0-9-]+)?'
forbidden_tools='tokio|futures|axum|hyper|reqwest|ureq|curl|rusqlite|git2|openhuman|tinyagents'

status=0
Expand All @@ -34,7 +40,9 @@ check_crate() {
echo "assert-pure: cargo tree failed for '$crate'" >&2
exit 1
}
found="$(grep -Ei "^(${forbidden})(-embed)? v" <<<"$tree" || true)"
# The crate's own line is not a dependency: `tinyhivemind-openhuman-process`
# is named like the forbidden linked adapter's family.
found="$(grep -Ei "^(${forbidden})(-embed)? v" <<<"$tree" | grep -v "^${crate} v" || true)"
if [ -n "$found" ]; then
echo "$crate pulled in a dependency its manifest forbids:" >&2
echo "$found" >&2
Expand All @@ -49,12 +57,18 @@ for crate in "${tool_crates[@]}"; do
check_crate "$crate" "$forbidden_tools"
done

for crate in "${host_crates[@]}"; do
check_crate "$crate" "$forbidden_host"
done

if [ "$status" -ne 0 ]; then
echo >&2
echo "This crate is linked into the hot path of every agent turn and must" >&2
echo "A pure crate is linked into the hot path of every agent turn and must" >&2
echo "compile in a host's default build. It must stay free of async" >&2
echo "runtimes, transports, HTTP clients and web frameworks." >&2
echo "runtimes, transports, HTTP clients and web frameworks. The host crate" >&2
echo "and the process harness clients run harnesses as processes and must" >&2
echo "link none (ADR 0035)." >&2
exit 1
fi

echo "assert-pure: ${pure_crates[*]} ${tool_crates[*]} — clean"
echo "assert-pure: ${pure_crates[*]} ${tool_crates[*]} ${host_crates[*]} — clean"
75 changes: 75 additions & 0 deletions .github/scripts/fetch-harness.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/usr/bin/env bash
# fetch-harness.sh <kind> <directory> [target]
#
# Fetch the harness binary `harnesses.lock` pins for <kind> and <target>
# (default: this machine's), verify it, and print the binary's absolute path.
# The asset's sha256 must match the lock, and so must the binary's where the
# lock records it. Nothing is installed or run; the library takes the path.
#
# THM_OPENHUMAN_CORE=$(.github/scripts/fetch-harness.sh openhuman target/harness)
set -euo pipefail

kind="${1:?usage: fetch-harness.sh <kind> <directory> [target]}"
dest="${2:?usage: fetch-harness.sh <kind> <directory> [target]}"
target="${3:-$(uname -m)-unknown-linux-gnu}"
root="$(cd "$(dirname "$0")/../.." && pwd)"
lock="$root/harnesses.lock"

# The entry of the lock for this kind and target, as `key=value` lines.
entry="$(awk -v kind="[[$kind]]" -v target="$target" '
$0 == kind { inside = 1; delete fields; next }
/^\[\[/ { inside = 0 }
inside && /^[a-z_0-9]+ = "/ {
key = $1; value = $0; sub(/^[^"]*"/, "", value); sub(/"[^"]*$/, "", value)
fields[key] = value
if (key == "binary" && fields["target"] == target) {
for (k in fields) print k "=" fields[k]
}
}
inside && /^binary_sha256 = / && fields["target"] == target { print "binary_sha256=" fields["binary_sha256"] }
' "$lock" | sort -u)"
# One entry per kind and target: two would leave the pin ambiguous.
count="$(awk -v kind="[[$kind]]" -v target="target = \"$target\"" '
$0 == kind { inside = 1; next }
/^\[\[/ { inside = 0 }
inside && $0 == target { n++ }
END { print n + 0 }
' "$lock")"
if [ "$count" -gt 1 ]; then
echo "fetch-harness: harnesses.lock has $count $kind entries for $target" >&2
exit 1
fi
field() { sed -n "s/^$1=//p" <<<"$entry"; }
url="$(field url)"; sha="$(field sha256)"; version="$(field version)"
binary="$(field binary)"; binary_sha="$(field binary_sha256)"
if [ -z "$url" ] || [ -z "$sha" ] || [ -z "$binary" ]; then
echo "fetch-harness: no $kind entry for $target in harnesses.lock" >&2
exit 1
fi

mkdir -p "$dest"
dest="$(cd "$dest" && pwd)"
asset="$dest/$(basename "$url")"
if ! echo "$sha $asset" | sha256sum -c --status >/dev/null 2>&1; then
curl -fsSL --proto '=https' --proto-redir '=https' -o "$asset.partial" "$url"
mv "$asset.partial" "$asset"
fi
if ! echo "$sha $asset" | sha256sum -c --status; then
echo "fetch-harness: $asset does not have the sha256 harnesses.lock pins" >&2
rm -f "$asset"
exit 1
fi

unpacked="$dest/$kind-$version-$target"
rm -rf "$unpacked" && mkdir -p "$unpacked"
tar -xzf "$asset" -C "$unpacked"
path="$(find "$unpacked" -type f -name "$binary" | head -n 1)"
if [ -z "$path" ]; then
echo "fetch-harness: $asset holds no $binary" >&2
exit 1
fi
if [ -n "$binary_sha" ] && ! echo "$binary_sha $path" | sha256sum -c --status; then
echo "fetch-harness: $path does not have the sha256 harnesses.lock pins" >&2
exit 1
fi
echo "$path"
26 changes: 21 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ is not advisory — do not add an exception to it to land a change.

## Project Structure

This is a Rust 2024 virtual Cargo workspace with six packages. Core owns all
This is a Rust 2024 virtual Cargo workspace with eight packages. Core owns all
host-neutral behavior; lang is where a hive mind is defined, integrations
included; tools renders native tool definitions and records calls; exec runs a
package's executable tools and hooks; OpenHuman is the only crate that links an
agent harness, and it deploys hive packages.
package's executable tools and hooks; host is the harness-neutral
half of running seats; mcp serves hive tools to seats that run as processes;
OpenHuman is the only crate that links an agent harness,
and it deploys hive packages.

```text
Cargo.toml
Expand All @@ -73,7 +75,10 @@ crates/
│ └── driver/ # host-neutral completion scheduling
├── tinyhivemind-tools/ # native TinyTools specs and episode call record
├── tinyhivemind-exec/ # runs a package's executable tools and script hooks
├── tinyhivemind-host/ # hive tool belt, policies, package plans, harness processes
├── tinyhivemind-mcp/ # hive and package tools served to harness processes over loopback MCP
├── tinyhivemind-openhuman/ # package deployment, seat runners, host integration
├── tinyhivemind-openhuman-process/ # OpenHuman seats as supervised processes
├── tinyhivemind-hives/ # durable cross-hive coordinator
└── tinyhivemind-lang/ # pure hive packages: structure, integrations, edits, lineage
wiki/ # GitHub wiki submodule
Expand All @@ -94,8 +99,19 @@ with — providers, models, MCP servers, skills, executable tools, toolpacks,
permissions, profiles, hooks, session, Jev, features and workflows — as data,
and lowering resolves it per seat; it names no harness type and starts no
process. `tinyhivemind-exec` runs those executable tools and hooks
(`docs/specs/executable-tools.md`) and is not one of the pure crates. The
OpenHuman adapter depends on core, hives, lang and exec, and deploys packages
(`docs/specs/executable-tools.md`) and is not one of the pure crates.
`tinyhivemind-openhuman-process` implements the host's harness port for the
`openhuman` kind over a pinned `openhuman-core` binary (`harnesses.lock`); it
links no harness either.
`tinyhivemind-host` depends on core, hives and lang, and owns what every harness
shares: the hive tools and their dispatch, the send and management policy ports,
turn scope and prompt, package loading, the deployment plan, and supervised
harness processes. It links no harness, and `assert-pure.sh` checks that.
`tinyhivemind-mcp` depends on host, hives, lang and exec, and serves those
tools, a package's executable tools and its hooks over Streamable HTTP on
127.0.0.1, one bearer per seat (ADR 0036); it links no harness either. The
OpenHuman adapter depends on core, hives, lang, exec and host, re-exports the
host's types under its own paths, and deploys packages
with `HiveDeployment::from_packages`; its former `HiveConfig` manifest format is
retired (ADR 0034). The host owns agent sessions, the transcript, durable
appends, and scheduling.
Expand Down
88 changes: 71 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading