Fail closed on invalid Glas profiles
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a028de-e2c8-7732-8521-46a7fc5db82f
This commit is contained in:
parent
561538c95e
commit
b933cf52c8
12 changed files with 455 additions and 9 deletions
|
|
@ -162,6 +162,27 @@ A well-formed but *unknown* profile is still caught by the execution-side Glas
|
|||
resolver rather than at emission. That residual gap is accepted and recorded in
|
||||
ACT-ADR-006; closing it needs a scoped glas-harness API, not a local catalogue.
|
||||
|
||||
Task-emitting rules declare the selector and optional attribution refs on the
|
||||
action; instructions use the same fields at instruction level:
|
||||
|
||||
```yaml
|
||||
action:
|
||||
task_template: Run controlled maintenance
|
||||
harness_profile_ref: harness.agent-dev@1.0.0
|
||||
approach_hint: legacy-definition-match
|
||||
execution_refs:
|
||||
correlation_id: context.request.correlation_id
|
||||
goal_refs: [context.request.goal_ref]
|
||||
```
|
||||
|
||||
File sync validates every declared profile structurally and rejects malformed
|
||||
or unversioned refs. `emit_tasks` repeats that validation across the complete
|
||||
batch before opening the database or IssueSink. A profile policy failure is a
|
||||
non-retryable activity error; no earlier item in that batch is emitted. Only the
|
||||
allowlisted attribution keys are carried to the queue.
|
||||
|
||||
`ACTIVITY_CORE_REQUIRE_HARNESS_PROFILE=true` makes a missing profile ref an
|
||||
error. It stays off during coexistence while definitions adopt refs one at a
|
||||
time; turn it on once no caller depends on `approach_hint` for routing.
|
||||
error both during file sync and emission. Deterministic report-only
|
||||
instructions are exempt because they create no execution request. The flag
|
||||
stays off during coexistence while definitions adopt refs one at a time; turn it
|
||||
on once no caller depends on `approach_hint` for routing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue