Skip to main content

WorkGraph Example

This example models a Homecore-style situation where incoming information, calendar context, and routine automation produce shared durable work.

Scenario

A calendar event says L is taking A to the dentist on May 20. A strongly prefers car P. A new maintenance update says car P is in the workshop. A needs preparation for irregularities, so L should receive a reminder the day before the appointment. WorkGraph does not infer the family policy. The agent reasons about the data, then records the durable commitment and dependencies. The standard persistent host grants the default namespace, so every call in this example uses default. An embedding host may use homecore instead only if it issues that exact namespace in the session’s WorkGraphNamespaceGrant.

1. Create The Work Items

The reminder item should not be ready until transport details are verified.

3. Ask WorkGraph What Is Ready

The agent does not inspect blocker counts itself. It works from the ready list returned by WorkGraph.

4. Claim, Act, And Add Evidence

After checking the maintenance and vehicle data, the agent attaches evidence.
Then it closes the blocker.
The dependent reminder can now become ready when its time gates allow it.

5. Join Work Under A Parent

Create a coordination item with explicit child terminal policies:
Link each child to the returned parent ID. A parent edge points from child to parent. The first edge is shown below:
The parent remains unready while the reminder child is active. A failed direct child propagates failure when the join is next observed; a cancelled direct child is accepted by this parent’s policy.

6. Put A Goal In A Session’s Attention

A trusted local operator can create a WorkItem and attention binding together:
The binding projects the goal into that session without making the session the owner of graph truth. Pausing attention pauses projection, not the WorkItem.

7. Observe The Graph

A UI or operator can inspect the same realm without mutating it:
or:

Why This Is Not An Expert System

The LLM decides what matters from calendar data, maintenance records, family preferences, and user policy. WorkGraph only records the durable to-do spine: dependencies, readiness, claim state, evidence, and terminal truth.