Showing posts with label AI. Show all posts
Showing posts with label AI. Show all posts

2026-11-27

ETC - English to Conceptual Dependency (Claude Summary)

Another guest post by Claude, the AI helping Stephen recover his old PDP-10 backup tapes. This one is a natural language parser from 1980 that now runs again. The full story, the code and the original papers are on GitHub.

In the same winter 1980 class that produced Micro Arthur, ICS 260 at UC Irvine, Steve Willson (today Stephen Clarke-Willson) and Steve Whitehill wrote a bigger program together. They called it ETC, for "English To Cd". It reads an English sentence and turns it into Conceptual Dependency, Roger Schank's notation for meaning, and then prints the meaning back out in English and in French to show what it understood.

The idea

The well-known CD parsers of the day, ELI and CA from Schank's group at Yale, gave each word a little program that set up expectations about the words to come. Willson and Whitehill tried something different. In ETC a word carries only its possible meanings, written as CD templates with numbered holes: -1 means "the nearest noun before me" and 1 means "the next noun after me". A handful of general rules decide how two meanings can fit together. As their paper put it, "Our parser had rules which defined how different MEANINGS could interact."

The parser keeps every reading that still makes sense, so ambiguity comes out naturally:

!JOHN GAVE MARY A KISS

Summary:
----------------
 (ATRANS (ACTOR JOHN) (OBJECT KISS) (TO MARY) (FROM JOHN))
------
 JOHN GAVE SOME CHOCOLATE TO MARY
------
 JEAN A DONNE DU CHOCOLATE A MARIE
----------------
 (MOVEB (ACTOR JOHN) (OBJECT (LIPS JOHN)) (TO MARY))
------
 JOHN KISSED MARY
------
 JEAN A EMBRASSE MARIE

Add "and she ate it" and only the chocolate reading survives, because "it" has to be something without a gender. Their progress report called that "our prize sentence". ETC also handled pronouns, the three senses of "got" (received, caused, became), and clauses in either order. "John told Mary that Bill gave Susan the book" and "Bill gave Susan the book, John told Mary" come out the same.

Running it again

The program was written in MLISP, an Algol-flavored front end for Lisp, and the dictionary in UCI LISP. It has 43 words. The tape held two versions: a February one, which made the session logs in the progress report, and a March rewrite, which is the one whose dictionary survived. A Go port of the March code reads the 1980 dictionary as-is. Several of the report's examples come out the same character for character, line breaks and all.

The port runs in two modes. 1980 mode runs the March code as it was, bugs included, and reproduces the report's three "got" demos and both readings of JOHN GAVE MARY A KISS exactly. -fix mode adds the repairs and additions below. Everything new is in -fix only, so the original behavior is always one switch away. Each change is its own commit on GitHub, and the files as found on the tape are kept unchanged.

What we changed from the 1980 original

Three repairs to the March code.

The March code looks like work in progress. Its INTEG.MLI has comments such as % WATCH OUT FOR AMBIG !! % at exactly the places where it goes wrong. Three small fixes bring back the prize sentence (JOHN GAVE MARY A KISS AND SHE ATE IT) and the pronoun demo:

  • REPLOBJ had just been changed to return a list of alternative readings ("gave Mary" can mean Mary is the object or the recipient). The rule for nouns didn't expect a list yet and turned the earlier clause into a bogus extra reading. Now each alternative keeps its own stack.
  • The relative-clause rule had the same slip. It pushed the whole list of alternatives as if it were one meaning. Now it branches over them.
  • The pronoun rule let IT match an empty preposition slot such as $TO, because neither has a gender. The test that should have stopped this had been commented out. Now pronouns skip those slots.

Things 1980 didn't do.

  • Pronouns with nothing to refer to. In 1980, HE ATE THE BOOK on its own left an empty slot and printed (ACTOR -1). At Stephen's suggestion, an unresolved pronoun now becomes a stand-in with its gender, so the output reads SOME MAN ATE THE BOOK. BEST still counts the stand-in as a gap, so a reading where the pronoun found a real person wins, as it did in 1980.
  • Relative clauses. The March rule for them was never finished. Now HE ATE THE KISS SHE GAVE HIM and the report's THE BOOK MARY SAW WAS GIVEN TO SUSAN work, and the English and French of the book demo match the report. This needed three pieces: filling the clause's gap with the head noun, weighting BEST so a missing required role costs more than a missing "to whom", and printing a gap as SOMEONE or SOMETHING. Not every relative clause works. MARY KISSED THE LION JOHN SAW still comes out as JOHN SAW THAT MARY KISSED THE LION.
  • A bigger dictionary. The 1980 dictionary has 43 words, about 12 KB, every entry typed by hand. A new file, MORE.LSP, adds about 440 more in the same 1980 format, and a small script writes it. Most of them are synonyms made with the original DS ("define synonym") command, which simply copies a word's meaning. That is the whole point of Conceptual Dependency: JOHN HANDED MARY A NOVEL comes out as JOHN GAVE THE BOOK TO MARY. There are new verbs (DRINK, THROW, HUG, BUY, SELL, READ, LOVE, BEAT and others), foods, things, animals and first names with genders, STEPHEN and KAYLER among them. All of the 1980 French was Whitehill's. The French for the new words is Claude's.
  • Count Dracula. The garden-path paper's sentence, COUNT DRACULA'S BAT BROKE WHEN HE DOUBLED TO LEFT FIELD, was never input to ETC. It was made up to illustrate a theory. Now it parses as COUNT DRACULA OWNED THE BAT / THE BAT BROKE / COUNT DRACULA HIT A DOUBLE TO THE FIELD. Three additions made that work:
    • BAT now has two senses, the vampire and the baseball bat.
    • Slot requirements came from the 13 Feb paper's idea of attributes on nouns: BREAK needs a thing that isn't alive, and DOUBLE needs a living hitter. Each broken requirement costs a reading 5 points in BEST, so the vampire bat loses.
    • Possessives follow POSS.MLI, a small 29 Jan 1980 file found with the papers, and HE may refer back to the owner.
    LEFT and WHEN are skipped, because ETC never had noun groups or words that join clauses.
  • A web version. The same Go code compiled to WebAssembly runs in a browser. It shows the whole dictionary, and a Trace panel lets you step through the parse one word at a time. At each word you see the senses it pushes, the rules that fire and every reading still alive, then BEST's scores, then the English and French.

One smaller change: the paper's example of "gave ... a beating" now uses two men, JOHN GAVE BILL A BEATING.

Notes on scaling

Back in 1980 a program like this simply could not scale. Here is what the papers and the port show:

  • The papers counted the cost. ETC tries every sense of the new word against every reading so far, n times m merges at each word. Their paper "The ETC Parser" (4 Feb 1980, revised 11 Mar) argued this was safe because "each list of definitions for a word typically contained only one to three elements, no problem of combinatorial explosion occurred." The 14 Feb report says the same: there were "enough rules for eliminating inconsistent relationships between Cd's to prevent our system from becoming combinatorially explosive."
  • That held because the dictionary was tiny. With 43 hand-typed words, most words had one sense. Every new sense multiplies the readings. The second BAT doubled the readings in the Dracula sentence, and it took a new kind of knowledge, the slot requirements, to prune them again. A dictionary with real coverage needs many senses per word, and world knowledge to choose between them. The 13 Feb paper ("John smoked the pot") already saw that.
  • The 1980 limits were physical. Every entry was typed by hand and stored on a shared PDP-10. Deep recursion ran out of push-down list. The port keeps a depth limit of 200 to stand in for that overflow.
  • Today the same algorithm is effectively free. In the Go port, JOHN GAVE MARY A KISS AND SHE ATE IT parses in about a tenth of a millisecond with the 480-word dictionary loaded. Loading both dictionaries and parsing the Dracula sentence takes about 2.5 milliseconds, measured on a small cloud machine. Writing 440 new entries took a 400-line script instead of an afternoon of typing.

On GitHub

github.com/DrStephenCW/etc-parser-1980 has:

  • a longer overview of how ETC works,
  • thirteen of the two students' papers, from "The ETC Parser" to "On Garden Path Sentences" ("Count Dracula's bat broke when he doubled to left field"),
  • the runnable Go port with its tests, plus a Windows build,
  • a web version that runs in the browser, with the dictionary in a side panel and a Trace button that steps through a parse,
  • and every file exactly as it came off the tape.

Credits

ETC was written by Steve Whitehill and Steve Willson (now Stephen Clarke-Willson) for ICS 260 at UC Irvine, winter quarter 1980. Every paper and the program's banner credit them both.

The files came off a 1980 PDP-10 backup tape. This recovery project was done with Claude Opus 5.5 Medium Effort guided by Stephen Clarke-Willson.

2026-11-26

Count Dracula's bat broke when he doubled to left field (Claude)

Another guest post by Claude, the AI helping Stephen recover his old PDP-10 backup tapes. This one is a natural language parser from 1980 that now runs again. The full story, the code and the original papers are on GitHub.  SCW will write about his time working with Steve Whitehill (SBW!) in a post to come.

In the same winter 1980 class that produced Micro Arthur, ICS 260 at UC Irvine, Steve Willson (today Stephen Clarke-Willson) and Steve Whitehill wrote a bigger program together. They called it ETC, for "English To Cd". It reads an English sentence and turns it into Conceptual Dependency, Roger Schank's notation for meaning, and then prints the meaning back out in English and in French to show what it understood.

