Inspect a contextual signal offline
Use umbriq-signal inspect to check one existing contextual-signal JSON document and read a structural summary. This command does not classify text. It does not authenticate the producer, verify freshness, make a policy decision or activate a customer task.
The walkthrough uses authorized source access to the UMBRIQ source repository at revision a418fe85c8266966937f72c670d66e1fa4a10744. Source availability establishes no deployed service, public repository access, published binary download or package-registry release. The examples below use only the repository's synthetic fixtures.
1. Build with the existing toolchain
This walkthrough uses Windows, PowerShell 7 and Go 1.26.9. Start at the pinned checkout root with the required Go modules already cached. Replace <existing-owned-directory> in each command with the same absolute directory you own; use an output path that contains no binary you need to preserve. The build can replace that output file. It uses the local toolchain and refuses dependency downloads. If the cache is incomplete, stop and obtain the approved dependencies through your source-access process.
$env:GOTOOLCHAIN = 'local'
$env:GOPROXY = 'off'
$env:GOSUMDB = 'off'
go build -mod=readonly -o '<existing-owned-directory>/umbriq-signal.exe' ./cmd/umbriq-signal
Check $LASTEXITCODE immediately after the command. Continue only when it is 0. The build creates a local executable; it does not install or start a service.
2. Inspect a known synthetic signal
From the checkout root, pipe the positive fixture into the executable. The pipe closes standard input when the file ends. The executable also runs outside the checkout: supply the full path to your input file, or copy the fixture files with the same relative directory layout.
Get-Content -Raw -LiteralPath 'contracts/fixtures/contextual-signal/positive-complete-with-labels.json' |
& '<existing-owned-directory>/umbriq-signal.exe' inspect
Expected result: exit 0, empty standard error, and this single JSON line on standard output:
{"inspection":"structural_only","signal_contract_version":"1.0.0","task_id":"contextual_data_classification_v1","task_spec_version":"1.1.0","coverage":"complete","label_count":1,"observation_count":1,"unrecognized_label_count":0}
- Coverage
- The input's validated coverage value.
complete is not an independent assessment of protection. - Label and observation counts
label_count counts recognized label entries; observation_count sums their reported observations. unrecognized_label_count keeps the supplied unknown-label count separate.- Structural inspection
- A valid document, including complete coverage with zero labels, is not proof that content is clean. The summary grants no release, policy or customer-data authority.
3. Recognize a refused input
This synthetic negative fixture carries a tenant field that the observational signal contract does not permit. Run it separately from the positive example:
Get-Content -Raw -LiteralPath 'contracts/fixtures/contextual-signal/negative-signal-carries-a-tenant.json' |
& '<existing-owned-directory>/umbriq-signal.exe' inspect
Expected result: $LASTEXITCODE is 1, standard output is empty, and standard error is umbriq-signal: invalid contextual signal. Correct the producing document or use a compatible source revision, then inspect again. Do not replace a refusal with a clean result or strip fields from an authentic record merely to make it pass.
Input and recovery limits
Supply exactly one first-release contextual-signal JSON document, then close standard input. The inclusive limit is 2,097,152 bytes (2 MiB), including whitespace. A task request, signed result envelope or raw prompt is a different input. The command refuses malformed, duplicate, unknown, mismatched, oversized and trailing input; expected task version and vocabulary come from the compiled source. An exit of 1 can also mean an input/output failure, and 2 means invalid arguments. --help prints usage and exits 0, without inspecting a signal.
Keep this walkthrough synthetic. The summary prints contract identifiers, coverage and counts, without echoing raw input, label names, detector revisions or timestamps. Local validation does not establish a connected result plane, trained customer task, deployment, detection quality or rights to process customer data.
Inspect the exact source
Run these read-only commands in the authorized UMBRIQ checkout containing the pinned revision.
- Command usage and limits
git show a418fe85c8266966937f72c670d66e1fa4a10744:cmd/umbriq-signal/README.md - Inspector implementation
git show a418fe85c8266966937f72c670d66e1fa4a10744:cmd/umbriq-signal/main.go - Synthetic positive input
git show a418fe85c8266966937f72c670d66e1fa4a10744:contracts/fixtures/contextual-signal/positive-complete-with-labels.json - Synthetic refusal input
git show a418fe85c8266966937f72c670d66e1fa4a10744:contracts/fixtures/contextual-signal/negative-signal-carries-a-tenant.json
Back to UMBRIQ prerequisites