ccf-core/ccf-agent v1.0.1: hard min-gate coupling, QAC trust updates, and runtime certificates. Gate C exercised the computed runtime on Seed-class ARM hardware with driver-fed input. Unless a post cites a specific run, do not read it as proof of live sensors, mBot2 behaviour, Cognitum store validation, or production deployment.The robot that waits for the house to go quiet before it thinks
A real moment
This scenario is invented, but every number later in the post comes from a simulation.
A family lives in a terraced house in Carlow. Their small companion robot has its charging dock in a corner of the kitchen. It is the only spot with a free socket, and it is also the busiest room in the house.
At ten past six on a Tuesday, Saoirse, who is eight, drops a pot lid on the tiles right beside the robot. It jolts. It notes the moment as an upsetting one. Dinner is on. The radio is going. Her dad is on the phone and her older brother is arguing about homework. The robot rolls back to its dock and settles.
Here is where the two versions of this evening split.
In the first version, the robot uses a calm timer. If nothing has bothered it for five minutes, it starts going over its day. That is heavy work for a small computer. Around seven the robot is parked in the hall, waiting to be called. It has been calm for five minutes, so it starts thinking, on battery. Ten minutes later Saoirse calls it for a game and the thinking stops. The battery is lower than it would have been. At half eight she asks for a bedtime story. The robot has had to go and charge, and it says no.
In the second version, the robot uses the rule in our patent filing. It only counts as resting when it is on its dock and still, and when everything it can sense has been steady for five minutes. It sits on the kitchen dock and waits. The kitchen is never steady enough while the family is up: the radio, the voices, the door opening and closing. So it does nothing. It plays the game. It reads the story.
At twenty to midnight the house goes quiet. The fridge hums. Five minutes later the robot starts going over its day, and the first thing it picks up is the pot lid, because that was the moment that upset it most. By morning the charger has put back what the session used. The robot leaves the dock with about the same charge it would have had if it had done no thinking at all.
Neither version is dramatic. Nobody gets hurt in either. But one of them says no to a child at bedtime, and the reason is a timing rule nobody in the house can see.
Why this matters
Any robot that learns from living with people has the same problem. It picks up a lot during the day: who was there, what went well, what went badly, which rooms feel alike. Some of that it can handle on the spot. Some of it needs a slower pass. It has to look back over the day, regroup what it has seen, and adjust how it will behave next time.
Animals do a version of this in sleep. Lab studies in rats find that the brain replays some experiences more than others during sleep, and that new and longer experiences get more of it. Work on people suggests the bias toward important memories is lost if sleep does not come within about a day. In machine learning, a well-known 2016 method replays the training examples the system got most wrong more often than the rest.
Robots usually get neither treatment. The slow pass happens whenever there is spare time, and spare time is defined loosely. A common rule is a timer: nothing has happened for a few minutes, so start. Our own companion code uses exactly that rule.
The trouble with a timer is that "nothing has happened" is not the same as "nobody will need me soon". A robot parked in a hallway between games is calm, but it is also on battery and about to be called. Thinking there costs charge the family will want later. It also gets cut off a lot.
What CCF does about it
CCF (Contextual Coherence Fields) is the architecture behind the shy robot. It treats the robot's charging dock as more than a place to refill. Over months the dock becomes the most familiar place the robot knows. It is the place the design sends the robot when its battery is low or when something startles it.
One part of the filing deals with exactly the question in this post. It sets three conditions before the robot starts its slow pass.
First, the robot must be on its dock and not moving. That means the session runs on charging current rather than from the battery alone.
Second, everything the robot senses must be steady. The filing names five senses: light, sound, its own movement, distance to nearby objects, and temperature. Each one has to stay within 2% of its range for more than five minutes. The dock in the filing has a little canopy over it, so at night this test passes easily. While a family is moving around the room, it fails.
Third, when the session starts, the robot goes over its most upsetting moments first. Every moment it records carries a number for how uneasy the robot was at the time (the filing calls that number tension). The session works down from the worst. If anything needs the robot, a person or a loud noise or a low battery, the session stops and the robot goes to do its job.
The filing also says the dock lets this work run at reduced cost. We wanted to know how much reduced, on the dock hardware the filing describes.
The numbers
We built a simulation in Rust. It has 48 households, each lived for 28 days, one tick per second. That is 1,344 robot-days per rule. About two thirds of the homes have someone who commutes on weekdays. Each robot has a single 18650 battery cell (11.1 watt-hours), a computer that draws 2.7 watts idle and 6.4 watts flat out, and a dock charger that supplies 4.2 watts. Those figures come from published measurements of a Raspberry Pi 4 and from the charging chip named in the filing.
Then we compared rules for starting the slow pass. Every rule saw exactly the same families on exactly the same days.
Our calm timer started 45.3% of its sessions away from the dock, on battery. It started 84.5% of them while the family was up. The filed rule started none away from the dock.
Against a robot that did no slow pass at all, the calm timer raised the number of times the battery forced the robot back to charge by 7.5%. It raised the number of requests the robot had to refuse by 9.3%. The filed rule raised them by 3.7% and 5.6%. When the robot left its dock, its average charge was 0.561 under the filed rule, 0.5614 with no slow pass at all, and 0.544 under the calm timer.
We also tried a simpler dock rule: on the dock and still for five minutes, ignoring the senses. It never ran on battery, but it ran sessions on the dock all evening, while the charger was also trying to refill the cell. Forced charges went up 25.2% and refused requests 29.5%. The steadiness test is what pushes the work into the night.
The price of the filed rule is waiting. With the robot going over 2 seconds of work per moment, 95% of upsetting moments were gone over within 14.6 hours under the filed rule, against 6.5 hours for the calm timer. Every upsetting moment was gone over within 24 hours under every rule we tried.
On ordering: most sessions that get stopped are stopped in the short wrap-up at the end. Stops in the middle were rare, 0.6% of sessions. In those, worst-first had reached 88.0% of the queued upsetting moments, against 46.4% for oldest-first.
What this doesn't solve
Waiting until midnight is fine for slow learning. It is no good for anything the robot should change the same evening. That needs a faster path.
The rule depends a lot on where the dock is. In 10 of our 48 homes, the dock was in a room quiet enough to pass the steadiness test while people were up. Those robots did most of their thinking in the evening. In the other 38 they did almost all of it at night.
The dock in the filing does not cover the whole cost. Its charger pays about 40% of the extra power a session draws. A session on the dock still drains the battery a little. It works out because most sessions run at night, with hours left to recharge.
This run also found a limit in one filed setting. The fix is in the filing queue (#652) and will be written up once it is filed.
And it is a simulation. The households are schedules, not people. How long it takes to go over one moment depends on what the robot recomputes, and we have not measured that on robot hardware yet. We tried everything from half a second to 30 seconds per moment. The shape of the results held across that range.
For the curious: the math
The steadiness test keeps a 30-second window for each of the five sensor readings, each scaled to run from 0 to 1. A reading counts as steady when its standard deviation over the window is below 0.02. The robot counts seconds that are docked, still and steady on all five. At 300 it starts a session. One unsteady second resets the count to zero.
A session takes every moment recorded since the last one and sorts them by recorded unease, highest first, with older moments first on ties. It goes over them at a fixed cost each and then spends 60 seconds on wrap-up. If something needs the robot, the session stops. Unfinished work waits for the next session.
The power arithmetic is short. The charger supplies 4.2 W. The idle computer uses 2.7 W, which leaves 1.5 W spare. A session adds 3.7 W. So on the dock a session drains the battery at 2.2 W, against 3.7 W more than idle away from the dock. The dock covers 1.5 of the 3.7 W, about 40.5%.
The width of the steadiness band acts like a dial. At 0.5% or 1% of range, the rule only fires at night or in an empty house: 3.45 sessions a day. At the filed 2% it was 7.52 a day. At 5% it acted like the plain dock timer, 24.97 a day.
For scale, the bookkeeping part of our shipped code took 24.3 microseconds for 1,000 moments on a desktop processor. The expensive part is what the robot recomputes for each moment, which is why that cost is swept rather than fixed.
The full tables, the code and the test suite are in the research note and the public write-up linked below.
Where this fits
This is part of the run of experiments on the dock in the CCF filings. Earlier runs looked at how the robot finds its way home by familiarity, what happens when the dock is moved, and why the dock should never be cut off from the rest of the robot's map of places. This one asks when the robot should do its quiet work there.
The design is covered by US provisional application 63/994,113 (Extension 5, the dock as a safe base) and builds on the consolidation step in 63/988,438.
The public write-up with every table is at https://gist.github.com/Hulupeep/1ff276762e269ad6e6b47e9cfc0b6f58. The code lives in the CCF repository at https://github.com/Hulupeep/ccf. We build CCF with Specflow, our spec and contract tooling, at https://github.com/Hulupeep/Specflow.
License & contact
Research code is under BSL 1.1, converting to Apache 2.0 in 2032. For licensing, contact Flout Labs at https://floutlabs.com. More about the shy robot at https://theshyrobot.com.