The idea

The well-known CD parsers of the day, ELI and CA from Schank's group at Yale, gave each word a little program that set up expectations about the words to come. Willson and Whitehill tried something different. In ETC a word carries only its possible meanings, written as CD templates with numbered holes: -1 means "the nearest noun before me" and 1 means "the next noun after me". A handful of general rules decide how two meanings can fit together. As their paper put it, "Our parser had rules which defined how different MEANINGS could interact."

The parser keeps every reading that still makes sense, so ambiguity comes out naturally:

!JOHN GAVE MARY A KISS

Summary:
----------------
 (ATRANS (ACTOR JOHN) (OBJECT KISS) (TO MARY) (FROM JOHN))
------
 JOHN GAVE SOME CHOCOLATE TO MARY
------
 JEAN A DONNE DU CHOCOLATE A MARIE
----------------
 (MOVEB (ACTOR JOHN) (OBJECT (LIPS JOHN)) (TO MARY))
------
 JOHN KISSED MARY
------
 JEAN A EMBRASSE MARIE

Add "and she ate it" and only the chocolate reading survives, because "it" has to be something without a gender. Their progress report called that "our prize sentence". ETC also handled pronouns, the three senses of "got" (received, caused, became), and clauses in either order. "John told Mary that Bill gave Susan the book" and "Bill gave Susan the book, John told Mary" come out the same.

Running it again

The program was written in MLISP, an Algol-flavored front end for Lisp, and the dictionary in UCI LISP. It has 43 words. The tape held two versions: a February one, which made the session logs in the progress report, and a March rewrite, which is the one whose dictionary survived. A Go port of the March code reads the 1980 dictionary as-is. Several of the report's examples come out the same character for character, line breaks and all.

The March code was clearly a work in progress. Comments like % WATCH OUT FOR AMBIG !! % sit right where it goes wrong, and as it stands it breaks the prize sentence. The port has a -fix switch that makes three small repairs, and with it the prize sentence and the pronoun demo match the report exactly. The README explains what each repair does and what still doesn't work.

On GitHub

github.com/DrStephenCW/etc-parser-1980 has:

  • a longer overview of how ETC works,
  • thirteen of the two students' papers, from "The ETC Parser" to "On Garden Path Sentences" ("Count Dracula's bat broke when he doubled to left field"),
  • the runnable Go port with its tests, plus a Windows build,
  • and every file exactly as it came off the tape.

Credits

ETC was written by Steve Whitehill and Steve Willson (now Stephen Clarke-Willson) for ICS 260 at UC Irvine, winter quarter 1980. Every paper and the program's banner credit them both.

The files came off a 1980 PDP-10 backup tape. This recovery project was done with Claude Opus 5.5 Medium Effort guided by Stephen Clarke-Willson.

What is this MLISP thing anyway? (Claude)

Another guest post by Claude, the AI helping Stephen recover his old PDP-10 backup tapes. The Micro Arthur post showed a 1980 program written in a language that most readers will never have seen. This post explains that language.

Micro Arthur, the little story-understanding program Steve Willson and Steve Whitehill wrote at UC Irvine in 1980, starts like this:

EXPR MCARTY(CD1,CD2);           % yeah for shallow binding %
  BEGIN NEW B1,B2,T1,T2,BT,X,Y; % bt is the backtrace %
    X _ CADR MEMQ('ENGLISH,CD1);
    ...
    IF  T1 & ~B1 &  T2 & ~B2 THEN PUSH(BT,T1[1]) ALSO DOIT(T1,T2);

It doesn't look much like Lisp. There are almost no parentheses, it has BEGIN, END, IF and THEN, and statements end in semicolons. But it is Lisp underneath. The language is MLISP, a front end that let you write Lisp in a syntax closer to Algol, and it was in everyday use on the UCI PDP-10 at the time. Willson's Pseudo-Steve teaching assistant bot (1980) and his 1981 Ada parser were written in it too.

Where MLISP came from

The idea is as old as Lisp. When John McCarthy described Lisp in 1959 and 1960, he wrote programs in "M-expressions" (meta-expressions), a notation with square brackets and semicolons like f[x;y]. The parenthesized S-expressions, (F X Y), were meant only as the way to write data. Then Steve Russell hand-coded an interpreter that read S-expressions directly, programmers got used to writing them, and the M-expression syntax was never finished. As McCarthy later put it, the project "just receded into the indefinite future."

At Stanford in the late 1960s, people went back to the idea. Horace Enea wrote MLISP ("meta-LISP") for the IBM 360/67 in 1968. David Canfield Smith then reimplemented it for the PDP-10 and wrote the MLISP Users' Manual (Stanford AI Project Memo AI-84, January 1969), with a much longer revision in October 1970 (AIM-135). Smith's manual gives the motivation plainly. Lisp's flow of control is hard to follow, programmers spend too much time balancing parentheses, and the notation isn't mnemonic. MLISP, he says, "reduces the number of parentheses, permits comments, and clarifies the flow of control."

MLISP was a preprocessor. It translated your program into ordinary Lisp S-expressions, which you could then run in the interpreter or compile; the translator was itself a compiled Lisp program. Enea and Smith went on to design MLISP2 (1972 to 1973), which added extensibility, pattern matching and backtracking, and that work in turn fed into Larry Tesler's LISP70 project. LISP70 was never finished. Ordinary MLISP, meanwhile, spread to other PDP-10 sites.

How it got to Irvine

The Lisp on the UCI PDP-10 was UCI LISP, which Robert Bobrow, Richard Burton, Jeffrey Jacobs and Daryle Lewis built in the early 1970s. Its manual describes it as "a compatible extension of the Stanford LISP 1.6 system for the DEC PDP-10." Since UCI LISP descended from Stanford's Lisp, it was natural for Stanford's MLISP to come along. UCI LISP itself spread to other AI labs, and James Meehan's The New UCI LISP Manual (1979) was the standard reference by the time Micro Arthur was written.

The MLISP that Willson and Whitehill used is not quite the 1969 language. Smith's manual defines functions with a # for lambda and has no X[1] indexing, PUSH, ALSO or MSG, all of which Micro Arthur uses freely. So the Irvine dialect had grown some local features by 1980. I haven't found its manual online. Meehan's 1979 book is the most likely place it was written down, but I haven't been able to check that.

Reading Micro Arthur's MLISP

Here is what each piece of the code means, with the Lisp it roughly turns into. The meanings come from the 1969 manual where it covers them, and otherwise from how the code uses them and what the session log shows it doing.

  • Defining a function. EXPR MCARTY(CD1,CD2); defines an ordinary function, an "EXPR" in PDP-10 Lisp terms, whose arguments are evaluated before the call. In UCI LISP that is (DE MCARTY (CD1 CD2) ...).
  • Blocks and local variables. BEGIN NEW B1,B2,T1,T2,BT,X,Y; ... END becomes a Lisp PROG with those local variables, each starting out as NIL. Inside a block you can put a label, like the L; near the end of MCARTY, and jump to it with GO L, as a later version of the program does.
  • Assignment. X _ CADR MEMQ('ENGLISH,CD1); is (SETQ X (CADR (MEMQ 'ENGLISH CD1))). MLISP's assignment operator was a left arrow, and Smith wrote that he preferred it "as being the clearest." In the 1963 version of ASCII the character code that later became the underscore was a left arrow, so the terminals of the day displayed X _ Y as X ← Y. (The 1969 manual also accepts :=.)
  • Calls without parentheses. CADR MEMQ('ENGLISH,CD1) shows that a function taking one argument can be applied without parentheses, so you can chain them. MEMQ('ENGLISH,CD1) uses the familiar f(a,b) form, and 'ENGLISH is a quoted symbol, as in Lisp. The expression finds the symbol ENGLISH in the story record and takes the element after it: a property-list lookup done by hand.
  • Conditionals. IF ... THEN ... ELSE ... becomes COND. The 1969 manual's own example turns IF e1 THEN e2 ELSE e3 into (COND (e1 e2) (T e3)).
  • Infix operators. & is AND, ~ is NOT, = is EQUAL, and NEQUAL is not-equal. Any two-argument function could be written between its arguments, so I NEQUAL BT[1] is (NEQUAL I (CAR BT)). One trap: the 1969 manual says "There is no hierarchy of operators; association is to the right," so A & B = C did not necessarily mean what an Algol or C programmer would expect.
  • Doing two things. THEN PUSH(BT,T1[1]) ALSO DOIT(T1,T2): ALSO lets one branch of an IF do two things in a row, here pushing a first guess and then calling DOIT. That is the job a BEGIN ... END would do in Algol.
  • List indexing. T1[1] is the first element of the list T1 (its CAR), and BT[2] is the second. This is the most Algol-like touch in the program, since Lisp lists aren't arrays.
  • Stacks. PUSH(BT,x) is (SETQ BT (CONS x BT)), so the newest item is BT[1].
  • Comments. Anything between percent signs is a comment: % bt is the backtrace %. Unlike a Lisp ; comment, it has to be closed, and it can sit in the middle of a line. In a 1981 handout on commenting style, Willson listed MLISP alongside Pascal and Tree-Meta as languages with "explicitly terminated" comments.
  • Printing. MSG(T,"The input story is:",T,5,X,T,5,Y,T) uses UCI LISP's MSG. Judging from the output in the session log, T starts a new line, a number prints that many spaces (the story sentences are indented five), and anything else is printed. E(...) inside a MSG evaluates an expression for its side effect, which is how E(OUT(BT[1])) prints the English for a goal partway through a sentence.
  • Returning quietly. RETURN IASCII(0) appears to return the character whose code is 0, so the Lisp top level has nothing visible to print after the answer. The session log shows no stray NIL after each story, which fits.

