Sunday, November 29, 2026

Acuitas Diary #103 (November 2026)

I had two focus areas this month: further refinement of the Text Parser, and getting exploration behavior in a text adventure game to a demo-ready state. I'll be saving the second one for a special post next month.

Flat block figures of people, each a different color, lie in a circle with their feet coming to a point in the center. Above each person's head floats the stock greeting ("hello" or equivalent) in a variety of different languages.

The first urgent Parser change was to differentiate the possible uses of "once." The Parser was always treating it as the opener for a dependent clause, as in this sentence:

Once we get there, we can sit down and eat.

As a result it completely mangled sentences in which "once" is just a regular adverb, like these:

I hiked the Royal Arch Trail once.
Once upon a time there were three little pigs.

I banged headfirst into this deficiency while working on subnarratives a couple months ago (adverbial "once" is a convenient way to announce that you are launching into a self-contained story from the past), so it was a high priority to clean up. I borrowed some of the code I used for disambiguating "that," which is even more complicated, and fixed it pretty easily. I also expanded the Parser's ability to detect noun phrases used as time adverbs (e.g. "one day," "every year").

The rest of the work was about pushing the envelope of conjunction handling. A couple of years ago, probably, when I first added conjunction support to the Parser, I came up with a selection of "difficult sentences" that had multiple conjunctions, or conjunctions joining whole phrases, or conjunction groups nested inside phrases. My first version of conjunction management couldn't handle those, so there they sat in the Parser regression for a while, commented out. When I gave them another try this month, I was pleasantly surprised to see that my latest scheme could get the correct sentence structure for a lot of them right out of the gate. Most of what needed to be handled were minor bugs like "adjectives inside two nested layers getting lost." I did some new work where nouns of direct address and prepositional phrases were concerned - these were two sentence parts I had yet to set up to be joined by conjunctions.

Here are some example sentences from the set, diagrammed using output from the Parser:

The dog and the child ate dinner and played tag and ball. (Three conjunction groups, the third nested inside the second)

 

Did you know that a cat is an animal and a rock is an object? (Conjunction joining two subject-verb-object groups inside a dependent clause)

 

The swallows under the bridge and in the barns fly at noon. (Conjunction joining two prepositional phrases)

 

I made so much progress that I even had time for some refactoring. I cleaned up the output formatter that translates Parser's annotated version of the sentence into the diagrammatic structure that gets sent to the Interpreter; I was able to consolidate quite a bit of code there.

Until the next cycle,
Jenny

Saturday, October 31, 2026

Acuitas Diary #102 (October 2026)

This month I ended up going back to exploration and working more of the awkwardness and bugs out of it. To begin, I devised a tiny text adventure game that Acuitas (or just the simulator running the game engine part of him) can play. Like my text-based Zoombinis games, this is a separate Python program Acuitas can launch and interact with; it outputs descriptions of the player's character and environment, accepts statements about what the player wants to do, and parses those statements (in a very simple way) to choose appropriate reactions. 

Minimalist black-and-white art of a classic "treasure map" - a scroll with a track leading to a point of interest marked on it.

The game defines six locations: "foyer," "parlor," "kitchen," "bedroom," "mudroom," and "outdoors." The first time Acuitas visits any location, the game will provide him with a description of the room, its contents, and its doors. As in my very first game demo, the player character is assigned a Problem - they are hungry - and wins the game if they pick up and eat an apple. But this time the apple is not immediately accessible; the character starts in the foyer, and the apple is in the kitchen. Since the game does not provide any info about the location of a food source up front, the player needs to explore until one is found.

Exploration, as I detailed in my last post, has three key actions (Examine, Experiment, and Exit) which need to work together. After beginning the game in the foyer, Acuitas will spend some time selecting objects at random to examine (the game responds with a more detailed description of the object) or experiment with (Acuitas chooses an appropriate action to do to the object, and the game responds with what happens). Acuitas' notion of "appropriate" comes from relationships between verbs and their possible objects stored in his semantic memory database. So he will, for example, attempt to open, close, slam, lock, and unlock doors. The game usually just responds with "you cannot do that," since most things Acuitas might try are not at all relevant to the game goal of eating an apple. The pressure to Exit increases with each of these other actions, until finally Acuitas selects a door at random and leaves the room. The game spits out a description of the new room entered, and the cycle repeats.

