<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>tag:arthurceicorrea.dev,2026-11-25:articles</id>
  <title>Arthur Cei Corrêa — Articles</title>
  <link rel="self" type="application/atom+xml" href="https://arthurceicorrea.dev/feed.xml"/>
  <link rel="alternate" type="text/html" href="https://arthurceicorrea.dev/en/articles/"/>
  <updated>2026-11-27T00:00:00-03:00</updated>
  <author>
    <name>Arthur Cei Corrêa</name>
    <uri>https://arthurceicorrea.dev/</uri>
  </author>
  <entry>
    <id>tag:arthurceicorrea.dev,2026-11-25:built-like-a-production-system</id>
    <title>Sapientis est ordinare: A Personal Website Built Like a Production System</title>
    <link rel="alternate" type="text/html" href="https://arthurceicorrea.dev/en/articles/built-like-a-production-system/"/>
    <published>2026-11-27T00:00:00-03:00</published>
    <updated>2026-11-27T00:00:00-03:00</updated>
    <summary>How this site is built and run like a production system: every change goes through a pull request and a pipeline of automated checks, with a plan in stages, a strict security policy, actions pinned by commit, infrastructure in Terraform, CVs generated from the site and no trackers or third-party resources; what the process caught, how AI was used, and why the motto.</summary>
    <content type="html">&lt;p&gt;My personal website presents my portfolio in four languages (Portuguese, English, Spanish and Italian) and, starting with this one, my articles, written in English. It is also, by design, run like a production system. Every change goes through a pull request, nothing ships until a pipeline of automated checks passes, and every significant decision is written down. A small site is the cheapest place to practice the habits that large systems demand.&lt;/p&gt;
