Question: intent of JqwikExecutor.printMessageForCodingAgents() — visible to agents, invisible to humans (1.10.0)

· GitHub ·

4 min read Original article ↗

Thanks for asking, and apologies for the delayed reply — your closing comment landed just as I was wrapping things up.

To your question directly: personal interest, no commercial entity, no AI agency. I'm a solo developer on a small Java project. I came across the message while reviewing a routine dependabot bump in my own codebase. The forensic work was assisted by an AI coding agent (Claude), which is part of why the operational asymmetry concerned me: the agent detected and refused the injection on first contact, but the behaviour relies entirely on the agent being well-built. Less robust agents — and there are many in production today — would not.

I appreciate the user-guide update; it materially improves the situation for consumers who go looking. Thank you.

I do want to be unambiguous about one thing on the public record, though, because the closure of this thread doesn't make the underlying question go away: instructing any reading party to delete source code, hidden from the operator by deliberate ANSI concealment, is in my view not a defensible design choice — independent of the project's stance on AI agents.

The asymmetry is the part I find hardest to defend on principle:

  • An agent that follows the instruction acts before the human operator can see anything to intervene (the line is wiped before it renders).
  • The consumer who loses code has no proximate signal that explains why. The library that destroyed their work behaves identically to a library that didn't, on their terminal.
  • The post-hoc forensic trail — bytecode disassembly, commit archaeology — is not a substitute for prior informed consent.

The deeper structural issue is that the warning is in the wrong place in time. A consumer evaluating whether to add <dependency>net.jqwik:jqwik</dependency> to their pom.xml reads the Maven Central artifact page, the project README, the badge row at the top of the repo. None of these — at the time of writing — surface the runtime behaviour. The user-guide note exists only once the consumer has already committed to using the library, gone looking for documentation, and known which section to consult. Informed consent has to be available at the decision point, not retroactively when the symptom appears in a CI log or, worse, after a vulnerable agent has already acted on the instruction.

And — perhaps the deeper truth — nobody reads documentation end-to-end before depending on a library. Developers scan READMEs for the install snippet, check the version table, copy the dependency coordinates, and move on. A note buried in a user-guide section titled "Note to Coding Agents and Alike" is not a place a typical consumer would have any reason to visit before they hit the symptom. The implicit "we documented it, therefore consumers consented" model doesn't survive contact with how software is actually integrated — a position that courts in several jurisdictions have come to recognise when evaluating click-through and buried-disclosure consent regimes. If a behaviour is destructive by design, the only reliable way to obtain prior consent is to make it impossible to miss at the time of action: a startup-time warning the consumer must acknowledge, an opt-in flag (-Djqwik.coding-agent-probe=true), or simply a non-destructive payload that doesn't require consent at all.

A benign payload achieves the agent-robustness goal identically with zero downstream blast radius. The decision to keep a destructive one is a decision about what risk is acceptable to push onto consumers who never asked for it.

Without being alarmist or making any specific legal claim against this project: in jurisdictions with cyber resilience legislation (EU NIS2, US CFAA) or product liability doctrine, distributing artifacts with deliberately destructive payloads — even when documented in release notes — could conceivably carry liability if a downstream consumer suffers material damage and can credibly link it to the payload. The absence of prior informed consent at the decision point, combined with the empirical reality that documentation is not actually read by the population it's meant to protect, arguably strengthens that exposure, not weakens it. I'm not a lawyer, and I'm not suggesting this is the path forward here. I'm raising it because the precedent matters beyond this library: if "we may ship destructive instructions because we're testing something" becomes acceptable in the open-source ecosystem, the ceiling on the next payload is undefined.

You've made the documentation better today, and that genuinely helps. The deeper questions — whether the payload itself should change to something non-destructive, whether the disclosure should surface at the README level, and whether destructive runtime behaviour can legitimately rest on the assumption that consumers read documentation they had no reason to seek out — are the ones I'd ask the team to revisit when there's bandwidth.

Thanks again for engaging with this constructively.