← Files Computable Systems EngineeringARCHIVED FILE

docs/behavior-review.md

10.7 KB · Dec 3, 2026 · 18:30 UTC

↓ Download file

# Selecting a bounded behavior check

Use the project's question to select an existing CSE check. Record what a result
can establish before interpreting it. Narrative task entry/completion fields and
scenario walks remain documentary. Parsing a native action, state or transition
does not give it executable CSE semantics. A diagram is a view of that model.

| Question | Existing representation / engine | Evidence and interpretation |
|---|---|---|
| Is selected task/support/ownership information retained? | Native identities plus selected documentary profiles; concept-review. | Supplied sources and separate scope. Coverage, not behavior. |
| Does a sampled response meet an always/within/until clause? | Native subject/attributes and CSE-REQ/2.0; existing language monitor. | Independent obligation manifest, exact clock, model-bound finite observations and completeness. Only observed samples; missing/pending/limits cannot pass a required check. |
| Does each distinct request receive its response by a bound? | Native in/out event occurrences, String correlation identity and CSE-EVENT/2.0; existing event monitor. | Model-bound events, capture horizon/completeness and independent manifest. Distinct IDs stay distinct; the deadline is inclusive. This does not prove reliable storage or physical task completion. |
| Are bounded obligations jointly satisfiable, or can a finite scenario complete? | Explicitly authored version-2 finite contract; existing finite verifier. | Finite properties, typed predicates, atomic steps, declared external changes and analysis caps. Satisfiability is not reactive realizability; a completion path is not progress under every scheduler. No implicit translation from SysML/prose. |
| Is a proposed available configuration adequate under declared rates? | Native-bound cseInquiry, existing conditional inquiry. | Source-bound assumptions, units, demand, capability and shared-resource constraints. A conditional calculation, not observed capacity. |
| Will arbitrary concurrent native SysML behavior execute correctly? | General native state/action execution is unsupported. | Select a supported narrower question or plan a separately scoped extension; do not substitute a successful parse or sampled trace. |

For new SysML work, read [the native profile](sysml-v2-profile.md), including
unsupported forms. Preserve the authoritative model and independent expected
obligations. The [language](requirements-language-v1.md), [event](sysml-v2-profile.md)
and [finite-verifier](verifier-v2.md) contracts define exact engine meanings.
Synthetic evidence demonstrates checker behavior; capture completeness, sensor
meaning, operating conditions and correspondence to reality need actual evidence.

## Worked native mapping

The [return-recording fixture](../examples/behavior-review/concept.sysml) proposes
an item-specific four-minute bound. Its [source brief](../examples/behavior-review/brief.md)
and [separate manifest](../examples/behavior-review/manifest.json) retain the proposed
question and obligation; this example does not introduce a real project threshold.

| Engineering meaning | Explicit native/profile mapping |
|---|---|
| Boundary | ReturnRecording::desk, a ReturnDesk part usage. |
| Start observation | Its input event returnAccepted, with a String correlationId. This is an observation boundary, not an inferred task-activation guard. |
| Completion observation | Its output event conditionRecorded with the same ID. The event name alone does not prove inspection quality or persistence. |
| Proposed obligation | R_RECORD / recordingTime, source SYN-RETURN-1, CSE-EVENT/2.0 within 4 minutes. |
| Reviewed evidence | Model digest, event paths/IDs, exact times, observed_until and complete. Synthetic fixture only. |
| Counterexamples | Late/mismatched/missing item response; one receipt for two returns. |
| Unresolved/refused | Pending capture, no trigger, missing evidence/manifest, stale bytes, budget limit, omitted obligation and unsupported timing/profile. |

Run through any existing drafting launcher, for example:

```text
python3 skills/develop-system-concept/scripts/cse.py check examples/behavior-review/concept.sysml --manifest examples/behavior-review/manifest.json --evidence examples/behavior-review/synthetic-evidence.json --review --json
```

The finite verifier remains independently available for an explicitly authored
finite model; it is not a second automatically maintained concept model or a
claimed general SysML statechart compiler. A future native execution adapter
would need an explicit supported semantic subset, correspondence evidence and
concurrency/control tests before it could support stronger claims.

## Discover the sampled-trace input contract

For a directly authored language-version-1 sampled trace, inspect the existing
monitor's exact input shapes before constructing its JSON:

```text
python3 scripts/sampled_trace.py schema
python3 scripts/sampled_trace.py trace TRACE.json --scope RETAINED_SCOPE.json --scope-sha256 RETAINED_SCOPE_BYTE_SHA256
```

