%breach-hi works with kale

This commit is contained in:
Philip Monk 2019-07-26 20:43:07 -07:00
parent a47ef9ac77
commit dd76358f6a
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC
9 changed files with 104 additions and 115 deletions

View File

@ -103,6 +103,7 @@
fil-id fil-id
u.fil(last-block latest-block) u.fil(last-block latest-block)
[%cont ..stay] [%cont ..stay]
~& [%ph-azimuth-miss req]
[& ~ %wait ~] [& ~ %wait ~]
:: ::
++ latest-block ++ latest-block
@ -346,6 +347,7 @@
++ breach-and-hear ++ breach-and-hear
|= [our=@p who=@p her=@p] |= [our=@p who=@p her=@p]
=. this-az (breach who) =. this-az (breach who)
=. this-az (spawn ~fes)
=/ new-rut rut:(~(got by lives) who) =/ new-rut rut:(~(got by lives) who)
=/ m (ph ,_this-az) =/ m (ph ,_this-az)
;< [this-az=_this-az ~] bind:m ;< [this-az=_this-az ~] bind:m
@ -356,7 +358,7 @@
:+ & ~ :+ & ~
=/ aqua-pax =/ aqua-pax
:- %i :- %i
/(scot %p her)/j/(scot %p her)/rift/(scot %da now.pin)/(scot %p who)/noun /(scot %p her)/k/(scot %p her)/rift/(scot %da now.pin)/(scot %p who)/noun
=/ rut (scry-aqua noun our now.pin aqua-pax) =/ rut (scry-aqua noun our now.pin aqua-pax)
?: =([~ new-rut] rut) ?: =([~ new-rut] rut)
[%done ~] [%done ~]

View File

@ -459,7 +459,7 @@
:: ::
++ dint :: input routing ++ dint :: input routing
|= hap/path ^- @tas |= hap/path ^- @tas
?+ hap !! ?+ hap ~|([%bad-dint hap] !!)
{@ $ames *} %a {@ $ames *} %a
{@ $boat *} %c {@ $boat *} %c
{@ $newt *} %a {@ $newt *} %a

View File

@ -1424,17 +1424,20 @@
:_ fox [hen [%pass wire %k %private-keys ~]]~ :_ fox [hen [%pass wire %k %private-keys ~]]~
:: ::
%wine %wine
:_ fox [[(print hen p.bon q.bon) ~] fox]
=+ fom=~(rend co %$ %p p.bon) ==
:~ :- hen ::
++ print
|= [hen=duct who=ship =tape]
^- move
=+ fom=~(rend co %$ %p who)
:- hen
:+ %slip %d :+ %slip %d
:+ %flog %text :+ %flog %text
;: weld ;: weld
"; " "; "
fom fom
q.bon tape
==
==
== ==
:: ::
++ knap ++ knap
@ -1457,6 +1460,10 @@
?. ?=([%pubs @ ~] tea) ?. ?=([%pubs @ ~] tea)
~& [%strange-pubs tea] ~& [%strange-pubs tea]
[~ +>.$] [~ +>.$]
?: ?& ?=(%diff -.public-keys-result.sih)
?=(%rift -.diff.public-keys-result.sih)
==
(sink hen [who [from to]:diff]:public-keys-result.sih)
?: ?& ?=(%diff -.public-keys-result.sih) ?: ?& ?=(%diff -.public-keys-result.sih)
!?=(%keys -.diff.public-keys-result.sih) !?=(%keys -.diff.public-keys-result.sih)
== ==
@ -1530,6 +1537,17 @@
$(p.fuy t.p.fuy, out (weld (flop toe) out)) $(p.fuy t.p.fuy, out (weld (flop toe) out))
== ==
:: ::
++ sink
|= [hen=duct who=ship from=rift to=rift]
^- [(list move) _+>]
?: =(our who)
[[(print hen who ", you have sunk") ~] +>.$]
::
=: hoc.ton.fox (~(del by hoc.ton.fox) who)
wab.zac.fox (~(del by wab.zac.fox) who)
==
[[(print hen who " has sunk") ~] +>.$]
::
++ knob ++ knob
~/ %knob ~/ %knob
|= [hen=duct kyz=task:able] |= [hen=duct kyz=task:able]
@ -1594,25 +1612,6 @@
fox(bad (~(del in bad.fox) p.kyz)) fox(bad (~(del in bad.fox) p.kyz))
~& [%block p.kyz] ~& [%block p.kyz]
fox(bad (~(put in bad.fox) p.kyz)) fox(bad (~(put in bad.fox) p.kyz))
::
%sunk
=* who p.kyz
=* lyf q.kyz
?: =(our who)
?: (lth lyf p:(head val.ton.fox))
:: replaying our old sinkage, ignore
:: XX review
::
[~ fox]
:: XX include some helpful instructions here
::
:_ fox
[%wine who ", you have sunk"]~
::
=: hoc.ton.fox (~(del by hoc.ton.fox) who)
wab.zac.fox (~(del by wab.zac.fox) who)
==
[[%wine who " has sunk"]~ fox]
:: ::
%vega %vega
:: re-initialize our cryptosuite B cores :: re-initialize our cryptosuite B cores

