Why I bought a MacBook Neo despite its 8 GB of RAM and mobile processor

PC Pro may have panned the device, but I bought a MacBook Neo anyway. The lack of power was what deprived the machine of the magazine's recommendation, so that is not why I made my acquisition. After all, the combination of 8 GB of RAM and a mobile processor makes it anything but a power user's main device.
My use case is different because this is a machine for taking with me on leisure trips away from home. A better comparison would be the 2016 12.9" iPad Pro that went to Canada with me during the past summer. This helped to arrange travel plans and assess the weather conditions while I was there. These were things that it still was more than capable of doing, even if age caught up with its Logitech cover and keyboard. A piece of plastic broke off, meaning that the tablet was not retained as securely as before.
Last year, the iPad also came with me on an elongated weekend trip to Zurich. While on the way there, someone shared a work opportunity with me that I decided to follow up and pursue even though this involved employment and not contracting as I might have hoped. Sending a CV proved to be beyond the technology on that occasion, possibly because of its age and a certain lack of effectiveness when it came to using Microsoft software. The CV was sent when I got home, making me wonder if I made a less than optimal impression, not that it seemed to matter later.
The latter experience highlighted how even a lightweight laptop might have been better at the time. Thus, the Neo fits this brief and betters the A series CPU of the iPad as well as its 4 GB of memory. The unit is compact too, which means that its screen is not as tall as that of the older machine. That likely could be the main drawback rather than its memory capacity or its own A series CPU. Nevertheless, that can be overlooked given the use that I have in mind for it. If a copy of my CV ever needs to go to someone while away from home, the process of sending that should be far easier than on the machine it supplants in so many respects.
Six tools for evaluating and managing AI applications
Building an AI application takes more than a model and a prompt, since the outputs need checking, the failures need explaining and the weak points need probing before anyone relies on the result. Six tools cover much of that ground: MLflow, Arize Phoenix, Langfuse, LangSmith, Promptfoo and DeepEval. They overlap on evaluation but differ in emphasis, with some centred on observability, some on testing and others on experiment management or agent development.
Telling them apart matters because a team may need only one, or may get more from a combination. Each tool is covered in turn below, with the claims checked against official documentation, before a closing look at how they might fit around clinical programming work.
MLflow and the Move from Machine Learning to Generative AI
Databricks announced MLflow on 5th June 2018 as an open-source platform for managing the machine learning lifecycle, long before large language models became part of everyday development. It remains the broadest of the six, since the project describes itself as Apache 2.0 licensed and backed by the Linux Foundation, with tracing, evaluation, prompt management, an AI gateway and a model registry sitting side by side. Its more recent releases added much of the generative AI side, which puts it in closer competition with the specialist observability tools.
Experiment tracking remains the foundation, with each run recording parameters, metrics and output files. Comparing three local models at sorting free-text support requests into categories would mean logging precision, recall and F1 score for each one and reading the results back later, rather than hunting through spreadsheets.
Once a model has been evaluated, the registry gives each registration an incrementing version number, and tags can carry metadata. Aliases add a mutable, named pointer to one version, so an alias such as champion can mark the production model while a candidate is tested, and an application can load models:/MyModel@champion instead of a fixed number. That is close in spirit to promoting a tested macro library while newer versions remain in development.
On the generative AI side, tracing is described as fully OpenTelemetry-compatible, and the @mlflow.trace decorator can wrap an ordinary Python function. A deterministic regular-expression checker can therefore be traced in the same way as an LLM-based classifier, which gives both approaches a common record. MLflow also tracks token usage and cost within traces, and its evaluation tools accept custom scorers alongside LLM judges.
New installations now use SQLite as the default backend store, with PostgreSQL available for larger deployments and a Docker Compose project provided for those who prefer containers, as the self-hosting documentation explains. A local installation needs little more than pip install mlflow.
Ollama exposes an OpenAI-compatible API that covers a subset of the OpenAI API, and MLflow's OpenAI integration switches on tracing with a single mlflow.openai.autolog() call. Pointing the OpenAI Python client at a local Ollama server and tracing the result through MLflow therefore looks feasible.
Databricks sells a managed version with Unity Catalog integration for enterprise governance, but the open-source edition runs without it. Neither should be mistaken for a validated regulatory system, so any records it produces need separate assessment before they are treated as an audit trail.
Phoenix, Langfuse and LangSmith for Observability
Observability tools answer a different question from test frameworks, since a trace describes what happened during one execution while a test compares the result with an expectation. A trace shows which prompt was sent, what the model returned and where an agent went wrong, and the two activities complement each other. Phoenix, Langfuse and LangSmith all cover tracing and evaluation, so the differences come down to their intent and licensing.
Phoenix describes itself as an open-source AI observability platform for experimentation, evaluation and troubleshooting, built on OpenTelemetry. Installation is pip install arize-phoenix followed by phoenix serve, and its prompt management covers version control and tagging. The server is released under the Elastic Licence 2.0, which allows free self-hosting, while Arize sells a separate managed product called Arize AX.
Langfuse concentrates on production tracing, evaluation and prompt management, with an MIT-licensed core. Its enterprise modules live in separate directories and need a licence key, although the core runs without them. Self-hosting is a heavier undertaking than with Phoenix, since the documentation lists web and worker containers backed by PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage.
LangSmith, from LangChain, is a commercial platform that centres on observability, evaluation and deployment for agents. LangChain's pricing details show a Developer plan with one free seat and 5000 base traces a month, while self-hosted and hybrid deployments sit in the Enterprise tier.
Promptfoo and Declarative Testing
Where observability tools describe runs, Promptfoo checks them. The project calls itself a CLI and library for evaluating and red-teaming LLM-based apps, and its tests live in declarative YAML configuration that can sit beside application code in Git. An evaluation combines prompts, providers, test cases and assertions, so three prompts, four models and 100 test cases would produce 1200 combinations to score. Results are cached to disk by default, and the --max-concurrency option caps the number of parallel requests.
Promptfoo is primarily a Node.js application. The installation guide asks for a recent Node.js release, recommends the current long-term support version and lists npm, npx and Homebrew as routes, while the command line reference covers promptfoo init to create a project, promptfoo eval to run it and promptfoo view to open the results in a browser.
The Ollama provider is native, so no LangChain, LiteLLM or gateway sits in between, and an identifier such as ollama:chat:qwen3:14b talks to a server at http://localhost:11434 by default. Free-text support requests have no fixed prefix to match on, which is where a model earns its place over a simple pattern check. A small configuration for classifying them with local models such as Qwen3.5 4B might look like the following.
prompts:
- "Classify this support request as BILLING, FAULT or GENERAL. Reply with one word. Request: {{message}}"
providers:
- ollama:chat:qwen3:14b
- ollama:chat:llama3.1:8b
- ollama:chat:qwen3.5:4b
tests:
- vars:
message: "I was charged twice for my December invoice."
assert:
- type: equals
value: BILLING
- vars:
message: "The export button does nothing when I click it."
assert:
- type: equals
value: FAULT
The available assertions include exact equality, required text, regular expressions, JSON validity, latency, cost, custom JavaScript or Python, semantic similarity and an LLM-graded rubric. For generated SQL, a test could demand a SELECT statement, forbid DROP TABLE and require a terminating semicolon. Passing those checks shows that conditions are met, but it does not prove that the code is functionally correct.
Red teaming is the other major strength. The red team documentation covers prompt injection, jailbreaking, privacy leaks including those from RAG context, excessive agency and tool-based risks, and the CLI adds promptfoo redteam run and promptfoo redteam report. Tests can be mapped to the OWASP Top 10 for LLM Applications through the OWASP preset, selected with owasp:llm, and to the Measure function of the NIST AI Risk Management Framework through the NIST preset, selected with nist:ai:measure. Promptfoo notes that some measures need evidence beyond an automated scan, and such tests complement access controls and application isolation rather than replacing them.
On 9th March 2026, OpenAI announced that it would acquire Promptfoo, and the project's repository now carries a banner saying it is part of OpenAI while remaining open source and MIT licensed. Telemetry is switched off with PROMPTFOO_DISABLE_TELEMETRY=1, update checks with PROMPTFOO_DISABLE_UPDATE and hosted generation with PROMPTFOO_DISABLE_REMOTE_GENERATION, while PROMPTFOO_SELF_HOSTED enables a self-hosted mode. None of these settings replaces network-level isolation where confidentiality requirements are strict.
DeepEval and Testing Inside Python
DeepEval takes the opposite route to Promptfoo by putting evaluation into Python code rather than YAML. The README likens it to `pytest` for LLM applications, and it is released under Apache 2.0 and installed with pip install -U deepeval. The deepeval test run command runs `pytest-style` test files and fits into CI/CD workflows, while evaluate() serves scripts and notebooks.
Built-in metrics include answer relevancy, faithfulness, hallucination, contextual precision, recall and relevancy, summarisation, tool correctness, task completion, bias, toxicity and step efficiency. G-Eval grades output against natural-language criteria, while the DAG metric builds a decision tree with deterministic branching, which suits mixed checks such as confirming a format before judging tone. For generated SQL, that could mean checking syntax first, then the required clauses, and only then handing the final judgement to an LLM.
The Ollama integration makes a local model available as the evaluator, and deepeval set-ollama --model=qwen3:14b sets it as the default provider for all metrics unless Python code overrides it. One model can then generate an explanation while another assesses it, which may reduce some shared failure modes but cannot guarantee independent judgement. Both workloads also compete for the same local computing resources.
A G-Eval score such as 0.9 should not be read as a calibrated probability that an answer is correct, so the criteria and the evaluator still need scrutiny. DeepEval uses goldens as reference cases holding an input and expected results, and its Synthesizer can generate more of them from documents. Generated data still needs verification, and for clinical statistical programming independently established reference results are preferable to using one unverified AI response to validate another.
Telemetry is disabled with DEEPEVAL_TELEMETRY_OPT_OUT=1, as set out in the data privacy documentation. The framework was built by the founders of Confident AI, whose separate platform is optional.
Choosing Tools for Testing AI-Assisted Clinical Programming
Phoenix and Langfuse centre on observability while LangSmith concentrates on agent development and deployment. MLflow pairs experiment tracking with model lifecycle management, whereas Promptfoo and DeepEval focus on testing. The categories overlap, since Promptfoo and DeepEval both support deterministic checks, LLM-based grading, regression testing, local execution and CI/CD integration. Promptfoo suits teams that want tests kept apart from application code and a strong security focus, whereas DeepEval suits Python projects where evaluation belongs in the test suite.
The tools can also be combined. Promptfoo could run acceptance tests, Phoenix could help diagnose a failing trace and MLflow could keep the wider record of how results vary across models and configurations, with DeepEval adding Python-based metrics. Each link in that chain needs its own integration and instrumentation work, so the combination should be planned rather than assumed.
For clinical statistical programming, candidate tasks include SDTM mapping suggestions, ADaM derivation explanations, RECIST logic and program documentation. A sound study would compare deterministic verification, LLM-based assessment and a hybrid with human scrutiny, using independently established reference results wherever feasible.
These tools also point towards a better model for working with agentic AI than approving and reviewing each output, which scales poorly and invites passive attention at the point of sign-off. Here the human effort moves earlier and becomes more active, since people define the acceptance criteria, choose the awkward test cases, write the checks and investigate the failures that surface in traces and results. A team that has done that work understands the behaviour of the system far better than a reviewer who sees only a stream of outputs, and it shares a body of evidence that colleagues can examine and challenge.
The benefit depends on people remaining fully present in the work, which the tooling can support but cannot supply. A suite written once and left running, with a green tick treated as the answer, is approval by another name, and an LLM judge brings blind spots of its own. Sampled human scrutiny, independently established reference results and regular maintenance of the tests keep the process honest.
For a hands-on route into the same ideas, the companion repository for the LinkedIn Learning course Agentic AI: Build Your First Agentic AI System, taught by Aishwarya Naresh Reganti, builds a customer support router and then a planning system, using Arize Phoenix for observability and an LLM judge for evaluation. It also introduces a framework called Continuous Calibration, Continuous Development for safely increasing the autonomy given to AI systems.
None of these tools removes the need for acceptance criteria or for verifying consequential results. Their value lies in making testing, comparison and investigation more systematic.
Installing R and the Tidyverse in a SAS Analytics Pro on Viya container
Because I wanted to use PROC R, which SAS introduced as a new procedure in SAS Viya for using R methods and packages within a SAS process and moving data between SAS and R, R had to be available where SAS runs. This needs SAS Viya 2026.03 or later, and a stand-alone R script is run with a statement of the form proc R infile=...;.
That meant installing R in a container running SAS Analytics Pro on Viya, which SAS describes as a cloud-ready, containerised version of SAS Analytics Pro. This is because R is not included on the Docker image from which the container is created, so it has to be added to every new container. That is why the whole installation has to be repeatable.
With R 4.5.2 in place, adding the Tidyverse was next. It looks like a one line install on a minimal Linux system, yet it produced a long trail of errors that was far longer than the problem behind it. The explanation is that the {tidyverse} is a meta-package, which lists 29 other packages as imports. Several of those, directly or indirectly, compile C or C++ code that needs system libraries and development headers, and a minimal system has none of them. When one package fails, everything that depends on it fails too, which is why some much output is produced.
Reading the Output for Root Causes
The installation was run with the command below, with all output sent to a log file so that it could be searched afterwards. Having the output in a file matters here because each retry needs a fresh log to compare against the last.
/opt/R/4.5.2/bin/Rscript -e 'install.packages("tidyverse", repos="https://cloud.r-project.org")' > /tmp/tidyverse-install.log 2>&1
Searching that file for the underlying failures is quicker than treating every error as a separate fault. The command below brings the main messages together, and it is worth running again after each attempt.
grep -iE 'error:|fatal error|not found|configuration failed|non-zero exit status' /tmp/tidyverse-install.log
The Four Packages That Failed First
The first results showed four packages failing to find system components. The {openssl} package could not compile because `openssl/opensslv.h` was missing, and its documentation says that Fedora, CentOS and RHEL systems need `openssl-devel`. For {systemfonts}, the gaps were `fontconfig` and `freetype2`, which are precisely the two requirements it declares, and configuration stopped because `fontconfig/fontconfig.h` was unavailable.
The {fs} package reported that libuv was not found and that the cmake command was missing. That fits its declared requirements, which are libuv-devel on RPM systems or, alternatively, CMake and GNU make to build the bundled copy of libuv. Meanwhile, {xml2} could not find libxml-2.0, and the compiler reported that libxml/tree.h was absent, which points to the libxml2-devel package on RPM systems.
How Four Failures Became Dozens
These four failures explain most of the remaining messages. The {sass} package imports {fs}, {bslib} imports {sass} and {rmarkdown} imports {bslib}, so a missing {fs} takes out three more packages in one go.
The {openssl} package has a similar reach, since {httr} imports it, as does {gargle}. From there the damage spreads to {googledrive} and {googlesheets4}, which both import {gargle} and {httr}. The {reprex} package imports both {fs} and {rmarkdown}, while {rvest} imports {httr} and {xml2}. With all of those unavailable, the Tidyverse itself was reported as unavailable.
This is the useful lesson from the output. A failure reported against a top-level package rarely names the original cause, so fixing the four packages at the bottom is much quicker than repairing each downstream package in turn.
Enabling the UBI Repositories
The environment provided the public UBI repositories, so the system packages were installed with every other repository disabled. That meant enabling ubi-9-baseos-rpms, ubi-9-appstream-rpms and ubi-9-codeready-builder-rpms explicitly. The last of those matters because development packages are the kind of content that the CodeReady Linux Builder repository exists to provide for developers.
The first request also asked for libuv-devel, and DNF refused it with "No match for argument: libuv-devel". That meant the package was not available under that name from the enabled repositories, and it did not show that {fs} could not be built. Since {fs} can build its bundled libuv when CMake is present, the command was adjusted to leave libuv-devel out, as shown below.
dnf --disablerepo='*'
--enablerepo=ubi-9-baseos-rpms
--enablerepo=ubi-9-appstream-rpms
--enablerepo=ubi-9-codeready-builder-rpms
install
openssl-devel
fontconfig-devel
freetype-devel
cmake
libxml2-devel
A Second Layer with {textshaping}
After that install, the same search of the new output gave a different picture. The output still contained messages saying that libuv was not found by `pkg-config`, but {fs} appeared to have compiled, which supports the idea that CMake had been the real obstacle. The earlier failures for {openssl}, {systemfonts} and {xml2} no longer appeared among the blockers.
The next failure came from {textshaping}, where configuration could not find FriBidi and compilation stopped on fribidi.h. The output said "Package fribidi was not found in the pkg-config search path", which matches the package declaring freetype2, harfbuzz and fribidi as requirements. The next step added fribidi-devel and harfbuzz-devel from the same three repositories, and after another retry {textshaping} appeared to have installed.
dnf --disablerepo='*'
--enablerepo=ubi-9-baseos-rpms
--enablerepo=ubi-9-appstream-rpms
--enablerepo=ubi-9-codeready-builder-rpms
install
fribidi-devel
harfbuzz-devel
A Third Layer with the Image Libraries
The remaining failure was in {ragg}, which imports {textshaping} and which the Tidyverse imports in turn. Its configuration reported that `pkg-config` could not find libtiff-4, libjpeg, libwebp or libwebpmux, and that one or more of freetype2, libpng, libtiff-4, libjpeg, libwebp and libwebpmux were missing. That list lines up with the package's declared requirements of freetype2, libpng, libtiff, libjpeg, libwebp and libwebpmux.
The compiler also complained that ft2build.h was missing, even though freetype-devel had already been installed. A working explanation is that this was a side effect of the combined configuration check failing, but that remains a possibility and not a confirmed diagnosis. The firmer evidence was the absence of the TIFF, JPEG and WebP development libraries, so the next step added those along with libpng-devel.
dnf --disablerepo='*'
--enablerepo=ubi-9-baseos-rpms
--enablerepo=ubi-9-appstream-rpms
--enablerepo=ubi-9-codeready-builder-rpms
install
libtiff-devel
libjpeg-turbo-devel
libwebp-devel
libpng-devel
One Script to Add R, the Tidyverse and {arrow} to the UBI 9 Image
The commands above were stepping stones, and the end result was a single bash script that I could run when building the image. It stops unless the operating system is version 9 and downloads the R 4.5.2 RPM only when R is not already present, using one of the precompiled binaries that Posit publishes for Linux servers. It then installs every system library from the three UBI repositories before installing {R6}, {tidyverse} and {arrow}, but only the ones that are missing. The {arrow} package is needed for this PROC R setup, which is why it sits in that list. A SAS employee write-up of the SAS documentation names {R6}, {arrow}, {haven}, {plotly} and {svglite}, although it does not say whether any of them are required. A vignette for the {OECDsppps} R package goes further and says that R with {R6}, {arrow}, {haven}, {plotly}, {svglite} and {gt} is necessary for full PROC R functionality, but it is also third-party material and not SAS documentation. The {haven} package already arrives with the Tidyverse, which also suits the examples that SAS publishes, since they load it with library(tidyverse).
Two details are worth pointing out. The R step ends with stopifnot, so the script fails if any of the three packages cannot be loaded, and the final lines print the R version, the R home directory and the {R6} version as a check. The system package list also gains libatomic, which did not appear in any of the errors earlier in this article, and the RPM is installed with the signature check for local packages switched off, which is a trade-off to be aware of.
With R installed this way, PROC R worked as hoped on the SAS Analytics Pro on Viya image. The script can safely be run again, since it skips the R download when the binary exists and skips any package that already loads.
The script follows in full below. It is saved on the host as install_r.sh.
#!/bin/bash
set -euo pipefail
R_VERSION="4.5.2"
R_PREFIX="/opt/R/${R_VERSION}"
R_RPM="/tmp/R-${R_VERSION}.rpm"
R_URL="https://cdn.posit.co/r/rhel-9/pkgs/R-${R_VERSION}-1-1.x86_64.rpm"
# Check operating system compatibility
source /etc/os-release
if [[ "${VERSION_ID%%.*}" != "9" ]]; then
echo "Unsupported operating system: ${PRETTY_NAME}"
exit 1
fi
# Download and install R
if [[ ! -x "${R_PREFIX}/bin/R" ]]; then
curl -fL --retry 3 "$R_URL" -o "$R_RPM"
dnf -y
--disablerepo='*'
--enablerepo=ubi-9-baseos-rpms
--enablerepo=ubi-9-appstream-rpms
--enablerepo=ubi-9-codeready-builder-rpms
--setopt=localpkg_gpgcheck=0
install "$R_RPM"
rm -f "$R_RPM"
fi
# Install system dependencies
dnf -y
--disablerepo='*'
--enablerepo=ubi-9-baseos-rpms
--enablerepo=ubi-9-appstream-rpms
--enablerepo=ubi-9-codeready-builder-rpms
install
openssl-devel
fontconfig-devel
freetype-devel
cmake
libxml2-devel
fribidi-devel
harfbuzz-devel
libtiff-devel
libjpeg-turbo-devel
libwebp-devel
libpng-devel
libatomic
# Install required R packages
"${R_PREFIX}/bin/Rscript" -e '
packages <- c("R6", "tidyverse", "arrow")
missing <- packages[!vapply(
packages, requireNamespace, logical(1), quietly = TRUE
)]
if (length(missing) > 0) {
install.packages(missing,
repos = "https://cloud.r-project.org")
}
stopifnot(all(vapply(
packages, requireNamespace, logical(1), quietly = TRUE
)))
'
# Verify installation
"${R_PREFIX}/bin/R" --version
"${R_PREFIX}/bin/R" RHOME
"${R_PREFIX}/bin/Rscript" -e 'print(packageVersion("R6"))'
echo "R installation completed successfully."
The script is written on the host and copied into the container by the script that updates the image and launches it, so nothing needs installing by hand. The docker exec command runs a new command in a running container, where -u root sets the user. Here sas-analytics-pro is the container name used in the SAS Analytics Pro deployment guide, so substitute the name of your own container if it differs.
# Installing R
docker cp install_r.sh sas-analytics-pro:/tmp/install_r.sh
docker exec -u root sas-analytics-pro bash /tmp/install_r.sh
The cost that remains is time because the installation now runs whenever a container is created. On Linux, the Arrow documentation says that install.packages retrieves the source version of {arrow} and compiles both the R package and libarrow from source by default, so each launch may take a while.
The answer is to keep two versions of the launch script. One includes the two lines above and builds R, while the other leaves them out and is the one to use when a faster start matters. A container started with the second script has no R installed, so PROC R will not work in it until the first script has been used.
A derived image would remove the wait altogether, with a Dockerfile that starts from the SAS Analytics Pro base image and runs the installation script during the build. Other vendors already work this way, and Domino describes pulling the base image for SAS Analytics Pro and then using a Dockerfile to build a new image from it. That approach is untested here, but it would move the compile step to build time.
The approach behind the script is worth keeping. Start from the earliest failures, map each failing R package to the system libraries it declares, install the matching -devel packages and read the fresh output before deciding what to do next. Each pass turned a broad failure to install the Tidyverse into a smaller and more specific problem, which is far easier to solve than a list of dozens of unrelated looking errors.
Running R code within SAS programs with PROC R
A presentation on the new PROC R procedure at PHUSE EU Connect 2026 in Glasgow covered how R and SAS can be used together rather than as alternatives. SAS can manage data, prepare it for analysis and feed reports, while R offers a wide range of packages for statistics and visualisation. PROC R, which arrived with the SAS Viya 2026.03 release, lets the two meet inside one SAS program or flow.
In practice, this means nothing needs to move between separate working environments. Code written in R is submitted from SAS, and datasets and macro variables pass in either direction. Output and plots from R then appear in the SAS results, and the sections below begin with how PROC R sits among the other ways of linking the two languages.
How PROC R Relates to Other Ways of Combining SAS and R
SAS has offered ways to reach R for a long time, and PROC R is the latest of them. Calling R from PROC IML has been possible since SAS/IML 9.22. The second part of a SAS Communities series on PROC R notes that PROC IML only lets users save plots as static images, whereas PROC R displays R graphics in the Results pane.
Besides PROC IML, two other approaches exist. PROC GATEWAY runs R or Python code and supports multithreaded execution, although all data must sit in CAS libraries. The SWAT package works the other way around, since it is the R client to SAS Cloud Analytic Services, so an R user can connect to Viya and work with data held there.
Having several ways to reach R fits the way SAS programming is often described, since a common remark within the SAS community is that almost any programming problem has more than one solution. Python takes the opposite stance, as its guiding principles in PEP 20 favour a single obvious way to do a task. The same multiplicity appears throughout the sections that follow, where data, values and results can each move between SAS and R in more than one manner.
Among those options, PROC R runs R code directly from a SAS session. Its basic shape places R code between SUBMIT and ENDSUBMIT statements, as the following code, which doubles the MSRP values in SASHELP.CARS, shows. Note that the two-argument form of the transfer functions needs SAS Viya 2026.05 or later.
proc r;
submit;
df <- sd2df("cars", "sashelp")
df$MSRP <- df$MSRP * 2
df2sd(df, "cars", "work")
endsubmit;
run;
In the code above, everything between SUBMIT and ENDSUBMIT is ordinary R, while SAS continues to control the rest of the program. Behind the scenes, the R code runs as a subprocess of the SAS session, and a community guide to PROC R explains that consecutive PROC R steps share the same R session. Thus, objects created in one step remain there in the next. Adding restart to the statement gives a clean R environment, while terminate ends the session and releases its resources, which the guide recommends once the R work is finished.
Moving Data and Values Between SAS and R
Two functions transfer data between the languages. According to the first part of the SAS Communities PROC R series, sd2df() (also known as sasdata2dataframe()) sends a SAS dataset to an R data frame using the haven package. The reverse job falls to df2sd() (or dataframe2sasdata()), which writes an R data frame back as a SAS table.
From SAS Viya 2026.05 these functions accept the library as a separate argument, as in sd2df("cars", "sashelp") and df2sd(df, "cars_r", "work"). The older single-argument form, such as sd2df("sashelp.cars"), still appears in the series. A typical exercise filters SASHELP.CARS to Audi vehicles with a tidyverse function, saves the result to the WORK library as AUDI and prints it with PROC PRINT.
Macro variables give a second channel for passing information. In R, symget("Make") reads a SAS macro variable called Make, while symput("Make", "Audi") sets one from R. That allows SAS to supply a filter value and R to calculate the average of city and highway miles per gallon. SAS can then use the answer, held in a macro variable such as AvgMPG, in a report title.
A third link between the two languages is the sasfnc() function, which calls a SAS function from R. It builds a %SYSFUNC call behind the scenes, and the series applies propcase() to the CITY column of SASHELP.HOMEEQUITY to create a CITY2 column with capitalised values. A SAS function can therefore be used without being rewritten in R.
Going the other way, the submit() function hands SAS code back to SAS. The paper and slides for Jim Box's talk at PHUSE EU Connect 2026 use submit("%put &numDead;") to write a macro variable value to the log, and the code runs only when the PROC R step exits. That timing matters whenever R and SAS steps need to alternate, since a later R statement will not see the effect of a queued SAS statement.
Getting Results and Plots Back into SAS
Output from the R print() function goes to the SAS log. The show() function sends an R object to the Results window instead, with options for a title and the number of rows to display, and the Base SAS Procedures Guide page on displaying data frames shows it alongside sd2df() and df2sd(). A call such as show(head(carsAudi), title = "Audi Vehicles") therefore presents the first rows of the filtered data as a table in the Results window.
Graphics follow the same pattern, with rplot() rendering base R or ggplot2 plots in the SAS Results window. Several plots can appear from a single PROC R step, and the series demonstrates this with SASHELP.SHOES by charting sales by region, sales against inventory and a heatmap of sales across regions and product categories. If a plot needs to be saved, rplot() can write it to a file in the SAS work path, and renderImage() displays it later when given the full path.
Keeping R Code in Separate Scripts
Embedding R in a PROC R step suits short analyses, while larger or reusable work can be kept in its own file. According to the third part of the SAS Communities PROC R series, SAS Studio can create a stand-alone R program from the Start page or the New menu. A SAS program then calls that script through the INFILE= option of the PROC R statement.
The script can live in SAS Content or on the SAS server file system, and its location can be given directly or through a fileref created with a FILENAME statement. The fileref name can be no longer than eight characters. The worked script reads SASHELP.CARS, filters to Honda vehicles, builds a highway MPG histogram and saves the filtered data as a SAS table. In a variant, SAS sets a Make macro variable, the script reads it with symget() and the average price returns to SAS through symput(). Data and macro variables therefore still pass between the script and SAS.
Using R Inside Visual Flows
Beyond code, SAS Data and AI Studio flows assemble data operations as steps on a canvas, with connections showing how data moves between them. The fourth part of the SAS Communities PROC R series covers the R Program step. This can run alone or take data from earlier steps, and its code can be typed into the editor or linked to an external R script through the node settings.
The flow in that post prepares SASHELP.HOMEEQUITY with SAS steps that drop rows with missing loan or property values and calculate a loan-to-value ratio. The R step then sorts loans into low, medium and high categories, builds a summary table and draws a scatter plot of loan amount against property value. Finally, it writes the enriched data back to SAS as HOMEEQUITY_LTV, ready for later steps, while the summary and plot show in the flow results.
Mixing Languages in One Workflow
PROC R can be used alongside other languages when a workflow calls for them. A SAS Innovate session on the procedure describes combining it with PROC PYTHON and PROC GATEWAY so that programmers can switch between languages within one process. Shared tables and macro variables link the steps, and the workflow stays inside SAS.
Managing and Checking the R Environment
Access to PROC R depends on how the Viya environment has been set up. Administrators normally prepare R through the SAS Configurator for Open Source, where R builds, and package lists are defined in profiles. Under this arrangement everyone uses the same R version and packages.
For the Compute Server, the Viya deployment notes state that the PROC_RPATH environment variable is used by PROC R. The R version and packages available can therefore be checked from within SAS.
Jim Box's paper shows how to do this using only the pieces already covered. A short PROC R step reads R.version.string and R.home() into macro variables with symput(), then writes installed.packages() to a SAS table with df2sd(). A PROC SQL report can then list the packages under a title built from those macro variables, and the paper's output shows R 4.4.3 with 373 packages. The paper also notes that the administrator provides this as a production R environment, so individual users cannot change the package list or versions.
Alongside the Configurator, Posit offers a separate approach to controlling R packages. The SAS and Posit partnership announced on the 16th November 2026 lists Posit Package Manager among the Posit technologies to be integrated with SAS Viya and SAS Clinical Acceleration, and the release says it helps keep R and Python environments consistent and reproducible. Posit also describes date-based snapshots that fix the package versions available on a given date, and the R Consortium R Submission Pilot 3 used a snapshot from Posit Public Package Manager for a clinical trial submission.
PROC R as One of Several Ways of Using R with SAS
PROC R became available with SAS Viya 2026.03, and later releases added to it: the two-argument transfer functions arrived with 2026.05 and the R Program step in flows is based on the 2026.06 stable release. The R installation and packages that the procedure uses are set by an administrator, so a program written for one site depends on that site having the same R version and packages. Because SAS already offers several ways of working with R, PROC R is one more choice, and it is the one that keeps R code, data, macro variables and output inside a single SAS program or flow.
What ChatGPT and Claude Desktop client apps ask of your computer
ChatGPT and Claude both offer desktop applications that go well beyond a chat window, with features that can read a screen, type and work with local files. Each of those abilities depends on operating system permissions, so what the two programs request on macOS, Windows and Linux says a good deal about their security and privacy trade-offs. A comparison follows of their baseline behaviour, the permissions that optional features unlock, their sandboxing approaches and the controversies that have surfaced so far.
Where the Desktop Apps Begin
The first of those comparisons is baseline behaviour, meaning what each application needs just to run. Very little is required to launch either one as a native program, and the real requests arrive only when optional agentic features are switched on.
On macOS the ChatGPT client is a regular, non-sandboxed program, which is hardly a surprise given that it is distributed only through OpenAI's website and so is not bound by the sandboxing rules that apply to Mac App Store software. Claude appears to be in the same position, since a bug report that inspected the app's entitlements found no App Sandbox entitlement on either Claude Desktop or the Claude Code bundled with it. Like any non-sandboxed native application, each can see its own data files and the user's home directory without a special prompt.
Computer Use and Its Two Permissions
The most visible optional feature is computer use, where the AI reads the screen, moves the mouse and types. On macOS, both ChatGPT's Computer Use and Claude's computer use need the same pair of grants, namely Screen Recording, so the model can see the target app and Accessibility so it can click, type and navigate. Neither is requested at install time, since ChatGPT asks once the Computer Use plugin is set up and Claude asks the first time it tries to use the machine.
Windows differs from macOS here. The ChatGPT documentation lists no Windows system permissions for the feature and instead tells users to keep the target app visible on the active desktop while a task runs.
Linux has no equivalent yet. The ChatGPT desktop app for Linux is in preview, and its Linux documentation says Computer Use is not yet offered there, with support due in a future release. Claude is in the same position, since its Linux installation guidance lists no computer use among the limitations of the beta.
Integrations That Ask for More
Beyond those two grants, each integration brings its own demands. ChatGPT's Apple Messages integration, which arrived on 20th August 2026, needs Full Disk Access, access to contact names and Automation permission before it can read or search message history. It works in ChatGPT Work and Codex on Apple Silicon Macs, and sending a message needs the user's approval by default.
Claude's equivalent friction comes from protected folders. Reports such as this Claude Code bug report show macOS prompting for the Desktop, Documents, Downloads and iCloud Drive locations, which means a project kept in one of those folders will be blocked until the user grants access.
Approval Modes and Sandboxes
Both applications also separate what the AI may attempt from what the operating system will allow. In ChatGPT, Ask for approval pairs a workspace-write sandbox with manual prompts, and it matches the default approval behaviour. The alternative, Approve for me, keeps the same sandbox but routes eligible requests through automatic review instead of a manual prompt. On macOS, the enforcement comes from the built-in Seatbelt framework, and the selectable profiles include read-only, workspace-write and custom configurations.
Claude uses Seatbelt on macOS too, as its sandboxing documentation explains. Moreover, it adds rule-based controls, with file system allow and deny lists plus a network proxy whose list of permitted domains starts empty. Those sandbox rules sit apart from the permission modes, which decide whether each tool call runs at all, and settings such as allowManagedDomainsOnly let a managed deployment tighten the network side further.
Sandboxing Beyond macOS
On Windows, OpenAI documents a native sandbox with two modes. The preferred elevated mode uses dedicated lower-privilege sandbox users, file system boundaries, firewall rules and local policy changes, and its setup requires administrator approval even though the commands themselves run without administrator privileges. The unelevated fallback runs commands under a restricted token from the current user, with weaker network isolation, and is positioned for cases where administrator-approved setup is blocked. Enterprise administrators can use requirements.toml to allow only the elevated mode.
Claude is less well covered on native Windows. The same sandboxing documentation says the Claude Code sandbox runs on macOS, Linux and WSL2, so on native Windows commands run outside a sandbox unless Claude Code is run inside a WSL2 distribution. WSL1 is not supported because bubblewrap needs kernel features that only WSL2 provides.
On Linux, both products rely on bubblewrap. ChatGPT's sandbox documentation says it must be installed first, that the bundled fallback helper needs unprivileged user namespace support, and that Ubuntu 24.04 may need an extra AppArmor profile before it works. Claude Code needs bubblewrap and socat, and by default it shows a warning and carries on without a sandbox when a dependency is missing, unless sandbox.failIfUnavailable is set to true.
The Browser Extension Controversy
The sharpest difference between the two is a report published by The Register on 20th April 2026. It described Claude Desktop for macOS writing a Native Messaging manifest called com.anthropic.claude_browser_extension.json, which pre-authorises three Chrome extension identifiers, including the Claude in Chrome extension, to run a local binary. The file was written for Chromium-based browsers even when the user had not installed them.
Privacy consultant Alexander Hanff called the behaviour a dark pattern and spyware, and argued that it breaches Article 5(3) of the ePrivacy Directive, which requires clear disclosure and consent unless access is strictly necessary for a requested service. Security consultant Noah Kenney disputed the spyware label and described the file as a dormant integration layer, although he still considered the risk real. Anthropic did not respond to The Register's request for comment.
Friction on the ChatGPT Side
ChatGPT has not drawn the same scrutiny, but it has had its own awkward moments. In July 2026, one user complained that an update led the assistant to reveal a full local directory path without any grant, although other users replied that any Mac app can see such paths and that the assistant was probably running ordinary file-listing commands.
Repeated macOS prompts about access to data from other apps are a documented annoyance too, though the traceable case concerns Claude. A report against the Claude Code desktop app describes a repeated file search that triggers the "access data from other apps" prompt over and over.
Windows Installation and Quirks
On Windows, the installer story is better documented for Claude. Its Windows deployment guidance says administrator privileges are required for a full-featured installation including Cowork, with users seeing a UAC prompt, while those without admin rights can still install Claude without Cowork. ChatGPT's elevated sandbox setup also needs administrator approval, as described above, although no installer-wide requirement is stated for it.
A bug report describes a Claude computer use permission card that offers only a Deny option, and a Windows user confirmed it there as well. Whether a reboot clears it is not established, so it is best treated as a quirk rather than a firm rule.
Linux Support Arrives for Both Apps
Anthropic released Claude Desktop for Linux in beta on 30th June 2026, as reported by Basic Tutorials. It supports Ubuntu 22.04 or later and Debian 12 or later on x64 and arm64, and the recommended installation through Anthropic's apt repository means updates arrive with the regular system updates, whereas a directly downloaded .deb file does not receive them. The documented limitations include no computer use and no dictation, and Cowork on Linux needs KVM virtualisation, QEMU packages, about 25 GB of free disk space and at least 8 GB of RAM.
OpenAI followed on 11th August 2026 with a preview of the ChatGPT desktop app for Linux, according to Gigazine. The supported distributions are Ubuntu 24.04 LTS and 26.04 LTS, Debian 13, Fedora 43 and 44, and current, fully updated Arch Linux, each on x64 and ARM64. Native Wayland support is described as experimental, so window positioning, focus and keyboard shortcuts may not fully work.
Auditing ChatGPT and Claude Permissions Before Granting Them
Both applications follow the same principle of opt-in escalation, where the base client runs with ordinary user privileges and each extra capability needs an explicit operating system grant. That keeps control with the user, but once permission is granted the AI gains a powerful automation surface that a compromised model or an injected prompt could misuse.
A short routine keeps things tidy. Decide first whether computer use is really needed because leaving it off removes the Screen Recording and Accessibility grants entirely. Then review the apps holding always allow status and any folder permissions for Documents, Desktop and Downloads, trimming each to the smallest sensible set, and keep both applications updated so that permission fixes and clearer consent prompts reach users. On Windows and Linux, confirm as well that the sandbox is actually active because Claude Code runs commands without one on native Windows and, by default, when its Linux dependencies are missing.
Treating each prompt as an ongoing conversation rather than a one-off decision is the habit worth building. Every capability enabled widens the AI's reach into the system, so the periodic audit matters as much as the first grant.
Getting Grav Admin2 to write files with the correct permissions
When I found that the find and replace functionality in the article editor offered by Grav's Admin2 plugin was next to unusable, I opted to do what I needed on the server using nano. However, I then discovered that was not possible without the sudo facility even though my user account was in the www-data group. Here is the command that discovered that 644 (owner with read and write permissions, the rest as read only) was being used instead of 664 (owner and group with read and write permissions, the rest as read only):
stat -c '%a %U %G %n' filename.md
Using -c switch to define a custom format, the output is like this for what I needed it to be:
664 www-data www-data filename.md
Unpacking the codes, %a provides the permissions in their octal or numeric form, %U gives the owner, %G is the associated group and %n is the file name. Though I manually set the permissions, I found that they kept changing whenever a file was updated from the user interface. It appears that the file is copied to a different area and then moved back when edits have been completed.
If I had thought that this was going to be resolved by finding the right setting in the Grav configuration I was about to be disappointed. The actual solution turned out to be in very different place: the web server systemd service settings.
PHP-FPM
If the PHP-FPM service was being used, then things might have been simpler. The first step is to add a systemd override by opening up the service configuration:
sudo systemctl edit php8.3-fpm
Near the top of the file, add these lines (make sure that they are above any line that says everything gets deleted below it). Then, save the file.
[Service]
UMask=0002
Following that, restart the service (this is for version 8.3; clearly, the version number will need changing for any future release):
sudo systemctl restart php8.3-fpm
Next, it is time to check that the override is in place by using this command:
systemctl show php8.3-fpm -p UMask
When you see a result like the one below, Grav should be producing files with rw-rw-r-- or 664 permissions through the Admin2 editor. That is how it is with a Nginx set up that I have with PHP-FPM in action on there. What is happening is that it takes the likes of 777 and makes it 775; if the setting were 0022 (the default, it would appear to me), you would then get 755.
UMask=0002
Apache MOD-PHP
However, the issue initially surfaced on an Apache web server, and it took a while for the solution to be found. Confusingly, both PHP-FPM and MOD-PHP were on there. Then, it was a question of finding which one was in action because the latter is part of Apache and the former is a separate service.
Trying the PHP-FPM override described above did not work, which hinted that something else was needed. That was to follow a similar process to that for PHP-FPM, only to do it for Apache this time around. The first step to add the override after opening the relevant file is as follows:
sudo systemctl edit apache2
As before, these lines need to go near the top of the file, above any line warning of the loss of any changes made below it, before it is saved:
[Service]
UMask=0002
Then, it is time to restart the service:
sudo systemctl restart apache2
Next, the override status needs to be probed:
systemctl show apache2 -p UMask
Getting this result from the above command again demonstrates that all should be in order, which it was in my case:
UMask=0002
After all that, it may be time to switch from MOD-PHP to PHP-FPM anyway. At least, it guarantees configuration consistency and separates PHP interpretation from normal web server activities as well.
Agentic AI: Moving Complexity Rather Than Removing It
Agentic artificial intelligence is often presented as a way to simplify software development and digital work. Instead of requiring a person to define every stage of a process, an agent can be given an objective and left to determine how to achieve it. This could involve writing code, inspecting files, using software tools or carrying out a sequence of routine tasks.
However, agentic AI does not eliminate complexity so much as relocate it. The detailed instructions that once had to be written by a human do not simply disappear, and they are instead replaced by a different set of technical and security requirements intended to control what the system is allowed to do.
In traditional automation, the relationship is relatively direct. A human specifies the exact steps and a computer executes those steps, and while the system may still contain considerable complexity, its behaviour is largely defined in advance. If the instructions are correct and the environment behaves as expected, the computer follows the intended process.
Agentic automation changes that arrangement. A human specifies an objective and the agent decides which steps to take, which can make automation more flexible, particularly when a task involves uncertainty or requires a degree of judgement. It can also reduce the amount of detailed planning required from the person using the system.
The important difference is that the computer is no longer merely carrying out a fixed sequence. It is choosing a sequence of actions, and once that happens, the central question changes. Instead of asking only how a task should be automated, it becomes necessary to ask what authority can safely be given to a system that decides how to automate it.
The New Security Boundary
An agent may need access to files, software tools, external services or online information. It may need to run commands, create documents or introduce changes to an environment, and while these abilities can be useful, they also create opportunities for mistakes. An agent could misunderstand its task, execute an inappropriate command or follow an instruction hidden in a file or web page.
For that reason, agentic systems need more than capable models. They also need a surrounding structure that limits the consequences of poor decisions, and this structure can include sandboxes, file system scopes, network policies, credential proxies, approval gates, audit trails and recovery mechanisms.
A sandbox can provide an isolated environment in which an agent carries out its work without gaining unrestricted access to the wider system. File system scopes can determine which files an agent can read or change, while network policies can restrict where it can connect and credential proxies can prevent sensitive passwords or access tokens from being handed directly to the model. Approval gates can require a human decision before a consequential action is completed.
Audit trails and recovery mechanisms are equally important. An audit trail helps show what the agent attempted, which tools it used and what changes it made, and recovery mechanisms make it possible to undo unwanted changes or restore an earlier state. Together, these features recognise that an agent can fail even when it is operating in good faith.
This approach differs from relying on the model to make the correct decision every time. The safer assumption is that a serious mistake will eventually occur, so the system should be designed so that a mistake has limited consequences rather than depending entirely on the agent recognising the danger in advance.
That principle is familiar from other areas of computing. Security systems commonly rely on the principle of least privilege, in which a process receives only the access it needs. Default-deny policies block access unless it has been explicitly permitted, isolation separates one process from another and mediated credentials ensure that access to sensitive services is controlled by an intermediary.
None of these measures requires software to behave perfectly. They are intended to remain useful when an application is compromised, incorrectly configured or simply wrong, and applying the same thinking to AI agents is becoming increasingly important as their ability to use tools expands.
Capability Has Advanced Faster Than Safe Delegation
The capabilities of AI systems have developed quickly, but the mechanisms for delegating authority safely have not always advanced at the same pace. An agent may now be able to complete a coding task that once required substantial manual effort, yet the process of giving it access to a suitable environment can still be difficult.
This creates a practical imbalance. A person may want an agent to perform a small task that saves ten minutes of coding, but establishing a safe sandbox could take half an hour, and the technical work required to define mounts, permissions, network rules and credentials may outweigh the benefit of the automation.
That problem is not necessarily evidence that agentic AI has no value. It may instead indicate that the supporting infrastructure is not mature enough, since early forms of many technologies require specialist knowledge before they become straightforward for general users. Over time, commonly needed safeguards can be incorporated into standard tools, reducing the amount that each user needs to understand.
The long-term aim would be for the containment layer to become standardised and largely invisible. A user could configure the security envelope once and then use agents without repeatedly considering the underlying mechanisms, similarly to how modern operating systems provide process isolation, virtual memory and privilege controls. Most people do not think about virtual memory or privilege rings every time they open an application, even though those features help determine what the application can do.
Agentic systems have not reached that stage yet. Achieving confidence may still require an understanding of more infrastructure than the task itself seems to justify, and users and organisations may need to understand how an agent is isolated, which directories are mounted, how network access is controlled and how credentials are supplied. That level of detail is reasonable for specialists, but it creates a barrier for wider adoption.
The question is therefore not simply whether agents can perform useful tasks. It is also whether the security surrounding them can become reliable enough to be used without extensive knowledge of systems.
The Role of Containment Infrastructure
This is where developments such as Docker Sandboxes, known by its command-line tool sbx, become significant. The most interesting aspect may not be another way to run an AI agent. Instead, it may be the attempt to turn the complexity created by agentic automation into infrastructure that has already been engineered and packaged for others to use.
The value of such an approach would lie in reducing the amount of security design that each user has to undertake independently. Rather than constructing a sandbox, setting file system boundaries and creating network policies from the beginning, users could rely on a prepared environment with safer defaults.
That does not mean that a system such as sbx removes the need for judgement. Different tasks require different levels of access, and some organisations will have more demanding security requirements than others. It does suggest, however, that containment is increasingly being treated as a prerequisite for autonomy rather than an optional extra.
The distinction matters. If security is added only after an agent has been given broad authority, the system may already have been exposed to unnecessary risk, whereas if isolation and restricted access are the starting point, expanding the agent's powers becomes an intentional decision rather than an accidental consequence of convenience.
A well-designed system should make the safer configuration the easiest one to select. An agent could begin with a disposable environment, tightly scoped access to relevant data, restricted networking and mediated credentials, and broader authority would require a deliberate change to the configuration.
This approach would also help establish clearer expectations. Users would know that an agent is not operating freely across their entire computer or organisation. It would instead be working within a defined space, with actions that can be observed and, where necessary, reversed.
Why Constant Approval Is Not the Complete Answer
One possible response to the risks of agentic automation is to require human approval for every consequential action. This can provide a strong layer of oversight, particularly where an action could affect finances, confidential information, production systems or other people.
However, constant approval can introduce a different problem. If users are asked to approve too many routine actions, they may begin accepting requests without proper consideration, and approval fatigue can turn a safety measure into a weakness, particularly when a person is presented with a long sequence of prompts that appear similar.
A more scalable arrangement would reserve approval for genuinely consequential boundary crossings. Routine actions could take place within a constrained environment, while actions involving sensitive information, external systems or irreversible changes would require confirmation.
This makes containment and approval complementary rather than competing approaches. Isolation reduces the harm that can result from ordinary mistakes, while approval provides human oversight when an agent is about to move beyond its normal limits.
The safest state should therefore be the default state. The agent should start with limited access and operate in an environment that can be discarded or restored, and if a task genuinely requires broader authority, that authority should be granted intentionally and with a clear understanding of what it enables.
Testing Agentic AI: What Happens When It Goes Wrong
The eventual test for an agentic system should not be whether it performs well when everything goes as intended. It should be whether it remains acceptable when the agent makes a serious mistake.
A useful question is this: if the agent misunderstands the task, follows a malicious instruction or executes an inappropriate command, is the surrounding system still capable of limiting the damage? If the answer is yes, the system may be suitable for a wider range of uses, whereas if the answer depends on the agent recognising every danger correctly, the arrangement remains fragile.
This test also offers a way to assess the maturity of the technology. If safe use requires detailed knowledge of microvirtual machines, mounts and network policy syntax, agentic systems may still be aimed primarily at technical specialists. For general use, the safer configuration needs to become the easy configuration, and weakening the boundaries should require deliberate action while retaining them should require no special expertise.
That is why current developments in containment are attracting attention. The central question in agentic AI is increasingly not only what an agent can do, but what happens when it does the wrong thing, and progress will depend on solving both problems.
The ideal experience would be relatively unremarkable from the user's perspective. A person would give an agent a task, the agent would work within a constrained environment and the person would review the result. The security machinery would remain largely underneath, managing access, recording actions and preventing routine errors from becoming serious incidents.
The industry is not quite at that point yet. There is still work to be done in standardising isolation, simplifying configuration and making safe delegation practical, and waiting for those safeguards to develop further may be sensible, particularly when the infrastructure required to protect a small task is more complicated than the task itself.
Whether the complexity of agentic AI eventually becomes mostly invisible, or whether using agents will always require a degree of systems thinking, remains uncertain. The answer may depend on how effectively projects such as sbx turn containment into a dependable and accessible foundation.
For now, the strongest direction appears to be one in which autonomy is introduced within clear boundaries. The safest option should be the default, while human approval should be reserved for actions with meaningful consequences. That combination may offer a more durable path towards useful agentic automation than relying on either unrestricted access or constant intervention alone.
Fixing CALL EXECUTE Macro Variable Resolution and Macro Execution Timing in SAS
A recent run of SAS macro writing has seen me save some effort by using CALL EXECUTE within data steps. This goes well when everything is dataset-based since you are using the loop that is at the heart of data step processing. Things need more need when you start mixing in macro variables and macro calls because CALL EXECUTE blocks usually execute at the step boundary, which is not when macro processing takes place.
That is because the macro processor acts before the compilation and execution of normal SAS code, which makes sense because this is a form of metaprogramming. After all, SAS Macro builds up code to be compiled and executed; this happens in one sequence making the process feel like script interpretation and execution to a user. With CALL EXECUTE, this has the consequence of calling an executing a macro out of sequence with the inputs that it needs to complete successfully. Thus, the code below will fail to do that.
data _null_;
line = cat("data x; a= ", var1 ,"; run;";)
call execute(line);
line = cat("%macro1(invar=", var2, ")");
call execute(line);
run;
The solution to this sequencing issue is to enclose any macro variables and calls in single quotes and within a %NRSTR function call for adding masking in the input to the CALL EXECUTE routine to delay macro processing. Making those changes turns the code above into what follows below:
data _null_;
line = cat("data x; a= ", var1 ,"; run;";)
call execute(line);
line = cat('%nrstr(%macro1(invar=', var2, '))');
call execute(line);
run;
Then, everything works in the expected sequence to give the expected results and without issuing confusing errors and warnings to the SAS log. While it took a search to find it, SAS does have documentation showing how to accomplish this sort of thing, which helps when understanding what is happening and what is needed.
Finding and Using Better iPhone Ringtones and Alarms
This summer has been me spend a lot of my weekends among Yorkshire's moors and dales. Rather than take my usual iPhone with me, I brought a Samsung Galaxy A53 that was my mainstay before I switched to Apple. Naturally, call forwarding was set up to facilitate this. Along the way, I was reminded just how much better ringtones and alarm music was on the older phone. Thus, I decide to see if I could choose something that was more to my liking.
Somewhat ironically, that led me to Pixabay. After all, its mainstay is a healthy collection of royalty-free imagery and video. However, it also has a selection of royalty-free music and sound effect clips which gave me something to explore and download if I so chose. Upbeat yet mellow instrumentals were what I had in mind. To me, using a vocal track is a bit out, and maybe out of keeping with what I often listen to in any event.
As it happens, I found what I needed. The website was browsed on my phone and I downloaded the desired tracks to the device. My next move was to open the Files app and find the audio files. On selecting one of them, a menu appeared. From that, I chose Share and then sought out Use as Ringtone (you may need to tap the More button to see that). After all that, they are available for use when the appropriate setting is made.
For phone ringtones, this may mean going to Settings > Apps > Phone > Notifications > Sounds to use the newly available tune. However, the changing the Ringtone entry under Settings > Sounds & Haptics could allow you to accomplish the same end faster. Doing likewise for an alarm uses a different route: Clock > Alarm and editing the alarm itself to use the new sound via the Sound setting.
Since I did all this, the new alarm tune has woken me up to catch a morning flight, accomplishing what I needed it to do. This is an example of my choices working for me so far. With some more use, the new tunes hopefully will embed themselves into my memory like the ones on the Samsung device. At least, I have an option for changing them if I ever need to do that, an unlikely possibility to my mind.
Structuring a Grav Microblog using Twig and YAML
This year has seen me move to using Grav on multiple websites. The first one has two sections on Grav: Travel Jottings and Varied Surroundings, both based around single articles with the sort of HTML output post-processing that I have described in another entry on here. In this one, I move onto how to display things in a blog structure. This approach is in use on the parts of this website that are hosted using Grav: AI & Data Science, Coding Notebook and Collected Snippets. HTML output is post-processing here too, even if the story is much bigger than all that.
Building a Paginated Blog Template with Twig
First, we work through the blog page template that shows all the entries with pagination to ensure that not everything appears on the same page. In this file, the first step is to refer to a base template:
{% extends 'partials/base.html.twig' %}
Then, you need to define the content block, which encases the rest of the code:
{% block content %}...{% endblock %}
The above overrides any matching block of the same name in the parent template, meaning that everything between these tags replaces whatever the base template had in its content block. That includes the page collection declaration that is defined next:
{% set collection = page.collection %}
This fetches the page's collection, defined in the page's front matter. In other words, this is the YAML at the top of the Markdown file, and we will examine that later, which should make what is happening here clearer. For a fuller discussion, I have another entry describing how to set up an RSS feed that describes collections in even more detail. For added organisation, I enclosed everything with section HML tags:
<section class="blog-collation">...</section>
Before displaying the individual microblog entries, I also added a section with a hyperlinked title that allows a visitor to easily reach the website section front page from anywhere within that part of the site. Here is the code for that:
<article class="the-post">
<h2><a href="{{ base_url }}" title="Go to first page">{{ page.title }}</a></h2>
</article>
After that, there is a loop to display a number of posts for each page with some conditional logic to handle when there are no Markdown files available in the expected directory:
{% for item in collection %}...{% else %}<p>No entries found.</p>{% endfor %}
When there are Markdown files in the required directory, this is the code that adjusts links in the HTML rendered for each Markdown file so they open securely in a new browser tab:
{% set content = item.content
|replace({'<a href="http': '<a target="_blank" rel="noopener noreferrer" href="http'})
%}
The above reads in the page content (item.content) because this is a loop with `item` as the iterator. Then, it replaces <a href="http with <a target="_blank" rel="noopener noreferrer" href="http. The input was solely Markdown in this case, which meant that the rendering and text replacement was streamlined as expected. Beyond, the main article display code follows:
<article class="the-post">
<p class="mt-3 mb-4"><strong>
{% if item.date %}
{{ item.date|date("H:i, j") }}<sup>{{ item.date|date("S") }}</sup> {{ item.date|date("F Y") }}
{% endif %}
</strong></p>
<div class="entry-body">
{{ content|raw }}
</div>
</article>
The mix of HTML tags above should not surprise anyone who has worked with web content production before. What really needs more comment are these lines from the above:
{% if item.date %}
{{ item.date|date("H:i, j") }}<sup>{{ item.date|date("S") }}</sup> {{ item.date|date("F Y") }}
{% endif %}
In a block guarded by {% if item.date %} to ensure nothing is output if a page has no date set, the publishing time and date for an entry is rendered in three separate filter calls, which combine to produce a single formatted output that looks like this: 14:30, 3rd April 2026
| Filter | Output | Example | |
|---|---|---|---|
date("H:i, j") |
24-hour time and day number | 14:30, 3 | |
date("S") |
Ordinal suffix, in <sup> tags |
rd | |
date("F Y") |
Full month and year | April 2026 |
Enclosed within the nested tags, it is {{ content|raw }} that displays the paragraph output underneath the date and time for each entry. At the bottom of the page, there is an extra code block needed to add pagination and Previous/Next buttons for navigation:
{% if config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {'base_url': page.url, 'pagination': collection.params.pagination} %}
{% endif %}
The above is positioned outside the <section class="blog-collation">...</section> block but within the first part of the {% for item in collection %}...{% else %}<p>No entries found.</p>{% endfor %} construct. The {% if config.plugins.pagination.enabled and collection.params.pagination %} condition ensures that noting is displayed unless the Pagination plugin has been installed and enabled.
Decoding the Associated YAML Front Matter
All of the above does make as much sense unless you also look at the front matter YAML on the Markdown file for the main microblog page, blog.md, itself consistent with the name of its template, which is the one we worked through above. This is what now follows.
---
title: 'AI & Data Science Jottings'
content:
items: '@self.children'
order:
by: date
dir: desc
pagination: true
limit: 10
---
In the above, the title field defines the name of the microblog, one of three on this website. Within the content section, the items page collection is defined as all child pages of the current page. In this case, these would be sub-folders sitting inside this page's folder, each containing a single Markdown file called default.md, another name consistent with that of its associated template. The order of appearance of the microblog entries follows next, with the latest posts appearing first because of the descending date order. Pagination gets switched on with a limit of ten entries per page and navigation buttons to go between them.
Tying the Blog Template and Front Matter Together
Here, we have walked through the two components that make a paginated Grav microblog work: the Twig template that renders the collection and the YAML front matter that defines it. The template handles the display logic, from extending the base file through to looping over each item, adjusting links and formatting the date and time output. The front matter tells Grav which pages belong to the collection, how they should be ordered, and how many should appear per page.
Taken together, this approach has proved flexible enough to serve all three of the Grav-hosted sections on this website. Each relies on the same underlying template and front matter structure, with only the content and folder names differing between them.
In short, anyone setting up a similar microblog structure in Grav should find that these building blocks cover most of what is needed: the base template, the content block, the collection loop and the pagination section. Naturally, there remains plenty of room to adapt the HTML markup and filters to suit a different site's requirements.