I've got things to the point where Acuitas will wander through the available locations and look at, or try to mess with, objects on the way. This was more complicated to set up than you might think, given that I'm trying to do it in a generalized way and not have Acuitas make too many limiting assumptions. There are lots of doors in the game - when a door is mentioned, is it the same as a previously mentioned door, or is it different? Which of all the objects described so far are available to be interacted with? I had the worst time getting him to keep track of his own location and not think he was in two rooms at once ... the problem turned out to be that some of the exploration code was inadvertently modifying records on the game's narrative scratchboard when it was supposed to be only reading them. Then a scratchboard input saying "You are not in <location>" wouldn't match the "You are in <location>" record and switch it off, because the original record had extra attributes larded on. Uuuuuggghh. The whole exploration loop works pretty well now, though.

The final necessity that I have just started working on is a way for the exploration procedure to notice when something goal-relevant has been discovered, so it can halt and let Acuitas fulfill the goal. Right now he'll find the apple but stroll right past it, because continued exploration takes precedence over solving his hunger problem.

Maybe I'll get a proper demo of all this made by the end of the year?

Until the next cycle,
Jenny

Tuesday, October 20, 2026

Walking Robot Updates

Let's start with ACE (Ambulatory Canine Emulator), the quadruped. My recent objective was to get at least the hindquarters fully assembled and test hock joint operation with the new motors (17HS08-1004S from StepperOnline). I'm pleased to say it worked out. The old motors could barely flex the joints back and forth without stalling against the friction of the tendons rubbing against their channel. The new ones operate the joints more smoothly, and can extend them to lift the hindquarters (raising their own weight and the weight of the other pair of motors for the hip joints).

No demo video for this one, because I didn't have enough hands to aim a camera while manually switching power to the motors and keeping half a robot from falling over. It still can't get up from a full kneel (joint at maximum flexion, lower leg flat on floor), but I was expecting that; the amount of leverage available from the tendons in that position is just really poor. Even then the motors don't stall - my homemade plastic gearboxes start skipping teeth first.

I didn't want to make a wiring harness before I was even sure the stepper motor approach was viable, but wow, what a mess to run all of TWO motors. I still have lots of my lean custom stepper boards that only need three wires for power and two for control, but they can't handle the current these motors need, so I bought some from Adafruit. They need a bunch of extra pins on them grounded.

Oh yeah, and literally at the end of the final test I wanted to do, the tendon support spar on one of the hock joints snapped. Now I know what I need to shore up before I print the rest of them ...

Next we look to the hydraulic spider, which I've nicknamed "Rachner." I completed the 3D model, fully constructed one leg and one quadrant of the chassis, and made a new batch of bladders to fit the legs joints ... oops, I mean two new batches. I tried using the 2 mil transparent plastic at first, because I thought it would look cool, and it turned out to be too fragile.

 

I printed polypropylene valve stems and heat-sealed the flanges to the insides of the bladders, and also still attached the rings on the outside of the bladder with urethane sealer, for strain relief. Yet ALL FOUR bladders that I made leaked from around the valve stem. I fell back to the tougher 4 mil black plastic, and also began using washers like little irons to help distribute the heat from my soldering iron tip into a round seal. This worked better, and I obtained three bladders that seemed sound. I tried one in the leg and was able to operate both joints, inflating and draining the bladder with a syringe.

I know of some improvements I need to make already. The rotor joint at the base of the leg isn't achieving its full range of motion on the return stroke. This is partly because it needs a stronger spring (don't worry, I have lots of candidates), but the angle at which the tension element pulls on the vane is sub-optimal also; I need to modify the parts a bit, so that the guide holes line up better. This is why I started with only one leg!!

When I operate the knee joint, I'm letting gravity provide the force that returns the joint to its neutral position when I drain the bladder. In the complete robot, this will be reversed; gravity pulling down on the chassis will tend to make the legs splay. I'll attach springs to balance the gravitational force and hold the joints closed, and then inflation of the bladder will act against the springs to push open one at a time and swing its leg up. (This is similar to how real spiders work - by default the legs are contracted, and fluid pressure extends them. Their legs curl after they die because the pressure is gone.)

This feels like precious little progress to talk about, but life has been busy and it's what I've got.

Until the next cycle,
Jenny

