rhi

Coordinated trade for connected markets
git clone https://radroots.dev/git/rhi.git
Log | Files | Refs | README | LICENSE

presence_publication.v1.json (5300B)


      1 {
      2   "schema": "radroots.rhi.presence-publication",
      3   "schema_version": 1,
      4   "contract_version": 1,
      5   "step": 205,
      6   "service": "rhi",
      7   "construction": {
      8     "desired_state": "exact_committed_presence_desired_generation",
      9     "profile_plan": "typed_radroots_event_authored_profile",
     10     "application_handler_plan": "typed_radroots_nostr_application_handler_cross_checked_with_radroots_event_plan",
     11     "identity": "decrypted_identity_bound_to_current_service_public_key",
     12     "authored_time": "caller_injected_whole_unix_seconds",
     13     "entropy": "caller_injected_for_signing_only",
     14     "validation_input": "sealed_documents_and_public_desired_authority_only",
     15     "independent_validation": [
     16       "nip01_bounded_parse",
     17       "event_id",
     18       "signature",
     19       "author",
     20       "kind",
     21       "authored_time",
     22       "ordered_tags",
     23       "exact_content"
     24     ]
     25   },
     26   "documents": [
     27     {
     28       "document_kind": "service_profile",
     29       "nostr_kind": 0,
     30       "tags": [],
     31       "content": {
     32         "name": "rhi",
     33         "display_name": "Radroots RHI",
     34         "about": "Radroots evidence reconciliation and attestation service",
     35         "bot": true
     36       }
     37     },
     38     {
     39       "document_kind": "application_handler",
     40       "nostr_kind": 31990,
     41       "tags": [["d", "rhi"], ["k", "3441"]],
     42       "content": {
     43         "name": "Radroots RHI",
     44         "about": "Radroots evidence reconciliation and attestation service"
     45       }
     46     }
     47   ],
     48   "durable_workflow": {
     49     "schema_version": 10,
     50     "outbox_table": "presence_outbox",
     51     "target_table": "presence_targets",
     52     "attempt_table": "presence_attempts",
     53     "write_classes": {
     54       "presence_outbox": "compare_and_swap",
     55       "presence_targets": "compare_and_swap",
     56       "presence_attempts": "append_only"
     57     },
     58     "exact_signed_bytes_committed_before_io": true,
     59     "target_submitted_committed_before_io": true,
     60     "remote_io_inside_sql_transaction": false,
     61     "outbox_states": ["pending", "leased", "complete", "blocked", "superseded"],
     62     "target_states": ["pending", "submitted", "accepted", "rejected", "rate_limited", "auth_required", "failed", "unknown"],
     63     "attempt_outcomes": ["accepted", "rejected", "rate_limited", "auth_required", "failed", "unknown"],
     64     "commit_outcome_unknown": "caller_retains_sealed_exact_bytes_and_rereads_exact_identity_before_retry",
     65     "cancelled_or_expired_submitted": "durably_record_unknown_then_retry_same_exact_bytes",
     66     "desired_generation_change": "reject_unexpired_stale_lease_then_record_expired_submitted_as_unknown_and_supersede_without_retry_entropy"
     67   },
     68   "resource_bounds": {
     69     "maximum_signed_event_bytes": 32768,
     70     "maximum_targets_per_document": 32,
     71     "maximum_attempts_per_target": 100,
     72     "maximum_authored_unix_seconds": 9223372036854775807,
     73     "initial_backoff_milliseconds": 250,
     74     "maximum_backoff_milliseconds": 30000,
     75     "attempt_deadline_milliseconds": 15000,
     76     "maximum_unix_milliseconds": 9223372036854775807
     77   },
     78   "reference_vector": {
     79     "secret_key_fixture": "0101010101010101010101010101010101010101010101010101010101010101",
     80     "service_public_key": "1b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f",
     81     "authored_at_unix_s": 1725000100,
     82     "profile": {
     83       "event_id": "90dea82b6b86799ae2936a256bd08158fa37a0f4f1e34c4061c652bc3492aad7",
     84       "exact_signed_event_sha256": "f627a73ae309da87889cf5a636ddd06d9ea6bb879da972572928fe4940d885d2",
     85       "exact_signed_event_json": "{\"id\":\"90dea82b6b86799ae2936a256bd08158fa37a0f4f1e34c4061c652bc3492aad7\",\"pubkey\":\"1b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f\",\"created_at\":1725000100,\"kind\":0,\"tags\":[],\"content\":\"{\\\"name\\\":\\\"rhi\\\",\\\"display_name\\\":\\\"Radroots RHI\\\",\\\"about\\\":\\\"Radroots evidence reconciliation and attestation service\\\",\\\"bot\\\":true}\",\"sig\":\"abee71a0dd9fdfb04821964f701d9d27e5198c0b7f85c9ff2b13d88b5c844ee6a296dd60d37827327e9267a79a1aa401029049778523add3f991ddefbf447d92\"}"
     86     },
     87     "application_handler": {
     88       "event_id": "a8a2897ca4aee8a57888b5df1251d2b8cd486c7d9e9d02d25b50c8a79e9a5278",
     89       "exact_signed_event_sha256": "6d32dd2e70368406696a8ec447bbe9d6083a75f9144b3ca1371758d2373247d4",
     90       "exact_signed_event_json": "{\"id\":\"a8a2897ca4aee8a57888b5df1251d2b8cd486c7d9e9d02d25b50c8a79e9a5278\",\"pubkey\":\"1b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f\",\"created_at\":1725000100,\"kind\":31990,\"tags\":[[\"d\",\"rhi\"],[\"k\",\"3441\"]],\"content\":\"{\\\"name\\\":\\\"Radroots RHI\\\",\\\"about\\\":\\\"Radroots evidence reconciliation and attestation service\\\"}\",\"sig\":\"eda18aa5589b9fafbdb70c72093e1e25125af5d1ec017c984f01cea785e005b6f652519d3fac8f6a30a8705def1d0f8f87fcee08188004c835807fa29eb764d0\"}"
     91     }
     92   },
     93   "effects": {
     94     "sqlite": "typed_repository_transactions_only",
     95     "network": "injected_exact_presence_sink_only",
     96     "clock": "injected",
     97     "entropy": "injected",
     98     "filesystem": false,
     99     "task_spawn": false,
    100     "ambient_process_state": false
    101   },
    102   "deferred": [
    103     "service_runtime_task_ownership",
    104     "unix_admin_routes",
    105     "status_and_metrics_projection",
    106     "process_supervision",
    107     "rcld_promotion",
    108     "parent_pin_alignment",
    109     "nix",
    110     "oci",
    111     "signing",
    112     "publication",
    113     "deployment"
    114   ]
    115 }