&lt;h2&gt;Where it started&lt;/h2&gt;
&lt;p&gt;The first version went live on November 16, 2026, hosted on GitHub Pages. The same day, a GitHub Actions pipeline became the only way into production: it validated the HTML, tested the page in a real browser and published it. Four days later it also began confirming, after every deploy, that the live site was serving that exact commit.&lt;/p&gt;
&lt;p&gt;The code behind it was less disciplined than the process around it. All four language editions lived one after another in a single HTML file of about a thousand lines, and the build script cut each language out with regular expressions. Every structural change had to be made four times, and a fix in one language could easily be missed in the other three.&lt;/p&gt;
&lt;h2&gt;A staged plan&lt;/h2&gt;
&lt;p&gt;Instead of rewriting everything at once, I wrote a &lt;a href="https://github.com/arthurceicorrea/arthurceicorrea.github.io/blob/main/docs/PLAN.md"&gt;plan in stages&lt;/a&gt; (in Portuguese). Each stage states its goal and what changes, and most also list what is out of scope and give a concrete definition of done. Two rules apply throughout:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Visitors shouldn’t notice a thing.&lt;/strong&gt; Same design, same content, same quality scores, unless a stage sets out to change them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The existing tests are the safety net.&lt;/strong&gt; A test changes only when a stage deliberately changes what it checks, and every such change is explained.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each stage gets its own branch and at least one pull request, and the next stage doesn’t start until the previous one is merged.&lt;/p&gt;
&lt;h2&gt;What changed&lt;/h2&gt;
&lt;p&gt;Twelve stages, numbered from 0 to 11, came before this article. About half of them rebuilt the site from the inside without changing what visitors see. The rest changed it deliberately: they generated the CVs from the site, refined the typography, moved the site to its own domain, and added a page of thanksgiving and a privacy notice. Five changes say the most about how it works now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Protecting the main branch.&lt;/strong&gt; The pipeline already kept a broken change from being deployed, but not from landing on &lt;code&gt;main&lt;/code&gt;. A repository ruleset now requires a pull request for every change and a passing validation job before merge, with force pushes blocked and no bypass list. Since the project has one maintainer, the rule asks for no approvals, only a green pipeline. Protecting the deployment and protecting the branch are different safeguards, and the site now has both.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A strict Content Security Policy.&lt;/strong&gt; The CSS and JavaScript moved out of the HTML into their own files, and the policy went from hashes to &lt;code&gt;'self'&lt;/code&gt;: everything is denied by default, and only files served by the site itself are allowed. No &lt;code&gt;'unsafe-inline'&lt;/code&gt;, no &lt;code&gt;'unsafe-eval'&lt;/code&gt;. To confirm nothing had changed, every page was captured before and after, at 390 and 1440 pixels wide, and compared pixel by pixel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Supply chain security.&lt;/strong&gt; Every GitHub Action is pinned to a full commit hash instead of a version tag. The risk is real: in March 2025, the &lt;code&gt;tj-actions/changed-files&lt;/code&gt; action was compromised and its version tags were repointed to malicious code (CVE-2025-30066). A tag can be moved; a commit hash can’t. Dependabot checks every week and opens a pull request when an action has a new version; those pull requests go through the same pipeline as everything else.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Infrastructure as code.&lt;/strong&gt; The site now lives at &lt;code&gt;arthurceicorrea.dev&lt;/code&gt;, and the old &lt;code&gt;github.io&lt;/code&gt; address redirects to it. GitHub Pages still hosts the site; Cloudflare answers for the domain. Everything at Cloudflare that can be code is Terraform: the DNS records, the &lt;code&gt;www&lt;/code&gt; redirect, the security headers that GitHub Pages doesn’t let a site set, such as HSTS and &lt;code&gt;frame-ancestors&lt;/code&gt; (which a meta tag can’t carry), and records declaring that the domain sends no email, so that mail forged in its name is rejected. Every pull request that touches the infrastructure runs &lt;code&gt;terraform plan&lt;/code&gt; with read-only credentials. The credentials that can write exist only in my password manager, and I apply each plan myself after the merge, so a leak from the pipeline could change nothing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CVs generated from the site.&lt;/strong&gt; The PDF CVs used to be made by hand. Now the build prints them from the same content as the page, and the tests fail if the site and a CV disagree. The next section explains why that mattered.&lt;/p&gt;
&lt;p&gt;The remaining work made the code safer to change. The pages are now Jinja2 templates, most of them built on one shared layout, with one TOML file per language, and the build fails if a text is missing in any language. I chose not to use a static site generator: the whole build is a few hundred lines of Python, with no conventions of a larger tool to learn. Stylelint, ESLint and Prettier check the code style. Every significant decision has an &lt;a href="https://github.com/arthurceicorrea/arthurceicorrea.github.io/tree/main/docs/adr"&gt;architecture decision record (ADR)&lt;/a&gt;; there are eleven so far.&lt;/p&gt;
&lt;p&gt;The homegrown check scripts became more than 700 pytest tests: static checks, browser tests with Playwright and accessibility audits with axe. Lighthouse runs in the pipeline too and fails the build if the accessibility score drops below 95. On the run that published the privacy notice, all thirteen pages scored 100 for accessibility, best practices and SEO, and 99 or 100 for performance. A full run, from the first check to the confirmation on the live site, takes about six minutes.&lt;/p&gt;
&lt;h2&gt;What the process caught&lt;/h2&gt;
&lt;p&gt;A process like this earns its keep when it catches what a person would miss. A few examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The CVs had drifted from the site.&lt;/strong&gt; Comparing them turned up real contradictions: they called the Frio Solidário repository private while the site linked to it, described my role in SellOut EasyTrack differently, and named a different area of interest. Worse, they used fonts whose license did not allow embedding, so they could not even be regenerated as they were. Generating them from the site’s content ended the drift. The test that guards them writes out the expected footers itself rather than reading them from the content files, so it cannot pass merely because it shares a source with the build.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The repository’s own policy stopped the Terraform setup.&lt;/strong&gt; The repository only allows actions published by GitHub and by its owner, so the official action that installs Terraform was refused. Instead of opening an exception in the policy, the pipeline now downloads the Terraform release directly and verifies it against its published SHA-256 checksum.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The accessibility audit was measuring the wrong moment.&lt;/strong&gt; The thanksgiving page fades its text in slowly, and halfway through a fade the text is still translucent, so the contrast measured then is not the contrast the visitor reads. The audit now waits for the animations to finish and checks the page at rest.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The linters found leftovers.&lt;/strong&gt; Stylelint exposed a duplicated CSS rule, left behind when the styles were split into files in stage 2. It also flagged two things that were intentional: vendor prefixes and the older media query syntax, both still needed by older versions of Safari and Chrome. The two rules behind those warnings were adjusted, with the reason written in the config, instead of being switched off.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Principles behind the project&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No third parties in the page.&lt;/strong&gt; Fonts, scripts and images all come from the site itself, as the security policy requires. There are no analytics, no cookies and no trackers. A short &lt;a href="https://arthurceicorrea.dev/en/privacy/"&gt;privacy notice&lt;/a&gt; states what Cloudflare and GitHub receive from a visit, and a check on the live site fails if any response ever sets a cookie.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Language detection without tracking.&lt;/strong&gt; The visitor’s language is chosen on the device itself, from its time zone and browser language, not from the IP address, which would mean sending every visitor’s address to a geolocation service.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Accessibility.&lt;/strong&gt; WCAG 2.2 AA, checked on every change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No personal data on display.&lt;/strong&gt; No phone number or home address on the pages or the CVs, and the tests scan for phone numbers.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;On using AI&lt;/h2&gt;
&lt;p&gt;The code in this project is written with an AI agent, and the repository says so. The instructions the agent works under are public too, in &lt;a href="https://github.com/arthurceicorrea/arthurceicorrea.github.io/blob/main/CLAUDE.md"&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/a&gt;. I conceived and lead the project, setting the requirements, the pipeline checks and the priorities for each improvement. The agent’s work goes through the same pull requests and the same pipeline as everything else. I wrote about the principle behind this in an earlier essay, &lt;em&gt;&lt;a href="https://arthurceicorrea.dev/en/articles/from-purism-to-prudence/"&gt;From Purism to Prudence: Artificial Intelligence and the Right Order of Means&lt;/a&gt;&lt;/em&gt;: the instrument serves the intellect, and AI-suggested code must be read, tested and understood before it reaches production. Directing an AI agent within a disciplined process, with a defined scope, clear acceptance criteria and automated verification, is part of the job today, and I see no reason to hide it.&lt;/p&gt;
&lt;h2&gt;What comes next&lt;/h2&gt;
&lt;p&gt;This article opens the new articles section, built in stage 12. Articles are written in Markdown and in English, and listed in the four languages. Alongside this article, &lt;em&gt;From Purism to Prudence&lt;/em&gt;, which until now was only on LinkedIn, moves to the site with its original date. The next stage brings the latest articles to the home page and lets me choose which ones appear on my CV.&lt;/p&gt;
&lt;p&gt;I’ll post a short note on LinkedIn as each stage ships. Longer pieces will appear here, and the &lt;a href="https://arthurceicorrea.dev/feed.xml"&gt;Atom feed&lt;/a&gt; is the easiest way to follow them.&lt;/p&gt;
&lt;h2&gt;Why the motto&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;span lang="la"&gt;Sapientis est ordinare&lt;/span&gt;&lt;/em&gt;, «it belongs to the wise to order», comes from the first chapter of St. Thomas Aquinas’s &lt;em&gt;Summa contra Gentiles&lt;/em&gt;, where he takes it from Aristotle. In his thought it reaches to the ordering of all things to their end, the virtues included, and I try to live by it in that breadth. As a motto, though, I adopted it with my work as a software engineer in mind, and this site is one instance of it: every part has a reason to be where it is, and every decision can be explained.&lt;/p&gt;
&lt;p&gt;The home page opens with that motto, and every footer begins with a colophon: &lt;em&gt;&lt;span lang="la"&gt;Non nisi te, Domine&lt;/span&gt;&lt;/em&gt;, the answer St. Thomas is said to have given when Christ asked him what reward he wanted. The colophon links to a short page of thanksgiving.&lt;/p&gt;
&lt;p&gt;The site’s repository is public at &lt;a href="https://github.com/arthurceicorrea/arthurceicorrea.github.io"&gt;github.com/arthurceicorrea/arthurceicorrea.github.io&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <id>tag:arthurceicorrea.dev,2026-11-25:from-purism-to-prudence</id>
    <title>From Purism to Prudence: Artificial Intelligence and the Right Order of Means</title>
    <link rel="alternate" type="text/html" href="https://arthurceicorrea.dev/en/articles/from-purism-to-prudence/"/>
    <published>2026-08-24T00:00:00-03:00</published>
    <updated>2026-08-24T00:00:00-03:00</updated>
    <summary>An essay on using AI at work, in the light of the Aristotelian-Thomistic tradition: the instrument serves the intellect, but one should not delegate what one has not yet learned, and AI-suggested code, configurations and pipelines must be read, tested and understood before they reach production.</summary>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;span lang="la"&gt;Sapientis est ordinare.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;— Saint Thomas Aquinas, &lt;em&gt;Summa contra Gentiles&lt;/em&gt; I, 1&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Every new instrument meets two opposite errors: the enthusiasm that expects it to do our thinking, and the purism that refuses it because it makes the work easier. Artificial intelligence is meeting both. This essay argues, from Aristotle and Saint Thomas, that the question is not how hard a method is but whether it serves its end, and who remains responsible for the result.&lt;/p&gt;
