socialweb.computer

Request and provide VMs on an atproto compute market.

policy: policy records, attached policies, tangled-vouch

Records And Fields

NSID / fieldtyperkeywritten byread byGostep
computer.socialweb.temp.policy.ghaliterecordTID (putRecord at a TID the requester makes); one per contract, kept in state.Policyrequesterbidder (via the RFP strongRef), requester (re-check)internal/market/requester/policy.go BuildPolicyRecord, internal/market/requester/runner.go, internal/market/participant/policyrecord.goS3
market.rfp policies[]array of com.atproto.repo.strongRef-requesterbidderinternal/atproto/market/records.go BuildRFP; internal/market/requester/runner.go putRFPS3
computer.socialweb.infra#contract policy, policyArgsstrings-ownerrequester (via the ComputeContract)internal/market/requester/runner.goS2
sh.tangled.graph.vouchrecord (outside)subject DIDoperators, usersboth policies (trust snapshot)internal/policyengine/trust/trust.goS1
computer.socialweb.temp.policy.typescriptrecord (not in use; no fields defined)-nobodydeniedinternal/policyengine/registry/registry.go-
com.publicdomainrelay.temp.market.policies.denoWorkerrecord (not in use; no fields defined)-nobodydeniedinternal/policyengine/registry/registry.go-
computer.socialweb.temp.policy.wasmtest fixture only--denied as an unknown typeinternal/policyengine/controller/records.go-

computer.socialweb.temp.policy.ghalite

fieldvalue
$typecomputer.socialweb.temp.policy.ghalite
namethe workflow name, e.g. requester-tangled-vouch
workflowthe full YAML text of the bundled workflow (or its name when there is no text)
argsmap[string]string, from policyArgs
requesterthe requester's market DID
perspectiverequester
policies[{name, args?}]
createdAtdatetime

Infra Contract Fields

RFP Policy StrongRefs

diagram
policy engine (bidder)bidderrequester reporequesterpolicy engine (bidder)bidderrequester reporequesterpolicy name from Infra contract / ComputeContract1S3 createRecord policy.ghalite {workflow text, args}2getRecord it back: own repo, cid, name, body == bundled workflow3S3 market.rfp {policies: [strongRef]}4market.rfp5own workflow (bidder-tangled-vouch), scope lane (DIDs only)6getRecord each policies[] ref7own workflow + each attached workflow, full lane8allow only if all allow9S4 bid or no bid10

Lanes And Modes

laneinputwhere
scopeDIDs, mode: scope; the bidder passes no RFP, the requester passes the RFP refbidder bids.go (bid), adapters.go (accept); requester accept.go bidAllowedWithPolicy (each bid); ssh gateway signin.go
fullself, subject, counterparty, root requester DIDs, the RFP ref (bidder; the requester also the bid ref), mode: fullbidder bids.go fullInput, adapters.go; requester runner.go (the winner, a resume), session.go
sidedecisionselfcounterparty
bidderbid on an RFP: scope, then own workflow + every attached policy (full)the bidder DIDthe requester DID
biddertake an accept: scope and full againthe bidder DIDthe requester DID
requestereach bid: scopespec.operatorDID, else the market DIDthe bidder DID
requesterthe winner, before the accept: full, with the attached record's bodythe market DIDthe bidder DID
ssh gatewaysign-in admission: bidder-tangled-vouch, scopespec.ssh.operatorDid (none: nobody is admitted)the signing-in DID

Caching (inside the run)

cachekeyTTL
trust snapshot seedtrust/<counterpartyDid>per run
recordrec/<uri>/<cid> (internal/policyengine/cache/cache.go)-
verdictpolicy/<workflow>/<mode>|<perspective>|<self>|<subject>|<counterparty>|<root>|<source>|<rfp>|<bid>|<accept>:<args sha8> (runs/client.go)30 s default (cacheTtlSec)
scope verdict memointernal/policyengine/controller/scopememo.goallow 5 min, deny 30 s (manager.go)
identlink walktrust.Resolver5 min (capped at the earliest expiresAt), 5 s with errors; a failed vouch lookup is not cached

Bundled Workflows

workflowkinddecides
bidder-tangled-vouchtrust (bidder default)allow when the counterparty is self, shares a root with self, has self as its root, or when any DID of self + its walk ancestors vouches any DID of the counterparty + its walk ancestors
requester-tangled-vouchtrust (requester default)the same function, from the requester side
bidder-mutuals, requester-mutualstrustself, the same operator, or vouches both ways: the self side vouches the counterparty (or its operator) and the counterparty side vouches self (or its operator). tangled vouches only; the action's description string still says "follows on Bluesky", which it does not read
bidder-only-me, requester-only-metrustthe counterparty is self or resolves to self or the operator of self
opentrustno restriction. only when named, never prod
bid-payloadwork (requester)the bid payload NSID is in allowedPayloadNsids (default market.bids.free)
under-4-cpuswork (bidder)the VM asks at most maxCpus vCPUs (default 4)

Not wired

Tangled-Vouch

diagram

yes

operator(counterparty) is self or operator(self)

no

self

self side = self + its walk ancestors

counterparty

counterparty side = counterparty + its walk ancestors (identity.md)

one getRecord per pair, both directions: a self-side DID vouches a counterparty-side DID?

allow

deny

Real records: the prod requester aliceoa.bsky.social and the bidder operator bobvmbuilder.bsky.social vouch each other, so requester-tangled-vouch and bidder-tangled-vouch both allow (bob's bidders are his agents: their walk reaches him).

{"uri": "at://aliceoa.bsky.social/sh.tangled.graph.vouch/did:plc:ocnuqjlzgohypj3zoznermms",
 "value": {"$type": "sh.tangled.graph.vouch", "kind": "vouch", "createdAt": "2026-08-05T01:26:28+03:00"}}
{"uri": "at://bobvmbuilder.bsky.social/sh.tangled.graph.vouch/did:plc:lpfuqerea3deuoyrn7ojser4",
 "value": {"$type": "sh.tangled.graph.vouch", "kind": "vouch", "createdAt": "2026-08-05T01:26:51+03:00"}}

See Also