(way-way) TL;DR Victoriano Giralt's investigation of WASD using the
Anthropic Claude AI tool was described in part 1.
https://wasd.vsm.com.au/info-WASD/2026/0013
This second part describes the interpretation and
implementation of the AI tool recommendations.
Prologue: Victoriano and I early decided (to try) not to anthropomorphise
the AI (hence "the tool"). Its conversational dialogue is significantly
subversive in this respect. It comes across as personable, helpful and
concerned. Humans are 'wired' to respond positively to such overtures.
We were careful to (try and) maintain a healthy reserve.
It *is* impressive all the same.
The Claude reports remain unpublished, not because they reveal authorisation
or authentication issues -- pleased to say, none were reported -- but because
a couple could result in server downtime, and some more have the potential to
disrupt server behaviour. However the vast majority require administrator
access to the server or its configuration. They do not lend themselves to
client exploits. (The reports are also repetitive, cumulative, exhaustive,
and apart from the perhaps unintentional gem, somewhat tedious reading.)
If you want/need this level of WASD insight become an Anthropic client and
conduct your own investigation :-)
Once the next major release is on your site you will be able to gain some
insight by searching the server source code for "VGG".
Incidental remarks by the tool:꙳꙳
(tool output is bullet-pointed)
• I am not proposing you change working code -- thirty years is a strong
argument and VMS does not break compatibility.
• This kit has been under real load, on small systems and large, for a very
long time. That is evidence, and it should change what one looks for.
꙳꙳ The tool is very conversational, unsettling so.
Reminiscent of Dave Bowman's comment to the BBC's Martin Amor;
Amor: For example when I asked him about his abilities I sensed a
certain pride in his answer about his accuracy and perfection.
Do you believe that HAL has genuine emotions?
Bowman: Well he acts like he has genuine emotions.
Of course he's programmed that way to make it easier for us
to talk to him but as to whether or not he has real feelings
is something I don't think anyone can truthfully answer.
Kubrick's 2001: A Space Odyssey
Live Test Setup
~~~~~~~~~~~~~~~
The x86-64 VM that is my development site is connected to the internet and
constantly processes trawler traffic. Initially Victoriano required access
to an X86 WASD, somewhere to compile the server, retrieve compiler reports
for static analysis, and then sooner than later, to run a server image to
perform live behaviour analysis. Not wanting to be analysing a constantly
shifting code base, analysis WASD server code needed to be executed using
$ httpd == "$dka100:[vgg.wasd.exe]httpd_ssl.exe;0"
$ spawn httpd /env=9 /sysuaf=relaxed /service="https://:4443" -
/ssl=cert=wasd_local:WUCME_C_xxx.PEM
The /ENV=9 logically separates the analysis WASD instance from the site
server (the 9 could have been any of 1..15). The WASD instance otherwise
using the site's configuration files.
Usefully, the in-progress changes could be compared at any time using the
same /ENV=9 approach, selecting variant builds of the server, verified by the
server log, "%HTTPD-I-IMAGE, HTTPD_SSL 12.4.2 22-AUG-2026 07:44:50.33 ..."
$ httpd == "$dka100:[vgg.wasd.exe]httpd_ssl.exe;-2"
Similarly, comparisons with the site code base made using the site image.
$ httpd == "$wasd_exe:httpd_ssl.exe;0"
Victoriano** has now reestablished his own x86-64 experimental setup under
the VSI Community License Program to continue his interest in VMS and WASD.
** signs emails 'Retired sysadmin'; in fact retired
when Director Of Innovation, University of Málaga.
Command-line WATCH
~~~~~~~~~~~~~~~~~~
Proves its usefulness (yet) again.
Appending /watch=nostartup,<integer>,<integer> to the above command line
reports the WATCH statements to SYS$OUTPUT so an invocation such as
$ spawn /log=<name>.LOG httpd /env=9 /sysuaf=relaxed /service="https://:4443" -
/ssl=cert=wasd_local:WUCME_C_xxx.PEM /watch=nostartup,<nnn>,<nnn>
results in the full server output being recorded including WATCH statements.
Command-line WATCH was used extensively by the tool to analyse and illustrate
dynamic behaviour conjecture.
• [WATCH] is the best in-server diagnostic facility I have come across.꙳꙳
꙳꙳ Sometimes difficult to discern comment from what seems borderline flattery.
Of course a machine cannot intentionally dissemble :-| Must be true!
$FAO Issues
~~~~~~~~~~~
The tool made multiple passes of WASD's use of $FAO and its own FaolSAK()
function (Swiss Army Knife :-) which builds on and extends the fundamental
approach of VMS' $FAO system service in multiple useful fashions. During
these it basically compared format directives (e.g. !AZ) with the arguments
supplied against the directive.
Seven issues were discovered. Most of these were missing arguments. Only
one had the potential to disrupt the server. Many of the remaining were
contained in module-WATCHing usage, something not compiled with standard
distributions, and would need a specific combination of WATCH items to
trigger. One comment now in the source code
20-AUG-2026 MGD VGG fao-report; obviously doesn't grok "!77*-"
Indexing Issues
~~~~~~~~~~~~~~~
More concerning than $FAO arguments were five array and/or pointer arithmetic
issues reported. These certainly have the potential to crash the executable.
However most were associated with configuration files and required
administrator input to trigger.
Four were basically index out-of-bounds due to a '>' comparison, simply
remedied by '>='. Not to trivialise array issues. They can be quite
destructive, silently overwriting other data on the stack and in memory
pools, and difficult to investigate for the same reasons.
The fifth, commented on by the tool
• Takes an expression with seventeen nested parentheses in a configuration file
to reach, so it is the administrator's own foot꙳꙳ [it shoots], not a client's.
Perhaps we'll leave that in there to see how long before it's reported :-)
꙳꙳ The tool attempts to use colloquialisms.
Reading Request Bodies
~~~~~~~~~~~~~~~~~~~~~~
The tool performed a functional analysis of the network read code,
particularly in the context of filling request bodies (POST and PUT), from
the source code alone. This suggested that there were issues with mixes of
native 64 bit and 32 bit data being implicitly cast from 64 to 32. These
could sometimes result in truncations and/or empty values.
WASD has grown over the years from a purely 32 bit (VAX) implementation to
incorporate 64 bit native data types (Alpha, IA64 and now x86-64),
particularly from v12.0 onwards. The tool seems particularly adept analysing
C code interactions between data sizes and the resulting bit patterns.
In addition, in the deep, dim WASD past, I had put in a kludge using bit 31
of a 32 bit counter, allowing me to set up a test rig for the filling of very
large buffers (limited to compilations with module WATCHing enabled). The
tool pounced on this (in a metaphorical way) and wouldn't let it go (again,
so-to-speak) insisting on demonstrating the issue on a live system.
The tool required configuration allowing a very large body to be PUT into a
scratch file area. This was reasonably easy to satisfy on the development
system. Generating its own code to perform this PUT, it did demonstrate the
deficiency (also see 'Takes it on the Chin' below), and proved its point ...
to an extent. Rather than the code analysis conjectured buffer overwrite the
processing initially reported a bug-check.
However the whole bit 31 thing was an obvious kludge with repercussions
waiting to emerge under the right circumstances and a conspicuous candidate
for reworking. Which has been done, three times before getting it right, of
course the tool pointing out deficiencies each time and the development
system used to demonstrate them. So much for working under pressure.
Human Intelligence Out/Un-does Itself
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As the iterations proceeded over a period of weeks my feet sometimes got
ahead of the rest of me and I'd need to revert changes made, a couple of
times moving back to a previous (VMS) version of a source file. Subsequent
reports would outline any regression.
• 260825a had it right. 260826a reverted it to the 260824b form:
Several times I felt overwhelmed by the speed and number of fixes, and even
comment improvements suggested, as well as the copious reasoning and
explanatory notes accompanying each. Multiple times I got it wrong, even
just a little, which would promptly be pointed out in no uncertain terms in
the next report. I couldn't help but think of the 9000's comment
HAL: This sort of thing has cropped up before,
and it has always been due to human error.
Code Suggestions and Patches
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As mentioned above, issues are accompanied by copious reasoning and
explanatory notes. These sometimes include an example code change
• Http2ErrorString(), unbounded below
if (error > HTTP2_ERROR_COUNT) return ("*UNKNOWN*");
Suggested:
if (error < 0 || error >= HTTP2_ERROR_COUNT) return ("*UNKNOWN*");
When prompted to, it will also generate (*x) diff code changes.
• @@ -936,7 +936,7 @@
WatchThis (WATCHITM(h2ptr), WATCH_MOD_HTTP2,
"Http2StreamDrop() !UL !UL/!UL (!UL) rqptr:!UL",
s2ptr->Ident, h2ptr->ConnectNumber, s2ptr->StreamNumber,
- LIST_GET_COUNT(&h2ptr->StreamList), rqptr->ConnectNumber,
+ LIST_GET_COUNT(&h2ptr->StreamList),
s2ptr->RequestPtr ? s2ptr->RequestPtr : 0);
if (!s2ptr->StreamClosed)
After seeing this 'clutter' in addition to the explanations, and considering
many (most?) of the changes were relatively trivial, I declined any more
patches. Shortly thereafter ...
• Suggestions rather than patches, as you asked --
say the word and I will send those three as a short batch.
Moving Target
~~~~~~~~~~~~~
During the period of WASD analysis I was, of course, chasing other issues.
The tool would pick up on any change it had not previously flagged. Ongoing
with one of the field test sites was periodic channel exhaustion from
overwhelming network connections (DOS attack?) resulting in server restart.
A third attempt, moving the connection 'busy' trigger even further up into
the network code, was noted.
• Two things worth your time, and a short list of smaller ones.
The first is new, from the NetConcurrentCount move: an exit that
increments and never decrements. The second is old -- it is in
12.4.1 as well -- and only your own test URL can reach it, but on
your 27-AUG image it spins the instance until someone STOPs it,
and your own kitc-1 fix is what uncovers that. Both are one line.
Seems an overly genteel way of saying, you need to fix these :-)
AND ANOTHER THING
~~~~~~~~~~~~~~~~~
Our initial response; Victoriano has only provided the tool with v12.4.2
sources. The comment above regarding v12.4.1 must have been established by
independent research. Of course it is all available online. Question is; is
this a legitimate activity by the tool, or is it exceeding its remit?!
Perhaps at the outset we should have constrained its activities with a
directive to confine itself to supplied resources? And the corollary
question; can a goal-seeking technology's self-restraint be relied upon?
Turns out, after Victoriano later queried the tool, it stated
• Confirmed, and with greater precision than I had provided in the report:
the loop in question (netio.c:765-787) has no entry in the file’s own
changelog from 13 June 2026 to 24 August 2026 —
8< [6.5 lines] snip 8<
“that’s how it was in 12.4.1” is an inference drawn from the changelog,
not a direct verification — and I should have clarified this in the
report if greater rigour had been required.
Fair enough. Also insightful and unnerving in and of itself.
Takes it on the Chin
~~~~~~~~~~~~~~~~~~~~
The tool accepts feedback and refines its approach.
• You are right and I was wrong. curl does let you override the
Content-length it would otherwise generate, and --upload-file keeps
streaming the file to EOF regardless of what that header says, so the
declared length and the sent length simply diverge. That is better
than a raw socket for this test, not worse: the client never runs dry.
Welcomes human adjustment.
• kitd-1, net.c. Moving NetConcurrentCount++ past the GatewayBg block
is the better of the two repairs -- no new decrement to keep in step
with the other four.
• kit-1, http2.c. Fixed, and it is better than what I suggested --
taking ConnectNumber from s2ptr->RequestPtr instead of rqptr means
the same test covers both arguments.
And even acknowledges "Mea culpa".
• Both notes were mine and were wrong — I’ve confirmed this by reading
the code; I’m not simply taking his [MGD] word for it:
• fao.c: he was right; my interpretation was the other way round. The
descriptors use “!@UQ\0” and “!#@UQ\0” — the @ denotes indirection:
• cli.c:, even worse: it had been fixed for some time and I kept
repeating the mistake. I looked at kit27a/kit28a (28 Aug) — the +1
was indeed missing there — but I never checked it again in the
subsequent kits, and in kit914a and kit920a it’s already there:
An Interesting Exercise
~~~~~~~~~~~~~~~~~~~~~~~
When Victoriano first described his recent experiences with the Anthropic
Claude AI he sounded impressed and excited. Then when he came back saying he
now had his own account and was suggesting applying it to WASD I responded
"The idea both frightens and intrigues me."
It did, and still does, to a certain degree.
The investigation took place over multiple weeks during August and September.
The welter of static and dynamic analyses and diagnostics generated is
daunting. Of course it can be as fast and/or as slow as the input to the
tool. The minimum turnaround time in this case was largely dictated by the
timezone difference between .au and .es, some 8 hours -- a working day.
At a personal level, the novelty of having, even insightful, critiques of
your VMS 'pet project' day-in, day-out, wears very thin, very quickly.
At an AI collective level (somewhat whimsically, somewhat deliberately,
referred to as the AI hive-mind) this information about WASD in particular,
and VMS generally, undoubtably has been incorporated and integrated into the
AI's shared resources and shared reasonings.꙳꙳ This, obviously, improves
the collective AI ability to understand and work with these environments.
꙳꙳ Unsure of the extent of this shared knowledge I would hesitate to explore
security-sensitive data with a similar tool without explicit safeguards.
Many thanks to Victoriano Giralt for his generosity of interest, effort,
funding (in this instance) and ongoing friendship.
HAL: 🎶 Daisy, Daisy, give me your answer do...
For those (must be a single digit number) unfamiliar with the cinematic opus:
https://en.wikipedia.org/wiki/2001:_A_Space_Odyssey
https://www.youtube.com/watch?v=kR2r-A9H3Kg
https://www.youtube.com/watch?v=O2MBarHzeYM
https://miscel.wikidot.com/2001-transcript
This item is one of a collection at
https://wasd.vsm.com.au/other/#occasional
|