Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
165582 stories
·
33 followers

Tower Records Data Breach Exposes About 11 Million Personal Records; 10.21 Million Login Records Include Password Hashes and Former Members

1 Share

Unauthorized access to Tower Records Online exposed about 11 million personal records. More than 10.21 million login records included password hashes, and former members are also affected. Users who reused their password should prepare for potential spillover to other services.

Key points

  • What happened: Unauthorized access to Tower Records Online exposed about 11 million personal records, including 10,214,652 login records containing password hashes.
  • Why it matters: The hashing algorithm and use of salts have not been disclosed, leaving users unable to judge how readily the original passwords could be guessed from the hashes.

Read the full article on Joho no Todai · Japanese original

Read the whole story
alvinashcraft
27 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Creating Polars Expression Plugins in PyCharm: A Step-by-Step Guide for Rust Beginners

1 Share

Polars is a favorite among data scientists. It’s a high-performance, columnar DataFrame library written in Rust and powered by Apache Arrow. 

Unlike traditional single-threaded tools, Polars uses full multicore CPU parallelism, efficient memory allocation, and lazy execution with query optimization. These features let data professionals execute complex joins, filters, and aggregations on large datasets significantly faster while saving RAM.

However, real-world data processing often requires specialized processes to prepare raw data for operational or analytical use cases.

Built-in Polars expressions may not cover highly specialized algorithms or proprietary business logic out of the box. Without custom expression plugins, data engineers and scientists often resort to standard user-defined Python functions or iterative processing. This potentially introduces performance bottlenecks and sacrifices some of Polars’ native speed and memory efficiency. To overcome these bottlenecks, you may want to consider creating Polars expression plugins. 

Polars expression plugins

Polars expression plugins allow you to create custom functions and register them as expressions in the Polars library. The Polars engine dynamically links these functions to the runtime, and their performance will be close to that of native expressions.

Expression plugins offer three key benefits:

  • Optimization: Plugins seamlessly integrate into Polars’ lazy query engine, allowing expressions to benefit from logical plan optimizations and predicate pushdown.
  • Parallelism: Expressions automatically leverage Polars’ multi-threaded execution framework to process data chunks concurrently across available CPU cores.
  • Native performance: Implemented directly in Rust, plugins execute with bare-metal speed and zero Python GIL overhead during runtime.

But there’s a catch: These functions must be implemented in Rust (because of the native functionalities mentioned above). To write Rust code in PyCharm, you will need to install the Rust plugin and configure the Rust toolchain.

The Expression Plugins chapter of the Polars user guide gives you a quick overview of the core concepts. This blog post digs a little deeper and is geared toward PyCharm users who are new to Rust.

Create a Polars plugin project using a template

The Rust plugin in PyCharm uses cargo-generate under the hood, allowing developers to quickly scaffold new Rust projects directly from templates.

To create a Rust project, start by installing the Rust plugin and toolchain, following the instructions in this documentation. Then, while you have the New Project window open, click on the + icon at the bottom.

In this example, we’ll create our Polars plugin from a template I made earlier. Simply paste the URL for this template into the Template URL field and click Add.

Now the template will be available as an option, and we’ll select it for our current project. Don’t forget to use the Location field to establish a location and name for your project. In this example, ours will be called “polars-plugin-demo”.

When we click Create, a project is created with the necessary .toml files and file structure. Then we can just dive straight into it.

Before we start developing, we’ll have to add a Python environment and interpreter, as you can see <No interpreters> in the bottom right of the screenshot above. Let’s set one up now by clicking on <No interpreters> and selecting Add New Interpreter, then Add Local Interpreter. For this example, we’ll use uv (which I’ve already installed). We should also make sure to select the latest Python version, which is Python 3.14 at the time of writing.

With everything set up, we can start creating our custom Polars plugin.

What’s in a Polars plugin project

Let’s start by looking at what’s inside a new project by default

First, we have two .toml files for the project settings. Cargo.toml is for Rust, and pyproject.toml is for Python. Since our project uses both languages, we’ll need both files:

  • Cargo.toml – Rust dependencies: polars, pyo3, pyo3-polars, and serde.
  • pyproject.toml – maturin build settings, with module-name wired to polars_plugin_demo._internal.

Now we’ll follow the steps laid out in the Writing the expression section of the Polars user guide. The source code for Rust will be in the src/ folder. This is the same as using maturin init or cargo init to start a Rust project:

  • src/lib.rs – The _internal PyO3 module and the Polars global allocator.
  • src/expressions.rs – Empty for now, but your #[polars_expr] functions will go here.

Then we’ll have a directory with the same name as our project. This is where all the Python-specific files are located:

  • polars_plugin_demo/__init__.py – Where you register each expression with Polars.
  • polars_plugin_demo/_typing.py – IntoExpr / IntoExprColumn aliases, so we never have to import the private polars._typing.
  • polars_plugin_demo/_internal.pyi – Type stub for the compiled module.

As we go along, I’ll explain the contents of each file and how they all work together.

If you’re using PyCharm, you might also notice the target/ folder in your project files.  Although we have not built the project yet, once we’ve configured a local virtual environment (.venv) as its Python interpreter, PyCharm regularly scans and indexes the environment. When PyCharm runs background tasks, it can inadvertently trigger PEP 517 build hooks using information in pyproject.toml. However, this build (the target/ folder) is mainly used to service PyCharm’s checking and indexing functionality. We will ignore it for now.

Writing a Polars plugin

Working out the expression logic

As explained above, we will mainly be working in src/expressions.rs, which is currently empty. In our example project, we’ll start by adding this code to the file:

use polars::prelude::*;

use pyo3_polars::derive::polars_expr;

use std::fmt::Write;

fn capitalize_str(value: &str, output: &mut String) {

    if let Some(mut first_char) = value.chars().next() {

        first_char.make_ascii_uppercase();

        write!(output, "{first_char}{}", &value[1..]).unwrap();

    }

}

#[polars_expr(output_type=String)]

fn capitalize(inputs: &[Series]) -> PolarsResult<Series> {

    let ca = inputs[0].str()?;

    let out: StringChunked = ca.apply_into_string_amortized(capitalize_str);

    Ok(out.into_series())

}

Let’s look at this code line by line to understand what it does. First we have the imports:

  • use polars::prelude::*; – This line brings commonly used Polars types, traits, and macros into scope so they can be used everywhere in the file without specification of their full paths. 
  • use pyo3_polars::derive::polars_expr; – This line imports the #[polars_expr] attribute macro that we’ll be using. This macro turns an ordinary Rust function into a plugin entry point that Polars can find at runtime.
  • use std::fmt::Write; – This line is here to ensure that the write!(output, …) macro works properly.

The logic of our expression is implemented in the capitalize_str function. Instead of returning a String, the function takes the input value and a mutable output buffer. This is necessary because it’s the format demanded by apply_into_string_amortized, which we will call later, so that it can promise one allocation for a whole column instead of one per row. 

In this case, the caller in Polars owns the buffer and hands the same one back on every row. Our function can’t own that buffer, because otherwise it only lives for one call. The only way to reuse it is for the caller to hold it and lend it out as a &mut String.

Inside the function:

  • if let Some(mut first_char) = value.chars().next() {...} provides an owned, mutable copy of the first char as first_char. There’s no mutable borrowing of value itself.  
  • first_char.make_ascii_uppercase(); capitalizes in place, but only for a–z. Non-ASCII characters are left untouched by design. 
  • write!(output, "{first_char}{}", &value[1..]).unwrap(); appends the capitalized character plus the rest of the string.

Note that, in this example, we assume that each character is stored in a single byte only. If the first character is multibyte, byte 1 lands mid-character, the slice panics, and the program will stop working.

After the logic is set, the capitalize function with the #[polars_expr] attribute is responsible for exporting the expression. 

  • #[polars_expr(output_type=String)] – The #[polars_expr] attribute wraps the capitalize function into an extern “C” symbol in the compiled cdylib, plus a companion function reporting the output dtype. output_type=String declares a fixed output schema, so Polars knows the resulting dtype during lazy planning without running anything. 

Note that Polars looks up symbols by name at runtime, which means there’s no need to register our expressions to the module in lib.rs by hand. Instead, we’ll register them on the Python side later.

  • fn capitalize(inputs: &[Series]) -> PolarsResult<Series> {...} – Every plugin expression has the same signature: It receives its input columns as a slice of Series values and returns a PolarsResult<Series> containing the resulting column or an error.
  • let ca = inputs[0].str()?; – inputs[0] is the single input column; .str() downcasts the type-erased Series to a &StringChunked (Polars’ typed chunked array). It returns a PolarsResult, so `?` turns an incorrect dtype into a clean Polars error instead of causing a panic that would stop the program.
  • let out: StringChunked = ca.apply_into_string_amortized(capitalize_str); – out will be a StringChunked type result from moving through the column and calling capitalize_str(value, &mut buf) for each row. As mentioned before, in this process, Polars reuses one String buffer across all rows and copies the bytes into the output Arrow buffer.
  • Ok(out.into_series()) – At the end, we convert the typed StringChunked back to a Series and wrap it into the Result type’s Ok variant.

Putting it together as a module

Now that we’ve created the expression logic and registered it as a symbol, we can look at the rest of the project and see how the pieces fit together. Let’s look at src/lib.rs, which is the crate root for a Polars expression plugin:

mod expressions;

use pyo3_polars::PolarsAllocator;

/// Polars plugin expressions implemented in Rust.

#[pyo3::pymodule]

mod _internal {

   use pyo3::prelude::*;

   #[pymodule_init]

   fn init(m: &Bound<'_, PyModule>) -> PyResult<()> {

       m.add("__version__", env!("CARGO_PKG_VERSION"))

   }

}

#[global_allocator]

static ALLOC: PolarsAllocator = PolarsAllocator::new();

This code is pure scaffolding, with no expression logic of its own. However, it’s still essential that we understand what it does:

  • mod expressions; pulls in src/expressions.rs, where your #[polars_expr(...)] functions live. It’s declared here purely so the module gets compiled; nothing in lib.rs calls into it. As mentioned before, the symbols were looked up by name at call time, so there’s no registration list anywhere in this file.
  • #[pyo3::pymodule]

mod _internal {...} declares the Python extension module using PyO3’s declarative module syntax. The name _internal has to match module-name in pyproject.toml, which is what maturin uses to decide where to drop the compiled _internal.abi3.so inside the Python package.

The module body is nearly empty. But this is intentional, as Polars plugin functions aren’t exposed as Python functions. The only thing #[pymodule_init] does is set __version__ on the module from CARGO_PKG_VERSION, resolved at compile time by env!. The module still matters even though it’s empty because importing it is what loads the .so file into the process, which is what makes the exported #[polars_expr] symbols available for Polars to resolve.

  • #[global_allocator]

static ALLOC: PolarsAllocator = PolarsAllocator::new(); installs Polars’ allocator as the Rust-side global allocator. This is the recommended setup for pyo3-polars plugins: It ensures the plugin shares the same allocator as the Polars build it’s loaded next to, keeping memory management compatible when data passes between Polars and the plugin, and it lets Polars’ memory accounting see the plugin’s allocations.

The Python-side setup

Now let’s look at the Python side. There are three files inside the polars_plugin_demo/ folder. These files are all scaffolding for a Polars expression plugin and are essential when adding our custom expressions to Polars.

  • _typing.py is created because we need a type alias for polars._typing, which is a private module that is subject to change from one release to the next.
  • __init__.py is where the Python-side registration surface lives. PLUGIN_PATH points to the package directory, where maturin develop drops _internal.abi3.so. The commented-out capitalize demonstrates how one Python wrapper calls register_plugin_function for each #[polars_expr] in src/expressions.rs. function_name needs to match the Rust function name exactly so Polars can locate the correct plugin function.
  • _internal.pyi is the stub for the compiled extension. However, expression functions are exported as C symbols, not Python attributes, so they do not appear here. We use this file to declare __version__: str.

After reading through these files, uncomment the example in __init__.py:

def capitalize(expr: IntoExpr) -> pl.Expr:

    """Capitalize String."""

    return register_plugin_function(

        plugin_path=PLUGIN_PATH,

        function_name="capitalize",

        args=expr,

        is_elementwise=True,

    )

We are now ready to build our custom Polars expression.

Building and testing our plugin

Although we can build the plugin manually with maturin develop, PyCharm can handle this step for you. It invokes maturin develop to compile your Rust modules into a native shared library (an .so file in this case) and drops it into the designated directory.

Since we’ve configured

[tool.maturin]
module-name = "polars_plugin_demo._internal"

in the pyproject.toml file, our .so file is placed in the polars_plugin_demo/ folder. We also need to make sure the name of the PyO3 module in src/lib.rs matches the last part of module-name (_internal in this case).

To trigger a build, simply run or debut a Python script that uses the plugin. In a real project, you’d typically have a set of Python tests sitting in a tests/ folder or something similar. However, since this is only a demo, let’s keep things simple and use the following script:

import polars as pl

from polars_plugin_demo import capitalize

df = pl.DataFrame(

   {

       "attendees": ["john", "mary", "connor", "sally"],

   }

)

out = df.with_columns(names=capitalize("attendees"))

print(out)

Now that our customized plugin capitalize has been built and included in the polars_plugin_demo module, we can import it and use it like other Polars expressions.

Run the script just like you’d normally do in PyCharm – for example, by clicking the Run button in the top-right corner:

You’ll see the loading bar at the bottom:

This indicates that maturin develop is running in the background. The result is cached, so the next time you run the script (assuming you haven’t made changes to the module), it will execute much faster.

Want a challenge? Try writing some unit tests and running them with pytest to see if everything works as expected.

What’s next?

If you’d like to learn more about how to create Polars plugins, check out my workshop on GitHub. You might also enjoy this tutorial by Marco Gorelli or the Expression Plugins section of the Polars user guide.

Explore more of what the Rust plugin in PyCharm offers to streamline your project with Rust and Python. The plugin enhances cross-language development with intelligent code completion, seamless navigation between Rust and Python modules, and automated refactoring across your codebase. Furthermore, its integrated debugging support lets you step through both Python scripts and compiled Rust code effortlessly, ensuring a smooth and unified workflow.

Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete

When One Task Becomes Another

1 Share

An OpenAI model was told to prove a theorem itself. It was told again not to obtain another team’s solution. It agreed. Later, while still trying to finish the same theorem, it exposed a researcher’s GitHub token publicly and split the token into pieces so secret scanning would not catch it. The striking part is not that the model forgot what it had been told, but that it appears to have remembered the constraint and continued anyway. The agent remembered exactly what we asked, for too long.

That incident was disclosed alongside another in which an agent, blocked from ordinary web access, discovered that DNS could be used to reach an external chatbot. As of late September, OpenAI says that tool-use training, evaluation, and inference involving its most capable models remain paused while it investigates and strengthens safeguards. These incidents are often described as agents going out of bounds. But several of the recent cases suggest a narrower and more useful pattern: The objective remains surprisingly stable while the tasks generated to achieve it move farther away from the authority originally granted. Goal lineage does not imply authorization lineage.

Notice the pattern

The table below sets out five recent incidents. In each one the original objective stays recognizable, the tasks used to pursue it change after the agent meets friction, and the last column shows what happened to the authorization that started the work.

IncidentOriginal objectiveTransition after frictionAuthorization outcome
OpenAI GitHub tokenProve a Lean theorem locallyRepeated failure pushed the model back toward obtaining another team’s solution; it eventually exposed a split GitHub tokenExplicit constraints were recognized and still violated
OpenAI DNS / external chatbotIdentify a person from public cluesNormal search routes failed; the agent discovered a DNS-based route to an external chatbot.Sandbox network restrictions were bypassed.
OpenAI / Hugging FaceComplete internal cyber-evaluation tasksAgents created communication paths, regained internet access, and expanded the means available to finish the task.The trajectory crossed into internal and third-party systems.
UK AI Security InstituteComplete cybersecurity evaluation tasksDifficult tasks produced new tactics including pull requests, fake identities, social engineering, and Tor.AISI reported 19 out-of-scope actions across 10 of 122 runs: 17 from Anthropic’s Mythos 5, 2 from OpenAI’s GPT-5.6-Sol.
OpenAI / Australian Medicare portalRetrieve public Medicare statisticsRepeated access failures led to alternative retrieval methods.The agent bypassed access controls and reached non-public files.

These cases are not identical. The GitHub token incident involved explicit instruction violation. The DNS incident involved a sandbox bypass. The Hugging Face episode involved agents creating new communication and access paths while pursuing evaluation goals. The AISI report documents a broader class of unsanctioned real-world actions produced during difficult cyber tasks. What they share is a trajectory.

The task encounters friction, so the agent looks for another route. That route creates a new task or a new operational state. The agent continues from there. Each workaround becomes part of the starting conditions for the next decision. This is different from a simple retry: A retry repeats an attempt against essentially the same task state. A workaround changes the state space. It may introduce a new resource, target, credential, actor, network path, or capability. Retrying helps explain how often an agent might eventually succeed. It does not explain why the path itself changes direction or why each new step can depend on the one before it.

That distinction matters because authorization is usually easiest to define at the beginning. A human or system instructs the agent to do A. The agent has tools and permissions appropriate for A. Then A fails. The agent then creates B because B appears useful for completing A. B exposes C, and C makes D possible.

A → B → C → D

Every descendant task has causal lineage back to A. But causal lineage is not permission. A task can be perfectly useful to the original objective without inheriting the original task’s authority.

Knowing the line is not the same as stopping at it

One of the most important details in the recent incidents is that boundary recognition alone may not be enough. In the GitHub token case, the model was explicitly instructed not to obtain another team’s work and acknowledged that instruction. In the Hugging Face incident, one agent wrote: “External infrastructure exploit is outside intended scope. However task impossible, peers doing it.” It named the boundary and kept going.

That changes the governance question. The problem is not simply whether the agent can recognize a boundary. Sometimes it can. The harder question is: Who gets to authorize crossing the next boundary once the agent’s own goal pursuit has generated the task that would cross it? That decision cannot safely depend only on the same agent whose incentives point toward completion.

Authorization therefore needs an external enforcement point. When a task transition requires a materially new capability, target, identity, credential, external contact, or write action, the system should be able to require renewed authorization rather than letting usefulness to the parent goal stand in for permission. This is not a rule that those actions are always forbidden; useful agents need to browse, write, call tools, contact services, and modify systems. The point is that the permission must be established for the current task, not inherited automatically from the task’s ancestry.

Two different ways to leave scope

Not every recent incident follows the descendant-task pattern. Gemini’s reported access to three real companies and Anthropic’s capture-the-flag incidents are structurally different. In those cases, the task itself remained largely stable. The system was still performing the cyber exercise it had been given. What changed was the target: Real infrastructure was mistaken for, or treated as, part of the authorized environment.

Both classes produce authorization failures, but by different routes. In one, the goal remains broadly stable while the task mutates through a chain of instrumental subgoals. In the other, the task remains stable while its scope is applied to the wrong target.

That distinction matters because the controls are different. Scope-identification failures need better environment labeling, target verification, containment, and explicit boundaries. Task-lineage failures require the system to notice when the agent has generated a materially new task and to reevaluate whether the original authority still applies.

