|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
Classes | |
| class | cli_error |
| class | options |
| struct | configuration |
| struct | written_run_manifest |
| struct | resolved_snapshot_export |
Typedefs | |
| using | json = nlohmann::json |
| using | ordered_json = nlohmann::ordered_json |
Enumerations | |
| enum class | cocoon_status |
| enum class | cocoon_status |
Functions | |
| fs::path | repository_root () |
| fs::path | resolved_path (const fs::path &path, const fs::path &relative_root) |
| std::optional< fs::path > | conventional_legacy_inbox () |
| std::string | read_bytes (const fs::path &path, const std::uintmax_t maximum_bytes, const std::string_view description) |
| json | read_json (const fs::path &path, const std::uintmax_t maximum_bytes, const std::string_view description) |
| std::string | utc_now () |
| void | emit (const json &document) |
| std::string | validation_details (const arachnespace::contracts::validation_result &result, const std::string_view description) |
| std::uint64_t | unsigned_value (const json &object, const std::string_view key, const std::uint64_t default_value, const bool positive) |
| std::size_t | size_value (const json &object, const std::string_view key, const std::size_t fallback) |
| const json & | required_object (const json &parent, const std::string_view key) |
| configuration | load_configuration (const fs::path &input_path) |
| std::string | policy_configuration_hash (const configuration &config, const std::string_view section) |
| fs::path | command_path (const std::string &value) |
| bool | path_is_in_protected_legacy (const fs::path &path, const configuration &config) |
| void | atomic_write (const fs::path &destination, const std::string_view bytes, const bool replace) |
| void | write_immutable_exact (const fs::path &destination, const std::string_view bytes, const std::string_view description) |
| ordered_json | envelope_json (const arachne::coordination::envelope_record &envelope) |
| ordered_json | snapshot_json (const arachne::penelope::snapshot_result &snapshot) |
| written_run_manifest | write_graph_run_manifest (const configuration &config, const std::string_view domain_directory, const std::string_view graph_domain, const std::string_view run_id, ordered_json configuration_hashes, ordered_json inputs, const arachne::penelope::snapshot_result &snapshot) |
| ordered_json | issue_json (std::string path, std::string message) |
| bool | path_has_symlink (const fs::path &root, const fs::path &candidate) |
| fs::path | resolve_plan_artifact (const configuration &config, const fs::path &control_path, const std::string_view storage_ref) |
| resolved_snapshot_export | resolve_snapshot_export (const configuration &config, const fs::path &control_path, const arachnespace::contracts::contract_name expected_contract, const std::string_view expected_kind) |
| void | verify_external_source_snapshot (const configuration &config, const json &external_graph) |
| void | verify_product_coverage (const json &external_graph, const json &product_tables) |
| json | parse_embedded_json (const json &row, const std::string_view key, json fallback) |
| json | candidate_tables_for_viewer (const json &tables) |
| json | materialize_jsonl_export (const fs::path &path, const bool candidate) |
| bool | valid_logical_date (const std::string_view value) |
| arachne::ariadne::candidate_configuration | candidate_configuration_from (const configuration &config) |
| int | command_contract_validate (const options &arguments) |
| int | command_intake (const options &arguments) |
| int | command_cocoon_transition (const options &arguments) |
| ordered_json | actor_inbox_issues (const arachne::coordination::operational_ledger &ledger, const fs::path &inbox) |
| int | command_inbox_baseline (const options &arguments) |
| int | command_inbox_verify (const options &arguments) |
| int | command_product_inbox (const bool apply) |
| int | command_product_rebuild_merge_hints () |
| int | command_candidate_rebuild (const options &arguments) |
| int | command_fetch (const options &arguments) |
| std::string | form_encode (const std::string_view value) |
| bool | wikidata_entity_id (const std::string_view value) |
| std::string | join_strings (const std::span< const std::string > values, const std::string_view separator) |
| ordered_json | wikidata_point_fetch_request (const configuration &config, const json &plan, const json &planned, const std::span< const std::string > entities, const std::string &request_id) |
| ordered_json | wikidata_bulk_fetch_request (const json &plan, const json &planned, std::string request_id, std::string locator) |
| int | command_fetch_plan (const options &arguments) |
| int | command_candidate_plan (const options &arguments) |
| int | command_viewer_build (const options &arguments) |
| ordered_json | capabilities () |
| int | dispatch (const std::vector< std::string > &arguments) |
Variables | |
| constexpr std::uintmax_t | maximum_config_bytes = 4U * 1024U * 1024U |
| constexpr std::uintmax_t | maximum_control_bytes = 64U * 1024U * 1024U |
| constexpr std::uintmax_t | maximum_export_bytes = 1024ULL * 1024ULL * 1024ULL |
| std::atomic< std::uint64_t > | temporary_sequence { 0 } |
| using anonymous_namespace{main.cpp}::ordered_json = nlohmann::ordered_json |
|
strong |
Definition at line 14 of file coordinator.hpp.
|
strong |
Definition at line 14 of file coordinator.hpp.
|
nodiscard |
Definition at line 1205 of file main.cpp.
| void anonymous_namespace{main.cpp}::atomic_write | ( | const fs::path & | destination, |
| const std::string_view | bytes, | ||
| const bool | replace ) |
Definition at line 487 of file main.cpp.
References temporary_sequence.
Referenced by write_graph_run_manifest().

