Return to Work IR

Work IR operations and checks

Connect executable work to its intent, prerequisites, and observed outcomes.

Work within Engine

Work IR describes how an agreed LMIR specification becomes operations on a particular software system. Operations retain the constraints they serve, their source targets, and the checks required to assess the outcome.

Work IR’s operation schema, execution mechanism, and recovery rules are still being defined.

From constraints to operations

A specification states the required behaviour. Work IR connects it to a set of actions against a particular system. Each action needs an intended effect, a resolved target, the assumptions under which it is valid, and an observation that can establish its outcome.

A plan may include inspection, a source transformation, test creation, verification, and a request for human judgment. These operations produce different kinds of results. Their outputs need explicit roles so a later operation can depend on evidence, an artifact, or an approved decision rather than a prose assertion that a step is complete.

The representation should preserve why the work exists. An edit without a constraint reference loses its connection to the agreed outcome. A constraint without any operation or check reveals a gap in the plan.

Operation contract

InformationPurpose
Target and expected source stateIdentify the affected object and detect stale plans
Preconditions and authorityDescribe what must be true and what permission is needed
DependenciesIdentify required outputs from earlier operations
Intended effectState the change the operation should produce
Constraint referencesTrace the operation to agreed intent
Checks and outcomesRecord how success, failure, or incomplete work is observed

An operation’s existence does not authorize its execution. Authority must be checked at the environment boundary.

Dependencies and execution boundaries

Dependencies describe the information or effects an operation requires. Independent inspections may proceed concurrently. An edit must wait for its target and necessary decisions. A check must observe the artifact produced by the work it evaluates. The dependency graph makes these relationships inspectable.

Execution also needs resource and authority boundaries. Operations against the same mutable object may conflict even when they have different constraint references. A runner must account for shared state, source revisions, and permissions before scheduling them.

A valid plan can become invalid while waiting. Another actor may edit the target, revoke permission, or change an agreed requirement. Preconditions need to be checked at execution time. Re-resolving a target should retain the reason the original operation was prepared and identify any changed assumptions.

Effects and observations

An intended effect describes what should happen. An execution record describes what was attempted and what the environment reported. Verification supplies evidence about the resulting state. Keeping all three allows an actor to distinguish an accepted command, a partial effect, and a verified outcome.

Observations should identify the artifact or environment revision and the constraints they address. A test suite can establish the cases it covers. Structural analysis can establish supported relationships. A human review can assess a decision that has no sufficient automated observation. A work record should preserve the limits of each result.

Example: implement the login guard

This worked plan uses the C1–C5 constraints from the LMIR example. It is a proposed plan, not an execution record.

OperationDepends onConstraint referencesRequired result
W1: resolve login targetCurrent software modelC1–C5Source-backed entrypoint and authentication handler
W2: insert the guardW1 and resolved counting/storage decisionsC1–C4Guard runs before authentication against the expected revision
W3: add checksW1, W2C1–C5Tests cover identity, count, rejection, reset, and existing authentication
W4: verifyW2, W3C1–C5Observations are recorded against each constraint

If W1 cannot resolve the entrypoint, W2 cannot proceed. If source changes invalidate the target, resolve it again before editing. If W4 fails, preserve the failed observation and identify the constraints and operations requiring revision.

Failure and recovery

A work record needs to distinguish a rejected precondition, a partial edit, a failed check, and an interrupted execution. Retrying an operation requires an account of which effects already occurred. Rollback, idempotence, and cancellation are open parts of the execution contract.

Verification needs the resulting artifact and actual observation. A status labelled “done” supplies neither on its own.

Revising and resuming work

A failed observation should invalidate the dependent conclusions while retaining unaffected evidence. If a guard uses the wrong counting scope, the scope decision and its dependent edit need revision. If the target moved, software resolution needs to run again. If a check is incomplete, the verification strategy needs more evidence.

Resuming after interruption requires knowing which operations started, which effects occurred, and which results remain current. An operation with external effects may need reconciliation before retrying. Cancellation needs to distinguish preventing future actions from undoing effects that already occurred.

A recovery policy must also describe when to stop and seek a decision. Repeated failure, conflicting constraints, or authority outside the approved scope should not silently expand the plan. These contracts are part of the execution research, rather than guarantees supplied by an operation list.

Shared work across actors

Explicit operations allow different actors to inspect and contribute to the same plan. One actor can resolve a target, another can implement a bounded change, and a verifier can evaluate the resulting artifact. Each needs a current view of dependencies, authority, and observations.

Argent supplies coordination records for projects, sessions, tasks, and resources. Work IR addresses the semantics of an operation and its relationship to intent. Connecting those concerns requires a defined contract; a coordination task marked complete cannot establish that the associated constraint was satisfied.

Evaluation

Evaluate plans under stale source state, interrupted execution, partial effects, failed verification, and competing actors. Record whether the system preserves evidence, prevents dependent work from proceeding on invalid assumptions, and identifies what must change before resumption.

A successful run should demonstrate more than a final patch. It should connect the agreed intent, authorized operations, resulting artifact, and observed outcomes in an account a person can inspect.

Further reading