View File

@ -524,6 +524,9 @@
$: %f :: by %ford $: %f :: by %ford
$>(%made gift:able:ford) :: $>(%made gift:able:ford) ::
== :: == ::
$: %k :: by %kale
$>(%public-keys gift:able:kale) ::
== ::
$: @tas :: by any $: @tas :: by any
$>(%crud vane-task) :: XX strange $>(%crud vane-task) :: XX strange
== == :: == == ::
@ -4303,49 +4306,6 @@
=/ den ((de our now ski hen ruf) our des.req) =/ den ((de our now ski hen ruf) our des.req)
abet:(perm:den pax.req rit.req) abet:(perm:den pax.req rit.req)
[mos ..^$] [mos ..^$]
::
%sunk
~& rift=[p.req q.req]
~& desks=(turn ~(tap by dos.rom.ruf) head)
~& hoy=(turn ~(tap by hoy.ruf) head)
::
?: =(our p.req)
[~ ..^$]
:: Cancel subscriptions
::
=/ foreign-desk=(unit rung)
(~(get by hoy.ruf) p.req)
?~ foreign-desk
~& [%never-heard-of-her p.req q.req]
[~ ..^$]
~& old-rift=rit.u.foreign-desk
?: (gte rit.u.foreign-desk q.req)
~& 'replaying sunk, so not clearing state'
[~ ..^$]
=/ cancel-ducts=(list duct)
%- zing ^- (list (list duct))
%+ turn ~(tap by rus.u.foreign-desk)
|= [=desk =rede]
^- (list duct) %- zing ^- (list (list duct))
%+ turn ~(tap by qyx.rede)
|= [=wove ducts=(set duct)]
:: ~& [%sunk-wove desk (print-wove wove) ducts]
~(tap in ducts)
=/ cancel-moves=(list move)
%+ turn cancel-ducts
|= =duct
[duct %slip %b %drip !>([%writ ~])]
:: Clear ford cache
::
=/ clear-ford-cache-moves=(list move)
:~ [hen %pass /clear/keep %f %keep 0 1]
[hen %pass /clear/wipe %f %wipe 100]
[hen %pass /clear/kep %f %keep 2.048 64]
==
:: delete local state of foreign desk
::
=. hoy.ruf (~(del by hoy.ruf) p.req)
[(weld clear-ford-cache-moves cancel-moves) ..^$]
:: ::
%vega [~ ..^$] %vega [~ ..^$]
:: ::
@ -4445,30 +4405,30 @@
:: ::
++ stay [%1 ruf] ++ stay [%1 ruf]
++ take :: accept response ++ take :: accept response
|= {tea/wire hen/duct hin/(hypo sign)} |= [tea=wire hen=duct hin=(hypo sign)]
^+ [*(list move) ..^$] ^+ [*(list move) ..^$]
?: ?=({$commit @ *} tea) ?: ?=([%commit @ *] tea)
=* syd i.t.tea =* syd i.t.tea
=^ mos ruf =^ mos ruf
=/ den ((de our now ski hen ruf) our syd) =/ den ((de our now ski hen ruf) our syd)
abet:(take-commit:den q.hin) abet:(take-commit:den q.hin)
[mos ..^$] [mos ..^$]
:: ::
?: ?=({$merge @ *} tea) ?: ?=([%merge @ *] tea)
=* syd i.t.tea =* syd i.t.tea
=^ mos ruf =^ mos ruf
=/ den ((de our now ski hen ruf) our syd) =/ den ((de our now ski hen ruf) our syd)
abet:(take-merge:den q.hin) abet:(take-merge:den q.hin)
[mos ..^$] [mos ..^$]
:: ::
?: ?=({$mount @ *} tea) ?: ?=([%mount @ *] tea)
=* syd i.t.tea =* syd i.t.tea
=^ mos ruf =^ mos ruf
=/ den ((de our now ski hen ruf) our syd) =/ den ((de our now ski hen ruf) our syd)
abet:(take-mount:den q.hin) abet:(take-mount:den q.hin)
[mos ..^$] [mos ..^$]
:: ::
?: ?=({%foreign-request @ @ @ *} tea) ?: ?=([%foreign-request @ @ @ *] tea)
=/ her (slav %p i.t.tea) =/ her (slav %p i.t.tea)
=/ syd (slav %tas i.t.t.tea) =/ syd (slav %tas i.t.t.tea)
=/ inx (slav %ud i.t.t.t.tea) =/ inx (slav %ud i.t.t.t.tea)
@ -4477,7 +4437,7 @@
abet:(take-foreign-request:den inx q.hin) abet:(take-foreign-request:den inx q.hin)
[mos ..^$] [mos ..^$]
:: ::
?: ?=({%foreign-update @ @ *} tea) ?: ?=([%foreign-update @ @ *] tea)
=/ her (slav %p i.t.tea) =/ her (slav %p i.t.tea)
=/ syd (slav %tas i.t.t.tea) =/ syd (slav %tas i.t.t.tea)
=^ mos ruf =^ mos ruf
@ -4485,8 +4445,8 @@
abet:(take-foreign-update:den q.hin) abet:(take-foreign-update:den q.hin)
[mos ..^$] [mos ..^$]
:: ::
?: ?=({$blab care @ @ *} tea) ?: ?=([%blab care @ @ *] tea)
?> ?=($made +<.q.hin) ?> ?=(%made +<.q.hin)
?. ?=([%complete %success *] result.q.hin) ?. ?=([%complete %success *] result.q.hin)
~| %blab-fail ~| %blab-fail
~> %mean.|.((made-result-as-error:ford result.q.hin)) ~> %mean.|.((made-result-as-error:ford result.q.hin))
@ -4494,14 +4454,66 @@
:_ ..^$ :_ ~ :_ ..^$ :_ ~
:* hen %slip %b %drip !> :* hen %slip %b %drip !>
:* %writ ~ :* %writ ~
^- {care case @tas} ^- [care case @tas]
[i.t.tea ;;(case +>:(slay i.t.t.tea)) i.t.t.t.tea] [i.t.tea ;;(case +>:(slay i.t.t.tea)) i.t.t.t.tea]
:: ::
`path`t.t.t.t.tea `path`t.t.t.t.tea
`cage`(result-to-cage:ford build-result.result.q.hin) `cage`(result-to-cage:ford build-result.result.q.hin)
== == == ==
:: ::
?: ?=([%sinks ~] tea)
?> ?=(%public-keys +<.q.hin)
~& 'XXX'
?: ?=(%full -.public-keys-result.q.hin)
!!
?. ?=(%rift -.diff.public-keys-result.q.hin)
[~ ..^$]
~& rift=public-keys-result.q.hin
=/ who who.public-keys-result.q.hin
=/ to-rift to.diff.public-keys-result.q.hin
~& desks=(turn ~(tap by dos.rom.ruf) head)
~& hoy=(turn ~(tap by hoy.ruf) head)
::
?: =(our who)
[~ ..^$]
:: Cancel subscriptions
::
=/ foreign-desk=(unit rung)
(~(get by hoy.ruf) who)
?~ foreign-desk
~& [%never-heard-of-her who]
[~ ..^$]
~& old-rift=rit.u.foreign-desk
?: (gte rit.u.foreign-desk to-rift)
~& 'replaying sunk, so not clearing state'
[~ ..^$]
=/ cancel-ducts=(list duct)
%- zing ^- (list (list duct))
%+ turn ~(tap by rus.u.foreign-desk)
|= [=desk =rede]
^- (list duct) %- zing ^- (list (list duct))
%+ turn ~(tap by qyx.rede)
|= [=wove ducts=(set duct)]
:: ~& [%sunk-wove desk (print-wove wove) ducts]
~(tap in ducts)
=/ cancel-moves=(list move)
%+ turn cancel-ducts
|= =duct
[duct %slip %b %drip !>([%writ ~])]
:: Clear ford cache
::
=/ clear-ford-cache-moves=(list move)
:~ [hen %pass /clear/keep %f %keep 0 1]
[hen %pass /clear/wipe %f %wipe 100]
[hen %pass /clear/kep %f %keep 2.048 64]
==
:: delete local state of foreign desk
::
=. hoy.ruf (~(del by hoy.ruf) who)
[(weld clear-ford-cache-moves cancel-moves) ..^$]
::
?- -.+.q.hin ?- -.+.q.hin
%public-keys ~|([%public-keys-raw tea] !!)
%init-clad %init-clad
~|(%clad-not-real !!) ~|(%clad-not-real !!)
:: ::

View File

@ -297,7 +297,6 @@
[[151 %noun] %k our %sein da+now /(scot %p who)] [[151 %noun] %k our %sein da+now /(scot %p who)]
:: ::
++ init :: initialize ++ init :: initialize
~& [%dill-init our ram]
^+ . ^+ .
=. moz =. moz
:_ moz :_ moz
@ -317,7 +316,6 @@
. .
:: ::
++ mere :: continue init ++ mere :: continue init
~& [%dill-mere our ram]
^+ . ^+ .
=/ myt (flop (fall tem ~)) =/ myt (flop (fall tem ~))
=/ can (clan:title our) =/ can (clan:title our)
@ -551,10 +549,6 @@
=? p.task ?=([%crud %hax-heft ~] p.task) [%heft ~] =? p.task ?=([%crud %hax-heft ~] p.task) [%heft ~]
:: ::
$(hen u.hey.all, wrapped-task p.task) $(hen u.hey.all, wrapped-task p.task)
:: a %sunk notification from %jail comes in on an unfamiliar duct
::
?: ?=(%sunk -.task)
[~ ..^$]
:: a %vega notification on kernel upgrade comes in on an unfamiliar duct :: a %vega notification on kernel upgrade comes in on an unfamiliar duct
:: ::
?: ?=(%vega -.task) ?: ?=(%vega -.task)

View File

@ -6168,12 +6168,6 @@
=^ moves state.ax cancel:this-event =^ moves state.ax cancel:this-event
:: ::
[moves ford-gate] [moves ford-gate]
::
:: %sunk: foreign ship has lost continutity
::
%sunk
::
[~ ford-gate]
:: ::
:: %vega: learn of kernel upgrade :: %vega: learn of kernel upgrade
:: ::

View File

@ -1381,8 +1381,6 @@
:: ::
$init $init
[~ ..^$(sys.mast.all hen)] [~ ..^$(sys.mast.all hen)]
::
$sunk [~ ..^$]
:: ::
$vega [~ ..^$] $vega [~ ..^$]
:: ::

View File

@ -118,7 +118,6 @@
== :: == ::
$: @tas :: $: @tas ::
$% $>(%init vane-task) :: report install $% $>(%init vane-task) :: report install
$>(%sunk vane-task) :: report death
== == == :: == == == ::
:: :: :: ::
+$ sign :: in result $<- +$ sign :: in result $<-
@ -1484,12 +1483,13 @@
%+ weld %+ weld
:: %- flop :: %- flop
^- (list move) ^- (list move)
:~ [hen %slip %a %sunk who rit] ~
[hen %slip %c %sunk who rit] :: :~ [hen %slip %a %sunk who rit]
[hen %slip %d %sunk who rit] :: [hen %slip %c %sunk who rit]
[hen %slip %f %sunk who rit] :: [hen %slip %d %sunk who rit]
[hen %slip %g %sunk who rit] :: [hen %slip %f %sunk who rit]
== :: [hen %slip %g %sunk who rit]
:: ==
moz moz
== ==
:: pon: updated point :: pon: updated point

View File

@ -203,9 +203,6 @@
:: boot completed (XX legacy) :: boot completed (XX legacy)
:: ::
[%init p=ship] [%init p=ship]
:: peer discontinuity
::
[%sunk p=ship q=rift]
:: kernel upgraded :: kernel upgraded
:: ::
[%vega ~] [%vega ~]
@ -393,7 +390,6 @@
$>(%init vane-task) :: report install $>(%init vane-task) :: report install
{$kick p/@da} :: wake up {$kick p/@da} :: wake up
{$nuke p/@p} :: toggle auto-block {$nuke p/@p} :: toggle auto-block
$>(%sunk vane-task) :: report death
$>(%vega vane-task) :: report upgrade $>(%vega vane-task) :: report upgrade
{$wake ~} :: timer activate {$wake ~} :: timer activate
$>(%wegh vane-task) :: report memory $>(%wegh vane-task) :: report memory
@ -628,7 +624,6 @@
{$dirk des/desk} :: mark mount dirty {$dirk des/desk} :: mark mount dirty
{$ogre pot/$@(desk beam)} :: delete mount point {$ogre pot/$@(desk beam)} :: delete mount point
{$perm des/desk pax/path rit/rite} :: change permissions {$perm des/desk pax/path rit/rite} :: change permissions
$>(%sunk vane-task) :: report death
$>(%vega vane-task) :: report upgrade $>(%vega vane-task) :: report upgrade
{$warp wer/ship rif/riff} :: internal file req {$warp wer/ship rif/riff} :: internal file req
{$werp who/ship wer/ship rif/riff} :: external file req {$werp who/ship wer/ship rif/riff} :: external file req
@ -795,7 +790,6 @@
$>(%init vane-task) :: after gall ready $>(%init vane-task) :: after gall ready
{$lyra p/@t q/@t} :: upgrade kernel {$lyra p/@t q/@t} :: upgrade kernel
{$noop ~} :: no operation {$noop ~} :: no operation
$>(%sunk vane-task) :: report death
{$talk p/tank} :: {$talk p/tank} ::
{$text p/tape} :: {$text p/tape} ::
{$veer p/@ta q/path r/@t} :: install vane {$veer p/@ta q/path r/@t} :: install vane
@ -1182,9 +1176,6 @@
:: %kill: stop a build; send on same duct as original %build request :: %kill: stop a build; send on same duct as original %build request
:: ::
[%kill ~] [%kill ~]
:: %sunk: receive a report that a foreign ship has lost continuity
::
$>(%sunk vane-task)
:: %vega: report kernel upgrade :: %vega: report kernel upgrade
:: ::
$>(%vega vane-task) $>(%vega vane-task)
@ -1879,7 +1870,6 @@
$% {$conf p/dock q/culm} :: configure app $% {$conf p/dock q/culm} :: configure app
$>(%init vane-task) :: set owner $>(%init vane-task) :: set owner
{$deal p/sock q/cush} :: full transmission {$deal p/sock q/cush} :: full transmission
$>(%sunk vane-task) :: report death
$>(%vega vane-task) :: report upgrade $>(%vega vane-task) :: report upgrade
$>(%west vane-task) :: network request $>(%west vane-task) :: network request
$>(%wegh vane-task) :: report memory $>(%wegh vane-task) :: report memory