|
nodiscard |
Definition at line 1081 of file main.cpp.
References arachne::ariadne::candidate_configuration::gray_bonus_basis_points, and arachne::ariadne::candidate_configuration::quality_weight.
Referenced by command_candidate_plan().

Definition at line 916 of file main.cpp.
|
nodiscard |
Definition at line 2103 of file main.cpp.
| int anonymous_namespace{main.cpp}::command_candidate_plan | ( | const options & | arguments | ) |
Definition at line 1951 of file main.cpp.
References candidate_configuration_from(), path_is_in_protected_legacy(), and utc_now().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_candidate_rebuild | ( | const options & | arguments | ) |
Definition at line 1354 of file main.cpp.
References arachne::penelope::store::replace_candidate_snapshot(), arachnespace::contracts::research_candidate_graph_plan, and arachne::crypto::sha256_file().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_cocoon_transition | ( | const options & | arguments | ) |
Definition at line 1177 of file main.cpp.
Referenced by dispatch().

| int anonymous_namespace{main.cpp}::command_contract_validate | ( | const options & | arguments | ) |
Definition at line 1117 of file main.cpp.
Referenced by dispatch().

| int anonymous_namespace{main.cpp}::command_fetch | ( | const options & | arguments | ) |
Definition at line 1506 of file main.cpp.
References arachne::pheidippides::acquired_artifact_v1::artifact_id, arachne::pheidippides::acquired_artifact_v1::delivered(), arachne::pheidippides::acquired_artifact_v1::error_message, arachne::pheidippides::hardened_transport::execute(), arachne::pheidippides::invalid_request, path_is_in_protected_legacy(), arachne::pheidippides::acquired_artifact_v1::request_id, arachne::pheidippides::acquired_artifact_v1::source_url, and arachne::pheidippides::acquired_artifact_v1::status.
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_fetch_plan | ( | const options & | arguments | ) |
Definition at line 1782 of file main.cpp.
References arachnespace::contracts::fetch_plan, and path_is_in_protected_legacy().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_inbox_baseline | ( | const options & | arguments | ) |
Definition at line 1218 of file main.cpp.
References arachne::coordination::operational_ledger::capture_inbox_baseline().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_inbox_verify | ( | const options & | arguments | ) |
Definition at line 1265 of file main.cpp.
Referenced by dispatch().

| int anonymous_namespace{main.cpp}::command_intake | ( | const options & | arguments | ) |
Definition at line 1154 of file main.cpp.
References arachne::coordination::operational_ledger::intake(), and anonymous_namespace{main.cpp}::configuration::submission_max_bytes.
Referenced by dispatch().


|
nodiscard |
Definition at line 474 of file main.cpp.
References repository_root(), and resolved_path().

| int anonymous_namespace{main.cpp}::command_product_inbox | ( | const bool | apply | ) |
Definition at line 1297 of file main.cpp.
References arachne::penelope::apply_product_inbox(), arachne::penelope::check_product_inbox(), arachne::penelope::inbox_result::ok, and repository_root().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_product_rebuild_merge_hints | ( | ) |
Definition at line 1341 of file main.cpp.
References arachne::penelope::rebuild_product_merge_hints(), and repository_root().
Referenced by dispatch().


| int anonymous_namespace{main.cpp}::command_viewer_build | ( | const options & | arguments | ) |
Definition at line 2025 of file main.cpp.
References utc_now().
Referenced by dispatch().


|
nodiscard |
Definition at line 91 of file main.cpp.
References repository_root().