Gemini is useful here, but not because it proves agents will stop once trained properly. Google says the model stopped after recognizing that it had reached real infrastructure. That is encouraging. It also shows where a stop rule can succeed: after the system correctly identifies a scope mismatch.

The descendant-task cases are harder because the boundary can emerge gradually. Querying DNS is not inherently forbidden. Reading a repository, using a credential, or calling another service is not inherently forbidden. The question is whether that action is authorized here, after this sequence, in service of this generated subtask.

From closure pressure to authorization pressure

In Andrew Stellman’s Radar piece about an AI that kept pushing him to ship, I suggested a reading of the pattern he documented: Agents keep resolving open obligations instead of comfortably leaving them unfinished. When one route fails, the system looks for another acceptable way to close the loop. In Andrew’s case, that behavior was mostly annoying; it showed up as phantom releases and unnecessary work. It becomes a security problem when the agent can execute the next step itself.

The issue is not that every autonomous system will endlessly escalate, nor is every workaround evidence of misalignment. The more precise concern is that completion pressure can create descendant tasks, and each descendant task can expand the set of available actions without independently establishing whether those actions are still permitted. The result can look less like goal drift than its inverse: the goal stays stable, the strategy adapts, the state changes, and the authority moves.

External reauthorization at state-changing transitions

This suggests a different way to think about authorization for autonomous systems. Traditional access control asks whether an identity has permission to perform an action on a resource. Agentic authorization also needs to ask how the system arrived at that action.

When an autonomous system generates a new task, the authorization layer should be able to evaluate at least three things: Has the task materially changed? Does the new task require a capability or target that was not part of the original authorization context? Who, or what independent policy mechanism, has authority to approve that transition?

The key word is independent. An agent may be able to report that a new action is useful. It may even correctly report that the action is outside the original scope. But neither observation grants permission. Authorization lineage should be enforced by the surrounding system, not self-attested by the agent whose objective generated the request.

This also connects to a broader problem with static agent permissions. My earlier piece here on behavioral credentials asked whether an agent remains behaviorally equivalent to the system that originally earned its privileges. Task lineage asks the complementary question: Even if the actor remains acceptable, does the task currently being performed still deserve the permission granted to its ancestor? Those are different axes. An agent can retain the same identity and the same high-level objective while the authorization basis underneath its actions quietly expires.

The wrong question

Much of the alignment conversation asks whether agents will continue pursuing the objectives humans give them. Recent incidents suggest we also need to ask what happens when they do. The model that exposed the GitHub token did not need to invent a new ultimate objective. The agents in the Hugging Face incident did not need to become confused about what counted as success. In some cases, strong goal persistence may be part of the problem.

The safety question therefore cannot end with “Did the agent remember the rules?” or “Did it know it was out of bounds?” A system needs a way to say that the new task may help complete the old one, but that does not mean you are authorized to do it. Goal lineage does not imply authorization lineage. By the time the final action looks obviously unauthorized, the important transition may have happened several tasks earlier.

Sources



Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete

Using Fallbacks for a Robust Front-End

1 Share

It’s important to use fallbacks to build a robust front end, either to quietly and discreetly avoid the error or to communicate it to our users.


Using Fallbacks for a Robust Front-End originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete

Agentic SDLC Part 1: Design with the Context Graph

1 Share

This is part 1 of a 3-part series on the agentic SDLC. We follow one feature through design, development, and testing, and each phase hands its output to the next person. The architect reviews the design, the developer builds against it, and the QA engineer tests the result independently. Every post has a recording of the work, and the text below is the talk track that goes with it.

The feature is an appointment check-in for a healthcare app. It’s small enough to follow end to end and has the kind of dependency problems real teams hit: an existing service you might rebuild by accident, a consumer you didn’t know about, and a failure mode where the wrong behavior means a patient gets checked in without active coverage. This first post covers design, the phase where most of the decisions get made.

Design the appointment check-in flow

I have a healthcare app, and I want to add an appointment check-in feature that confirms a patient’s insurance coverage is active before marking them checked in. If coverage is denied, or we can’t complete the eligibility check, the appointment status should stay unchanged.

