Skip to content

Connectors

A connector is a source plus the scripts that fetch it. The source says where requirements, test cases or changes live — a link and the part of it that is meant. The scripts say how they are fetched. The assistant writes the scripts the first time, keeps them in the workspace, and takes them again the next time, instead of writing new ones for every import.

You find them under Settings, on the tab Connectors. The tab General has everything else that was on the page before.

The page

Two groups. Import is what XPressRT reads from a source, in three sections, as the workspace keeps them in sources.json:

Section What comes from there Read by
Requirements the requirements a coverage run — and a regression run where a requirement changed
Tests the test cases an onboarding run
Changes the changes a regression run

Export — writing back into a source — is foreseen and not there yet: XPressRT does not write into a source.

Each connector shows, at a glance, its name with the badge Import, the link, who added it and when it was last fetched, and the state of its scripts with any warning. Under Details: the short name, the scope (which part of the source — a set, a folder, a query, a branch), the note, and the names of the credentials the scripts read. Never their values.

Scripts Means
none yet nobody has fetched it with a saved script yet
ready … by … on … because … the scripts are there, exactly as recorded, and written for the scope recorded here. That is all it says: nobody ran them for it. Whether they still work, check shows
need adapting the scope recorded here is no longer the one the scripts were written for — the assistant adapts them before the next fetch
changed since connector.json was last written a script file differs from its recorded hash — with the history entry of that change
written by a newer XPressRT left alone; ask whoever works with the newer version

A hint in amber is not an error: it says, for example, that a script file looks as if a credential was written into it, or that connector.json does not say which file the credentials come from.

Credentials

A script reads its credentials from one file you name — one per system, not per source: the requirements and the test cases from the same Jama share ~/.config/xpressrt/jama.env. Before writing a new script the assistant asks you where it is, and connector.json keeps it (expects.file), with the keys as they stand in the file (expects.names). From the environment a script reads them only with a prefix (expects.envPrefix, e.g. JAMA_USERNAME) — USERNAME alone is the login of your machine. Under Details the connector shows the names and the file, never a value.

The assistant never opens, prints or reads that file itself, and never puts a value on a command line or into a file: only the connector script reads it. If the script reports that access was refused or credentials are missing (exit code 2), the assistant tells you where it looks and stops. This rule stands in the assistant's instructions, in every answer of read_sources and in AGENTS.md — also for a small model that reads nothing else. The credentials never go into the workspace, which keeps the scripts in its history.

Adding, changing, removing

Under the name you work as (Working as):

  • Add connector — first the direction (Import), then what it delivers (Requirements, Tests or Changes), then name, link and scope. The scope is required: a source is hardly ever the whole system. If it really is, say whole project. The short name is made from the name — lower case, dashes, not used twice — and shown as you type; it is what runs name and the folder of its scripts. Under Advanced you can choose it yourself, only here: once added it does not change. A short name under which the scripts of a removed source still lie is refused — move them to the archive first, or choose another; a new source never takes over old scripts unnoticed.
  • Edit — what it delivers, the link, the scope and the note. Changing what it delivers moves it into that section — for a source that stands in the wrong one, such as the source of test cases recorded under Requirements. The short name, who added it and when stay: it is the same source. When you change the link or the scope, the field Why appears, and Save waits for it: both decide where an assistant reads from. The history entry carries the reason as the decision. The note and the section change without one.
  • Remove — with a reason. Runs that read from it keep what they read, and its scripts stay in local/connectors/<id>/. The history entry carries the reason as the decision.
  • Scripts without a source — the scripts of a removed source are listed under this heading, so that nobody takes them for a new source of the same name, with the hints of their scripts — a credential left in one stays in the history otherwise. Move to archive moves the folder to local/archive/connector-<id>-<date>/; nothing is deleted.

An assistant can add a source too, with propose_source and the name of the person who named it — and change one, with the person's sentence as the reason when the link or the scope changes. Either way it ends in the same entry, and the page says who added it. An assistant never reads a source that is not recorded here.

The scripts

Each connector has a folder of its own, local/connectors/<id>/, complete in itself, with connector.json: which source, how it is called, what comes out and where (under local/data/), the names of the credentials, what the scripts found at the source the last time they succeeded (at least the count, the types or fields, and the scope), who changed them last, when and why, and the hash of every file.

Every connector has the same outside, so that later the runner can call it as well: one entry point with the commands check, fetch and changes --since <stamp>, exactly one JSON object as output, and fixed exit codes — 0 ok, 2 access refused or credentials missing, 3 the source looks different from what the scripts found before, 1 anything else.

Before it fetches, the assistant runs check first. Exit 2 — access refused, credentials missing — is never repaired: the credentials are yours, and it tells you and stops. Exit 3 — the source looks different — it says what deviates and that it will repair the script, then does.

When the assistant writes new scripts. Only when there are none, a script fails, check reports a deviation, or the scope recorded here is no longer the one the scripts were written for. It says so in the conversation before it changes anything, and the run records it: on the run's page a source reads fetched with the saved script, new script: …, script repaired: … — or nothing fetched (exit 2) when the script ran and brought nothing. Reused is checked: the folder has to be there and its connector.json unchanged; scripts that were changed are repaired, with the reason. A source from which nothing was fetched counts as not read in that run.

A fetch without changes is a run too. The assistant hands it in — an onboarding with every test case left as it was, a regression without points and with the word that nothing changed. It is the record that the source was fetched, and with which script, and it sets last fetched: every kind of run does, not only coverage.

Which source a run reads

Every kind of run reads from its own section: an onboarding from Tests, a coverage run from Requirements, a regression run from Changes — and from Requirements where a requirement changed. A run that names a source of another section is refused, with the hint to move the source if it is in the wrong one. An onboarding that names a source that is not recorded at all is refused too; a regression only gets a hint, because it often names a diff or a revision that is no source of its own.

Check coverage, Check a new change… and Import from a source… each ask for the source and offer only those of the matching section. Only when there is exactly one is it chosen already; with several the field says Choose … and the request waits until you have. A new one is recorded in that section. The request carries it, and a run for that request that reads from another source is refused. Without a request the assistant asks before the run: none recorded — where is it; one — this one, another, or a new one?; several — which.

On the Import page the runs can be filtered by source; a source that is no longer a connector is shown as such.