Skip to content
File

Blob: references/learning-and-revision.md

Markdown62 lines

Learning and revision

Keep the understanding that lets the next piece of work start further ahead: what became possible, which mechanism explains it, which conditions mattered, and what would change the choice.

A working prototype, a causal explanation, and a maintained component are different achievements. They can arrive at different times. Recognizing the current goal helps choose how much structure and investigation the next step needs.

Build a model of the unfamiliar boundary

G14Manager replaced parts of ASUS's Windows control software on Zephyrus G14 laptops, including keyboard shortcuts, keyboard-backlight adjustment, and fan profiles. Understanding the hardware required combining Linux driver implementations and ACPI documentation with observations of the laptop's own messages. The useful model separated two things with nearly the same vendor name: the ASUS Optimization driver exposed a device through which the application could reach firmware controls, while the ASUS Optimization service competed with G14Manager to operate them. The driver needed to remain installed even when the competing service was stopped.

Comparing captured USB reports connected key presses and modifier combinations to particular fields. Compatibility was established for two G14 variants, while supporting another variant required its ACPI tables to determine whether the same controls existed. That boundary made the result usable: knowing how one laptop worked supplied a hypothesis for another, not a claim that all laptops with similar branding shared its firmware interface.

Learn enough to predict an outcome and choose the next observation. Documentation, reference implementations, and local behavior contribute different pieces. Follow a prediction back to the layer that can explain it.

An exercise can also have learning as its primary result. shortener-on-lambda built a URL-shortening service with a Vue frontend and AWS Lambda backend. It explored authentication, API hosting, storage, and frontend delivery while leaving parts of frontend provisioning manual. That compromise met its stated goal of acquiring AWS familiarity. A service that operators needed to reproduce unattended would have a different completion criterion.

Keep a failed attempt at the right scope

The FlowTalk chatbot helped people configure data-processing operations. One conversational step edited filters over columns in a source dataset. An unfinished natural-language-to-SQL attempt gave way to a restricted grammar with explicit filter state and examples such as “add a condition where iteration is greater than 5.” The filter could add, change, and remove numbered conditions using that supported language, and validate column names against the dataset.

The main conversation still used a learned intent predictor, and the filter retained an intention to accept less exact phrasing later. Approximate recognition of what conversation to enter and precise changes to a data filter therefore used different mechanisms in the same system. Why the attempted integration failed remains unknown. The working fallback does not establish that natural-language filtering was inherently unsuitable.

A fallback can complete the immediate workflow while preserving a useful question for later. Retain the concrete limitation: which operation failed, under what input, and what the fallback can reliably do.

Correct the explanation as well as the code

The ESP32 project aimed to stream music and telemetry from a microcontroller board to browsers and let a browser control the board's LED. WebRTC DataChannels supplied the non-media message path. An early probe appeared unable to transmit, and the agent interpreted that as an SDK limitation. Rachel challenged the conclusion:

can you investigate how we can use datachannel? i feel like we are missing something

The probe had disabled automatic channel creation without making the explicit call to create a local channel. The SCTP transport could be ready while no channel existed for the application to send through. Adding the call enabled transmission, and the agent corrected its explanation: “My earlier conclusion about an SDK gap was premature—the probe had omitted that call.” The next implementation could now start from a known lifecycle prerequisite instead of working around a nonexistent limitation.

Rachel connected that challenge to earlier WebRTC work in go-wish, a publishing and playback tester built with Pion's Go implementation. That work involved peer connections, negotiation, encryption setup, and connectivity establishment. The established domain model made the claimed limitation worth questioning even though the particular embedded API was new. The user supplied the informed expectation; the investigation found the omitted call. Use experience and connections to recognize this kind of continuity.

A population-modeling assignment in Physics301 left causation less settled. Reorganizing a dolphin simulation into survival, breeding, advancement, and repeated trials made the code and its separate population, birth, and death counts easier to inspect. But the same revision also changed breeding eligibility, event ordering, pairing, and death-age conversion. More plausible-looking output showed progress without isolating which change caused it or validating the biological model. Retaining that distinction gives later work a starting point without forcing a single explanation onto the experiment.

Change the investment when the audience changes

Once the ESP32 music-and-control demonstration worked, Rachel changed the intended audience: the repository was to become a public Rust showcase. A probe that established transport feasibility now needed structure another developer could understand and extend. The explicit request to “properly architect it into modules” justified investment in ownership and integration boundaries that had not been the first objective of the disposable experiment.

The request for an ERRATA document captured that transition. Future readers needed to understand encountered issues and their resolutions. Verbose development and validation ledgers could stay local. The public explanation needed enough context to use and maintain the system independently.

Write for the next person's task. Explain the mechanism, supported behavior, and practical consequence. A sequence of experiments is useful when someone needs to reproduce the investigation; ordinary use should not require reconstructing that sequence.

Carry a tradeoff with its reason

The ESP32 cryptography work considered whether to route P-256 elliptic-curve operations through the same native hardware-backed implementation as other operations, despite a measured slowdown compared with the previous RustCrypto path. Rachel conditionally favored it if the extra cost was modest, because a uniform backend would remove special branches, and asked to revisit P-256 later. The extra work was concentrated in connection setup rather than every audio packet. That usage pattern made a small setup penalty easier to accept; frequent latency-critical handshakes would change the comparison.

This is a better memory than “prefer hardware crypto” or “prefer fewer branches.” Preserve what makes the decision sensible so a new situation can be evaluated directly.

Update the artifacts that teach the old expectation

bland publishes selected workspace pages as public websites. Its original public-HTML policy required consulting D1, the database holding publication and access state, before accepting a cached response. A later performance decision allowed a request-keyed HTML cache hit to be served first, accepting stale HTML for a bounded internal TTL. A test and repository instruction still taught the old ordering, so their failure led an agent to move the database check back in front of the cache.

Rachel corrected the proposed runtime change: “no, we should update the test,” then pointed out that the agent guidance also needed updating. The accepted policy, its test, and the instruction needed to agree. The change concerned cached public HTML; public assets still required current database checks for page publication, upload ownership, and reachability. Updating the obsolete expectation did not erase those separate access requirements.

When maintaining project knowledge, put the revision where future work will encounter the old assumption. Preserve the distinction between surfaces that changed and those that retain stronger requirements.

The same applies to agent guidance. In a documentation-search project, an agent started a synchronization of the documentation corpus whose duration had not been established. After the user stopped it, repository guidance added bounded verification and approval for long jobs. A later agent reported avoiding another full synchronization because of that rule. The later behavior shows that the remedy affected work; it does not isolate whether the model itself had improved.

Another later correction concerned a proposed custom updater for Tiptap editor packages, whose versions needed to stay coordinated. The existing npm mechanism could update them together, so the extra script was unnecessary. A newer model did not make that reasoning obsolete. Keep the concrete reason behind a compensating instruction, and reconsider its form when conditions change. Better models, clearer guidance, different tasks, and human intervention can all affect outcomes; counting fewer corrections cannot separate their effects, and active instructions remain in force until revised.