main.gu
fn main() -> Int:
let args_list = args()
let headers: Map[Text, Text] = {}
match read_text("notes.txt"):
Ok(text):
print(text)
Err(problem):
print(file_error_code(problem))
match http_request_bytes("GET", args_list[0], headers, bytes_from_text(""), 1000):
Ok(response):
print("fetched")
Err(problem):
print(http_error_code(problem))
return 0
guion.toml
[project]
name = "notes"
version = "0.1.0"
entry = "main.gu"
[network]
hosts = ["api.example.test"]
report (schema_version 1, captured with guion 0.1.0 (artifact format 61, timezone data 2026c))
{
"analysis_scope": "reachable direct calls and parallel_map worker functions; host effects are categorized from bytecode operations",
"artifact_format": 61,
"capability_claim": "static_bytecode_reachability_not_sandbox",
"clock_grant": {
"grant_model": "wall-clock reads are denied unless explicitly enabled",
"local_date_uses_host_process_time_zone": true,
"manifest_key": "[clock].enabled",
"required_for_entry": false,
"run_option": "guion run --allow-clock"
},
"entry": "main",
"functions": {
"main": {
"calls": [],
"direct_effects": [
"filesystem.read",
"network.http",
"output.write",
"process.arguments"
],
"effects": [
"filesystem.read",
"network.http",
"output.write",
"process.arguments"
],
"entry_reachable": true
}
},
"grant_assessment": {
"caller_cli_grants": "not_supplied_to_inspect",
"clock_read": "not_required",
"filesystem_read": "unknown_external_runner",
"filesystem_write": "not_required",
"network_http": "present_but_target_dynamic"
},
"kind": "guion_inspection_report",
"manifest_grants": {
"clock_enabled": false,
"network_hosts": [
"api.example.test"
],
"process_commands": [],
"provenance": "guion.toml",
"socket_bind": [],
"socket_connect": []
},
"network_grant": {
"grant_model": "exact hostname; network access is denied when no grant is present",
"manifest_key": "[network].hosts",
"required_for_entry": true,
"run_option": "guion run --allow-http-host HOST",
"runtime_supplied_urls_require_an_explicit_hostname_grant": true
},
"process_grant": {
"grant_model": "exact command name; every command is denied when no grant is present; no shell, cleared environment, timeout and output caps apply",
"manifest_key": "[process].commands",
"required_for_entry": false,
"run_option": "guion run --allow-command NAME"
},
"python_calls": [],
"required_effects": [
"filesystem.read",
"network.http",
"output.write",
"process.arguments"
],
"schema_version": 1,
"socket_grant": {
"grant_model": "exact host and port (or host:*); connecting, sending datagrams and binding are denied without a matching entry; every call has a timeout and size cap",
"manifest_key": "[sockets].connect / [sockets].bind",
"required_for_entry": false,
"run_option": "guion run --allow-connect HOST:PORT --allow-bind HOST:PORT"
},
"source": "main.gu"
}