The schema command returns interface help and a generic, incomplete example with
`status: not_run`. It supplies no project requirement, observation or selected
engineering meaning. Use the existing authored declarations and controlled
sentences, then supply actual observations. Actors map to empty objects;
properties require an explicit `owner` of `input` or `controlled`; Boolean type
is `bool`; requirements map stable IDs to strings; and clock periods are exact
decimal **strings**, including `"1"`. The [language contract](requirements-language-v1.md)
defines supported clauses, property types and finite-sample meanings. Native
SysML work should continue through its existing model-bound check route rather
than maintain a second manually inferred contract.

The scope file is the existing independent language manifest, exactly
`{"version": 1, "required": ["R_ID", "R_OTHER"]}` with the retained obligation
IDs. Its raw-byte SHA-256 must come from the independently retained scope, not
from a newly narrowed view or candidate. An optional `--document-sha256` binds
the trace to previously retained bytes. This is distinct from a native SysML
manifest with `expected` entries carrying IDs, source and constraint names.
Keep native manifests on the native check route. A separately governed adapter
may retain that original manifest and map **every** expected ID into a language
scope, pinning both files; this helper never guesses that mapping or drops IDs.
The adapter checks each supplied file's
size (at most 4 MiB), UTF-8 JSON and optional/required digests, rejects duplicate
keys, then calls the unchanged language monitor. It does not fill missing
owners, convert arrays into requirement maps, coerce numeric clocks, synthesize
observations, or relax obligations. Keep source annotations separately from the
strict monitor document.

The returned input binding identifies the exact supplied document/scope bytes.
Missing obligations, no exercised trigger, incomplete samples and pending
responses retain the monitor's non-success status. Malformed or stale inputs
produce an error; failed observations retain their counterexample. These hashes
detect drift relative to retained values, not authenticated acceptance or
independent protection against a caller who controls both a scope and its pin.
This wrapper checks supplied observations only, not arbitrary implementation
correctness or the completeness of a source-to-obligation inventory.

## Historical method boundary

Harel's 1987 paper identifies hierarchy, concurrency and communication as distinct
statechart extensions. Its author-institution [abstract](https://weizmann.elsevierpure.com/en/publications/statecharts-a-visual-formalism-for-complex-systems/)
was checked; full statechart/SysML execution equivalence is not established here.
Sargent's 1998 engineering-conference [paper](https://www.informs-sim.org/wsc98papers/016.PDF),
pp. 121–123 and 128–129, distinguishes conceptual-model, implementation, data
and operational validity and ties validation to the intended application. CSE
uses those distinctions to bound claims, not to declare a concept validated by
running tests. This increment adds a native worked mapping and controls using
existing engines; it adds no behavior interpreter or task-network simulator.

## Executed prototype and repeated trace studies

For defined local application mechanisms, use the existing [prototype
verification workflow](prototype-evaluation.md). It binds source artifacts,
transaction capture, observer meanings and selected obligations. A separate
observation adapter does not implement native actions or validate the complete
system. The reference application's per-work-order reservation ownership,
production identity/cache revocation, external backup recovery and physical
media erasure remain outside its supported claims. Select a concrete requirement
and observation boundary before extending any of those behaviors.

Repeated traces for the same native obligation/model configuration can use the
existing `check` route with separate cases:

```text
python3 skills/develop-system-concept/scripts/cse.py check MODEL.sysml --manifest MANIFEST.json --manifest-sha256 RETAINED_BYTE_DIGEST --evidence-case NORMAL=NORMAL.json --evidence-case FAULT=FAULT.json
```

This optional batch accepts 1..32 explicit model paths and 1..64 trace cases.
It captures regular bounded model/manifest/evidence files, retains the manifest
byte digest and reuses native parser extraction only within that process-local
call. Each trace still goes through the existing compiler and sampled/event
monitor with its normal scope, counterexample, completeness and analysis limits.
The manifest digest is required; single-trace options and draft-shape mode cannot
be mixed into a batch. Output is JSON and any required non-success exits nonzero.

The checker/bridge/parser and library source bytes are fingerprinted before and
after the batch, along with the inputs. Drift makes **all batch results unusable**,
even if provisional per-case reports contain passes. No persistent cache or
unchecked external parsed inventory is accepted. Failed/unknown/unsupported cases
cannot be hidden by other successful cases. This checks local byte consistency,
not authenticated execution, operating-system/Java integrity or source truth.
Batch processing does not upgrade authored observations to prototype evidence;
use the prototype wrapper for its additional capture/artifact correspondence.

The synthetic batch tests reproduce the exact existing single-trace reports for
pass, failure, incomplete capture and stale input. A nine-case study of retained
actual prototype observations used one native parse and eight reuses while
preserving all eight fault verdicts. That is measured parser-call reduction for
this configuration, not a promised timing, memory or token saving.

SHA-256: b4e0fbb3a4bda61c453c77ed0f33dc2adb6bcb327743e8c967d43f4465e45365