lastlight-workflow-engine 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,6 +53,27 @@ export interface ExecutorConfig {
53
53
  variant?: string;
54
54
  /** Path to agent context directory. */
55
55
  agentContextDir?: string;
56
+ /**
57
+ * The run's already-composed agent context — the body of the `AGENTS.md` the
58
+ * sandbox hands the agent as system context (persona + hard rules).
59
+ *
60
+ * The seam exists because agent-context is resolved LAYER-WISE and a run may
61
+ * carry an extra, per-run layer the module-level loader knows nothing about:
62
+ * the target repo's own `.lastlight/agent-context/*.md` (issue #180). The
63
+ * runner composes the text ONCE off that run's asset resolver and threads it
64
+ * here, so both delivery paths — the host-shared backends' workspace write and
65
+ * the kubernetes per-run init-fetch channel — serve the same bytes.
66
+ *
67
+ * **Security-critical.** The value MUST come from a resolver built with
68
+ * `agentContextAdditiveOnly: true` for the repo layer, which is what stops a
69
+ * managed repo neutering the operator's `security.md` / `rules.md` by
70
+ * committing a file of the same name. Consumers use this value as-is and never
71
+ * re-compose it.
72
+ *
73
+ * Absent (every run without a repo layer) ⇒ consumers fall back to the
74
+ * module-level loader exactly as they always did.
75
+ */
76
+ agentContext?: string;
56
77
  /** Directory for persistent state. */
57
78
  stateDir?: string;
58
79
  /** Directory for agent sandboxes (cloned repos). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastlight-workflow-engine",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nearform/lastlight.git",