You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
agent: add cron-based trigger for scheduled agent runs #313
component/dispatchWorkflow dispatch and triggerscomponent/harnessAgent harness, config, and skills loadingfeatureFeature-category issue awaiting human prioritizationpriority/mediumNormal priority, plan for next cycletriagedTriaged but awaiting human prioritizationtype/ideaExploratory idea or new problem area
Agents can only be triggered by event-driven mechanisms (e.g. issue comments, webhooks). There is no way to run an agent on a recurring schedule.
What should happen
Harness definitions should support a cron-based trigger so agents can run on a schedule (e.g. daily, weekly). The immediate use case is running the scribe agent (#149) once a day, but this would also enable future patterns like:
Pinging people where attention is needed
Re-assessing prioritization based on external data sources
Filed by @ralphbean, who appears to be an internal team member (dogfooding), not a strategic customer. No strategic customers (konflux-ci, openkaiden, guacsec) have requested scheduled agent runs. The feature would eventually benefit all platform users by enabling new automation patterns, but current demand is internal only.
Impact
1
This is an additive capability — it enables new patterns (daily secretarial agents, periodic summaries) but does not fix a broken workflow or unblock anyone. Users can still trigger agents via events today. The improvement is noticeable but not urgent.
Confidence
0.5
The issue is reasonably well-described with clear use cases and linked related issues (#149, #76, #150). However, it is labeled 'type/idea' indicating it is still exploratory, and there is no concrete customer demand signal or milestone assigned. Uncertainty remains around the design scope and actual user demand.
Effort
1.5
Implementing cron-based triggers requires designing the scheduling mechanism, integrating it into the harness definition format, and ensuring reliable execution infrastructure. This touches multiple components (harness config, trigger system, agent runner) and involves some design work, but the scope is bounded by the existing trigger architecture (#76).
Agents can only be triggered by event-driven mechanisms. There is no way to define a recurring schedule in harness definitions for periodic agent runs.
Analysis
This remains a well-scoped feature request with clear, validated demand:
Scenario: Cron trigger validation and execution
- Define a harness with cron trigger (e.g., "0 9 * * 1-5")
- Verify cron expression is validated at config load time
- Verify invalid expressions produce clear, actionable errors
- Verify the dispatch system schedules runs correctly
- Verify multiple cron-triggered agents operate independently
- Verify cron triggers coexist with event-driven triggers
- Verify cron-triggered agents receive org/repo context without issue/PR payload
Previous run
Triage Summary
Category: Feature request · Severity: Medium
Problem
Agents can only be triggered by event-driven mechanisms. There is no way to define a recurring schedule in harness definitions for periodic agent runs.
Analysis
This is a well-scoped feature request with clear use cases: the scribe agent (#149, now closed) was the initial consumer, and #150 (weekly summaries) and #2004 (staleness alerts) would also benefit. Notably, fullsend-ai/agents#442 already references the scribe agent running on a cron schedule, which suggests some cron infrastructure may already be in place.
The broader trigger mechanism design (#76) is still open, but that tracks a wider design question. Cron triggers can be implemented as a specific trigger type within whatever architecture is chosen.
Recommended Approach
Add a schedule/cron trigger type to the harness definition schema
Implement scheduling in the dispatch system using GitHub Actions schedule events or an equivalent mechanism
Validate cron expressions at config load time with clear error messages
Scenario: Cron trigger validation and execution
- Define a harness with cron trigger (e.g., "0 9 * * 1-5")
- Verify cron expression is validated at config load time
- Verify invalid expressions produce clear errors
- Verify the dispatch system schedules runs at the correct time
- Verify multiple cron-triggered agents operate independently
Labels: Issue already has appropriate type/idea and component/dispatch labels; adding component/harness since the feature requires harness definition schema changes, and priority/medium given the clear use cases but no urgent customer demand.
Relevant to this issue: Automated stale issue triage was discussed as a concrete use case for the cron-based trigger capability this issue proposes. The team identified this as needing further technical definition before implementation.
Use case: cron event triggers in the cell system would enable automated identification of stale issues, supporting timed triage workflows
Open questions: how to define stale criteria, how to integrate cron events with the dispatch system, and how to structure pollers without overloading the system
Status: needs further discussion — technical definition is incomplete
I think there are two different kinds of scheduled agent run hiding in this issue:
A scheduled singleton run: “run this scribe or summary agent every night.”
Scheduled entity discovery: “every night, find each issue matching some policy and run this agent once for each one.”
The second case matters for BYOA. For example, an agent author may want one agent to run when an issue is opened and then periodically reconsider old issues so obsolete work, duplicates, and stale classifications do not accumulate indefinitely. fullsend-ai/agents#1137 is the first concrete consumer we have for that shape.
The reason to distinguish these is that CEL can route an event, but it cannot discover work. A harness trigger only sees the normalized event placed in front of it; it cannot enumerate 2,000 GitHub issues, calculate which ones are old enough, or maintain a durable cooldown so the same issue is not dispatched every night.
I think the author-facing contract could keep those concerns separate while colocating them in the harness:
The names are illustrative, but the division of responsibility would be:
schedule controls discovery: when to scan and which concrete entities become events.
trigger controls routing: whether this harness wants each resulting normalized event.
The platform owns pagination, rate limits, authorization, deduplication/cooldown, and concurrency.
The agent owns the semantic decision about what should happen to the issue.
That gives us a flow like:
cron
↓
forge work-item enumerator
├─ finds matching entities
├─ suppresses recently processed entities
└─ emits one NormalizedEvent per entity
↓
fullsend dispatch
↓
harness CEL trigger
↓
agent run
For GitHub, this implies some kind of issue poller/enumerator even though GitHub normally gives us webhooks. The scheduler itself does not have an issue payload, and the normalized-event contract already says a schedule driver must resolve a real entity rather than emit a missing or synthetic one. The poller is therefore what turns a repository-level clock tick into entity-level normalized events.
We may also need a new forge-neutral transition kind. source.system == "schedule" tells us why the event exists, but the current transition vocabulary still requires us to say what happened to the entity. Nothing actually changed on the issue. Something like reconsidered seems closer to the semantics than scheduled: scheduling is provenance, while reconsideration is the lifecycle signal being delivered to the agent. This is worth settling as part of the contract rather than having each scheduled agent overload updated differently.
There is also an efficiency question once multiple BYOA agents declare similar schedules. I would like the harness to remain self-contained from the author's perspective, but we probably should not perform one complete GitHub backlog scan per agent. If we like this shape, fullsend could compile compatible harness schedules into a shared poll operation and fan each resulting event through normal CEL dispatch.
So I think #313 should cover both singleton scheduled runs and scheduled entity discovery. The latter includes the harness schedule/selection schema, forge entity enumeration, normalized event semantics, and dispatch cooldown. Once that UX is decided, those implementation pieces could become sub-issues under this one. agents#1137 can remain the consumer that defines what periodic triage does after an aged issue reaches the agent.
@ralphbean if the aim of the scheduler is to scan for entities that need handling and convert them into CEL-processible events, how is that different from the poll architecture we had already defined (other then the driver being aimed at GitHub rather then Jira or GitLab)? What is the purpose of putting schedule details in the Harness?
As I see it:
For kind 1 agents we should manufacture synthetic events providing a rich enough scheduling subset
For kind 2 agents we should also manufacture synthetic events to indicate things like staleness
Ipcha mistabra — our current event-centric approach may be the limiting factor
The current model was arrived at by generalizing the GitHub-event-specific approach we had before. The poll-driver concept was then added to bridge systems with static entity collections, such as Jira, into that event-oriented model.
This may be forcing two different concepts into the same abstraction:
An event that provides new information about an entity.
The entity being in a state that requires attention from a harness.
Today, poll drivers translate the latter into the former by reconstructing or manufacturing events. That creates several problems:
Loss of fidelity. A generic event such as “issue updated” may not capture the condition a harness actually cares about. For example, periodic triage may need to determine whether there has been meaningful activity since the most recent triage-agent response, rather than simply measuring time since the issue’s latest general update.
Expensive event reconstruction. If harness A responds to an /fs-a comment and harness B responds to /fs-b, a poll driver may need to inspect every comment since its checkpoint, not merely the latest comment or current issue state. It is unclear whether all current drivers preserve complete event streams correctly in these cases.
Inefficient generic polling. A source-wide poll driver may examine many entities and kinds of activity that no enabled harness needs. For example, it may repeatedly inspect issues even when no issue-oriented harness is enabled.
Concurrency and coordination. If harness X is already handling entity Y, discovery must not start another concurrent run for the same harness and entity. This should align with the serialized, coalesced follow-up model proposed in docs(adr): serialize agent runs and coalesce subsequent events #6909 rather than relying only on workflow-level cancellation.
Missed transitions. Checkpoint gaps, bounded history windows, or incomplete event reconstruction can permanently skip an event. An entity may nevertheless remain in a state that requires attention, but an event-only predicate may never be evaluated again against that outstanding condition.
An alternative worth considering is to focus the harness contract on entities rather than requiring every condition to be expressed as a newly delivered event.
Each harness would still have a single CEL predicate. The predicate could inspect:
the resolved entity, including relevant history and processing state;
the event that prompted evaluation, when one exists; or
both.
When evaluation is initiated by scheduled discovery, the event may be null.
For example, instead of expressing:
Was the current event the posting of an /fs-fix comment by an authorized actor?
a harness could express:
Does this entity contain an /fs-fix comment by an authorized actor that this harness has not handled yet?
This does not eliminate event inspection or actor-based conditions. Comments, reviews, and other activity in the normalized entity representation would retain their actors and stable identities. A predicate could still inspect the prompting event when its precise transition matters, while expressing durable conditions over entity history when appropriate.
Events would then become a low-latency optimization for entity discovery and reevaluation:
When an event arrives, Fullsend resolves the affected entity and evaluates relevant harness predicates immediately, with both the event and entity available.
During scheduled polling, Fullsend discovers candidate entities and evaluates the same predicates with no prompting event.
Provider queries, timestamps, webhooks, and checkpoints can narrow the candidate set, but the resolved entity and the harness’s processing state determine whether work is actually required.
Conceptually:
incoming event ──────────────┐
├─ resolve entity and relevant history
scheduled entity discovery ──┘
↓
evaluate the harness's CEL predicate
with entity + optional event
↓
fullsend run
This suggests introducing a forge-neutral entity contract, derived where possible from the existing NormalizedEvent.entity and NormalizedEvent.state structures.
We should determine whether extending those existing structures is sufficient before introducing entirely separate types. If a distinct identity type is needed, a NormalizedEntityID could uniquely identify entities across systems and be used consistently in NormalizedEvent, entity resolution, processing receipts, and run serialization.
A normalized entity would need to represent more than a snapshot of title, labels, and status. It may also need bounded or queryable activity history—such as comments and reviews with their actors and stable IDs—and enough per-harness processing state to express whether relevant activity has already been handled.
Each harness could define one or more entity sources. An entity source would name a provider driver and, where appropriate, a provider-specific query. Internally, it would provide operations along these lines:
Enumerate the identities of candidate entities matching the source query.
Accept a NormalizedEntityID and resolve the corresponding normalized entity, provided it still matches the source query.
Fetch the history or projections required to evaluate the harness predicate efficiently.
fullsend run could accept a NormalizedEntityID or a NormalizedEvent. When given an event, it would derive the entity identity from it. The entity source would then resolve the authoritative entity context used for CEL evaluation and agent execution.
A general poll workflow could operate similarly to the existing dispatch workflow:
Inspect enabled harnesses and their entity sources.
Combine compatible provider queries into shared poll operations where possible.
Resolve each candidate entity once.
Evaluate the relevant harness predicates.
Launch processing for each matching harness and entity.
The author-facing configuration could remain self-contained in the harness without requiring one complete GitHub backlog scan per harness. Internally, Fullsend could compile compatible entity sources into shared provider operations while preserving separate predicates and per-harness processing state.
This approach has several open design questions:
Portability versus efficiency: Provider-native query languages offer efficient server-side filtering, but require different syntax for GitHub, GitLab, Jira, and other entity sources.
History requirements: How does a harness declare which comments, reviews, changes, or other history its predicate requires? How much history is materialized for CEL, and how is it bounded?
Processing receipts: What exactly means “handled”? Is it recorded against an activity ID, an entity revision, a predicate result, or a harness-defined checkpoint?
State ownership: Where is per-harness processing state stored, and how is it updated atomically with scheduling or completion?
Authorization: How are historical activity actors represented and authorized? When a prompting event exists, how is its authorization context combined with the resolved entity history?
Concurrency: Stable entity identity should participate in the harness-plus-subject serialization model from docs(adr): serialize agent runs and coalesce subsequent events #6909, ensuring that one harness does not process the same entity concurrently and that later activity can be coalesced safely.
Nullable events: The CEL contract must define which event fields are available and how expressions guard access when evaluation was initiated without an event.
Shared discovery: How can Fullsend combine compatible entity sources without coupling harness predicates or incorrectly sharing their processing checkpoints?
Singleton scheduled runs: Agents such as nightly summary or scribe agents may not naturally target an existing forge entity. We still need to define the execution subject and context for those runs rather than forcing them into the entity-discovery model.
Under this framing, #313 would cover both scheduled singleton runs and scheduled entity discovery. The latter would include the harness entity-source schema, entity resolution, normalized entity semantics, optional event context, per-harness processing receipts, shared polling, and run coordination.
ADR 0063 describes the existing change-reconstruction polling model. This proposal would revise or extend that model so harnesses can express durable entity conditions that work efficiently in both event-driven and polling contexts. agents#1137 remains the first concrete consumer defining what periodic reconsideration should do once an eligible aged issue reaches the agent.
This kind of thing I think creates "magic" behind the scenes - how precisely does that work?
I was trying to explain this in #6909 but basically if you look at GH-AW they have several possible answers to this that one can choose from; the framework is expressive enough to let you decide on parallelism and coordination via multiple mechanisms.
There's another consumer for scheduled runs, different from scribe and the summaries. It's a scheduled run whose job is to create work items for agents to pick up.
The case. One fix is often needed on several release branches. In #2961 the issue listed seven affected branches and triage found all of them, but the code agent fixed one and a person opened PRs for the rest by hand. The vulnerability design in #9266 (draft) handles this by opening one ticket per maintained branch, so each branch gets its own ordinary agent run.
Something has to create those tickets, and a trigger on the original item isn't enough, because the set of branches changes on its own. When a new release branch starts being maintained, every open case needs a ticket for it (#9266 expects this). No event lands on any of those cases, so only a scheduled run can do it.
What it needs from this issue
Its writes have to be safe to repeat. The next run should find the ticket it already made, keyed by case and branch, instead of opening a duplicate. That includes a create that timed out and may or may not have gone through, which docs(adr): define control-repository saga journals #9264 (draft) is about.
Its output has to start the next step without an event. On Jira a ticket created by the poller's own account starts nothing today, and a label set at creation isn't recorded as a label change (Triage should skip work items that belong to the cve agent agents#1967). With entity-based discovery (ADR 0098) the new tickets are found by their state instead. So the two kinds of scheduled run from Ralph's comment hand off through the tickets themselves, and I think that's a reason to design them together here.
It needs a limit across the whole case, not just per ticket, so a wrong mapping can't open tickets without bound. ADR 0106 already notes that rate, cost or loop circuit breakers are still needed.
On the open question of what a singleton run targets, this one is naturally about the repository and its branch mapping. That might be an argument for the repository entity kind that S4 mentions in #8559.
@ascerra I had a similar thought last week as I was thinking about a refactor agent that would periodically scan the code and make re-factoring suggestions.
I think the entity to look at in this case is a branch.
component/dispatchWorkflow dispatch and triggerscomponent/harnessAgent harness, config, and skills loadingfeatureFeature-category issue awaiting human prioritizationpriority/mediumNormal priority, plan for next cycletriagedTriaged but awaiting human prioritizationtype/ideaExploratory idea or new problem area
Activity
fullsend-ai-triage commentedon May 5, 2026
RICE Priority Score: 0.33
Score breakdown
Formula: (1 × 1 × 0.5) / 1.5 = 0.33
fullsend-ai-triage commentedon Jun 8, 2026
🤖 Triage · Started 3:29 PM UTC
Commit:
d0ac11b· View workflow run →fullsend-ai-triage commentedon Jun 8, 2026
Triage Summary
Category: Feature request · Severity: Medium
Problem
Agents can only be triggered by event-driven mechanisms. There is no way to define a recurring schedule in harness definitions for periodic agent runs.
Analysis
This remains a well-scoped feature request with clear, validated demand:
Recommended Approach
schedule/crontrigger type to the harness definition schemascheduleevents or equivalent per-forge mechanism)Proposed Test Case
Previous run
Triage Summary
Category: Feature request · Severity: Medium
Problem
Agents can only be triggered by event-driven mechanisms. There is no way to define a recurring schedule in harness definitions for periodic agent runs.
Analysis
This is a well-scoped feature request with clear use cases: the scribe agent (#149, now closed) was the initial consumer, and #150 (weekly summaries) and #2004 (staleness alerts) would also benefit. Notably, fullsend-ai/agents#442 already references the scribe agent running on a cron schedule, which suggests some cron infrastructure may already be in place.
The broader trigger mechanism design (#76) is still open, but that tracks a wider design question. Cron triggers can be implemented as a specific trigger type within whatever architecture is chosen.
Recommended Approach
schedule/crontrigger type to the harness definition schemascheduleevents or an equivalent mechanismProposed Test Case
Labels: Issue already has appropriate type/idea and component/dispatch labels; adding component/harness since the feature requires harness definition schema changes, and priority/medium given the clear use cases but no urgent customer demand.
fullsend-ai-triage commentedon Jun 8, 2026
🤖 Finished Triage · ✅ Success · Started 3:29 PM UTC · Completed 3:32 PM UTC
Commit:
d0ac11b· View workflow run →fullsend-ai-triage commentedon Jul 24, 2026
🤖 Finished Triage · ✅ Success · Started 6:43 PM UTC · Completed 6:46 PM UTC
Commit:
77aa0d4· View workflow run →fullsend-ai-triage commentedon Aug 18, 2026
Meeting update — 2026-08-18
Relevant to this issue: Automated stale issue triage was discussed as a concrete use case for the cron-based trigger capability this issue proposes. The team identified this as needing further technical definition before implementation.
Unresolved: Stale criteria definition, cron-to-dispatch integration design, and poller architecture constraints
Meeting notes
ralphbean commentedon Sep 2, 2026
I think there are two different kinds of scheduled agent run hiding in this issue:
The second case matters for BYOA. For example, an agent author may want one agent to run when an issue is opened and then periodically reconsider old issues so obsolete work, duplicates, and stale classifications do not accumulate indefinitely. fullsend-ai/agents#1137 is the first concrete consumer we have for that shape.
The reason to distinguish these is that CEL can route an event, but it cannot discover work. A harness trigger only sees the normalized event placed in front of it; it cannot enumerate 2,000 GitHub issues, calculate which ones are old enough, or maintain a durable cooldown so the same issue is not dispatched every night.
I think the author-facing contract could keep those concerns separate while colocating them in the harness:
The names are illustrative, but the division of responsibility would be:
schedulecontrols discovery: when to scan and which concrete entities become events.triggercontrols routing: whether this harness wants each resulting normalized event.That gives us a flow like:
For GitHub, this implies some kind of issue poller/enumerator even though GitHub normally gives us webhooks. The scheduler itself does not have an issue payload, and the normalized-event contract already says a schedule driver must resolve a real entity rather than emit a missing or synthetic one. The poller is therefore what turns a repository-level clock tick into entity-level normalized events.
We may also need a new forge-neutral transition kind.
source.system == "schedule"tells us why the event exists, but the current transition vocabulary still requires us to say what happened to the entity. Nothing actually changed on the issue. Something likereconsideredseems closer to the semantics thanscheduled: scheduling is provenance, while reconsideration is the lifecycle signal being delivered to the agent. This is worth settling as part of the contract rather than having each scheduled agent overloadupdateddifferently.There is also an efficiency question once multiple BYOA agents declare similar schedules. I would like the harness to remain self-contained from the author's perspective, but we probably should not perform one complete GitHub backlog scan per agent. If we like this shape, fullsend could compile compatible harness schedules into a shared poll operation and fan each resulting event through normal CEL dispatch.
So I think #313 should cover both singleton scheduled runs and scheduled entity discovery. The latter includes the harness schedule/selection schema, forge entity enumeration, normalized event semantics, and dispatch cooldown. Once that UX is decided, those implementation pieces could become sub-issues under this one. agents#1137 can remain the consumer that defines what periodic triage does after an aged issue reaches the agent.
ifireball commentedon Sep 3, 2026
@ralphbean if the aim of the scheduler is to scan for entities that need handling and convert them into CEL-processible events, how is that different from the poll architecture we had already defined (other then the driver being aimed at GitHub rather then Jira or GitLab)? What is the purpose of putting schedule details in the Harness?
As I see it:
ifireball commentedon Sep 3, 2026
Ipcha mistabra — our current event-centric approach may be the limiting factor
The current model was arrived at by generalizing the GitHub-event-specific approach we had before. The poll-driver concept was then added to bridge systems with static entity collections, such as Jira, into that event-oriented model.
This may be forcing two different concepts into the same abstraction:
Today, poll drivers translate the latter into the former by reconstructing or manufacturing events. That creates several problems:
Loss of fidelity. A generic event such as “issue updated” may not capture the condition a harness actually cares about. For example, periodic triage may need to determine whether there has been meaningful activity since the most recent triage-agent response, rather than simply measuring time since the issue’s latest general update.
Expensive event reconstruction. If harness A responds to an
/fs-acomment and harness B responds to/fs-b, a poll driver may need to inspect every comment since its checkpoint, not merely the latest comment or current issue state. It is unclear whether all current drivers preserve complete event streams correctly in these cases.Inefficient generic polling. A source-wide poll driver may examine many entities and kinds of activity that no enabled harness needs. For example, it may repeatedly inspect issues even when no issue-oriented harness is enabled.
Concurrency and coordination. If harness X is already handling entity Y, discovery must not start another concurrent run for the same harness and entity. This should align with the serialized, coalesced follow-up model proposed in docs(adr): serialize agent runs and coalesce subsequent events #6909 rather than relying only on workflow-level cancellation.
Missed transitions. Checkpoint gaps, bounded history windows, or incomplete event reconstruction can permanently skip an event. An entity may nevertheless remain in a state that requires attention, but an event-only predicate may never be evaluated again against that outstanding condition.
An alternative worth considering is to focus the harness contract on entities rather than requiring every condition to be expressed as a newly delivered event.
Each harness would still have a single CEL predicate. The predicate could inspect:
When evaluation is initiated by scheduled discovery, the event may be null.
For example, instead of expressing:
a harness could express:
This does not eliminate event inspection or actor-based conditions. Comments, reviews, and other activity in the normalized entity representation would retain their actors and stable identities. A predicate could still inspect the prompting event when its precise transition matters, while expressing durable conditions over entity history when appropriate.
Events would then become a low-latency optimization for entity discovery and reevaluation:
Conceptually:
This suggests introducing a forge-neutral entity contract, derived where possible from the existing
NormalizedEvent.entityandNormalizedEvent.statestructures.We should determine whether extending those existing structures is sufficient before introducing entirely separate types. If a distinct identity type is needed, a
NormalizedEntityIDcould uniquely identify entities across systems and be used consistently inNormalizedEvent, entity resolution, processing receipts, and run serialization.A normalized entity would need to represent more than a snapshot of title, labels, and status. It may also need bounded or queryable activity history—such as comments and reviews with their actors and stable IDs—and enough per-harness processing state to express whether relevant activity has already been handled.
Each harness could define one or more entity sources. An entity source would name a provider driver and, where appropriate, a provider-specific query. Internally, it would provide operations along these lines:
NormalizedEntityIDand resolve the corresponding normalized entity, provided it still matches the source query.fullsend runcould accept aNormalizedEntityIDor aNormalizedEvent. When given an event, it would derive the entity identity from it. The entity source would then resolve the authoritative entity context used for CEL evaluation and agent execution.A general poll workflow could operate similarly to the existing dispatch workflow:
The author-facing configuration could remain self-contained in the harness without requiring one complete GitHub backlog scan per harness. Internally, Fullsend could compile compatible entity sources into shared provider operations while preserving separate predicates and per-harness processing state.
This approach has several open design questions:
Portability versus efficiency: Provider-native query languages offer efficient server-side filtering, but require different syntax for GitHub, GitLab, Jira, and other entity sources.
History requirements: How does a harness declare which comments, reviews, changes, or other history its predicate requires? How much history is materialized for CEL, and how is it bounded?
Processing receipts: What exactly means “handled”? Is it recorded against an activity ID, an entity revision, a predicate result, or a harness-defined checkpoint?
State ownership: Where is per-harness processing state stored, and how is it updated atomically with scheduling or completion?
Authorization: How are historical activity actors represented and authorized? When a prompting event exists, how is its authorization context combined with the resolved entity history?
Concurrency: Stable entity identity should participate in the harness-plus-subject serialization model from docs(adr): serialize agent runs and coalesce subsequent events #6909, ensuring that one harness does not process the same entity concurrently and that later activity can be coalesced safely.
Nullable events: The CEL contract must define which event fields are available and how expressions guard access when evaluation was initiated without an event.
Shared discovery: How can Fullsend combine compatible entity sources without coupling harness predicates or incorrectly sharing their processing checkpoints?
Singleton scheduled runs: Agents such as nightly summary or scribe agents may not naturally target an existing forge entity. We still need to define the execution subject and context for those runs rather than forcing them into the entity-discovery model.
Under this framing, #313 would cover both scheduled singleton runs and scheduled entity discovery. The latter would include the harness entity-source schema, entity resolution, normalized entity semantics, optional event context, per-harness processing receipts, shared polling, and run coordination.
ADR 0063 describes the existing change-reconstruction polling model. This proposal would revise or extend that model so harnesses can express durable entity conditions that work efficiently in both event-driven and polling contexts. agents#1137 remains the first concrete consumer defining what periodic reconsideration should do once an eligible aged issue reaches the agent.
cgwalters commentedon Sep 10, 2026
This kind of thing I think creates "magic" behind the scenes - how precisely does that work?
I was trying to explain this in #6909 but basically if you look at GH-AW they have several possible answers to this that one can choose from; the framework is expressive enough to let you decide on parallelism and coordination via multiple mechanisms.
ascerra commentedon Nov 15, 2026
There's another consumer for scheduled runs, different from scribe and the summaries. It's a scheduled run whose job is to create work items for agents to pick up.
The case. One fix is often needed on several release branches. In #2961 the issue listed seven affected branches and triage found all of them, but the code agent fixed one and a person opened PRs for the rest by hand. The vulnerability design in #9266 (draft) handles this by opening one ticket per maintained branch, so each branch gets its own ordinary agent run.
Something has to create those tickets, and a trigger on the original item isn't enough, because the set of branches changes on its own. When a new release branch starts being maintained, every open case needs a ticket for it (#9266 expects this). No event lands on any of those cases, so only a scheduled run can do it.
What it needs from this issue
On the open question of what a singleton run targets, this one is naturally about the repository and its branch mapping. That might be an argument for the repository entity kind that S4 mentions in #8559.
ifireball commentedon Nov 15, 2026
@ascerra I had a similar thought last week as I was thinking about a refactor agent that would periodically scan the code and make re-factoring suggestions.
I think the entity to look at in this case is a branch.