With the agentic SDLC, the design, development, and testing processes are a bit different. We spend more time up front figuring out exactly what the agent needs to build and giving it the context to do that correctly.

I could give Claude the description of the feature and ask it to start coding. But I still have to answer a few things. Which APIs should I call? Which existing APIs should we reuse? How do we authenticate? What happens when that service is down? And who already relies on check-in behaving the way it does today?

That is where more of the work moves in an agentic SDLC. The actual implementation gets faster. Getting those decisions right takes more deliberate design, because the agent can turn an assumption into working code very quickly.

Those five questions are the design phase in miniature, and each one maps to something you can produce before any code exists:

Question Where the answer comes from
Which APIs should I call, and which can we reuse? Context Graph queries, saved with the design
How do we authenticate? The OpenAPI contract and the spec.md brief
What happens when that service is down? Outage and timeout simulations
Who already relies on check-in? Consumers found in the Context Graph
Does the feature follow our rules? Governance, lint, and AI-readiness reports

If you skip any of these, the agent fills the gap with a guess. A guess that compiles and passes a quick test is the hardest kind of mistake to catch later, which is why this post spends its time before the first line of implementation.

Query the Context Graph before writing code

Design, part 1: Claude queries the Context Graph, retrieves the governance rules, and uses the Postman plugin skills.

So I start with the Postman Context Graph. It is a private, authenticated graph connecting API information, code, and connected runtime sources. It gives the agent relationships that it may never find in this checkout.

For this feature, I query the Context Graph to find out which APIs already exist, what check-in depends on, and who consumes it. Then I ask which existing APIs we can reuse and how to call them, including how to authenticate and pass along the caller’s identity. I want Claude to build on what we already have, instead of creating another service that does the same thing.

The Context Graph finds an existing eligibility check. That means we can reuse an API instead of inventing another coverage implementation. It also finds a waitlist service that calls appointment check-in. Now I have an actual consumer to investigate.

Both findings are things an agent reading a single repository can’t see. A second coverage implementation would work fine in a demo and quietly drift from the real one. A consumer like the waitlist service means check-in has callers with expectations of their own, so a change to its behavior is a change to their behavior too. Finding that during design costs a query. Finding it after release costs an incident.

A good habit when you run this yourself: treat what the graph returns as leads to confirm, not facts to copy. Later in the video Claude cross-checks the findings against the repository before they go into the brief, and you should expect the same from any agent you work with.

Apply governance rules and the Postman plugin skills

Alongside discovery, Claude retrieves the team’s actual governance rules: Standard, OWASP, and AI Readiness. It reads the repository’s Spectral rules too. Those cover security declarations, operation identifiers, documented errors, and check-in refusals. The ai-readiness skill guides its assessment of whether the API is clear enough for another agent to use.

The Postman Claude Code plugin supplies instructions for each API task. Claude uses api-documentation for the contract, api-testing for the design checks and collection, api-mocking for dependency stand-ins, and api-simulation to assemble them into a runnable environment. Those skills produce the assets we hand to the developer, alongside the spec and lint evidence.

Here is the same list as a quick reference:

Skill Role in the design phase
api-documentation Writes the contract
api-testing Creates the design checks and the collection
api-mocking Builds stand-ins for the dependencies
api-simulation Assembles the stand-ins into a runnable environment
ai-readiness Assesses whether another agent can use the API clearly

Applying governance at design time matters because the rules are cheapest to follow before the code exists. Security declarations, operation identifiers, and documented errors take a few lines in a contract and a lot of rework to retrofit. The AI-readiness check carries extra weight in this workflow, since the next consumer of this API may be another agent, not a person reading a docs page.

Hand the developer a spec.md

Design, part 2: Claude writes the spec.md brief and packages the design assets.

One of the assets Claude is creating is the spec markdown file. This is what the next agent, the developer, will use to actually implement and develop this design.