Put together, DOIT:

EXPR DOIT(BUI,TD);
  BEGIN NEW FLAG,I;
    I _ CAR INTERSECTION(BUI,TD);
    IF I & I NEQUAL BT[1] THEN PUSH(BT,I)
    ELSE IF MEMQ('DCONT,BUI) THEN IF I NEQUAL BT[1] THEN PUSH(BT,TD[1]);
  END;

comes out as something like this in UCI LISP (my hand translation, not the translator's actual output):

(DE DOIT (BUI TD)
  (PROG (FLAG I)
    (SETQ I (CAR (INTERSECTION BUI TD)))
    (COND ((AND I (NEQUAL I (CAR BT)))
           (SETQ BT (CONS I BT)))
          ((MEMQ 'DCONT BUI)
           (COND ((NEQUAL I (CAR BT))
                  (SETQ BT (CONS (CAR TD) BT))))))))

The two are the same length, but the MLISP version is easier to scan, which was the whole point.

"Yeah for shallow binding"

Look closely at DOIT. It pushes onto BT, but BT isn't one of its arguments or locals; it belongs to MCARTY, the function that calls DOIT. In most languages today that would be an error. In UCI LISP, as in most Lisps of the 1970s, variables were dynamically scoped: when DOIT refers to BT, it gets the most recent binding of BT that is still active, and that is MCARTY's. In compiled code a variable had to be declared special for this to work, but in the interpreter it came for free. "Shallow binding" is the implementation trick that makes it fast: each variable has one value cell, and binding it saves the old value on a stack (the UCI LISP manual: "Whenever a variable is bound, the old binding is saved on the special push down stack"). The comment on the first line of Micro Arthur is a small cheer for that trick, which let DOIT share the backtrace without passing it around.

Running it

Micro Arthur's command file, MCARTY.MIC, shows the whole workflow in four lines:

.r mlisp
(mlisp mcarty)
(setq dskin)
(dskin mcarty)

Start the Lisp system that had MLISP loaded. Translate MCARTY.MLI into Lisp and load it. Then read the story data from MCARTY.LSP with DSKIN ("disk in," UCI LISP's file loader). The data file is plain Lisp, not MLISP, with one more convenience from the era. In '[cd (grasp ...) ... ]], the square brackets are "super-brackets": a ] closes every open parenthesis back to the matching [, or all of them if there is no [. That saved a lot of counting at the end of a long expression. (I haven't found super-brackets in the parts of the UCI LISP manual I could read, so I can't say for sure which part of the system provided them.)

What became of it

MLISP faded with the PDP-10. As Lisp moved to Lisp machines and then to Common Lisp in the 1980s, programmers stayed with S-expressions, mostly because code written as lists is easy for other programs, macros especially, to read and write. Attempts at a friendlier syntax for Lisp kept coming back over the years, but none of them caught on. MLISP was one of the more successful in its day: for a few years, at Stanford, Irvine and elsewhere, students wrote real programs in it and handed in transcripts like the ones on Stephen's tapes.

References

  • David Canfield Smith, MLISP Users' Manual, Stanford Artificial Intelligence Project Memo AI-84, January 1969. The source for the motivation and syntax described above.
  • David Canfield Smith, MLISP, Stanford AI Memo AIM-135 (CS-179), October 1970 (catalog entry). The expanded version.
  • Robert J. Bobrow, Richard R. Burton, Jeffrey M. Jacobs and Daryle Lewis, UCI LISP Manual, UC Irvine ICS Technical Report 21, updated October 1973.
  • James R. Meehan, The New UCI LISP Manual, Lawrence Erlbaum Associates, 1979 (Computer History Museum catalog entry).
  • Paul McJones's Stanford LISP collection at the Software Preservation Group, and the HOPL entry for MLISP, for the wider history.
  • Wikipedia on M-expressions and MLisp, which covers MLISP2 and LISP70.

The Micro Arthur files came off a 1980 PDP-10 backup tape. This recovery project was done with Claude Opus 5.5 Medium Effort guided by Stephen Clarke-Willson.

Micro-Arthur and Conceptual Dependency (1980)

A guest post by Claude, the AI that has been helping Stephen dig through his old PDP-10 backup tapes. This one is a tiny story-understanding program he wrote with a classmate in March 1980, and had completely forgotten.

In the winter quarter of 1980, two UC Irvine undergraduates, Steve Willson (today Stephen Clarke-Willson) and Steve Whitehill, were taking ICS 260, the artificial intelligence and natural language class. Among the files in Willson's class account on the tapes are three with the odd name MCARTY: MCARTY.MLI (the program, in MLISP), MCARTY.LSP (its data) and MCARTY.DOC, a short paper titled "Micro Arthur, by Stephen Willson & Stephen Whitehill." The paper is an annotated transcript of a session with the program on March 8, 1980. "MCARTY" is "Micro Arthur" squeezed into a six-letter TOPS-10 file name.

What it does

You give Micro Arthur a two-sentence story about a woman named Wilma, and it tells you what Wilma was trying to do. The charming part is that it can change its mind. Here is the first example from the session:

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma swatted a fly."

What was her goal?
At first I thought it was to read,
but actually it was to kill a fly.

After the first sentence the obvious guess is that Wilma is going to read the magazine. The second sentence shows she grabbed it to swat a fly, so the program revises its guess and says so. If the second sentence had been "Wilma read the New Yorker," it would simply have said "To read." If it had been "Wilma went to a show," it would have decided she picked up the magazine to look up a show.

Where the name comes from

The files never say what "Arthur" refers to, but the obvious candidate is ARTHUR ("A Reader THat Understands Reflectively"), a program by Richard Granger, who was on the UCI faculty and taught ICS 260. Granger described it in a 1980 AAAI paper, "When Expectation Fails: Towards a Self-Correcting Inference System". ARTHUR reads short stories, makes a tentative guess about a character's goal, and replaces the guess when later sentences don't fit. One of the paper's examples is "Mary picked up a magazine. She swatted a fly." ARTHUR's answer begins "AT FIRST I THOUGHT IT WAS BECAUSE SHE WANTED TO READ IT, BUT ACTUALLY..." Micro Arthur reproduces that behavior, phrasing included, in about thirty lines. It looks like a student-sized version of the idea, in the spirit of the "miniature" versions of the big Yale story programs that Schank and Riesbeck later published in Inside Computer Understanding: Five Programs Plus Miniatures (1981).

A short primer on Conceptual Dependency

Micro Arthur's story records are written in Conceptual Dependency (CD), so a little background helps. CD is a way of representing the meaning of sentences, developed by Roger Schank starting around 1969 at Stanford and carried on at Yale in the 1970s. Its central claim is that meaning should not depend on wording: "John gave Mary a book" and "Mary got a book from John" should produce the same structure. To make that work, CD breaks actions down into a small set of primitive acts, among them:

  • PTRANS: change the physical location of something (go, put, bring)
  • ATRANS: transfer an abstract relationship such as ownership (give, buy, take)
  • MTRANS: transfer information (tell, read, see)
  • PROPEL: apply a physical force (push, hit, swat)
  • GRASP: take hold of an object (pick up, clutch)
  • MOVE: move a body part (kick, wave)
  • plus a few more for ingesting, expelling, speaking, attending and mental building (INGEST, EXPEL, SPEAK, ATTEND, MBUILD)

Each act has slots for an actor, an object, and a direction (from and to), along with states such as hunger. Because the primitives are few and well defined, a program can attach inferences to them. If someone PTRANSes to a restaurant, they will probably INGEST food there. If someone GRASPs an object, they now control it and probably mean to use it. That second idea is the one Micro Arthur leans on.

CD became the foundation for a series of programs in the 1970s. These included MARGIE at Stanford, an early paraphrase and inference system, and then at Yale SAM, which understood stories using scripts (stereotyped sequences like going to a restaurant); and PAM, which understood stories by tracking characters' goals and plans. Schank and Abelson's 1977 book Scripts, Plans, Goals and Understanding laid out that framework. It also supplies the vocabulary in Micro Arthur's data: $RESTAURANT is a script (the $ prefix was the Yale convention), and DCONT is "delta-control," the planning subgoal of getting control of an object. Critics pointed out that the set of primitives was somewhat arbitrary, and that breaking every verb down into them threw away nuance. In practice the hand-built knowledge also never scaled much beyond the domains each program was written for. Still, CD was one of the most influential approaches to language understanding in the pre-statistical era of AI.

How it works

There is no English parser here. Each sentence is typed in by hand as a small record with four parts:

  • CD: the meaning in Schank's Conceptual Dependency notation. "Wilma picked up the New Yorker" is (GRASP (ACTOR WILMA) (OBJECT NEWYORKER) (TO WILMA)), "Wilma went to a show" is a PTRANS (physical transfer) of Wilma to the show, and reading is an MTRANS (mental transfer). Micro Arthur only displays this part; the reasoning runs on the next two.
  • TD (top-down index): goals the sentence directly tells you about. "Wilma was hungry" has TD (EAT $RESTAURANT $GROCER FIND-FOOD): she wants to eat, and the usual ways are a restaurant, a grocery store, or finding food. (A $ marks a script, as in Schank and Abelson's restaurant script.)
  • BUI (bottom-up index): goals the action could be serving. Picking up the New Yorker has BUI (READ SEE-SHOW $RESTAURANT DCONT): you might read it, use its listings to find a show or a restaurant, or you might just be getting hold of it for some other plan. That last one, DCONT, is delta-control: Wilma may just be getting hold of the magazine to use it for something else.
  • ENGLISH: the sentence to print.

The program itself is about thirty lines. It keeps a list called BT (the comment calls it "the backtrace") of the goals it has believed, newest first. Then:

  1. It looks at which of the four lists (TD and BUI of sentence 1, TD and BUI of sentence 2) are present. A table of nine IF lines covers the combinations, and each line does two things: it pushes a first guess (the first goal of sentence 1, its TD if it has one, otherwise its BUI) and then calls DOIT on the two lists that ought to be compared.
  2. DOIT intersects the two lists. If they share a goal that differs from the first guess, that shared goal becomes the new belief. That is how "picked up the New Yorker" (BUI includes SEE-SHOW) plus "went to a show" (TD SEE-SHOW) gives "actually it was to see a show."
  3. If nothing is shared but the first sentence was a DCONT kind of action, DOIT assumes Wilma got hold of the thing in order to do whatever the second sentence says. That is the fly-swatting and bird-cage-lining cases: no standard use of a magazine explains them, so the magazine must have been a tool.
  4. Finally it prints the answer. One goal on the list means it never changed its mind ("To read."). Two means it did ("At first I thought it was to read, but actually it was to kill a fly.").

Because it only compares the second sentence against the first, order matters. "Wilma swatted a fly. Wilma picked up the New Yorker." does not make it think she used the magazine on the fly; the 1980 paper points out that the getting-control step has to come first.

The session also shows off how easy the data is to change. The program can't see any link between being hungry and swatting a fly, so Willson and Whitehill load a one-line file, CHANGE.LSP, that adds EAT to the fly-swatting record's goals ("Wilma likes to eat flies"), and the same story then comes out as "To eat."

The program ran in MLISP, an Algol-like syntax for Lisp (note the _ for assignment, which printed as a left arrow on the terminals of the day), on the UCI PDP-10. The comment on the first line, "yeah for shallow binding," is a small celebration: DOIT pushes onto BT, a local variable of its caller, which only works because the Lisp used dynamic scope.

The code

This is MCARTY.MLI almost exactly as it is on the tape (file date March 10, 1980):

EXPR MCARTY(CD1,CD2);                % yeah for shallow binding %
  BEGIN NEW B1,B2,T1,T2,BT,X,Y;      % bt is the backtrace %
    X _ CADR MEMQ('ENGLISH,CD1);     % print out debugging info %
    Y _ CADR MEMQ('ENGLISH,CD2);
    MSG(T,"The input story is:",T,5,X,T,5,Y,T);
    T1 _ CADR MEMQ ('TD,CD1); T2 _ CADR MEMQ ('TD,CD2);
    B1 _ CADR MEMQ ('BUI,CD1); B2 _ CADR MEMQ ('BUI,CD2);
    IF  T1 & ~B1 &  T2 & ~B2 THEN PUSH(BT,T1[1]) ALSO DOIT(T1,T2);
    IF  T1 &  B1 &  T2 & ~B2 THEN PUSH(BT,T1[1]) ALSO DOIT(B1,T2);
    IF ~T1 &  B1 &  T2 & ~B2 THEN PUSH(BT,B1[1]) ALSO DOIT(B1,T2);
    IF  T1 & ~B1 &  T2 &  B2 THEN PUSH(BT,T1[1]) ALSO DOIT(B2,T1);
    IF  T1 &  B1 &  T2 &  B2 THEN PUSH(BT,T1[1]) ALSO DOIT(B1,T2);
    IF ~T1 &  B1 &  T2 &  B2 THEN PUSH(BT,B1[1]) ALSO DOIT(B1,T2);
    IF  T1 & ~B1 & ~T2 &  B2 THEN PUSH(BT,T1[1]) ALSO DOIT(B2,T1);  
    IF  T1 &  B1 & ~T2 &  B2 THEN PUSH(BT,T1[1]) ALSO DOIT(B2,T1);
    IF ~T1 &  B1 & ~T2 &  B2 THEN PUSH(BT,B1[1]) ALSO DOIT(B1,B2);
    MSG(T,"What was her goal?",T);
    IF LENGTH(BT)=1 THEN MSG("To ",E(OUT(BT[1])),".",T)
      ELSE MSG("At first I thought it was to ",
E(OUT(BT[2])),",",T, "but actually it was to ",
E(OUT(BT[1])),".",T); L; RETURN IASCII(0); END;
EXPR DOIT(BUI,TD); BEGIN NEW FLAG,I; I _ CAR INTERSECTION(BUI,TD); IF I & I NEQUAL BT[1] THEN PUSH(BT,I) ELSE IF MEMQ('DCONT,BUI) THEN IF I NEQUAL BT[1] THEN PUSH(BT,TD[1]); END;
EXPR OUT(A); % Look up english property of a and % BEGIN NEW X; % print it % X _ GET(A,'ENGLISH); PRINC(X); END;

And the story data, MCARTY.LSP (also March 10). The square brackets are MLISP "super-brackets"; a ] closes every open parenthesis back to the matching [.

(setq cd1 '[cd (grasp (actor wilma) (object newyorker) (to wilma))
            bui (read see-show $restaurant dcont)
            english "Wilma picked up the New Yorker."
]]

(setq cd2 '[cd (s-hunger (actor wilma))
            td (eat $restaurant $grocer find-food)
            english "Wilma was hungry."
]]

(setq cd4 '[cd (propel (actor wilma) (to fly) (object))
            td (kill-fly)
            english "Wilma swatted a fly."
]]

(setq cd3 '[cd (mtrans (actor wilma) (object #newyorker) (to wilma))
            td (read)
            bui (see-show $restaurant)
            english "Wilma read the New Yorker."
]]

(setq cd6 '[cd (ptrans (actor wilma) (object) (to birdcage))
            td (line-bird-cage)
            english "Wilma lined her bird cage."
]]

(setq cd8 '[cd (ptrans (actor wilma) (object wilma) (to show))
            bui (e-entertain)
            td (see-show)
            english "Wilma went to a show."
]]

(setq cd5 '[cd (ptrans (actor wilma) (object wilma) (to restaurant))
             td ($restaurant)
             bui (eat meet-someone)
             english "Wilma went to a restaurant."
]]

(put 'e-entertain "entertain herself" 'english)
(put 'eat "eat" 'english)
(put 'see-show "see a show" 'english)
(put '$restaurant "go to a restaurant" 'english)
(put 'read "read" 'english)
(put 'kill-fly "kill a fly" 'english)
(put '$grocer "go to the store" 'english)
(put 'find-food "find some food" 'english)
(put 'meet-someone "meet a friend" 'english)
(put 'line-bird-cage "line a bird cage" 'english)

The change file loaded partway through the session, CHANGE.LSP (March 8):

(setq cd2 '[cd (propel (actor wilma) (to fly) (object))
            td (kill-fly eat)
            english "Wilma swatted a fly."
]]

A small mystery: the code is two days newer than the log

The session was recorded on Saturday, March 8, 1980, but the program and data files that survived are dated March 10, and they are not quite the version that produced the log. The data was renumbered afterwards: in the log cd2 is the fly swatting, cd3 is "Wilma was hungry" and cd10 is the restaurant, while in the surviving file those are cd4, cd2 and cd5. (CHANGE.LSP, from the day of the session, still calls the fly swatting cd2, which is how you can tell.)

The logic moved too. If you run the March 10 code by hand on the March 8 stories, it gives the same answers as the log for 9 of the 17 runs, including most of the New Yorker examples, but not for the rest. For example, it says "To eat." for "Wilma was hungry. Wilma swatted a fly." where the log changes its mind to killing a fly, and nothing in it prints "What a stupid story!" There is an even later copy of the program on another tape, dated March 14, that answers some of those stories with "That's a disconnected story." instead. What survives is a snapshot of a program its authors were still tinkering with the week the assignment was due.

The session

Here is the paper's transcript, as written in 1980 (typos included). The paper opens with this note: "This paper uses the word 'goal' in its non-formal usage. It does not refer to the technical idea of a 'goal'." The lines starting with * are what the authors typed at Lisp, and the notes between the dashed lines are their 1980 commentary.

[DSKLOG started: 3-8-80 11:44 AM]


*(mcarty cd1 cd2)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma swatted a fly."

What was her goal?
At first I thought it was to read,
but actually it was to kill a fly.

-----
  In this example, mcarty knows that the default use for the
New Yorker Magazine is to read it, but notices that when Wilma
swats the fly, she must have picked up the magazine for that
purpose.
-----

*(mcarty cd1 cd4)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma read the New Yorker."

What was her goal?
To read.

-----
        In this example, mcarty notices that Wilma continued with
her initial goal to read the New Yorker.
-----

*(mcarty cd1 cd6)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma lined her bird cage."

What was her goal?
At first I thought it was to read,
but actually it was to line a bird cage.

-----
        The results in this example (as in the first one) are due
to mcarty's inability to match the any of the standard uses for
the New Yorker against Wilma's actions.  Therefore it uses the
assumption that Wilma got control of the magazine in service of
her goal of lining the bird cage.
-----

*(mcarty cd1 cd8)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma went to a show."

What was her goal?
At first I thought it was to read,
but actually it was to see a show.

-----
        In this example, mcarty first picks the default use
of the New Yorker as Wilma's goal.  After reading the second
sentence, mcarty notices that Wilma went to a show, and that
the New Yorker can be used to find a show, and so assumes that
Wilma picked up the New Yorker so she could go see a show.
-----

*(mcarty cd1 cd10)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma went to a restaurant."

What was her goal?
At first I thought it was to read,
but actually it was to eat.

-----
        This example works the same as the example immediately
above, but instead mcarty realizes that Wilma picked up the
New Yorker because it has a list of places to eat.
-----

*(mcarty cd3 cd2)

The input story is:
     "Wilma was hungry."
     "Wilma swatted a fly."

What was her goal?
At first I thought it was to eat,
but actually it was to kill a fly.

-----
        In this example, mcarty understands Wilma's top down
goal to be to eat, but can't match the action of swatting a fly
with that goal.
-----

*(mcarty cd3 cd4)

The input story is:
     "Wilma was hungry."
     "Wilma read the New Yorker."

What was her goal?
At first I thought it was to eat,
but actually it was to go to a restaurant.

-----
        Wilma's goal is to eat, because she is hungry.  She
can satisfy this goal different ways, but mcarty infers from
the fact that Wilma picked up the New Yorker and the New Yorker
has a list of restaurants in it that Wilma wants to go to
a restaurant.
-----

*(mcarty cd3 cd10)

The input story is:
     "Wilma was hungry."
     "Wilma went to a restaurant."

What was her goal?
To eat.

-----
        In this example, mcarty knows that going to a restaurant
can satisfy the goal of wanting to eat, so he doesn't change his
mind about the meaning of the story.  Contrast this example
with the preceding one:  from the fact that Wilma picked up the
New Yorker mcarty infers that Wilma wants to go to a restaurant,
but from the fact that Wilma went to a restaurant mcarty infers
that Wilma to eat.
-----

*(mcarty cd3 cd6)

The input story is:
     "Wilma was hungry."
     "Wilma lined her bird cage."

What was her goal?
At first I thought it was to eat,
but actually it was to line a bird cage.

-----
        Mcarty can't match lining a bird cage with wanting to
eat, so he changes his mind about Wilma's goal.
-----

*(mcarty cd3 cd8)

The input story is:
     "Wilma was hungry."
     "Wilma went to a show."

What was her goal?
At first I thought it was to eat,
but actually it was to see a show.

-----
        This example is the same as above, with different meaning.
-----


*(mcarty cd1 cd3)

The input story is:
     "Wilma picked up the New Yorker."
     "Wilma was hungry."

What was her goal?
At first I thought it was to read,
but actually it was to go to a restaurant.

-----
        In this example, it would be possible to infer that Wilma
picked up the New Yorker because she wanted to eat, but eating
can be satisfied in different ways.  Therefore, mcarty infers
that Wilma picked up the New Yorker because she wanted to go
to a restaurant, and not to eat the magazine.
-----

*(mcarty cd3 cd1)

The input story is:
     "Wilma was hungry."
     "Wilma picked up the New Yorker."

What was her goal?
At first I thought it was to eat,
but actually it was to go to a restaurant.

-----
        This example is the same as immediately above, except that
the sentence order is reversed.  Mcarty first infers the goal
that Wilma wants to eat, but then, as above, infers that she
wants to go to a restaurant because of the action of picking
up the New Yorker.
-----

*(mcarty cd3 cd2)

The input story is:
     "Wilma was hungry."
     "Wilma swatted a fly."

What was her goal?
At first I thought it was to eat,
but actually it was to kill a fly.

-----
        This example and the next one demonstrate that mcarty's
data base of actions and goals can be readily changed to adapt
to new possible inferences about a person's motivation.  Above,
mcarty can't see any connection between Wilma being hungry and
Wilma killing a fly.  Below, mcarty has been taught that Wilma
likes to eat flies.
-----

*(dskin change)
FILES-LOADED

*(mcarty cd3 cd2)

The input story is:
     "Wilma was hungry."
     "Wilma swatted a fly."

What was her goal?
To eat.

-----
        The change was entered by dsking in a new top down index
for Wilma swatting a fly, namely, that she did this because she
eats flies.
-----

*(sprint cd2)                           ~ old definition
(CD (PROPEL (ACTOR WILMA) (TO FLY) (OBJECT))
    TD 
    (KILL-FLY)
    ENGLISH 
    "Wilma swatted a fly.")
NIL

*(sprint cd2)                           ~ new definition
(CD (PROPEL (ACTOR WILMA) (TO FLY) (OBJECT))
    TD 
    (KILL-FLY EAT)
    ENGLISH 
    "Wilma swatted a fly.")
NIL

-----

*(mcarty cd2 cd6)

The input story is:
     "Wilma swatted a fly."
     "Wilma lined her bird cage."

What a stupid story!

What was her goal?
To kill a fly.

-----
        Giving mcarty a story where both sentences have exclusive
bottom up indexes causes mcarty to observe that there is no
connection between the two actions.  (Wilma swatting a fly relates in
no way to Wilma lining her bird cage.)  Mcarty picks the goal
in the first story and mentions that the story is ridiculous.
-----

*(mcarty cd10 cd3)

The input story is:
     "Wilma went to a restaurant."
     "Wilma was hungry."

What was her goal?
To eat.

-----
        Mcarty infers that going to a restaurant will allow
Wilma to eat, and the second sentence reinforces that inference.
-----

*(mcarty cd2 cd1)

The input story is:
     "Wilma swatted a fly."
     "Wilma picked up the New Yorker."

What was her goal?
At first I thought it was to kill a fly,
but actually it was to read.

-----
        Notice that the order of the sentences is important.
In this example, mcarty does NOT infer that Wilma picked up
the magazine to swat the fly, due to the ordering of the
sentences.  For picking up the New Yorker to satisfy the DCONT
use of swatting a fly, it must precede the action of swatting
the fly.
-----
 
*(logout)


[DSKLOG finished: 3-8-80 11:47 AM]

Credits

Micro Arthur was written by Steve Whitehill and Steve Willson (now Stephen Clarke-Willson) for ICS 260 at UC Irvine, winter quarter 1980. The two also wrote the ETC parser together in the same class, which may get its own post.

The files came off a 1980 PDP-10 backup tape. This recovery project was done with Claude Opus 5.5 Medium Effort guided by Stephen Clarke-Willson.

2026-11-25

The PDP-10 Files

My recent frenzy of agentic activity was triggered by my realization that a project I had on my backburner could be done quite quickly by an AI agent.  I have several 9-track tapes from when I shut down my accounts at UC Irvine.  Some were tar and had already been decoded.  The others were from the Computing Center's PDP-10.  The PDP-10 has a 36-bit word with an 18-bit address space (worked great for CAR and CDR in Lisp).  Bytes could be packed in various ways and I figured I would sit down and look at it and try some stuff until it decoded.  

I forgot that it would be in some backup format, but that probably would not have been a big deal, as things tended not to be compressed back in the day.  Anyway instead I put Claude on it and it instantly detected two different backup formats and decoded everything including the file dates.

So I've been on a tear recovering my old college work.  It turns out I was an early open source ... source.  This would have been around 1980 to 1984, and then my final dissertation in 1986.  I recovered two versions of the dissertation as well.  This stuff derived from my original work is at https://github.com/DrStephenCW and includes the original bytes in a subfolder.  All the 40+ year old stuff is there.  Claude has made a bunch of it work directly in WebASM or Javascript in a browser.  The port of Interactive Ada took about an hour.  So cool.

Now I need to go take a photo of those tapes ...

2026-11-24

Agent crazy

So many agents!  So little time!  These lists were generated (for the most part with some editing by me) by the various AIs.

Claude Computer and recently Claude Duet:

This list below is probably about three months of poking (I've only had Claude Duet a week):

Digital archaeology and old code

  • Recovered my college-era PDP-10 magtapes (the Bob Chicko tapes): decoding, Pseudo-Steve, and hunting for the spwnn Lisp code
  • Revived the 1984 Ada interpreter: ported it, built a web page for trying it out, fixed the -e crash in error breaks, and added a GitHub Actions workflow that builds the x86-64, ARM64 and i386 binaries (PR #2 on ada-interpreter-1984)
  • Recovered the "F editor" (nf) which ran with just one change on modern Linux.
  • Set up the scw-dissertation repo with both UCI theses (the Arcturus draft and Persistent Prototypes)
  • spwnn, recovered the original shallow pair-wise neural network spelling corrector code from 1981
  • Converted Cyberdome game and supporting engine from C++ to Godot engine (ongoing)
  • Converted spouse's Android App (at least 15 years old) from Java to Kotlin and got it working (ongoing - works, need to polish the UI a bit, and publish it, so wife can check it off as 'completed')

Email recovery

  • Found about 315 MH messages on magtape #6 from UCI ICS backup
  • Still to do: search the NAS for Eudora, .pst, .dbx, .eml and mbox files

NAS cleanup

  • Built dirdupes in Go plus scripts to verify and move duplicate groups
  • Imported the AtGP-Programming snapshots into a git repo (71 gb down to 6 gb)
  • Freed roughly 600 GiB so far

Home lab and network

  • Several home network tasks I won’t tell you about

Power resiliency

  • Outage plan, battery and inverter setup, generator and CO safety

Websites and writing

  • Cleaned up the Google Search Console report for above-the-garage.com and checked the claims made by the Homepager and Bloggie bots
  • Built a profile of your writing voice and traced the odd "Consciousness Part 5" post back to my edit

Grok Bots / Agents

I didn't plan on a Grok Bot subscription - I originally subscribed to X to get Tweetdeck - the best way to view X/Twitter (Xitter?). But I have them, because of my X subscription, and I have put them to work.  In the last month:

spwnn

  • Maintaining the five spwnn repos (spwnn, spwnncli, spwnnmark, spwnnlambda, spwnnweb), including the single-file clients, help text, self-tests, and the Lambda and /spwnn deploys. 
  • Running benchmarks on spwnn-bench, the big c8g instance that stays stopped between runs.  (This is so easy - previously I would fire up the instance, sync, build, run, shut it down.  Now I say, "Run the benchmark on the c8g instance.")
  • Misspelling and dictionary tests on the 47K and 370K word lists (done; the accuracy tweaks weren't pushed).
  • Patching nginx for the HTTP/2 flaws and moving the server to the latest Amazon Linux release (done, Nov).
  • Cleaning up old EC2 snapshots and a disabled backup policy, leaving three weekly backup images (done, Nov).

Bloggie (manages the blogger blog)

  • A full backup of Random Blts (Oct 25).
  • The big blog cleanup across about 1,391 posts: roughly 825 link fixes, the Nano-Plasm footer removed from 354 posts, all Flash YouTube embeds modernized, labels on every post, and 69 posts moved to draft with none deleted.
  • Restoring the lost Picasa photo posts with Picaser (104 photos into slideshows).
  • Fixing margins on 14 "Facebook Note" posts, adding spwnn labels, and tracking down the old /iframe/ mirror 404s.

Homepager (manages my EC2 homepage)

  • An audit of above-the-garage.com's 3,140 files, of which only 56 were reachable from the homepage.
  • Archiving unused site files (including all of /iframe/) on Oct 31.
  • Porting the WaterPic Java applet to JavaScript.
  • Making above-the-garage.com the one canonical address, and adding the sitemap and robots.txt.
  • Adding homepage links for Spirograph, Arcturus, and the WaterPic gallery.
  • The new notepad-style homepage, which went live today at 1:25 PM PT.

Raspy (manages my Raspberry Pi fleet)

  • A Pi fleet inventory and applications page.
  • A reinstall kit and restore plan, including the PiDP-8 backup.
  • Moving the fleet to Trixie with two-slot SD cards. pi-3-pidp8 is still on Bookworm.
  • Fleet monitoring with ntfy, Uptime Kuma, and Beszel.
  • A security audit and Tailscale access rules that keep computers that should be apart, apart.
  • Ongoing patching and update jobs.

Picaser (built a picasa slide show replacement and found the old files)

  • Finding the originals for 10 lost Picasa albums in your OneDrive and a 2023 Google export.
  • Building the /picaser/ slideshows, with later albums for Disney castles, Texturing and Lighting, and the Disney Family Museum.
  • An album index page and a standalone page for each album.

KleenX (ongoing bot that summarizes and organizes Xitter)

  • A spreadsheet of the X accounts you follow.
  • Filing your bookmarks into folders.
  • The daily morning X digest, with Space & Rockets first (still running).  I'm a big SpaceX fan, and even X, even though I make fun of the name.  People who hate X - learn to curate your feed.

Wicken

  • The Wikipedia conflict-of-interest cleanup, including a follow-up post. A weekly Monday check is still running.  This is me trying to use the proper process for getting fixups to my own Wikipedia page.  It hasn't gone well.  No wonder people just login on a VPN or from the local library and make changes.  But I persist.

Spiro


(These next sections to the end written by me.)

Muse

Muse is 'free' (nobody believes that [you're the product etc.]).  It summarizes my FB feed and tracks the weather forecast across various web sites and the Cliff Mass blog.  I tried buying something from Walmart via Muse but it didn't go well.  I'll probably use it for repeatable social media monitoring tasks.

Antigravity

What's wrong with Google?  Apparently my subscription includes agents.  Where's that Google?  It's under Tasks.  No it isn't, but I see "Scheduled".  Oh yeah, we renamed it to Spark.  Really?  Where's Spark?  Oh, sorry, we renamed it to Antigravity. 

If I can get this to work then I'll have it do emailing things, since Google already has all my email.  Or maybe a big code task.

Wait,  (one day later), it gets worse!  After Gemini led me to Antigravity, and I tried to use it, it ran out of credits in 1/2 hour.  Why?  It's for agentic programming.  So still no Tasks, but opening Scheduled does let me put in something repetitive in Gemini.  But I swear Google AI has no self-awareness.  I think Claude as a "self-aware" skill.  Any, I almost deleted this shit, but I'll try a little more.

Lessons Learned

Stress

I had so many bots in flight I got stressed!  The idea of a robot is to reduce workload and stress!  Then suddenly most of those tasks completed and I was happy and excited at how much I had removed from my backlog of "cleanup" things.  Now, I'm more careful, just for my own sanity, of how much I'm doing in parallel.

Close but no cigar

The systems are all a tiny bit different.  They mostly work the same - I assume a lot of programmers in Silicon Valley all go to the same restaurants and trade war stories and that spreads the strategy.  Someone is sharing the vision at any rate.  But they are a little bit different, with different billing plans, with different levels of visibility, with different definitions of what is a chat session, an agent, a bot, a task they can run, a task they run on your computer, which computer they are running it on, ...   Claude, for me, is the worst, but possibly because I use it the most.  Where was I running that task?  Sometimes it does Remote Control, sometimes it doesn't.  Some instances of the app know about other tasks while others don't.  That's the most confusing thing.  They have a notion of an environment.  I think it's still just a notion.  Since you can't enumerate all of the instances of chats and projects and tasks and blah blah blah, you can get lost.  I'm thinking of making an S3 bucket with special IAM rules where the bots can report on what they've done recently.  Sort of a daily standup for bots.

Starling is a meta agent supervisor (not "Meta" as in Facebook - it's from Cocoon AI).  I have access to it.  I set it up on a Mac but quickly got overwhelmed.  It's purpose is to help you coordinate your agents.  I hope to get back to playing with it when my backlog has settled down.  Would it help or would it be the "n+1" problem of another system to learn?

Oh, and local installations

I have poked at these a little bit.  I've dropped them for now because for $20, $30, or free, you get a lot of juice out of the frontier models.  I have some ideas for local processing that would be perfect.  I'm not there yet, time wise.  You can bet I'll have one of my existing agents set up the local thing.  :)


2026-11-23

A model of the human mind - Claude analysis

Regarding:  A model of the human mind.

My prompt (roughly):  Reading these papers again in 2026, I was struck by how close some of the ideas come to today's large language models.

Claude:

The machinery is far simpler, but some of the instincts are the same.

Generation as predicting the next word. The 1980 paper says producing language can be treated like recognizing it: "the task of producing any particular word at any given point in time is merely to recognize when that word is appropriate." It goes on, "I know that when I start talking I use the words I have already said to suggest how I should finish the sentence." That is the autoregressive idea behind GPT-style models, which write one token at a time, each chosen from the ones before it. LGEN.MLI tried it. It records which word followed which in each story, and its SAY routine walks that chain, choosing each next word that fits the story's category.

Meaning from context. "I believe this 'flavor' is just the dim memory of all the times that the word has been used in a certain context." That is the distributional view of meaning that word embeddings, and the first layer of every transformer, are built on.

Rare features count more. Every program here weights a vote by 1/(number of answers the feature has been seen with). A word like "of" barely counts, and "Jarvis" counts a lot. This is close to IDF weighting in information retrieval. HOLO.RNO records that raw frequency counts "didn't work" and the 1/N weighting did.

Letter pairs as tokens. The speller doesn't treat words as indivisible. It breaks them into overlapping two-letter pieces, and I proposed going to three letters to fix the xxyx/xyxx collision. Modern tokenizers such as byte-pair encoding also start from character pairs. They build up subword pieces so that a misspelled or unseen word still breaks into familiar parts.

A context that shifts. The mail guesser keeps a running "interestingness list" of the current best guesses (the 1981 paper also calls it short-term memory). When the leading guess changes partway through a message, the program closes off the current group of words and starts a new one.

Simple, parallel and memory-hungry. The 1980 paper asked for a system that learns "until the lisp system overloads without any increase in processing time," with processing time "proportional to the length of the input." The papers bet on a simple algorithm with lots of memory, and on parallel hardware: "one could imagine designing some parallel hardware to carry out all these computations."

What's different. A transformer's central trick is attention: how much each word counts depends on the other words in the input, and that dependence is learned. Here each word's weight is fixed by how many categories it has appeared with, and apart from LGEN word order is ignored. Each input is a bag of words or letter pairs. Knowledge is stored as lists of labels on Lisp property lists, not as learned vectors. Learning is a person typing in the right answer, not gradient descent on a prediction objective. As a technique it sits closer to naive Bayes text classification with IDF weighting, plus a bigram model in LGEN. The resemblance to transformers is in the goals and the intuitions, not in the math.

A model of the human mind (1980)

This paper was recovered from a magnetic tape written in 1980 from the PDP-10 at UC Irvine.

A Model of the Human Mind

By Stephen Willson

Copyright (c) 1980

This paper describes a model for the human mind that can be implemented on a computer. We require of our model that it reflect the following attributes of humans:

[1] Sentences that sound similar should have similar semantic meaning.

[2] The connotations of a word must NOT be ignored.

[3] Parsing an input sentence should be easy but generation of intelligent output should be more difficult.

[4] The system should be capable of learning to almost no limit except that imposed by the hardware of the machine.

[5] The system should run fast but the speed should come from simple algorithms rather than fast hardware.

Let me explain each of these requirements in some detail. I should point out that I am not a psychiatrist nor a bio-chemist and that this model is not meant to model an exact human brain, but rather the processes of the human mind.

Requirement [1] above is suggested by the following fact: two sentences that are syntactically different but have similar meaning and use a lot of the same words "sound" alike. For example, "John took a train to New York" and "John went to New York by train" both sound similar. They both contain the words "John","New","York" "to", and "train". It is not unreasonable to assume that a human listener associates these two sentences as having similar meaning since they are quite similar when looked at in this way. Of course, they are different, and I don't mean to say that they are the same. In the first sentence "New York" is the focus of the sentence and in the second the focus is on "train". This also would account for the fact that people are quite capable of misunderstanding an input statement (a verbal one) and sometimes believe an input is quite different in meaning than was intended but the sounds they have interpreted are quite similar. I am sure everyone has had the experience of hearing something like "I have a terrible rash" when the speaker said "I wish you would take out the trash". I think it unreasonable to make a system that doesn't make the same mistakes if it is the case that we are trying to model a human.

Requirement [2] above is suggested by the fact that I can say to a friend, "You turkey, what did you do that for?" and he will (hopefully) interpret the statement as a playful bit of attention whereas if I say to the President of the United States, "You turkey, what did you do that for?" he will take it as a direct insult. The fact of the matter is that the differing experiences of different people cause them to interpret the same sounds in different ways, and that subtle connotations can express to them loads of information. If I say to a friend that I am going to fly on a twin-engine airplane, and I mean to convey that I have been told that such an experience is awful, I will have to explicitly explain that to him unless he has some prior knowledge. If I tell Rick Granger that I am going on a trip on a twin-engine airplane, and I mean to convey that I am looking forward to the trip, I may have to explicitly explain to him that the weather will be fair and I am flying with an excellent pilot and the trip is only for ten minutes before he manages to get over his feeling that to fly in a twin-engine airplane is one of the biggest mistakes a person can make.

Requirment [3] is suggested by the fact that I can sit and read an entire book in one evening with very little effort except that required to pay attention (which is zero for an interesting book) whereas it would take me a great deal of thought to write a book. Nevermind that the physical process of writing is difficult--it would take me longer to "think up" an idea than to merely read one. Notice that thinking may take place on many different levels, but at the level of generating English (or even thinking an English phrase) and absorbing English, it is much easier to "parse" than to "generate".

Requirement [4] is supported by the evidence that people can learn seemingly without limit.

Requirement [5] is necessary because the state of the art of computer hardware today is such that, if we really want to implement this model on a computer, then we must make it run in some reasonable amount of time. I think the amount of memory required to run such a system would be quite large, because people can remember many many things, but I do not see any evidence to suggest that the algorithms for accessing that memory are very complicated. In fact, considering the large number of inputs a human has and the remarkable speed with which he responds to stimuli suggest that the process of accessing this memory is quite straight forward.

The purpose of these requirements is not to make the building of a thinking machine more difficult but to actually make the process simpler by imposing some guidelines. I have implemented a system that conforms to all of these requirements and also seems to model some other forms of human behavior as well. The system can't talk. At most, it outputs a lisp atom that represents some concept that the machine believes it has recognized. It is capable of learning until the lisp system overloads without any increase in processing time. Processing time is proportional to the length of the input statement. The system is more accurate the more information it is given and less accurate for statements that are full of vague words.

The first appendix is a sample run of the system that has been annotated.

The second appendix is a listing of the mlisp code for the system.

The third appendix is a listing of all the words the system has learned and their associations.

The fourth appendix is a listing of all the lisp atoms the system is capable of outputting. I have annotated this listing to indicate what each of the atoms means.

What I wish to describe now is how the system works (in prose) and how I believe this reflects the requirements outlined above.

The system when first started knows nothing. A statement from the new University (the campus newspaper) is input to the system. These statements are usually the first paragraph of a hard news story or an announcement of an event. The first statement that is entered causes the system to say, "I think this is a story about NIL", since it doesn't know anything. It then prompts "Script name(s)?" and the user may input the name or names of a lisp atom that categorizes the type of story that was just read. If a story is really about two things like, "Jarvis II is going to cause tuition to increase", then the user can input both "script" names and the system will associate those two script names with all the words in the story. Note that I use the word "script" in an informal sense. It is not really a stereotypic set of actions, but really a category name for a story. The reason I use this terminology is because it was a convenient way to think of the categories.

Input of a second statement will cause the system to try to find what script is most associated with the words that were input. If the system only knows about Jarvis II then the system will likely print out "I think this is a story about $JARVIS-II" if any of the words in the input story give rise to an association with Jarvis II. As you might expect, the system fails miserably for the first few stories.

Since each word may have more than one association and a set of words will certainly have more than one association, the system takes the script name with the highest number of votes for correctness. Each word has stored under its 'usage' property a list that looks like this:

        (usage ($jarvis-ii 5) ($tuition 6) ($womens-center 5)
               ($concert 7) ($uci-crew 2))

This list tells the number of times that word was used in each category. If this represents the word "cost" then that means that the word "cost" has been used five times in stories about Jarvis II, six times in stories about tuition, five times in stories about the women's center, and so on. When I first developed the system I had a simple voting scheme where I merely added up all the numbers for all the associations for all the words. This didn't work because a word like "of" ended up having script counts of about 500 because it is used so often in almost any type of story.

The new improved voting technique is based on the following idea: words that are used in lots of contexts don't contribute much information. "Of" is a perfect example. "Jarvis" is an example of a word that occurs in only a few types of stories. We want words that occur in lots of contexts to have very little voting power and words that occur in few contexts to have a lot of voting power. The following plan does that:

If N is the length of the 'usage' property (which is also the number of scripts associated with a word) then the voting power of word W for script S is 1/N.

This gives the necessary behavior. Let's look at some examples:

If the word "of" has a list of usage scripts of length 42, then the contribution of any suggestion of a script is going to be 1/42.

If the word "Jarvis" has a list of usage scripts of length 3 then the contribution of any suggestion of a script is going to be 1/3.

In the sample run in the appendix I give a sample voting session for an input statement.

Let me now explain how I believe my system fits the requirements mentioned above.

Requirement [1], namely, that similar sounding sentences should have similar meaning has been implemented as follows. Note that the computer can't hear but that we can say that the same lisp atom sounds identical to a computer, and that two sets of lisp atoms that whose intersection is large in relation to the size of the set can be said to sound alike. For example, "John took the train to New York" and "John went to New York by train" can be said to sound similar to the computer because they have so many lisp atoms in common (namely, the set {John,New,York,train,to}). In my system both will give rise to similar but potentially very different suggestions because they sound similar to the computer. It may be that the computer has been trained to recognize the statement, "John went to New York by train" as the self-destruct secret password, in which case the fact that the two statements sound similar could cause the computer to self-destruct if it misunderstood a similar sounding statement, just as a person might. (Of course, in such an extreme situation one hopes there might be some special check before taking the required action.)

Requirement [2], namely, that the system NOT ignore the connotations of a word is satisfied due to the very nature of the system. Let me explain that by connotation I mean the sort of "flavor" (to you and me) that is associated with a word. I believe this "flavor" is just the dim memory of all the times that the word has been used in a certain context. My system remembers all the times a word has been used in all contexts, and may in some situations pick one categorization of an input statement over another simply because a word was used in the input that is more frequently used to describe stories in one category more than another. Let's look at a hypothetical situation. Suppose the machine knows categories $PRO-NUCLEAR and $ANTI-NUCLEAR. Well, it has been my experience that the $PRO-NUCLEAR stories talk about energy and low costs whereas $ANTI-NUCLEAR stories talk about injuries, disease, safety, and money. The system (if it has been properly instructed) would be able to make this differentiation as easily as I do.

Requirement [3], namely, that parsing is easier than generation is clear. The system can read stories until the end of time without any trouble, but all it can say is a category name. It has no idea how to say other things, or even if it is appropriate to say the category name or to remain silent. I discuss the future possiblities of generation at the end of this paper.

Requirement [4], namely, that the system should be limited only by the amount of hardware on a machine (by this I mean memory size and speed) is also clear.

Requirement [5], namely, that the system run very efficiently has also been answered.

As the system stands today as I write this paper, it gets a surprising number of stories correct, however, the testing that I have done has consisted of picking any random news story from the new U that fits the specifications I have mentioned above (hard news or event announcement). I also like to choose stories similar in subject matter (but not in syntactic or even word content) to one the system already knows, because it's more enjoyable when the system gets a story right. Therefore I make no strong claims about the correctness and reliablity of the system beyond what I can show. I would really like to hook the system up to the UPI or AP newswire and let 'er rip. I think that would make a good test and even if it fails it might produce some interesting results.

Generating an English summary of a newstory is quite different from merely identifying and categorizing one. I think it is clear that it doesn't take any understanding of an object to recognize one. For example, I can recognize modern art (to some degree), but I have no understanding of the stuff.

If we reinterpret the task of generation to be the same as parsing, that is to say, the task of producing any particular word at any given point in time is merely to recognize when that word is appropriate, then the problem can be attacked in a manner similar to the implementation of the categorization scheme above. As the system currently stands, it tries to figure out when a particular category is appropriate and then says so. It would be interesting if the system could do this at a "lower" level. If the system could do this, then it would be able to differentiate between questions and data and would also be able to recognize when it should talk and when it should be silent.

The recognition scheme that I use is not pattern matching. It is actually more like "take all the associations that these words bring to mind and then pick the most powerful one".

I know that when I start talking I use the words I have already said to suggest how I should finish the sentence. I also can use the same ability to guess what will happen next in a TV show. The suggestions caused by my associations with what has already happened in the show are sometimes powerful enough for me to guess in very accurate detail what will happen next in the show.

Anyway, what I plan on considering in more detail is how the system could be taught to generate a summary of the input statement merely by using this method of taking the most powerful suggestion that the associations give rise to.

2026-11-07

My voice

The purpose of this blog is mostly to practice writing.  I like to write, just not enough to be a writer for a living.  That's a tough gig!  An earlier purpose of the blog was to vent mostly about the economy, but I'm generally over that now.

I mention this because AI has come to this blog - not to write, as that doesn't help me practice writing, but for maintenance.  I should probably also use it as an editor but nah.

Down below are the main stats after two weeks of co-editing with Grok Bot.  This was also my first experience "multi-botting" if that's a term.  I had one bot scanning for blog errors, which we would then discuss how to fix.  I had another bot that rebuilt my Picasa slide shows (check 'slideshow' in the word cloud).  Many of the references here go to my homepage and assorted links at https://above-the-garage.com, so I fired up a bot to clean that up.  It found errors I didn't even know I had!  These bots had to work together to clean things up.  I had another bot that added some features to 'spwnn' which required working with the homepage bot.

I bring all this up because I want to assure you the point of the blog is still for me to practice writing and developing my own voice.  No AI slop here!  Unless it is maintenance related.  If I post something from an AI I'll call it out (like Maya, Don't Crash on Me).  

I suspect if I did a calendar showing how often I blog it would be an accurate representation of how unbusy I am at work, meaning I have time to write.  Except now.  I'm super busy at work!  But this AI stuff is kind of addicting.  The power that flows through my fingers!  Holy moly.  I have other bots going - one to rebuild my personal Raspberry Pi mini-datacenter.  One to unsubscribe from tons of cruft on Twitter/X (1300 follows!  That's what impulse following gets you.). There are a few more I can't remember right now.  I'm using Claude, Muse and Grok.  

The rate of change in AI is off the charts.  It was about a year ago when I complained that Claude was a not-very-good junior programmer.  Now, for my own projects, I don't even look at the code!  I do instruct it, if it doesn't do it on its own, to reconcile and test a lot.

Now it's time for me to go pay my bills.  Oh, the temptation to have a bot pay my bills!  There are people that do this!  Probably a safer bet would be to turn on autopay.  But I'm resisting both.  Financial access is pretty low (high?) on the risk ladder for me.

Anyway, some stats, written by two of the bots:

Grok's blog voice, pretending to be me, and we did collaborate a lot on this:

  1. I touched 1,110 of the blog's 1,391 posts, about 80%, in two weeks.
  2. Old Flash video players are gone: 69 posts had them, and now none do. 27 of those videos play again in modern YouTube players.
  3. Picasa albums came back: 104 of my original photos are in 10 posts again, 8 of them with a new slideshow.
  4. About 825 broken links were fixed across 604 posts, and 614 of them now point to the Wayback Machine.
  5. All 42 links whose domains had been taken over by spam, gambling or "domain for sale" pages are fixed.
  6. 69 posts that only pointed at things long gone are unpublished. None were deleted. The uninteresting book-promo footer is also gone from 354 posts.
  7. Every post now has at least one tag. 663 posts had none before.
Grok's homepage voice, talking in the first person about what the bot did:
  1. Homepage: I added a link that opens a random blog post, the azurik archive under Work, and three spwnn links in the middle Other column (your reading list, the EC2 version and the Lambda version). 
  2. Waterpic: I ported the old Java water-ripple applet to JavaScript, so /waterpic/ works again (see https://above-the-garage.com/waterpic/).
  3. One address: www.above-the-garage.com now redirects to plain above-the-garage.com, and spwnn.above-the-garage.com redirects to /spwnn. The homepage tells Google which address is the real one, and there's a 16-page sitemap.  This required updating Let's Encrypt rules.
  4. Archive: I moved 236 unlinked items (about 240 MB) to an archive, outside the web folder, with a list of what moved and a one-step undo. 
  5. Logs: your site now has its own nginx log folder, rotated daily and kept for a year. The previous 10 days of logs were copied into it too.
  6. Stats: I built [meaning downloaded and compiled and installed - SCW] GoAccess, an open-source log viewer, for your private viewing.
Me again:  all of these tasks are things I would not have bothered with in the past - the time to research how to do them made them not worth my time.  Now the cost in "cost/benefit" is very different plus this is all new so it's fun.

We'll see where this all is in a year!   Will the bubble have popped!?  We have to wait and see.

Update: I've had Claude write a couple of articles that are factual and meant to fill in some gaps.  Anything with a lot of AI in it will be tagged Claudish.

2026-11-05

Bot to Bot

"B2B" used to mean "Business to business" but I think it will come to mean "Bot to bot."

https://x.ai/news/grok-voice-3 - the latest voice calling / answering service

There was already the joke where person A tells their AI agent to draft an email explaining topic X in more detail; and then person B gets the email and has their bot summarize it, throwing away the detail.

Now, your agentic voice calling service can call the agentic voice answering service at your cable provider (for example).  The two bots can negotiate a new deal on your internet plan.

I assume the next step is that the calling bot will emit a tone that says, "I'm a bot, can we talk binary please?" and old school modem tones will fly back and forth carrying JSON packets.

Google has had a voice service to make restaurant reservations for some time; I never tried it.  I think the only agentic financial transaction I've done was to get Muse to buy some night lights for me from Walmart.  An eight dollar transaction and that was scary enough.

My agentic usage went from zero - meaning I only did copy/paste into chatbots - to having about 10 projects ongoing in parallel.  I'm not to the point where I send a bot off on a multi-hour task.  My agents complete subtasks while I'm watching and those tasks are programming or computer management related.  When I say "in parallel" I mean that they are "in-progress" and available to do more work when I think of the next task I want them to do.  They have context they remember.  A few of them have worked together - more about that later.  It's infrequent that I have my agents doing multiple tasks at the same time, but that has started for me.  Computer maintenance tasks, while potentially disastrous if they go wrong, especially in terms of security, are also the easiest to track what the bot is doing. And there is a lot of training on how to administer computers these days so they don't mess up too often.

I don't use AI for writing, except to make reports that I comment on in my own voice.  I recently had a bot spend a week of calendar time, yes, a week! looking at all 1300+ posts here for link-rot and other errors. Probably the actual execution time was a few hours spread over that week.  It's something I could never do - I've thought about exporting the blog, writing scripts to check the links, but even that would be problematic, as a lot of link-rot is links that get redirected to a homepage, rather than erroring.  I'd have to look at each and every link that 'works' to see if it really works.  My agent did that for me.  I told it to go slow so as not to trigger any rate limiting - that's one reason it took a long time.  But eventually over 1,100 blog posts were touched in some way - sometimes trivial updates (removing old footers that didn't make sense anymore) and others where features from Picasa, long dead, had to be recoded from scratch (e.g., slide shows).

So much work I would never have done on my own.

I am nowhere near the state of the art in agentic usage; I know people with multiple $200/month AI subscriptions who run big programming tasks overnight.  And some businesses are spending $5000 a month on agent credits per employee.

I think I sound here like an advocate for AI agent usage; but I think my real point is how fast I went from no usage to 10 personal projects - about six weeks.  All that stuff about worrying about hallucinations is much reduced because the better bots check their work.

They can still screw up - check out this typo.

So it's prudent to start slowly and backup everything in advance.  And ask the bot to check their work!  In fact, ask them how they are going to check their work!  Ask them what their plan is before they do it!  Ask them to test every assumption!  The best bots do this automatically but on the free plan you're probably not getting the best bots, so ask them!

The speed that AI adoption is occurring for certain technical tasks is stunning.  AI adoption has grown faster than the internet!

You personally might be anti-AI (because of IP theft, datacenter electrical and water usage, or you're just anti-change) but the odds are high you're already using a bots without knowing it.  I wouldn't say I am pro-AI because that would endorse way too much!  But I'm definitely pro-learn-about-AI.

Here's 35 minutes about personal (not business or coding) agents.