Repository navigation
Conversation
… floor A row reads to a reader only when every source its words came from reads to that reader. The row carries the list of those sources (its floor), written once in the write that gives it its words, so a read meets them without walking the lineage (Fable design pass 30, section 4; READ-LINEAGE L1 = L3 = A, the lead 17 Nov 02:0x; E1 = E4 = A). This is #9289's floor cut onto main alone (Engine TASK 21 Nov 04:31): the sources main holds are source-audience policies (a mailbox, a shared mail thread). The phone-reach stack adds a phone thread as a second kind through this same floor. - source_audience/floor.rs (new): sealed_source, a reserved id that names no source; floor_source_in (E4: by lookup); row_sources_in, one level: the walk's lineage, the source dependency index, the birth's inputs of every role, a carried summary, and a CLAIM's supports as attestations (one free attestation frees, else all bind); raise_floors_in_txn, which only grows and repeats until no floor grows; facts_hidden_source_unknown_in. - Write hooks: the batch apply (every put and birth, and the end of each PartOf, DerivedFrom or Supports edge), the Vault birth doors stamp_birth_with_floor_in_txn and _if_absent (13 direct birth sites), a replicated birth, and the dependency index and the doors that register dependencies with the vault in hand. add_derived_policies_in_txn loses its sync gate. - A row whose birth names an input this vault erased is born sealed (#9289 review r1 P1), as is a row whose lineage does not read. - Read: the source-audience walk already honours a stored floor before any walk (Judge::open), so a row learnt from a mailbox reads only to that mailbox's readers, and a sealed row to no one, the owner included. - Admission, the strictest reading until the owner answers the OUTSIDER-REACH-FAMILY card (the Engine, 21 Nov 04:30): SourceReaders::OwnSourceReaders, the one default SOURCE_READERS that the floor read matches on: a policy reads to its own people only. - Doctor: VaultDoctorReport.facts_hidden_source_unknown, the count behind "N facts hidden: source unknown" (READ-LINEAGE-L3 = A). - Ported from #8609 as they are: store::birth_record::input_rows_in_txn and Vault::lineage_word_sources_in. Stored change: keep (new entries in an existing table today's reader already honours; a row born before reads as before). No verb. Tests (read_lineage_floor): a_claim_born_from_a_mailbox_row_reads_only_to_the_mailboxs_readers, a_reader_named_by_no_policy_reads_none_of_the_claims_learnt_from_a_mailbox (the measured C3 case), a_claim_born_from_an_erased_row_is_sealed, a_floor_holds_every_policy_the_walk_meets, doctor_counts_the_facts_a_source_unknown_hides.
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Warning Review limit reached
This review includes 31 billable files and costs up to $7.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 53 minutes for your next included review. View limit details
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A row reads to a reader only when every source its words came from reads
to that reader. The row carries the list of those sources (its floor),
written once in the write that gives it its words, so a read meets them
without walking the lineage (Fable design pass 30, section 4; READ-LINEAGE
L1 = L3 = A, the lead 17 Nov 02:0x; E1 = E4 = A). This is #9289's floor cut
onto main alone (Engine TASK 21 Nov 04:31): the sources main holds are
source-audience policies (a mailbox, a shared mail thread). The phone-reach
stack adds a phone thread as a second kind through this same floor.
no source; floor_source_in (E4: by lookup); row_sources_in, one level: the
walk's lineage, the source dependency index, the birth's inputs of every
role, a carried summary, and a CLAIM's supports as attestations (one free
attestation frees, else all bind); raise_floors_in_txn, which only grows
and repeats until no floor grows; facts_hidden_source_unknown_in.
PartOf, DerivedFrom or Supports edge), the Vault birth doors
stamp_birth_with_floor_in_txn and _if_absent (13 direct birth sites), a
replicated birth, and the dependency index and the doors that register
dependencies with the vault in hand. add_derived_policies_in_txn loses
its sync gate.
(feat(source_audience): a derived row carries its sources' floor (READ-LINEAGE L1) #9289 review r1 P1), as is a row whose lineage does not read.
walk (Judge::open), so a row learnt from a mailbox reads only to that
mailbox's readers, and a sealed row to no one, the owner included.
OUTSIDER-REACH-FAMILY card (the Engine, 21 Nov 04:30):
SourceReaders::OwnSourceReaders, the one default SOURCE_READERS that the
floor read matches on: a policy reads to its own people only.
"N facts hidden: source unknown" (READ-LINEAGE-L3 = A).
Vault::lineage_word_sources_in.
Stored change: keep (new entries in an existing table today's reader
already honours; a row born before reads as before). No verb.
Tests (
RUSTFLAGS="--cfg oneiron_test_support" cargo test --locked -p oneiron --all-features --test read_lineage_floor)a_claim_born_from_a_mailbox_row_reads_only_to_the_mailboxs_readers: a stranger does not read a CLAIM whose birth alone names a bound mail row; the mailbox's reader does.a_reader_named_by_no_policy_reads_none_of_the_claims_learnt_from_a_mailbox: the measured C3 case (OPUS-LINEAGE-MEASURE, 21 Nov 04:22: under the walk alone a reader named by no policy read all 5,000). 50 CLAIMs born from the mailbox's row by birth input alone: the stranger reads 0, the reader reads 50.a_claim_born_from_an_erased_row_is_sealed(feat(source_audience): a derived row carries its sources' floor (READ-LINEAGE L1) #9289 review r1 P1).a_floor_holds_every_policy_the_walk_meetsanddoctor_counts_the_facts_a_source_unknown_hides(green only: they need this PR's test door and doctor field).opus-unbuilt-b1b/read-lineage-floor-main-red1(9479c9e, the first three tests on main a4da017). Green:-pin1(this head).Relation to #9289
#9289 is the same floor on the phone-reach stack (base #8667), with the phone thread as a second source kind. Whichever lands first, the other is reworked: after this lands, #9289 keeps only the phone arm (FloorSource::Thread, the phone-thread conjunct, hook 4).
Known limits (as #9289's body lists them, mail only)