Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Published `tepp-interpretation-run-lookup-request get` mints `GET /v1/interpretation-runs/by-run-id/{interpretation_run_id}/request` onto spawned `tepp-orchestrator-loopback` TCP (ADR 0098). Dual identity of stored-request CLI (`idempotency_key`). Empty stdin admitted. Public bind/`localhost`/`http` origin/unpublished consumer/credential flags fail closed. `scientific_authority` remains false. Does not infer causality. Naruon and LineageWeave refused. `NaruonLiveService` stays POST-only. Does not re-open cancel lineages. Not GAP-010 Figma/export, not persistence.
1 change: 1 addition & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TEPP's approved PRD v0.4 and implementation plan are the primary product baselin
| Interpretation-run lookup GET doctoring | [`docs/research/interpretation-run-lookup-http.md`](docs/research/interpretation-run-lookup-http.md) |
| Interpretation-run lookup CLI doctoring | [`docs/research/interpretation-run-lookup-cli.md`](docs/research/interpretation-run-lookup-cli.md) |
| Interpretation-run lookup stored-request GET doctoring | [`docs/research/interpretation-run-lookup-stored-request-http.md`](docs/research/interpretation-run-lookup-stored-request-http.md) |
| Interpretation-run lookup stored-request CLI doctoring | [`docs/research/interpretation-run-lookup-stored-request-cli.md`](docs/research/interpretation-run-lookup-stored-request-cli.md) |
| UML/runtime/scientific flows | [`docs/UML.md`](docs/UML.md) |
| Logical/physical ERD | [`docs/ERD.md`](docs/ERD.md) |
| Security policy | [`SECURITY.md`](SECURITY.md) |
Expand Down
6 changes: 6 additions & 0 deletions crates/orchestrator_live/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ path = "src/bin/tepp_interpretation_run_lookup.rs"
test = false
bench = false

[[bin]]
name = "tepp-interpretation-run-lookup-request"
path = "src/bin/tepp_interpretation_run_lookup_request.rs"
test = false
bench = false

[lints]
workspace = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//! Operator CLI for loopback contextual-orchestrator lookup stored-request GET.

use std::io::{self, IsTerminal};
use std::process::ExitCode;

use orchestrator_live::{
InterpretationRunLookupStoredRequestCliInvocation, OrchestratorLiveError,
execute_interpretation_run_lookup_stored_request_cli,
read_interpretation_run_lookup_stored_request_cli_stdin,
render_interpretation_run_lookup_stored_request_cli_stdout,
};

fn main() -> ExitCode {
match run() {
Ok(()) => ExitCode::SUCCESS,
Err(_) => ExitCode::FAILURE,
}
}

fn run() -> Result<(), OrchestratorLiveError> {
let args: Vec<String> = std::env::args().skip(1).collect();
match args.first().map(String::as_str) {
Some("get") => run_get(&args),
_ => Err(OrchestratorLiveError::InvalidWirePayload),
}
}

fn run_get(args: &[String]) -> Result<(), OrchestratorLiveError> {
let body = read_interpretation_run_lookup_stored_request_cli_stdin(
io::stdin().is_terminal(),
io::stdin(),
)?;
let invocation = InterpretationRunLookupStoredRequestCliInvocation::from_args(args, body)?;
let response = execute_interpretation_run_lookup_stored_request_cli(&invocation)?;
let stdout =
render_interpretation_run_lookup_stored_request_cli_stdout(&invocation, &response)?;
println!("{stdout}");
Ok(())
}
Loading
Loading