record_operating_event
Atomically stage or promote one event occurrence's stable ID and mutable anchor fact. Use this for every fact named by an event rule; scalar writes are rejected to prevent mixed IDs/deadlines. If evidence is required, the first call returns candidate fact IDs. Bind evidence to each evidence-gated candidate, then retry with identical source and validity inputs; both facts become canonical in one transaction. Prerequisite: authenticated active organization access plus every prerequisite stated above. Canonicality: invokes the shared backend action; trust the returned actual_tool_output and context_engineering instead of adding a state-recovery call. Idempotency: obey the tool-specific retry key or guarantee; if none is stated, inspect refreshed state before retrying. Confirmation boundary: no additional confirmation is needed for this read, reversible save, explicit fact/evidence record, link preparation, plan refresh, or action pre-authorized by a standing founder-configured policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | Exact event-recurring ruleId returned by resolve_company_plan. | |
| companyId | No | corply_companies.id. May be omitted only when the active organization has exactly one company. | |
| expiresAt | No | ||
| itemLimit | Yes | Maximum items returned per actionable/blocked/waiting section. | |
| sourceRef | Yes | Stable reference reused unchanged when promoting staged candidates. | |
| subjectId | No | Required for subject-scoped event rules; omitted for company rules. | |
| confidence | No | ||
| provenance | No | ||
| sourceType | Yes | ||
| trustLevel | No | ||
| anchorValue | Yes | Typed value for the rule's recurrence.anchorFact. | |
| effectiveTo | No | ||
| occurrenceId | Yes | Stable episode identity, never a mutable date, boolean, or label. | |
| effectiveFrom | No | ||
| questionLimit | Yes | Maximum targeted missing-fact questions returned. | |
| _corply_context | No | Echo context_engineering.context_session from the prior Corply result. | |
| confirmationKind | Yes | none | |
| evidenceEventIds | No | ||
| sourceObservedAt | No | Required for expiring evidence-backed event facts. |