&lt;h2&gt;Means exist for an end&lt;/h2&gt;
&lt;p&gt;In the Aristotelian-Thomistic tradition, every human action is ordered to an end (&lt;em&gt;&lt;span lang="grc-Latn"&gt;telos&lt;/span&gt;&lt;/em&gt;), and the means (&lt;em&gt;&lt;span lang="la"&gt;ea quae sunt ad finem&lt;/span&gt;&lt;/em&gt;) are chosen for the sake of that end. Seen this way, what we might call methodological purism — treating the difficulty of a process as a measure of its worth — confuses the means with the end. The effort a method requires is not, in itself, a merit. This holds in the order of art. In the moral order, labor borne for a good end can be ascesis and, done in charity, merit before God; but the root of that merit is charity, not the clumsiness of the method.&lt;/p&gt;
&lt;p&gt;Aristotle defines art (&lt;em&gt;&lt;span lang="grc-Latn"&gt;technē&lt;/span&gt;&lt;/em&gt;) as a disposition to make things with true reason (&lt;em&gt;&lt;span lang="grc-Latn"&gt;logos alēthēs&lt;/span&gt;&lt;/em&gt;), and ties the excellence of action to right reason (&lt;em&gt;&lt;span lang="grc-Latn"&gt;orthos logos&lt;/span&gt;&lt;/em&gt;), as he explains in Book VI of the &lt;em&gt;Nicomachean Ethics&lt;/em&gt;. A craftsman is not better for having worked harder than necessary, but for having made well what he set out to make. Saint Thomas Aquinas agrees: art is right reason about things to be made (&lt;em&gt;&lt;span lang="la"&gt;recta ratio factibilium&lt;/span&gt;&lt;/em&gt;), and the craftsman, as such, is praised not for the will with which he works but for the quality of the work.&lt;/p&gt;
&lt;h2&gt;The instrument serves the intellect&lt;/h2&gt;
&lt;p&gt;Saint Thomas, developing what Aristotle only sketched, distinguishes the principal agent from the instrument. The instrument acts by the power of the one who moves it and can produce an effect beyond its own capacity, but always under his direction. It serves, however, through an operation of its own: the saw cuts because it is sharp, and only by cutting does it make the bed the carpenter intends. The pen leaves ink; it is the writer who writes the letter, through the pen. The same holds for a calculator, a compiler or a language model. A language model has a far wider operation of its own than a pen, which is exactly why the principal agent’s direction must be more vigilant, not less. It understands nothing; what it produces signifies only for an intellect that receives and judges it.&lt;/p&gt;
&lt;p&gt;A mathematician who has mastered arithmetic loses nothing by handing long computations to a calculator. He frees his attention for what is properly his:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;understanding the structure of the problem;&lt;/li&gt;
&lt;li&gt;formulating hypotheses rigorously;&lt;/li&gt;
&lt;li&gt;interpreting the result.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What should not be delegated&lt;/h2&gt;
&lt;p&gt;The analogy has a limit that deserves to be stated. The mathematician can delegate arithmetic because he once learned to do it by hand. Whoever is still acquiring a skill needs the exercise itself, for skill is a habit (&lt;em&gt;&lt;span lang="la"&gt;habitus&lt;/span&gt;&lt;/em&gt;), and habits are formed by repeated acts. A student who delegates what he has not yet learned does not free his intellect; he deprives it of formation.&lt;/p&gt;
&lt;p&gt;A second limit concerns judgment. An instrument can produce a result, but responsibility for that result remains with the agent. In my own field of DevOps and infrastructure, code, configurations and pipelines suggested by AI must be read, tested and understood before they reach production. A model can write a plausible access policy in seconds; only someone who reads it knows whether it grants more than it should. Prudence includes caution (&lt;em&gt;&lt;span lang="la"&gt;cautio&lt;/span&gt;&lt;/em&gt;): knowing what must be verified, and verifying it.&lt;/p&gt;
&lt;h2&gt;Prudence, not enthusiasm or refusal&lt;/h2&gt;
&lt;p&gt;There are serious reasons for caution about AI: confident errors, security risks, questions of intellectual property, and skills that weaken when they are never practiced. These concerns deserve engagement, not dismissal. The error I am criticizing is narrower: rejecting a useful instrument on principle, as if refusing it were a virtue in itself.&lt;/p&gt;
&lt;p&gt;Prudence (&lt;em&gt;&lt;span lang="grc-Latn"&gt;phronēsis&lt;/span&gt;&lt;/em&gt;) asks for something more demanding than either enthusiasm or refusal: to judge, case by case, which means truly serve the end. Artificial intelligence is a powerful instrument, and what holds of every instrument holds of it. The work remains, as it always has, the work of the person who, by the intellect, conceives the end, directs the means and answers for the result.&lt;/p&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Aristotle, &lt;em&gt;Nicomachean Ethics&lt;/em&gt;, Book VI: &lt;em&gt;&lt;span lang="grc-Latn"&gt;technē&lt;/span&gt;&lt;/em&gt;, &lt;em&gt;&lt;span lang="grc-Latn"&gt;phronēsis&lt;/span&gt;&lt;/em&gt; and right reason.&lt;/li&gt;
&lt;li&gt;Aristotle, &lt;em&gt;Physics&lt;/em&gt; II, 3, and &lt;em&gt;Metaphysics&lt;/em&gt; V, 2: the four causes.&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; I-II, q. 1 (the end of human acts) and qq. 13–14 (choice and counsel about the means).&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; I-II, q. 51, a. 2: habits are caused by acts.&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; I-II, q. 57, aa. 3–4: art as right reason about things to be made, distinct from prudence.&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; I-II, q. 114, a. 4: charity as the principle of merit.&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; I, q. 45, a. 5, and III, q. 62, a. 1: principal and instrumental causes.&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa contra Gentiles&lt;/em&gt; I, 1: it belongs to the wise to order (after Aristotle, &lt;em&gt;Metaphysics&lt;/em&gt; I, 2).&lt;/li&gt;
&lt;li&gt;Saint Thomas Aquinas, &lt;em&gt;Summa Theologiae&lt;/em&gt; II-II, qq. 47–49: prudence, right reason about things to be done, and its parts, among them caution.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
</feed>