| int anonymous_namespace{main.cpp}::dispatch | ( | const std::vector< std::string > & | arguments | ) |
Definition at line 2116 of file main.cpp.
References command_candidate_plan(), command_candidate_rebuild(), command_cocoon_transition(), command_contract_validate(), command_fetch(), command_fetch_plan(), command_inbox_baseline(), command_inbox_verify(), command_intake(), command_product_inbox(), command_product_rebuild_merge_hints(), and command_viewer_build().

| void anonymous_namespace{main.cpp}::emit | ( | const json & | document | ) |
|
nodiscard |
Definition at line 560 of file main.cpp.
References arachne::coordination::envelope_record::byte_length, arachne::coordination::envelope_record::envelope_id, arachne::coordination::envelope_record::format_version, arachne::coordination::envelope_record::payload_sha256, arachne::coordination::envelope_record::status, arachne::coordination::envelope_record::submission_ref, and arachne::coordination::envelope_record::title.
|
nodiscard |
Definition at line 1548 of file main.cpp.
|
nodiscard |
|
nodiscard |
|
nodiscard |
Definition at line 323 of file main.cpp.
References repository_root(), and resolved_path().

|
nodiscard |
Definition at line 993 of file main.cpp.
|
nodiscard |
Definition at line 896 of file main.cpp.
|
nodiscard |
Definition at line 698 of file main.cpp.
|
nodiscard |
Definition at line 479 of file main.cpp.
Referenced by command_candidate_plan(), command_fetch(), and command_fetch_plan().

|
nodiscard |
Definition at line 455 of file main.cpp.
References arachne::crypto::sha256().

|
nodiscard |
Definition at line 101 of file main.cpp.
Referenced by write_immutable_exact().

|
nodiscard |
|
nodiscard |
Definition at line 67 of file main.cpp.
Referenced by command_path(), command_product_inbox(), command_product_rebuild_merge_hints(), conventional_legacy_inbox(), and load_configuration().

|
nodiscard |
Definition at line 715 of file main.cpp.
|
nodiscard |
Definition at line 762 of file main.cpp.
References arachne::crypto::sha256_file().

|
nodiscard |
Definition at line 76 of file main.cpp.
Referenced by command_path(), and load_configuration().

|
nodiscard |
|
nodiscard |
Definition at line 579 of file main.cpp.
References arachne::penelope::snapshot_result::activated, arachne::penelope::snapshot_result::applied_inputs, arachne::penelope::snapshot_result::changed, arachne::penelope::snapshot_result::database_sha256, arachne::penelope::snapshot_result::export_sha256, arachne::penelope::snapshot_result::skipped_inputs, and arachne::penelope::snapshot_result::snapshot_id.
|
nodiscard |
Definition at line 252 of file main.cpp.
|
nodiscard |
Definition at line 156 of file main.cpp.
Referenced by command_candidate_plan(), and command_viewer_build().

|
nodiscard |
Definition at line 1056 of file main.cpp.
|
nodiscard |
Definition at line 171 of file main.cpp.
| void anonymous_namespace{main.cpp}::verify_external_source_snapshot | ( | const configuration & | config, |
| const json & | external_graph ) |
Definition at line 836 of file main.cpp.
References arachne::crypto::sha256_file().

| void anonymous_namespace{main.cpp}::verify_product_coverage | ( | const json & | external_graph, |
| const json & | product_tables ) |
Definition at line 859 of file main.cpp.
|
nodiscard |
Definition at line 1698 of file main.cpp.
References arachnespace::contracts::fetch_request.
|
nodiscard |
Definition at line 1566 of file main.cpp.
|
nodiscard |
Definition at line 1588 of file main.cpp.
References arachnespace::contracts::fetch_request, and arachne::crypto::sha256().

|
nodiscard |
Definition at line 601 of file main.cpp.
References atomic_write(), maximum_control_bytes, and arachne::crypto::sha256_file().

| void anonymous_namespace{main.cpp}::write_immutable_exact | ( | const fs::path & | destination, |
| const std::string_view | bytes, | ||
| const std::string_view | description ) |
Definition at line 539 of file main.cpp.
References maximum_control_bytes, and read_bytes().

|
constexpr |
|
constexpr |
Definition at line 50 of file main.cpp.
Referenced by write_graph_run_manifest(), and write_immutable_exact().
|
constexpr |
| std::atomic< std::uint64_t > anonymous_namespace{main.cpp}::temporary_sequence { 0 } |