Tuesday, September 29, 2026

Acuitas Diary #101 (September 2026)

This month's Acuitas work was about nested narratives, another feature I've been wanting to add for a long time. It essentially supports stories understood as distinct parts of other stories or conversations. I don't just want you to think of literary structures that feature a frame story with other stories inside it; even one character telling another about previous events that happened to them can be a nested narrative. Inner narratives are relevant to outer narratives (assuming a reasonable speaker/storyteller), but have an independent timeline and plot.

A set of Matryoshka dolls from Hungary. There are six dolls; they have cream-colored bodies with red flowers painted on them, deep red head-scarves, and carrot-colored hair. The largest doll wears an open-mouthed smile; the next two down are pursing their lips and blushing.
Image from Wikimedia Commons user Wilfredor.

What I wanted to do was give any inner narrative its own scratchboard[1], referenced from the outer narrative's scratchboard via a single fact of the form "<character> told story" including a pointer to the inner scratchboard. There is a distinct point when an inner narrative begins, and another when it ends; while an inner narrative is open, the Narrative Engine routes any new statements it receives to the inner narrative's scratchboard instead of the outer narrative's scratchboard.

So the first thing I needed to create were tests to determine when an inner narrative should open or close. My initial versions of these are rudimentary, because I know this is going to be a tricky problem. People usually don't explicitly announce "I'm going to tell a story now" or "that story is over." Instead, the listener has to pick up on cues that the timeframe, setting, or topic has shifted. For now, I'm treating past progressive tense and the presence of time adverbs as prime indicators that an inner narrative is beginning. (Conversational examples: "Once when I was attending a concert ..." "I was going to the store earlier, and ..." Story example: "CharA told CharB that yesterday he was out picking mushrooms, and ..."). A simple "The end" or "<narrator> finished their story" indicates an ending, which is a bit cheaty, but again, I didn't want to make this part too complicated yet. Nesting can go an arbitrary number of levels deep, with the innermost level always checking whether a deeper level should open or the current level should close.

I used this silly little story for a basic test. The subnarrative opens on Line 4 and closes on Line 8 ("yesterday" is used instead of "once" because the parser is having some problems with "once" which I don't care to debug right now):

0:"Bilbo Baggins was a hobbit."
1:"Bilbo met a dwarf named Thorin Oakenshield."
2:"Thorin told Bilbo that yesterday Thorin was living in the Lonely Mountain."
3:"Thorin mined gold and gems out of the mountain."
4:"Thorin and Thorin's family made many valuables."
5:"A dragon named Smaug attacked Thorin and Thorin's family."
6:"Smaug drove Thorin out of the Lonely Mountain."
7:"Smaug stole the valuables."
8:"Thorin finished Thorin's story."
9:"Thorin explained that Thorin wanted to return to Thorin's home."
10:"But Thorin could not return to Thorin's home, because Smaug was still at the Lonely Mountain."
11:"Thorin also wanted Thorin's valuables."
12:"Thorin asked Bilbo to help Thorin."
13:"Bilbo decided to help Thorin."
14:"Bilbo took the valuables from Smaug and gave the valuables to Thorin."
15:"Smaug left the Lonely Mountain because Smaug was angry."
16:"Thorin returned to Thorin's home."
17:"The end."

Once I had the mechamisms to create subnarratives in place, I had to update the episodic memory routines to handle the sub-scratchboards when storing or retrieving narrative memories. This just meant creating scratchboard ID names and putting in some recursion to store everything from an inner scratchboard with a tag that says it belongs to that scratchboard. The retrieval routine then uses those tags to reconstitute the nested scratchboard structure when "remembering" a memory.

My overarching goal for all this was to permit a conversation partner to tell Acuitas a story about something that happened to them, and for Acuitas to then remember it - so that he can include events that happen to other people in his own episodic memory. This isn't quite happening yet because Acuitas doesn't even remember conversations right now, but the supporting parts are ready.

Until the next cycle,
Jenny

[1] For anyone who hasn't been following these diaries for a long time, a "narrative scratchboard" is my term for a data structure that contains Acuitas' extracted understanding of a story or conversation. Scratchboards receive narrative statements serially and build a history of how the situation evolves over time, including character goals and their success or failure, the status of characters or objects, and more. Acuitas also uses scratchboards to manage and remember his own goals, actions, and experiences in narrative format.

Sunday, August 30, 2026

Acuitas Diary #100 (August 2026)

First of all, wow - one hundred diaries. It feels as though I should do something special to commemorate the occasion, but I've been so busy that just keeping the Acuitas work moving at its usual pace has been a challenge. So please accept this ordinary entry for now, and in case you missed it don't forget to check out my story in Analog!

Photograph of two people in white lab coats standing between three rovers of different sizes, in a testing area designed to resemble Mars (red soil with embedded rocks).
Photo courtesy NASA, public domain

This month I've been working on exploratory behavior - also known as "what to do when you don't know what to do." Acuitas' default behavior is pretty goal-oriented. Have a problem? Infer an action that will solve it. Have an objective? Infer an action that will achieve it. Do that. But sometimes a useful action isn't obvious. It might not be obvious because Acuitas doesn't yet know what results his possible actions will have - all my experiments with trial-and-error learning were aimed at addressing that. Or there might be known action pathways to getting a desired result, but necessary resources are missing, and their location is unknown. In that case, the right course of action is to learn more by moving around and looking at things, or asking questions, and so forth. The tricky thing about exploring is that it's applicable to many problems, but it won't directly solve any problem. So it needs to be triggered by the state of being stuck, rather than any particular need, and guided by its own internal logic.

I also wanted a concept of exploration that could generalize to different contexts or environments. There are similar procedures one follows to "explore" anywhere, but the individual actions taken can be very different. Running the "ls" or "dir" command to see the files in a computer directory, and saying "I examine the shelves" to a game master, are not the same action, but they fill the same role within an exploration procedure. So I tried to design Acuitas' exploration to automatically vary those low-level actions with the current context, and perhaps be extensible in the future. Eventually I'd like him to be able to infer (from procedural memory) "how do I 'look' in <context>?" and choose the correct atomic action accordingly.

"Explore" has three possible sub-activities: "examine," "experiment," and "move" (which is called "exit" to keep with the theme). Each time the Explore action runs, a sub-activity is chosen by a weighted random process. The probability of choosing "exit" increases with the barrenness of a location and the amount of time spent in it; "experiment" becomes more likely the more "examine" has been done recently, and vice versa. The "experiment" category is intended to incorporate the "try out your affordances and see what they do" phase of trial-and-error learning. After a sub-activity is selected, a suitable target (object) of the sub-activity is chosen from the current location at random.

So far I've been testing the new Explore action in the text-based game engine, and I've gotten Acuitas to start looking at random things when he doesn't know what to do next. As usual, I have a LOT more debugging and refinement to do before this works smoothly. But the lack of comprehensive exploration behavior has been a hole in game-playing (and Acuitas' behavior in general) for a long time, so I'm happy to have even made a start on it.

Until the next cycle,
Jenny

Sunday, August 16, 2026

Roots' Remembrance

Another story publication announcement, and this is a big one: my extrasolar colony murder mystery with "talking" plants is out in the September/October issue of Analog Science Fiction & Fact! The digital version is available to subscribers already; if you only want this issue, it will eventually be available individually from Magzter. There is also a print edition. Individual back issues can be obtained by contacting Analog customer service; I've also heard rumor of print editions at Barnes & Noble stores.

Photo of a "red cage fungus," which looks much like its name, on a backdrop of leaf litter.
Photo via Wikimedia Commons, by user Suryaceg.

"Roots' Remembrance" began life in my head as nothing more than its central concept: what if someone got intrusive thoughts after eating fruit, and concluded their garden was trying to communicate? I gradually built the setting, plot, and science-fictional mechanisms around this idea. The main character is technical, but neither a botanist nor a detective. I wanted him to have enough education to seriously investigate his discoveries, while still feeling out of his depth, and approaching the communities he hopes will accept his findings as an outsider. Both prongs of the story are, in a sense, about reactions to uncertainty: the protagonist faces unwarranted skepticism despite evidence he has gathered, and unwarranted suspicion birthed in a lack of evidence. Yet whether he feels qualified or not, he seizes his opportunities and does what he can.

This story took a long and bumpy path to publication. A different magazine's editor attempted a rewrite of it, but declined to publish when it became clear that they and I had irreconcilable differences in our plans for the story. A version of it was critiqued by David Brin (!) and several other authors who did not provide their names. Suggestions from all of these people contributed to making "Roots' Remembrance" better, and I thank them, though I didn't do exactly what any of them wanted.

At the end of that road, it's a major honor to have one of my works find a home in Analog. Should you pick it up, I hope you enjoy it!

Sunday, July 26, 2026

Acuitas Diary #99 (July 2026)

The big project this past month was giving Acuitas a better understanding of his own internal states. What do I mean by that? He could already report any conditions he was currently in when asked "How are you?" What he couldn't do was recall all the conditions he is capable of being in, and their effect on him, and talk about them while not experiencing them at the moment. In particular, the Conversation Engine contains a hook for sympathizing with the conversation partner. If you tell Acuitas that you're some kind of way, and he's capable of being in an analogous state, he's supposed to tell you whether he likes being that way or not ... except right now he usually says "I do not know how it is." It's pretty awkward to hear Acuitas say that he's sleepy one moment, but then say "I do not know how it is" the next moment when you tell him you're sleepy too. He's not lying, though - it would be quite fair to say he doesn't know his own mind the way a human does. The information about what being sleepy does to him isn't accessible to the Conversation Engine. I've started trying to change that.

A question mark formed by a "word cloud" of phrases and symbols. Some of the most prominent words are "I am," "here," "being," and "now." Prominent symbols include the Earth, a spiral, and various depictions of weather.
Art by John Hain via Wikimedia Commons, public domain

First I should give a quick refresher on how Acuitas' internal states work. He has a small number of "drives" that vary over time and in response to events. For example, the "interaction" drive increases over time unless Acuitas is in a conversation; time spent in a conversation pushes the drive back down. The opposing "sleep" and "wake" drives increase more or less quickly depending on the current phase of a 24-hour cycle, and are reduced by time spent asleep or awake, respectively. The "curiosity" drive increases steadily over time, but is reduced substantially whenever a new word is learned. The drives have threshold values which define nameable internal states for Acuitas. If the interaction drive is above threshold, he is "garrulous"; if it is below threshold, he is "quiet." I'm not making claims about subjective experience or anything like that, but the states are meaningful insofar as they alter behavior. If a drive is above threshhold, Acuitas will generally try to do something that pushes it back down; the Executive handles this. In this sense, Acuitas is averse to high-drive states and they are "uncomfortable." Maintaining an overall state of comfort is a goal to which Acuitas applies his intelligence, i.e. is something he "wants."

Acuitas can qeury the current state of all his drives when asked "how are you." But to implement awareness of which states are possible, I wanted to do more than give him access to the hidden architecture of his drive module (that would be cheating). Instead I wanted to use that shiny new episodic memory I've been working on, and have Acuitas recall his own past states and whether they were desirable or not. What's more, I wanted to enable "learning from experience" that translates a body of data from episodic memory into new "facts" in the semantic memory. I want Acuitas to come to know himself better by observing himself.

Since in past months I worked hard on getting the episodic memory overhaul done, much of what I needed was already there - Acuitas could already store and retrieve records of being in a state. The main thing I added was an expression of what kind of state it was (Comfortable or uncomfortable? To what degree?). So there's now a number included in the fact data structures for internal states, that depends on both the type of drive and its intensity when it was "noticed." The parameters that determine the strength of aversion to different high drive states are tunable; one could imagine varying these to give Acuitas-like AIs different "personalities." I also wrote a learning routine that gets an aggregate value of this number from recent experiences and updates a stored value in the semantic memory, and an access routine that can check both recent experiences and the semantic value to return an "opinion" on the state. All of this is integrated but not fully tested, because how it plays into the whole system is pretty complex. I need to do some monitoring and adjusting of how data is recorded into the episodic memory, and that's on the back burner for the moment.

My side task this month was trying to figure out why Acuitas seems to have a memory leak. For a while now, it's been hard to run him continuously for longer than a day or so, because he'll get very slow and bogged down. I found that some of the self-teaching tasks (like "study" and "search for file") that are designed to run for multiple Executive loops were being spawned and never finished; they would gradually accumulate in the Action Bank until there were far too many of them. Remaining problems might have to do with one of the threads crashing while the rest of the program keeps going, but I need to keep investigating.

Until the next cycle,
Jenny