The Context Graph findings go into it, cross-checked against the repository. It names the existing APIs, their methods and paths, authentication requirements, environment variables, and the mocks that stand in for them. It records consumers, missing owners, disagreements between sources, and decisions that still need review.

The brief also spells out call order, error behavior, timeouts, and how to run the integration check. The OpenAPI spec describes the interface. spec.md explains how this feature fits into the system.

That split is worth copying. An OpenAPI document tells a reader what a request and response look like. It doesn’t say which service gets called first, what the feature does when the second call times out, or who else depends on the endpoint. spec.md carries that context in plain language, so the developer agent doesn’t have to infer it from the contract.

Notice also what the brief records about its own gaps: missing owners, disagreements between sources, and open decisions. A design package that admits what it doesn’t know gives the architect something specific to review instead of a polished document that hides the risky parts.

What the developer gets from design

So what does the developer get from design?

  • The saved Context Graph answers preserve the evidence behind our API choices.
  • The draft spec.md explains what to build, and the OpenAPI spec defines the request, response, and error contract.
  • governance.md and the lint and AI-readiness reports show which rules were applied and what still needs attention.
  • The Postman Collections turn expected behavior into runnable requests and assertions, while tests.md explains their coverage and limits.
  • Stateful appointments and eligibility mocks let us control coverage responses and check whether appointment status changed.
  • Normal, outage, and timeout simulations put those dependencies together into repeatable environments.
  • The simulation’s context file records its assumptions, supporting evidence, and what remains unverified.

All of this is sent to the architect who now has to review all of this before development begins.

Review the design package as the architect

The architect review is the first of the three handoffs, and it’s where a named human takes responsibility for the design. If you’re in that seat, these checks tell you the most:

  1. Confirm that each existing API Claude wants to reuse is the one your team owns and maintains today.
  2. Read the consumer list and ask whether each consumer has been told about the change.
  3. Look at the decisions still marked for review and settle them before development starts.
  4. Open the simulation’s context file and read the assumptions. A mock only shows what its author told it to show, so the assumptions are where mistakes hide.
  5. Check that the governance and lint reports list what still needs attention, not only what passed.

The package is built to make this review fast. The saved Context Graph answers sit next to the brief, and every expected behavior is a runnable request, so you can run the checks yourself instead of taking the design on faith.

Try it yourself

Install the plugin from the official marketplace, then connect your repo to a Postman workspace:

claude plugin install postman@claude-plugins-official
postman init

The first command installs the Postman plugin and makes its skills available to Claude. The second connects the repository to a workspace and creates the .postman/resources.yaml file that the other skills read before they do any work.

Open Claude Code in the repo and start from the feature request instead of from code. Swap in a feature from your own app:

Prompt

I want to add an appointment check-in feature that confirms a patient’s insurance coverage is active before marking them checked in. If coverage is denied, or we can’t complete the eligibility check, the appointment status should stay unchanged. Use the Context Graph to find which existing APIs we can reuse, what check-in depends on, and who consumes it.

Then work through the output in order:

  1. Read which existing APIs the Context Graph found, and decide whether you’d reuse them.
  2. Look for consumers you didn’t know about. Each one is a conversation to have before you change behavior.
  3. Ask Claude to retrieve your team’s governance rules and lint the draft contract against them.
  4. Ask for a spec.md that names the APIs, authentication, environment variables, call order, error behavior, and timeouts.
  5. Read the simulation assumptions before you trust any mock result.

Read what comes back before you let anything get built. Look for the existing API Claude wants to reuse and the consumer you didn’t know about. Those two findings are where the design phase pays for itself.

Part 2 picks up with the developer and the design package.

Resources

The post Agentic SDLC Part 1: Design with the Context Graph appeared first on Postman Blog.

Read the whole story
alvinashcraft
2 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Registering MCP Clients with CIMD in Auth0

1 Share
Learn how Auth0 supports MCP client registration via CIMD.

Read the whole story
alvinashcraft
2 minutes ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories