is_airlock_api 0.24.0
is_airlock_api: ^0.24.0 copied to clipboard
The airlock's contract: the actions a tool describes, the trajectories they are proposed on, and the airlock that decides and records each one.
Changelog #
0.24.0 #
WritesSlackReplyRequestsandWritesWebAddressReplyRequestsmove here fromis_reply_requests_api, unchanged, and that package is retired. The airlock calls them and the Slack and Teams modules implement them, so they are the airlock's interface. Breaking only for a package that imports both: dropis_reply_requests_apiand import these from here.
0.23.0 #
Breaking: new dependency ranges. The types and their JSON are unchanged.
- On
checked_json^0.3.0,is_model_vocabulary^0.3.0 andis_effects^0.18.0. Reading a proposal or an outcome now refuses text that names a key twice in one object, or holds an integer past 2^53 - 1, where it used to keep the last value. - The reply types come from
is_conversation_vocabulary^0.1.0, which replacesis_conversation_reply_vocabulary. The types are the same.
0.22.0 #
Breaking, in Dart only; nothing changes on the wire.
PlaceInTrajectory.turnis nowstep, and so is the first parameter ofProposedForTheModelCall.at,ProposedForAnIntent.atandProposedForTheReply.at. A step is one model call and what it caused, counted across the trajectory. A turn, a user's message through to its final reply, may take several steps, and a place never counts turns. A place is still written[n, "model-call"],[n, intent, action]or[n, "reply", action].- Docs: what
ModelRequestFromPieces.builtFromnames are messages, not turns; a tool's actions come from its propose expressions.
0.21.0 #
Breaking: the package holds types and their JSON only. Carrying an action out moves to the packages that do it.
- To
is_airlock:Trajectory(deciding, writing to the logbook, running the driver, writing the result), each program's dispatch to its driver, the web request and reply checks, the model request read from the logbook,DecidesActionsAndWritesToTheLogbookandUnderway. - To the agent loop: the logbook proposer (
Crux.forIntent,forTheModelCall,forTheReply) andProposesActionsThroughTheLogbook. Cruxis now the interfaceProposesActions, with one method,propose(program, input);action.nexttakes one.- New:
CarriesOutEachProgram, one method per program, andprogram.carriedOutBy(by, input), so the airlock carries a program out with its own input type and no cast. - New:
program.reachOf(input),program.proposal(input, at:),program.outcomeToJson/outcomeFromJson, andActionProposedByAgentLoop.open. - No longer depends on
is_reply_requests_api. - Reply types come from
is_conversation_reply_vocabulary^0.1.0, the renamedis_reply_vocabulary(same types). - A test fails on any
asyncfunction inlib.
0.20.0 #
Breaking, through is_effects ^0.17.0, which drops the reply drivers: a reply is now drawn by the module that owns its system and sent through the ordinary web driver, which knows nothing of Slack or Teams.
ReplyToOwnConversationtakes aReplyContent(text and an optional footer, is_reply_vocabulary ^0.2.1), andRepliesToOwnConversationholds it.Allow.toReplyTo(endpoint, asSignIn:)grants the sign-in a reply goes as, chosen by the airlock, along with the endpoint.Allow.grantedReplyreplacesgrantedReplyEndpoint, and the decision entry writesgrantedReply: {"to", "asSignIn"}.Trajectorytakes the modules' writers,slackRepliesandwebAddressReplies(is_reply_requests_api ^0.1.0). The reply draws with the writer, refuses before sending if any request leaves the endpoint's address or names a sign-in, sends each as the granted sign-in throughCarriesOutWebRequests, and reads what posted with the writer.
0.19.0 #
Breaking, through is_effects ^0.16.0: Reach has a new case, so an
exhaustive switch over it needs one more arm.
ReplyToOwnConversation(Program.replyToOwnConversation, proposed asreply-to-own-conversation) posts aReplyTextto the conversation the trajectory was started from. Its reach isRepliesToOwnConversation.Allow.toReplyTo(endpoint)grants it the trajectory's ownReplyEndpoint, kept in the decision entry asgrantedReplyEndpoint; every otherAllowhas none. A decision read back with both path prefixes and a reply endpoint is refused.- A reply driver returns its server's ids only; each
PostedMessageis made from the granted endpoint, so the logbook's conversation is the grant's. - Depends on is_model_vocabulary, is_reply_vocabulary, is_sign_in_vocabulary and is_web_address_vocabulary directly, since is_effects 0.16.0 re-exports none of them. Neither does this package: a caller that names their types depends on them itself.
0.18.1 #
- A driver that throws no longer leaves a decision with no result, which
reads the same as the airlock crashing. Its result is written as
StoppedPartwaywithdonenull, since it may have reached the world first, and the throw still ends the call.
0.18.0 #
Breaking, through is_effects ^0.15.0, which splits Refused by whether
the world changed: NothingRan(why) or StoppedPartway(why, done).
runOrRefusalis nowrunOrFail. A tool fails unless the program ran to the end; one that stopped partway says so in its failure.- A denied action, one this machine has no driver for, and a model request
whose entries are missing or malformed are
NothingRan. MakeWebRequestsisNothingRanonly when its first request never went out. After that it isStoppedPartway, itsdonethe response to each request that finished, a non-2xx one included. A request that went out with no response is named inwhy, never indone.- A rejected proposal's result is written as
nothingRan. Allow.byisDecidedBy?, required but nullable: null means no rule governs the reach, such as a read or write bounded only by the file driver's root, so the logbook no longer says "rules" when none exist. It is left out of the decision entry when null.Deny.bystays required, and a denial read back without one is refused.bymoved fromDecisionontoAllowandDeny.ModelRequestis nowModelRequestFromPieces, so it no longer shares a name with is_model_vocabulary'sModelRequest, which is what the joined request text holds. Its logbook kind staysmodel-request.
0.17.0 #
Breaking, through is_effects ^0.14.0, which splits Request into
ProposedRequest and GrantedRequest.
MakeWebRequeststakesProposedRequests, read and written withdecodeProposedRequestandencodeProposedRequest, which refuse agrantedPathPrefix.AllownamesgrantedPathPrefixes, required: one per request of aMakesWebRequests, in order, and one for aFetchesFromWeb.Allow.withNoPathsis for every other reach.- A web action reaches its driver only as
GrantedRequests built under those prefixes, so a redirect on the same site stays where the rule granted. Allowed with the wrong number of prefixes, or under one that doesn't cover its path, it is refused and nothing is sent. - The decision entry writes
grantedPathPrefixesand leaves it out when empty, so a decision that grants no path keeps its bytes.
0.16.0 #
Breaking, through is_effects ^0.13.0, whose types this API names.
Executable.parserefuses a name with/, a NUL, or.or..alone, since a program is named, never located.WebPath.parserefuses a path the URI parser would rewrite. A proposal carrying either is rejected.- A dependent can now take is_effects 0.13 alongside this package, for
its
PathPrefix,AddressPrefixandRequest.grantedPathPrefix. - A proposal's request that names a
grantedPathPrefixis rejected: only a grant gives one, never the tool.
0.15.0 #
Breaking. The airlock knows no module: the tool on the other side of a proposal builds what it sends, and the airlock decides where it may go.
MakeWebRequests(Program.makeWebRequests, proposed asmake-web-requests) replacesAnswerEvent. Its input is the exactRequests the tool built, in is_effects's codec; its reach isMakesWebRequests(requests). The airlock grants each request's origin, sign-in and path together, all or none, so the path prefix a rule grants is what keeps a reply in its own conversation. It checks where a body goes, never what it says. At the boundary, a GET (a fetch), any header butcontent-type, and an empty list are refused. Sent in order; the first failure stops the rest.- Removed:
AnswerEvent,Answer,ReplyToEvent,TrajectoryOpened,RefusalNoticeToEvent,AnswersEvent, andDecidesAndRecordsActions.replyRequests,trajectoryOpenedRequestsandrefusalNoticeRequests. An airlock no longer picks a module or builds a request, so it never reads what strangers sent. A tool tells a person why an action was refused by building that message itself. - With nothing left to build before deciding, a reach is always what its input says; the "refused build is a Deny" path is gone.
- The chain of entries is the logbook, never "the record", and the airlock
writes to it. Renamed, with no old names kept:
ProposesActionsThroughTheRecord→ProposesActionsThroughTheLogbook;DecidesAndRecordsActions→DecidesActionsAndWritesToTheLogbook, withrecordDecision→writeDecision,recordResult→writeResultandrecordedOn→entryOn;RecordedText→TextFromPieces. The docs and README say "the logbook" and "entry" throughout. Entry kinds are unchanged. PlaceInTrajectoryis sealed:ProposedForTheModelCall(turn), written[turn, "model-call"];ProposedForAnIntent(turn, intent, action), written[turn, intent, action]; orProposedForTheReply(turn, action), written[turn, "reply", action], in that order within a turn. A place is fixed by where an action sits in the model's reply, never by the order things ran in, so two tools running at once can no longer swap places across a restart. 0.14's[turn, step]is not a place.Crux.throughis gone:Crux.forTheModelCall(link, turn:)carries exactly one action, andCrux.forIntent(link, turn:, intent:)andCrux.forTheReply(link, turn:)number theirs. A reply has several actions because the message is built by a program on the box (such as ateams-messageapp, run by name through the program driver) and then sent exactly as built, so the airlock never holds a module's code.- README: the example and the trajectory section no longer show
Trajectory.at, which 0.14.0 removed.
0.14.0 #
Breaking. An action reaches a trajectory's drivers only through the record: the airlock service has no crux of its own.
Trajectory.at(place)is removed. It proposed actions inside the airlock service's own process, with noActionProposedByAgentLooplogbook entry for the decision to answer. No production code called it.Crux.through(link, turn:)is the only crux, and the airlock service decides only whatTrajectory.considerhands it from the record.AirlockDecisionOnAction.proposedis a requiredEntryId, never null: every decision names the proposal it answers.fromJsonrefuses a decision without one, as 0.13 wrote for an action proposed in-process.DecidesAndRecordsActions.replyRequests(trajectory, place, respondsTo, reply)andtrajectoryOpenedRequests(trajectory, place)take the place the answer was proposed at, so the module that builds its requests can show it (a Teams card prints "turn N"). It is the loop's claim; the airlock checks nothing about it.RefusalNoticeToEvent(respondsTo:, refusal:)(proposed as{"answer": "refusal-notice", …}) answers an event with the notice that an action was refused, and why, so the person who sent it decides what to do.refusalnames an outcome of a proposal on this trajectory whose result isRefused; an outcome that ran is refused, so what an action gave back never leaves as a notice. The module builds its requests through the newDecidesAndRecordsActions.refusalNoticeRequests( trajectory, place, respondsTo, why), given only the recorded reason.DecidesAndRecordsActions.recordResultalways keeps anoutcome-of-proposed-actionlogbook entry; there is no decision without a proposal to answer.- Tests that drove a trajectory with
.atdrive it throughCrux.throughwith an in-memoryProposesActionsThroughTheRecordinstead, which callsTrajectory.considerfor each proposal it is written.
0.13.1 #
ActionProposedByAgentLoop.reach: what a proposal read back proposes to do, as far as its input alone says, so a loop can tell its ownAnswersEvent(answer: TrajectoryOpened())from a reply in its history. AnAnswersEvent's requests are empty here; they are built when it is decided.
0.13.0 #
Breaking, for the agent loop and the airlock alike. The airlock knows no chat: nothing here builds or checks a Teams body any more.
AnswerEvent(Program.answerEvent, proposed asanswer) replacesMakeWebRequest. It answers an event admitted to the mission with anAnswer:ReplyToEvent(respondsTo:, reply:)orTrajectoryOpened(). The airlock builds the requests first, reaching nothing, then decides one reach holding every exact request,AnswersEvent(answer, requests), and sends them in order, stopping at the first that fails:Refused('sent k of n: …'). A build that cannot be made is decided asDeny(why)with no requests.DecidesAndRecordsActionsgainsreplyRequests(trajectory, respondsTo, reply)andtrajectoryOpenedRequests(trajectory): the airlock checks the admission, picks the module and the sign-in, and the module builds the requests (is_effects'sBuildsRequestsAnsweringEvents).- Removed:
MakeWebRequest,WebRequest,MakesWebRequest,Projection(withteamsMessageFromModelReplyandtrajectoryOpenCard),trajectoryOpenCardBody, andAirlockDecisionOnWebRequestwith its entry kind. Every decision is anAirlockDecisionOnAction; anAnswersEvent's requests are written in it with is_effects'sencodeRequest, exact bodies included. FetchFromWeb(Program.fetch, proposed asfetch): a GET with no body or headers, taking aWebFetch(origin, path, sign-in,keep), and giving theWebResponsewith the body it kept. Its path is decided as written. Its own reach,FetchesFromWeb, so a grant to post to a site is not a grant to fetch from it.ReadFileBytes(Program.readBytes, proposed asread-bytes): a file's exact bytes. It shares theReadsreach, which now carriesas: ReadsAs.text | bytes, so a rule granting a path grants both reads and the record says which ran.Program._reachOn: a program may work out its reach before it is decided, reaching no driver. Every program butAnswerEventuses its input alone.
0.12.1 #
- Takes is_effects
^0.11.0. Its one break isReadsAndWritesFiles.readBytes, which matters only to a file driver that implements it; nothing in this package's API changes.
0.12.0 #
Breaking, for the agent loop and the airlock alike.
PlaceInTrajectory(turn, step): where in its trajectory a loop proposed an action, written[turn, step], ordered by turn then step.ActionProposedByAgentLoop.placeis one, and a proposal without one isRejected('not a place').Crux.through(link, turn:)replacesCrux.through(link, place:). Make one per turn: it proposes each action at the turn's next step from 0, so a tool that takes several actions gives each its own place, and a restarted loop gives each the same place again.ProposesActionsThroughTheRecordiswriteProposal(body), giving the id the logbook gave the entry, andoutcomeNaming(id), giving the outcome entry's body.proposeis gone. This package joins the two and refuses an outcome that names another proposal, so a loop never works out an id.DecidesAndRecordsActions.decide(trajectory, reach, rules): the airlock is told which trajectory acts, so it can read what holds for it now, such as the bot leased to it.Decision.reliedOn: the logbook entries the airlock read to decide, beyond the rules.AirlockDecisionOnWebRequestwrites them asdecision.reliedOnonly when there are any, so a decision kept before reads back to the same bytes.AirlockDecisionOnAction.toJson(placeToJson)andAirlockDecisionOnAction.fromJson(json, placeFromJson): a decision of every reach, as the logbook holds it underairlock-decision-on-action. The reach is written as the program and input that make it, exactly as a proposal writes them, so the airlock can rebuild from history which places it decided and which decisions have no result after them, for every kind of action. A web request's decision keeps its own entry, byte for byte.
0.11.1 #
- A
teams-message-from-model-replyrequest is sent only when the outcome it is drawn from answers a proposal that asked the model. A read's result,{"kind":"text","text":…}, also reads as a model reply, so a loop could have sent a file's contents to Teams. The airlock reads the proposal from the trajectory's own chain: one more logbook read per send.
0.11.0 #
Breaking. Takes is_effects ^0.9.0, reads JSON with checked_json, and adds
a trajectory open card.
- is_effects 0.9.0:
WebRequestOutcomeisWebResponse, and aModelReplyisFinishedReplyorCutOffReply, with token usage. - A cut-off reply reaches Teams with a blank line and
_(reply cut off)_after its text, so it never reads as the whole answer. Projection.trajectoryOpenCard: the card that shows a trajectory is open, with one Close action (verbclose), exactlytrajectoryOpenCardBody. Its request'sdrawnFromis the trajectory's own id, and the airlock reads nothing to check it.- JSON is read with checked_json's
JsonObject, checked once where it is decoded. - Every
fromJsontakes aJsonObject:AirlockDecisionOnWebRequest,ModelRequest,ModelRequestPiece,RecordedTextandWaitingToStart. Decode a logbook entry's body withJsonObject.decode(body), which throws aFormatExceptionfor anything but an object.JsonObjectandJsonFieldExceptionare exported. ActionProposedByAgentLoop.readandreadOutcomeOfProposedActiontake the logbook entry's body text, not decoded JSON, and still never throw: a body that is not a JSON object isRejected('not a proposal')or null.- Error messages are unchanged: a field of the wrong shape is still named
by its dotted path, as
decided.request.body: not a string. Projection.teamsMessageFromModelReplyreads the reply with is_effects'sdecodeModelReply, not a pattern of its own, so a reply that gains a field there (token usage, coming) is still drawn from. Same bytes out.
0.10.2 #
ActionProposedByAgentLoop.program: the program a proposal names, as a type, so a reader of the record tells a model call from a web request withActionProposedByAgentLoop(program: AskTheModel())rather than comparing the wire'sprogramstring.
0.10.1 #
- Takes the newest is_effects and is_shapes,
^0.8.0and^0.6.0, not a range reaching back to 0.7.0 and 0.5.0. No code changes: nothing here usesProgramMessage, the one thing is_effects 0.8.0 broke.
0.10.0 #
Breaking.
- A proposal's answer is the logbook kind
outcome-of-proposed-action(wasresult-of-action-or-why-refused):outcomeOfProposedActionKind, written byoutcomeOfProposedActionToJsonandproposalRejectedToJson, read byreadOutcomeOfProposedAction. The body is unchanged,{"proposed": <hex>, "result": <outcome>}, and reads back as the record(proposed:, result:), not a type. - Takes is_effects
>=0.7.0 <0.9.0and is_shapes>=0.5.0 <0.7.0, not^0.7.0and^0.5.0, so it resolves alongside is_effects 0.8.0 and is_shapes 0.6.0 (which dropsRendererId, used nowhere here). Built and tested at both ends of each range.
0.9.0 #
Breaking. Every name says what the thing is, and the airlock's two writes are two methods.
ProposalisActionProposedByAgentLoop, kindaction-proposed-by-agent-loop(wasproposed). Same body.Decided<P>isAirlockDecisionOnAction<P>, withAirlockDecisionOnAction.kind=airlock-decision-on-actionfor the logbook entry the airlock keeps it as. It no longer extends anything.DecidedWebRequestisAirlockDecisionOnWebRequest, kindairlock-decision-on-web-request(wasweb-request-decided). It carries the request's exact body, no renderer, and nowproposed, the proposal it answers, so no two decisions start byte-identical chains: the logbook service refuses a repeated chain start once it names entries by the hash of their text.- The renderer is gone:
Renderer,RendererName,Rendered(kindrendered),DecidesAndRecordsActions.rendererand.rendered, and theRendererIdexport. AWebRequestcarries its exactbody, theProjectionit is drawn by, anddrawnFrom, the recorded entry it is drawn from, in place of a renderer's name and entries. Once allowed, the airlock readsdrawnFromthroughrecordedOn, draws the body by the projection, and reaches the web driver only when it is byte-identical tobody. One projection:teamsMessageFromModelReply(teams-message-from-model-reply), a Teams message whose text is a model's reply. A web request's chain is its decision, then its result. DecidesAndRecordsActions.recordedOngives({kind, body}), the body after its header, of an entry that belongs to the trajectory: on its own chain, or aresult-of-action-or-why-refusedthe airlock kept for one of its proposals. Each reader checks the kind it expects, since a loop may write a body of any shape under its own kinds: a web request draws only from aresult-of-action-or-why-refused, and a model call reads only amodel-requestand itsmodel-request-pieces.Entry<P>,Returned<P>andReturnedProposalare gone.DecidesAndRecordsActions.record(entry)isrecordDecision(decision)andrecordResult(decision, result, resultAsJson:); a result is handed the decision it follows, so a web request's result names its decision as its previous without a lookup.Trajectory.entriesisdecisionsandresults, the latter({decision, result}).- A proposal's answer is the logbook kind
result-of-action-or-why-refused(wasreturned), body{"proposed": <hex>, "result": <outcome>}(theoutcomekey is nowresult), written byresultOfActionOrWhyRefusedToJsonandproposalRejectedToJsonand read byreadResultOfActionOrWhyRefused, which gives(proposed:, result:)or null when the body is not one. - Docs: the journal is the logbook (is_logbook, run on the box by the
logbook service), and links and
Logbook.builtDefinepoint at https://github.com/intersyntactic/logbook. A web request's chain is written out in full: the decision starts it, since the proposal's chain is its loop user's alone. A model call goes out as a sign-in the rules let it go out as; the loop holds none.
0.8.0 #
The model call is an action (Nick, 17 Nov 20:12: "shit so the model call should really go through the airlock hey?", 20:16: "we do it tonight"; https://github.com/enspyrco/intersyntactic/pull/1168, replacing the 12 Nov ruling that the model is the agent planning). Breaking.
AskTheModel(Program.askTheModel, proposed asmodel): aModelCallof aModelSignInName, aModelNameand theModelRequestentry, answered by aModelReply. Its reach isCallsTheModel. The one action the loop proposes for itself.ModelRequest(kindmodel-request) andModelRequestPiece(kindmodel-request-piece): what a step sends, recorded before it is sent, itssystemPromptandrequesteach aRecordedTextof piece entries and a sha256, withjoin.DecidesAndRecordsActions.recordedOn(trajectory, entry), new and required: an entry's content, only from that trajectory's own chain.AskTheModelreads its request and pieces through it, joins and checks each text, and hands is_effects'sAsksTheModeldriver exactly those.- The reply streams as is_effects's
ReplyArrivinginunderway, never recorded. Depends on is_effects ^0.7.0.
0.7.1 #
- Takes is_effects
>=0.6.0 <0.8.0, not^0.6.0. is_flight_rules 0.1.0 needs is_effects 0.7.0, and below 1.0^0.6.0excludes it, so nothing could depend on both (loop-launcher-5b found it). is_effects 0.7.0 only adds to what this package uses: its newProgresscase,ReplyArriving, is never switched over here. Built and tested against 0.7.0.
0.7.0 #
Breaking. "Send" is retired (Nick, 17 Nov 13:31: no tiny words for
complex things), and an interface is named for what it can do, so
implements reads as a true sentence (Nick, 17 Nov 13:55: ""What it can
do", yes naming rule";
https://github.com/enspyrco/intersyntactic/pull/1164). A journey is now a
mission, and a journey path a trajectory (Nick, 17 Nov 19:07 and 19:09;
19:15: "Rename tonight, before any real write").
-
JourneyPath<R, P>isTrajectory<R, P>, andJourneyPathIdis is_shapes 0.5.0'sTrajectoryId(it hashes as before). EveryjourneyPathfield istrajectory, on the wire too:WaitingToStartis{"trajectory": <hex>}, andDecidedWebRequestwritestrajectory. Depends on is_shapes ^0.5.0. -
ApexisCrux(Nick, 17 Nov 20:17: "CRUX! That's what I was thinking of when I said 'apex'"): a trajectory's crux is its agent loop, the one holder that extends it (https://github.com/enspyrco/intersyntactic/pull/1168).Trajectory.at(place)andCrux.through(link, place:)give it at one place; one step's tool calls go through the one crux at their places. -
Airlock<R, P>isDecidesAndRecordsActions<R, P>, andRecordLinkisProposesActionsThroughTheRecord. The airlock and its drivers are still called that: only the interfaces are renamed, since a noun is kept for a thing that exists. No alias is kept. -
Depends on is_effects ^0.6.0, whose 0.4.0 renamed its driver interfaces the same way and whose 0.5.0 renamed one again:
DriverisCarriesOutActions,FileDriverisReadsAndWritesFiles,ProgramDriverisRunsPrograms(itsstartisrunProgram), andWebDriverisCarriesOutWebRequests. SoJourneyPath(drivers:)takesIterable<CarriesOutActions>. 0.6.0 renamed codecs this package does not call. -
SendisWebRequest(Nick, 16 Nov 18:46),WebSendisMakeWebRequest, andSendsisMakesWebRequest, whose fieldsendisrequest. These read with the other programs and reaches (ReadFile,Reads). -
DecidedSendisDecidedWebRequest, kindweb-request-decided, with the JSON keyrequestin place ofsend. No entry was ever written with the old kind.send_entries.dartisweb_request_entries.dart. -
is_effects 0.3.0 made the same change:
WebDriver.sendiscarryOutWebRequest, andSentisWebRequestOutcome, soMakeWebRequestgives aWebRequestOutcome. "Renderer" is not decided and is unchanged.
0.6.0 #
Breaking.
Runis nowAction, and the library's filerun.dartisaction.dart(Nick, 17 Nov: "we retired 'run' did we not?", then "So it goes Turn -> Step -> Tool Call -> Action" and "'The airlock sits between intents and action' just sounds so good"). An action is one round trip to the world, which the airlock decides, with exactly oneOutcome. The verb stays:Program.run(input, then:)andrunOrRefusalstill run a program, and a loop still runs as its user.Held(kindheld) is nowWaitingToStart(kindwaiting-to-start), named for what happens: the path has started and its work has not begun (Nick, 17 Nov: "waiting-to-start"; a traveller does not know what a loop is or what held means).Heldshipped in 0.5.0 but was missing from its changelog. No entry was ever written with the old kind.- Docs: "follow" is retired (https://github.com/enspyrco/intersyntactic/pull/1155). A reader subscribes to the record, an entry names its previous, and a tool's result is run through at an apex. No API changes.
0.5.0 #
Breaking. The agent loop and the airlock in separate processes (RULINGS, "No server"), and the renderer following the journal instead of being run by the airlock (https://github.com/enspyrco/intersyntactic/issues/1147#issuecomment-6905923566).
- The airlock never talks to a renderer.
Renderersis gone, and with itJourneyPath.start(renderers:).Airlockgainsrenderer(name), which resolves a name for theDecidedentry asRenderers.finddid, andrendered(decided): the body the renderer recorded after thatDecided, which the airlock follows the journal to, or why there is none. It is called only onceDecidedis kept, and what it gives is what is sent, so the exact bytes sent are in the record. The check that a renderer was built from the source its id names moves to the entry it records. - A proposal is an entry in the record, and the airlock has no door of its
own (Nick, 16 Nov, https://github.com/enspyrco/intersyntactic/pull/1156).
Apex.through(link, place:): an apex in the agent loop that proposes each run's program and input over aRecordLinkas aProposal(kindproposed), an effect not yet decided, on the loop's journey path's chain, and keeps the continuation.JourneyPath.atis unchanged, andApexis now sealed, with the two kinds, so a tool does not change. - A
Proposalnames no journey path: the journal takes a path's chain only from its loop user, so the airlock takes the path from the chain.Proposal.read(json)gives aProposalorRejected;JourneyPath.consider(proposal, place, proposed:)decides and records it, andDecidedandReturnedgainproposed, the entry that asked. - What an effect returns is in the record, once (Nick, 16 Nov,
https://github.com/enspyrco/intersyntactic/pull/1157):
ReturnedProposal(kindreturned) holds what came back in full, by the program's codec, or the refusal, naming theproposedentry; loop_launcher hands it to the path's loop.ReturnedProposal.refusedanswers aRejectedentry.Returned's constructor is private, since only a journey path knows the program's codec. JourneyPath.start(...)is now the unnamedJourneyPath(...), taking the same arguments: it is the airlock service's side of a journey path, and the airlock starts nothing; the docking station starts journey paths (Nick, 16 Nov).LoopUser(loop-<n>) andSuit(suit-<n>), moved here from loop_launcher so both services read one type: the OS users loop_launcher hands each path from pools made ahead of time and records in the path'sassignedentry. A path's loop runs as its loop user and its programs as its suit, one per path, contained or open (Nick, 16 Nov: "suit"; https://github.com/enspyrco/intersyntactic/pull/1158).JourneyPathtakessuit.- loop_launcher records itself (Nick, 16 Nov, 19:22), so the airlock
service learns each path from the record: the path-start message
(
PathStarted,Ready), the path token andJourneyPath.reissue, briefly on main, never shipped. Postis nowSend, andWebPostisWebSend;Sendsholdssendwhere it heldpost(Nick, 16 Nov: "post" is ambiguous, beside the HTTP methodMethod.postand a chat's posts). So the family readsSend,Sends, and is_effects'sSent.- Programs, inputs and outputs travel by is_effects's codecs; a
Sendby its own, built on them. - One send's chain in the journal has wire forms:
DecidedSend(kindsend-decided: journey path, place, the wholeSend, the exactRendereror none, and the decision), which a renderer follows the journal for and reads, andRendered(kindrendered: theEntryIdof theDecidedSendit follows, the renderer's source id as it reports it, and the body or why there is none), which the renderer writes and the airlock reads.ReturnedfollowsRendered, or follows theDecidedSenddirectly when the renderer did not answer in time. Only a send's entries have a wire form: other runs' entries still record what a run reached and why, never a file's text or a program's output. - Depends on
is_effects^0.2.1, for its codecs.
0.4.0 #
Breaking. The post design decided in https://github.com/enspyrco/intersyntactic/issues/1147: everything a post says is drawn from recorded journal entries, by a renderer the record names exactly.
Program.webis aWebPost, aProgram<Post, Sent>, in place ofWebRequest, aProgram<Request, Sent>. APosthas an origin, method,WebPath, sign-in, headers (checked by is_effects'svalidatedHeaders), aRendererNameand theEntryIds of the recorded entries its words are drawn from. It has no body, so a tool cannot put words in.Renderers, which the service that starts journey paths implements and passes toJourneyPath.start(renderers:):findresolves aRendererNameto an exactRenderer(itsRendererIdand theObjectIdof the executable run);renderreads and checks each entry and runs the renderer, giving the body or why there is none. A render is refused when the executable reports being built from source other than the renderer's id, which rules out a stale or mis-built executable, not one built to lie.- A post's renderer is resolved before the decision, and
Sendsholds the wholePostand thatRenderer, so theDecidedentry records which code will write the words. A name that resolves to nothing, or a journey path with noRenderers, is denied before the rules are asked. The body is drawn only onceDecidedis kept, and a render that is refused (an entry the journal does not hold, say) refuses the post with nothing sent. Airlock.decidetakes theReach, not theRun, andDecided,ReturnedandUnderwayhold thereachin place of therun. The publicRun.reachis gone: a post's reach needs its renderer resolved.Airlock.record's doc says what kept means: it survives the journal crashing or being killed, not a power cut (https://github.com/intersyntactic/journal/pull/12).- Re-exports
EntryIdandRendererIdfromis_shapes, andObjectIdfromis_content_id. - Depends on
is_effects^0.2.0,is_shapes^0.4.4 andis_content_id^0.2.0.
0.3.1 #
DecidedByisis_shapes's, re-exported, so the airlock and the docking port record who decided with one type. The values and their order are unchanged (rules,person), and so isDecision.by. Code written against 0.3.0 compiles as it was; code importing both packages now sees oneDecidedBy, not two that clash.- Depends on
is_shapes^0.4.3.
0.3.0 #
Breaking.
JourneyPathIdisis_shapes's: a journey path is named by the hash of the record entry that started it, which whoever starts it writes (JourneyPathId.of(entryBytes)), the way aJourneyIdnames a journey. This package's ownJourneyPathId, whoseparsetook any non-blank string, is gone, and it re-exportsis_shapes's.- Narrowing is removed:
JourneyPath.narrowed, theNarrowedentry andAirlock.narrows. ANarrowedentry went into the parent's record and named the child, so the child's id had to exist before the entry that would name it, and could not be its hash. Nothing narrowed. With it go stopping a child when its parent stops, and entries and progress reaching a parent's streams. Entry<R, P>isEntry<P>again, withDecided<P>andReturned<P>: onlyNarrowedheld rules.- Depends on
is_shapesas well asis_effects.
0.2.0 #
Breaking.
Added to this entry with 0.3.0: the 0.2.0 release also made these changes, which its own changelog left out.
- Every entry is at a place
Pin a turn, which the agent loop supplies:JourneyPath<R, P>,Airlock<R, P>, and aplaceon each entry and onUnderway. journeyPath.at(place)gives anApex, and a run is carried out withrun.next(apex).Entry<R, P>, so a switch over the kinds of entry is exhaustive.WebRequest(Program.web) sends anis_effectsRequestthrough aWebDriver. Its reach isSends(origin, signIn), which a rule grants together and which never holds the body; a null sign-in means none.Result.map, which gives a result's answer to a function and carries out nothing.PathInRepoisis_effects'sRelativePath.
The changes it did list:
- The vocabulary of effects and the driver interfaces move to
is_effects:PathInRepo,FileText,Args,ReadResult,Wrote,ExecResult,Outcome, andFileDriverandProgramDriver. A driver depends onis_effectsalone and sees no run, journey path or decision. This package depends onis_effectsand nothing else of ours. Tool,answeredBy,ReplyandExecResult.outputmove tois_tool(asAnswer,answeredBy,ReplyandexecResultOutput), so a consumer can take this up before its tools move tois_tools_api0.2.Executablewraps anis_effectsProgramName, compares by it, and hasExecutable.parse;Starts.programis theProgramName.AllowandDenytakeby: DecidedBy.rulesorDecidedBy.person, so the record tells the rules' decision from the person's.- Drivers report while a run is underway, on
JourneyPath.underway. Settledis renamedReturned: a run goes out and comes back with its outcome, so a run's entries areDecided, thenReturned.
0.1.0 #
- First release:
Result(Run,Done,Failed), the closed set of programs (ReadFile,WriteFile,Executable) and theirReach,Outcome(Ran,Refused),FileDriverandProgramDriver,ExecResult, andPathInRepo. JourneyPath,JourneyPathId,Airlock,Decision(Allow,Deny) andEntry(Decided,Settled,Narrowed):Run.nextis the one way to carry out a run, and each run is decided and recorded before its driver is reached, and recorded again before its outcome flows on. Each narrowing is recorded, granted or not, before the new journey path exists.Tool,answeredByandReply: a tool's code attached to itsis_tools_apidefinition, and a call followed to what the model is told.