Files
stack/scripts/hello.sh
T
rocko 4bdc7e0e86 processing: inspectable per-run stop seam for lifecycle fire
Unify halt and fire cancellation by verified run identity with durable first-owner receipts and shared deadlines. Integrate the instance control with the current host, library and tester-socket paths. Focused nine-file evidence is 62 passing tests; broad suites, mutants and review remain pending.
2026-10-21 22:42:12 -05:00

26 lines
908 B
Bash
Executable File

#!/usr/bin/env bash
# Run the mosaic-agent service as a one-shot container and print the
# model response for the exact startup verification request.
#
# The request deliberately does NOT contain the expected marker
# MOSAIC_HELLO_OK. Only the model response is printed to stdout; no
# credentials or unrelated runtime data are printed.
set -euo pipefail
cd "$(dirname "$0")/.."
# shellcheck source=common.sh
source scripts/common.sh
load_config
load_release
bootstrap_runtime_dir
processing_guard
ensure_release_aligned
# -T: no pseudo-TTY, so stdout is clean model output.
# </dev/null: detach stdin. Pi's print mode reads piped stdin until EOF;
# an interactive terminal would otherwise block it forever. The request
# text comes from the compose command, not stdin, so nothing is lost.
# Errors, if any, go to stderr for diagnostics.
node packages/processing-control/src/container-cli.mjs < /dev/null