Research and platform facts
Status: initial research (2026-10-16). Facts here come from vendor documentation and specifications and are not yet verified against a live Agility instance or real clients. The Phase 0 spikes (P0-06 – P0-09) confirm or correct each one and record the result here with a date. Mark every new fact with its source URL and how it was verified:
docs(read in documentation),live(observed against a real system, with date and version) orunverified(secondary source or inference).
Contents:
- Digital.ai Agility
- MCP protocol and TypeScript SDK
- MCP clients
- OAuth 2.1 for MCP
- Cloudflare Workers platform
- Node.js, Docker, SQLite, npm and registries
- Prior art
- Open questions for the Phase 0 spikes
- Admin sign-in providers
Abbreviation: DL = https://docs.digital.ai/agility/docs/developerlibrary/ (Agility developer library).
1. Digital.ai Agility
Section titled “1. Digital.ai Agility”1.1 Product, versions and terminology
Section titled “1.1 Product, versions and terminology”- Digital.ai Agility is the enterprise agile planning product formerly known as VersionOne (VersionOne → CollabNet
VersionOne → Digital.ai). The API surface (
rest-1.v1,meta.v1, attachments) has been stable since 2007 with no deprecation notices across the rebrands. docs - Latest release at the time of writing: 26.2 (July 2026; public example instances report build
26.2.6.29); 26.3 is planned for late October 2026. Releases are quarterly (xx.0…xx.3) with bi-weekly point releases. The 26.0 – 26.2 release notes show no API deprecations. docs, unverified for point releases — live (P0-06, 2026-10-21): the owner’s hosted tenant runs 26.0.3.2. - UI vocabulary depends on the methodology template; the API names are fixed. docs — DL assets
| API name | Scrum UI | Other UIs |
|---|---|---|
Story |
Backlog Item | Story (XP), Requirement (AgileUP/DSDM) |
Scope |
Project (also “Planning Level” in portfolio docs) | Project |
ScopeLabel |
Program | Program |
Timebox |
Sprint | Iteration |
Epic |
Portfolio Item (categories such as Epic, Feature, Initiative are values of a type field, not asset types) | — |
TeamRoom |
Team Room | — |
1.2 API inventory
Section titled “1.2 API inventory”| Family | URL pattern | Methods / format | Purpose | Source |
|---|---|---|---|---|
rest-1.v1/Data |
/rest-1.v1/Data/<AssetType>[/<id>] |
GET/POST, XML or JSON (Accept: application/json, live P0-06) |
Read; create/update one asset; operations via ?op= |
DL rest-1-v1-endpoints |
rest-1.v1/Hist |
/rest-1.v1/Hist/<AssetType> |
GET, XML or JSON (live P0-06) | History: one row per version (moment) of an asset | DL history queries |
rest-1.v1/New |
/rest-1.v1/New/<AssetType>?ctx=<OID> |
GET, XML | Template for a new asset (defaults, context copy) | DL rest-1-v1-endpoints |
query.v1 |
/query.v1 |
POST (GET), JSON or YAML in, JSON out | Read-only, nested selections, several queries per call (live P0-06) | DL tour of query.v1 |
query.legacy.v1 |
/query.legacy.v1 |
as above | Same, accepting Basic auth or the browser session cookie; bearer access tokens also work (live P0-06) | DL tour of query.v1 |
meta.v1 |
/meta.v1[/<AssetType>[/<Attribute or Operation>]] |
GET, XML or JSON (Accept: application/json, live 2026-10-20), no authentication |
Schema: asset types, attributes, types, inheritance, operations, validators | DL meta API |
api/asset (Bulk API) |
/api/asset[?previewOnly=true] |
POST, JSON (object or array) | Create, update, add/remove relations, execute operations; deferred execution with previewOnly |
Bulk API, quickstart, advanced topics |
api/ActivityStream |
/api/ActivityStream/<OID> |
GET, JSON | Activity feed; “may not contain every change” | DL activity stream |
attachments.img |
/attachments.img/<id> |
GET / POST multipart | Attachment content (two steps: create the Attachment asset, then upload) |
DL attachments |
api/tags |
/api/tags/... |
GET/POST, JSON only | Tag management (assignment via the TaggedWith relation) |
DL tags |
assetdetail.v1 |
/assetdetail.v1?oid=<OID> or ?number=<Number> |
GET → redirect | Permalink to an asset in the UI | DL utility endpoints |
API/ProjectRoles |
/API/ProjectRoles |
GET, JSON | Member ↔ project ↔ role queries | DL utility endpoints |
loc.v1, loc-2.v1 |
/loc.v1?<key>, /loc-2.v1?[k1,k2] |
GET | Localised labels | DL localization |
| Webhooks | UI-configured outbound webhooks; a 2018-era api/webhook subscription API |
JSON | Change notifications | webhooks (subscription API: unverified current) |
| Data Mart | SQL star schema (not HTTP) | SQL | Reporting warehouse | DL data mart |
There is no config.v1 endpoint. docs
1.3 Authentication and visibility
Section titled “1.3 Authentication and visibility”- Access tokens (recommended): created in the UI from the member’s Applications page by adding a grant of type
Access Token to a personal or public application. Applications can be created through the API; grants cannot.
Sent as
Authorization: Bearer <token>. They never expire and are revoked by the member or an administrator. The grant “allows an application to operate on the member’s behalf with the same Roles and Project Memberships that are assigned to that member” — there are no scopes. They work whatever the instance’s login method (Basic, NTLM, SAML SSO). docs — DL access tokens — live (P0-06):Bearerworks onquery.v1andquery.legacy.v1; an invalid or missing token gets 401application/json(24-byte body) with noWWW-Authenticateheader and no redirect; responses carryV1-MemberID,V1-AuthTypeandV1-SurrogateID. - OAuth2 grants: a different grant type on the same page, with expiring tokens and refresh. docs — authorizing external application access
- Basic authentication (username/password) is supported and documented as less secure; Windows Integrated Authentication (NTLM) exists for on-premises installations. docs — DL Windows authentication
- The API authentication table lists, per endpoint:
query.v1— all methods except NTLM;meta.v1andloc.v1— none (no authentication);attachment.img,rest-1.v1/Hist,rest-1.v1/New— all. Access tokens therefore work withquery.v1; P0-06 still checks older on-premises versions. (The query.v1 tour’s remark about OAuth2 scopequery-api-1.0concerns the interactive API console;query.legacy.v1accepts Basic auth or the session cookie.) docs — DL API authentication - Visibility: every read and write is filtered to what the token’s member can see (roles and project memberships).
A 404 is returned both for missing assets and for assets the member cannot see. docs (404 not probed on the
read-only tenant) — read errors (unknown type or attribute, malformed filter) are 400
application/json{error, exceptions: [{type, message}]}(live P0-06) — DL HTTP error codes - Attribution: writes are recorded under the token’s member; there is no “on behalf of” header. inferred
1.4 Reading data
Section titled “1.4 Reading data”Parameters (DL queries): query.v1 supports from,
select, page, sort, group, where, filter, find, findin, with, asof; rest-1.v1 supports the same
except group, and adds op (POST only). docs
-
rest-1.v1:
sel(attribute tokens),where(filter tokens),sort(+/-),page=<size>,<start>(size first),find/findin(substring search, “relatively expensive”),asof,with($Var=a,b|$Other=c).whereis ignored on single-asset URLs. Omittingpagereturns the whole result set. docs / archived grammar -
Filter tokens:
=,!=,<,<=,>,>=,~=(contains);+Attr/-Attr(set / not set);∧(AND),|(OR), parentheses; value lists (AssetType="Task","Test"); variables$Name; dot paths (Category.Name); downcasts (Workitems:Story); bracket filters on multi-value relations (Workitems[Owners='Member:20']); aggregations.@Count,.@Sum,.@MinDate,.@MaxDate(the archived grammar also listsDistinctCount,Any,And,Or,MaxState). Aggregations do not exclude deleted or template assets automatically. docs / archived grammar — DL attributes, VersionOne grammars (archived) -
query.v1 body:
from(required),select(strings or nested{from, select}for relations),where(equality mapping),filter(list of filter-token strings, may reference$vars),with(mapping of$varto value, which “alleviates quoting issues”),sort,group(children under_children),page({start, size}),asof(date orAll),needTotal(otherwisetotalis-1). Several queries per call as a JSON array or a YAML stream. The response is always an array of arrays (one per query). docs — live (P0-12, 2026-10-21, a hosted 26.0.3.2 tenant): the array-of-arrays shape holds, bearer access tokens work, butneedTotalreturned no total anywhere (body or headers), andrest-1.v1/Datareported onlypageSize/pageStart(nototal) in XML and JSON;rest-1.v1answers JSON withAccept: application/json({_type, pageSize, pageStart, Assets}). P0-06 checks whether this depends on the version. -
Filter composition (live, P1-04, 2026-10-21): the entries of
filterare ANDed (["ID=$me","ID!=$me"]returns no rows), parentheses group inside an entry, and an OR inside one entry does not leak into the others. Compiled shapes accepted by 26.0.3.2:(Scope=$s|Scope.ParentAndUp=$s)with a list,Asset:Workitem.Scope=$s,Schedule.ScheduledScopes=$sonTimebox,Parent:Story.Numberinselect,Children[AssetState!='Dead'].@Count,Actuals[IsDeleted='false'].Value.@Sum,IsDeleted=$vonActual,Name~=$vandasofwith a timestamp. — live -
Predicate cost (live, P1-06, 2026-10-21):
(Scope=$s|Scope.ParentAndUp=$s)with one project took about 5.1 s onStoryand 1.9 s onTask;Scope=$listwith the project’sChildrenMeAndDowntook 0.22–0.43 s, and the tree query itself about 0.2 s.IsSelfexists onMember(also on the public example instance). — live -
Dates: ISO 8601 with
Zand up to 7 fractional digits (e.g.2018-08-24T15:06:53.1347214Z); date-only values are accepted;ChangeDate/ChangeDateUTC-style pairs exist, and the semantic difference is not documented. docs — live, 2026-10-26 (P1-19): the plain variant is a zone-less local time (2026-10-01T05:00:00.0000000) and the…UTCone carriesZ; on one asset they differed by 11 hours. The zone of the plain variant (server, instance or member) is unverified (P1-20). Tools read the…UTCsibling whenever a caller selects, filters or sorts by the plain attribute. -
Binding:
withsubstitutes named constants into the same filter grammar; it is not a prepared-statement channel, and no escaping rule is documented for values containing,,|or quotes on therest-1.v1side. docs — corrected (live, P0-06): onquery.v1, quotes,|,;, parentheses, brackets,$, newlines, Unicode and 10,000-character values stay one literal value, but a comma splits a scalar value into a value list ("zz,B-01234"matchedB-01234); arrays are value lists by design. Scalars with commas must be refused or split deliberately (L-162, P1-04). Interpolating the same text intofilteris injectable (a contrast query matched every row). -
Cost and limits (live, P0-06): page sizes up to 2,000 work (696 ms, about 100 bytes per
IDrow); a typical row with status, owners, sprint and project is about 430–460 bytes; sorting byChangeDatecosts about 1.1 s per call against about 0.23 s byID(L-163); sorting byIDgives disjoint, repeatable pages. -
History tools (P6-05, 2026-10-27):
GET rest-1.v1/Hist/<Type>/<id>?sel=<attrs>answers JSON{ Assets: [ { id: "<Type>:<id>:<moment>", Attributes: { "<path>": { value } } } ] }, one entry per version, and theselselection is honoured (relation paths such asStatus.Namecome back under that key). TheChangeDateUTCof a version carries a zone. — live (shapes and consistency only: the newest history value ofName,Status.NameandEstimateequals the currentquery.v1value on sampled recently changed assets). Unverified: whetherHistaccepts a datewhereorfilteron the request (the tool fetches all versions and windows them locally), how a deleted or moved asset looks, and that history rows match known edits (needs the writable sandbox, P6-21).ChangeDateUTC >= $sinceas aquery.v1filter worked onStory,Defect,TaskandTest(live). The activity stream was not probed (D-89). SelectingAssetStatein theasof(history) queries ofget_sprintmade batched burndown requests time out (30 s) on the third-party tenant on 2026-10-27 (live, bisected: the same reads without it passed); the current-state read selects it without trouble.asofqueries should select the fewest attributes. Size (P6-13, unverified on a tenant: measured on a synthetic body of the same shape): about 1 KB per version for 12 selected attributes, so an asset with about 500 versions fills the Workers 512 KiB response cap; the tool then fails with a specific message and P6-43 looks for a way to narrow the request.
1.5 Writing data
Section titled “1.5 Writing data”- rest-1.v1 POST (XML): scalar
<Attribute name="X" act="set">…</Attribute>; single relation<Relation name="Owner" act="set"><Asset idref="Member:20"/></Relation>; multi-value relation children withact="add"/act="remove". docs - Operations:
POST /rest-1.v1/Data/<Type>/<id>?op=<Name>with an empty body; operations and their validators (e.g. whether an asset is deletable) are listed inmeta.v1. Common ones:Inactivate,Reactivate,QuickClose,Close,Delete, plus an undelete endpoint. docs — DL undelete - Bulk API (
api/asset, JSON): create{"AssetType":"Story","Name":"…","Scope":"…"}; update{"from":"Epic:4622","update":{…}}or many assets withfrom+where/filter+update; relation add/remove;executean operation over a filtered set; aliases (@name) to reference created assets in the same call.?previewOnly=truereturns the full execution plan without executing it, and the plan can be resubmitted. docs — creation, update, operations, advanced topics - Comments, effort, links: comments are
Conversation/Expressionassets, effort isActual, external links areLink. live (P0-06, metadata):ExpressionhasBelongsTo→ConversationandMentions→BaseAsset[];LinkandAttachmenthaveAsset→BaseAsset;ActualhasScope,Team,Timebox. The attributes needed to create them stay unverified until the writable sandbox (P7-07). - Attachments: create an
Attachmentasset, then upload the content; documented size limit 4 MB. docs live (P6-04, 2026-10-27, Agility 26.0.3.2, metadata andquery.v1only):AttachmenthasName,Filename,ContentType,Asset(→BaseAsset),Description(long text),CreateDate,CreateDateUTCandCreatedBy(→Member) and noContentLength, so the size is unknown until the content is read;IDcannot be sorted on (a relation), so newest-first usesCreateDateUTC.ExpressionhasAuthor,AuthoredAt,Content,BelongsToandMentions; comments of a work item are theExpressionrows that mention it. live (2026-11-13, P9-25): a reply is anExpressionwithInReplyTo(→ its comment) and usually noMentions; the comment lists them inReplies(multi-value).query.v1accepts the filterInReplyTo.Mentions:Workitem.Scope=$xand ORed terms(a=$x|b=$x); replies of replies were not seen (threads are one level). live (2026-11-14, P9-24): an image pasted into rich text is<img src="<instance>/embedded.img/<id>" data-oid="undefined" data-mce-src=… width height alt="">(an absolute same-host URL;data-oidis the literalundefined); 212 of the latest 300 defects held images, yet only 107 had a non-emptyEmbeddedImagesrelation, andEmbeddedImageby thesrcid returned nothing, so neither says which asset an image belongs to. Rarer forms:downloadblob.img/<40 alphanumerics>(same host,image/png),data:URIs, and outside addresses.GET embedded.img/<id>with the bearer token:200 image/png, valid PNG magic,Cache-Control: private; without it401. None of the latest 300 comments held an<img>inContent, but that is not where comment images live: live (2026-11-17, P9-27): an image attached to a comment is anExpressionImageasset (Name,ContentType,Content= blob<basePath>/expressionimage.img/<id>with the asset’s own id,Expression→ its comment), listed on the comment asExpression.ExpressionImages(multi, read-only). 6 of the latest 300 comments held them (up to 4 each).GET expressionimage.img/<id>with the bearer token:200 image/png, valid PNG magic,Cache-Control: private; without it401.ExpressionImagesandExpressionImages.Namepair by position (59 of 59 checked), but the relation order is not id order on 2 of 20 multi-image comments, so tools number them by ascending id. The UI shows them as chips under the comment, next to a chip for each mentioned asset. The content endpoint (attachments.img/<id>, as in the developer library’s utility endpoints page;attachment.imgappears in SDK examples) and itsContent-Typebehaviour are unverified: the read-only tenant’s guard allows no such request (P6-19). - Wave-1 write shapes (P7-04, 2026-10-29), all unverified against a real instance until the sandbox run (P7-07). The
tools send
POST rest-1.v1/Data/<Type>[/<id>]withContent-Type: application/xmlthrough the client’s single-attemptrestWrite; the document is<Asset>with<Attribute name="X" act="set">value</Attribute>and<Relation name="R" act="set|add|remove"><Asset idref="Type:id"/></Relation>children (the documented shapes above), built by one escaping builder (D-172). Per tool:update_statussets theStatusrelation on the item (/Data/Story/<id>);assign_ownerssendsact="add"andact="remove"onOwnersfor the difference only;move_to_sprintsets theTimeboxrelation;add_commentcreates anExpression(/Data/Expression) withContentand aMentionsrelation to the item (the shape the read side already uses: comments are theExpressionrows that mention the item);log_effortcreates anActual(/Data/Actual) withValue,Date,MemberandWorkitem. Open questions for P7-07 (listed in P7-07): does a bareExpressionneed aBelongsToConversation, and does it setAuthorandAuthoredAtitself; isExpression.Contentplain text or HTML (the tool sends plain text, escaped as XML); areScope,TeamandTimeboxof anActualderived from the work item or required in the request; is the response<Asset id="Type:id:moment">(the tools read the OID from it when it is) and how soon the read side shows the change (L-051); does a team workflow restrictStatuson write the way the status list’sTeamattribute suggests; isOwnersadd/removeaccepted in one document. - Lifecycle operations (P7-06, 2026-10-29), unverified until P7-07.
close_assetandreopen_assetsendPOST rest-1.v1/Data/<Type>/<id>?op=<Name>with no body throughrestWrite(the documented operation route above). The name is chosen from the type’smeta.v1Operations(close:QuickClose,Close,Inactivatein that order; reopen:Reactivate); the developer pages for these operations were not reachable, so the names, which types have which, whetherQuickClosealso closes a story’s open tasks and tests, whether a reopen is refused when the parent is closed, and the response shape are all open for P7-07 (D-186, D-187). The Phase 0 snapshot listsQuickClose(Story, Defect, Task),InactivateandReactivate(Story) andReactivate(Defect) only; it is synthetic, not an instance’s full list. - Wave-2 write shapes (P7-05, 2026-10-29), all unverified until P7-07.
create_work_itemsendsPOST rest-1.v1/Data/<Type>(Story,Defect,Task,Test,Epic) with<Attribute name="Name|Description|Estimate|DetailEstimate" act="set">and<Relation name="Scope|Priority|Super|Parent" act="set"><Asset idref="Type:id"/></Relation>; the response is expected to be<Asset id="Type:id:moment">(the tool reports the OID).update_fieldsposts the same attributes and thePriorityrelation to/Data/<Type>/<id>, only for fields that differ.Descriptionis sent as escaped HTML paragraphs. Open questions for P7-07: areScopeandParentboth required for a Task (does Agility deriveScopefromParent), which attributes are required on create without a default (the metadata flagsIsRequiredon defaulted attributes, so the tool leaves it to Agility), whatrest-1.v1/Newreturns for each type, whetherDescriptionHTML is kept or re-sanitised, whetherEstimateapplies to epics andDetailEstimateto stories on this instance, and how soonCreateDateUTCandCreatedBymake the new item visible to the duplicate check (L-051). - Wave-1 extension shapes (P7-17, 2026-10-29), unverified until P7-07.
move_to_sprintwithto_backlogsends theTimeboxrelation as<Relation name="Timebox" act="set"></Relation>with no child (the documented way to empty a single-valued relation; not yet seen to be accepted forTimebox).log_effortwithmembersends theActualwith that member’sMemberrelation; whether Agility accepts anActualfor a member other than the token’s one (permissions, project membership) is open.update_fieldswithtodosets theToDoattribute of a Task or Test (a rollup on a Story or Defect, which the tool refuses); whetherToDois writable on every instance (it can be turned off with the tracking level) is open. - Writable custom attributes (P7-20, 2026-10-29), unverified until P7-07.
create_work_itemandupdate_fieldssend a custom attribute as<Attribute name="Custom_X" act="set">value</Attribute>(text as is, a long text as escaped HTML paragraphs likeDescription, a number as its decimal form), only for a custom, writable, single-valued attribute of kindText,LongTextorNumericinmeta.v1. Open for the sandbox: whether aLongTextcustom attribute is stored as HTML or plain text on this instance (the escaped paragraphs assume HTML, as forDescription); whether aTextcustom attribute has a length limit below the tool’s 400 characters; whether a custom attribute that isIsRequiredor has a default behaves differently on create; and whether a custom attribute written on create must be on the type’s form for the project. - Create relations, re-parent and move (P7-21, 2026-10-29), unverified until P7-07.
create_work_itemadds<Relation name="Owners" act="add">with one<Asset idref>per owner,<Relation name="Team" act="set">and<Relation name="Timebox" act="set">to the create document.update_fieldssetsSuper(an epic above a story, defect or epic) orParent(a story or defect above a task or test) and, to move an item,Scope, each as<Relation name="R" act="set"><Asset idref="Type:id"/></Relation>. Open: whether Agility accepts aScopeset on an existing story, defect or epic (and what it does to its open children, its tasks and tests, its epic and its sprint: the tool refuses an item that is in a sprint), whether a re-parent of a task or test to a story of another project is refused or moves the task, whether an epic cycle is refused, which relations are writable on create for each type, and whatrest-1.v1/New/<Type>returns for the defaults (D-180). - Idempotency: no idempotency keys; each
rest-1.v1POST is atomic for one asset. docs / inferred
1.6 Asset model
Section titled “1.6 Asset model”- Inheritance (from
meta.v1<Base>elements):BaseAsset→Workitem→PrimaryWorkitem→Story,Defect,TestSet;Epic,Task,Test,Themederive fromWorkitem;Scope,Timebox,Team,Member,RegressionTest,RegressionPlan,RegressionSuite,Goal,Request,Issue,ChangeSet,BuildRun,Milestone,Retrospective,Schedulederive fromBaseAsset;ScopeLabelderives fromLabel;TeamRoomfromRoom.Attachment,Link,Conversation,Actual,Expression,Capacity,Environmentstand alone. ANotetype no longer exists (Conversationreplaced it). docs (public meta.v1 example instance), partially unverified — live (P0-06):Story,Defect,TestSet→PrimaryWorkitem;Task,Test,Epic→Workitem;Issue,Request,RegressionTest,Timebox,Team,Member,Scope→BaseAsset;Expression,Attachment,Link,Actualreport no base. The tenant lists 192 asset types (175 on the 26.2 example instance). - Numbers: work items carry a
Numberwith a type prefix. Documentation examples show stories asS-01054; other instances useB-for stories (backlog items). Commonly seen:E-(Epic),D-(Defect),TK-(Task),AT-(Test),I-(Issue),R-(Request),RP-(RegressionPlan),RS-(RegressionSuite),TS-(TestSet). Prefixes forRegressionTest,GoalandEnvironmentare unverified.meta.v1does not expose prefixes. An instance’s stored prefixes (admin panel) override what is learned, per call, so an edit applies at once (P4-30). docs + unverified — live (P0-06):B-,D-,TK-,AT-,E-,I-,FG-(Theme),G-(Goal); a number resolves across types in one query withfrom: "Workitem"(orPrimaryWorkitem), which returnsAssetType;BaseAssetis refused. - Status vs AssetState vs rollup category:
Statusis an admin-configurable list per type;AssetStateis the shared lifecycle integer: 0 Future, 64 Active, 128 Closed, 200 Template (dead), 208 Broken down (dead), 255 Deleted (dead), 209 Guest collaborator (members only); the rollup category (Not Started / In Progress / Completed) is for reporting only. docs — rollup categories - Common attributes:
Name,Number,Description(long text, HTML),Status,Owners(multi-relation toMember),Team,Scope,Timebox,Super/Subs(portfolio tree),Estimate,ChangeDate,CreateDate,ClosedDate-style dates with…UTCvariants.DetailEstimate,ToDo,Priority,Source, the task/test parent relation andChildrenare well known from VersionOne usage but unverified against current metadata. — live (P0-06):Task.Parent→PrimaryWorkitem,Test.Parent→Workitem,Story.Parent→Theme(the epic isSuper),Children/Subs→Workitem[],Scope.ChildrenMeAndDown(a project and its descendants),Timeboxreaches projects throughSchedule, andTeamhas no member roster relation. - Custom attributes use the
Custom_prefix and carryiscustom="True"inmeta.v1. docs / unverified rule — live (P0-06): theCustom_prefix holds; custom types seen:Text,LongText,Date,Relation. meta.v1JSON shape (live and public example instance, P1-03, 2026-10-21): an asset type’sTokenis its name;Nameis an object{ href, tokenref }pointing at the type’s Name attribute. Type keys:_type,HREF,Version,Name,Token,DisplayName,Abstract,Base,DefaultOrderBy,DefaultDisplayBy,ShortName,Description,Attributes,Operations. Attribute definitions carryName,Token,DisplayName,AttributeType,IsReadOnly,IsRequired,IsMultivalue,IsCanned,IsCustom,Base,OrderByAttribute,DisplayByAttribute,RelatedAssetandReciprocalRelation; operationsNameandValidator.AttributeTypevalues seen:AssetType,Boolean,Date,LocalizerTag(e.g.Role.Name),LongInt,LongText,Numeric,Opaque,Rank,Relation,State,Text. Every type’sIDrelates to the type itself. — live + public- Status lists (live, P1-03):
StoryStatusandEpicStatusderive fromStatus(itself aList) and carryRollupState;TaskStatusandTestStatusderive fromListdirectly and have no rollup. Every list type hasOrder,Inactiveand aTeamrelation (team-specific workflows). — live Actual(effort) has noAssetState(it hasIsDeleted), noNameand no base type;RoleandAttachmentreport no base either. The dead-asset filter (L-143) must useIsDeletedfor such types. — live + public- Metadata fingerprint (live, P0-06):
meta.v1sendsETag: "<version>.<schema stamp>"andCache-Control: public, max-age≈2,600 s; noLast-Modified. The whole schema is 5.1 MB of JSON (5.1 s).
1.7 Limits and behaviour
Section titled “1.7 Limits and behaviour”- Rate limiting on hosted instances: per-consumer quotas by time window, response size, request count or error
count. Exceeding one returns HTTP 429 with a JSON body naming the limit and the wait:
{"Message": "API request quota exceeded. Maximum of 20 errors per 60 second(s)", "RetryAfter": "50"}. A usage-metrics page exists for self-service. docs — DL rate limiting, DL usage metrics - HTTP errors: 400 (bad request), 401 (unauthenticated), 404 (not found or not visible), 405 (wrong verb or non-updatable URL), 429, 500 (XML exception body). docs
- Paging: no documented maximum page size; omitted paging returns everything. docs
- Payload limits: only the 4 MB attachment limit is documented. ETags/caching: not documented. Read-after-write consistency: not documented. docs
- URLs: hosted
https://www{N}.v1host.com/{Instance}/…; on-premises base URLs are chosen by the customer. TLS, CORS and IP allowlist behaviour are not documented. docs
1.8 Events
Section titled “1.8 Events”- Outbound webhooks are configured in the UI (outbound webhook creation).
A 2018-era subscription API (
POST api/webhook, eventsAssetCreated/AssetChanged, 5 enabled subscriptions, disabled after 5 consecutive failures) appears only in archived documentation. unverified current - Without webhooks, change detection polls
rest-1.v1/Hist(authoritative) or the activity stream (not complete).
1.9 SDKs
Section titled “1.9 SDKs”| SDK | Repository | Last activity | Notes |
|---|---|---|---|
| Java | versionone/VersionOne.SDK.Java.APIClient |
2026 | Maintained; V1Connector builder with access token, username/password, Windows auth |
| .NET | versionone/VersionOne.SDK.NET.APIClient |
2022 | Stale |
| Python | versionone/VersionOne.SDK.Python |
2021 | Semi-stale |
| JavaScript | versionone/VersionOne.SDK.JavaScript (v1sdk) |
2020 | Stale; we will not depend on it |
| PowerShell | prototype | 2017 | Never published |
The SDKs confirm the request patterns (connector → services → query/save/execute operation) but none is a suitable dependency for a Workers-compatible core. docs (GitHub)
1.10 Terms and trademarks
Section titled “1.10 Terms and trademarks”- “Digital.ai” is a trademark of Digital.ai Software, Inc.; the Terms of Use forbid using its trademarks “in connection with any product or service that is not ours, or in any manner that is likely to cause confusion”. There is no dedicated trademark page. docs — Terms of Use
- The Acceptable Use Policy limits use to interfaces “provided or expressly authorized” and prohibits using service data to create, train or improve machine-learning systems. agility-bridge uses the documented APIs, keeps no corpus and trains nothing; the README says so (ADR-0002). docs
2. MCP protocol and TypeScript SDK
Section titled “2. MCP protocol and TypeScript SDK”Checked 2026-10 in specifications and SDK documentation; P0-07 re-verifies with real clients.
- Protocol eras. The 2026-07-28 revision removes protocol-level sessions: no
initializehandshake and noMcp-Session-Id;server/discoverreplaces up-front negotiation; protocol version and client capabilities travel in each request’s_meta; newMcp-MethodandMcp-NameHTTP headers must match the body. 2025-era clients (2025-06-18, 2025-11-25) still useinitialize. — specification - 2026-07-28 also replaces server-initiated elicitation, sampling and roots requests with multi round-trip requests
(the server answers
input_requiredand the client repeats the call with the answers), deprecates roots, sampling and logging (12-month grace period), makes Client ID Metadata Documents the standard client registration and requires RFC 9207 issuer validation. — 2026-07-28 announcement - Adoption is uneven (October 2026): Claude Code, Copilot CLI, Windsurf/Devin Desktop and MCP Inspector v2 speak 2026-07-28; Cursor was documented as capped at 2025-11-25 (unverified). VS Code (GitHub Copilot) was documented the same way, but P0-07 found it on 2026-07-28 over stdio and HTTP (2026-10-20, live), while Copilot in JetBrains and MCP Inspector CLI 2.11.0 negotiate a 2025-era revision (live). Serving both eras is mandatory (client compatibility).
- Batching was removed in 2025-06-18. — changelog
- Headers on the legacy path:
Mcp-Method/Mcp-Nameare only trustworthy after modern-era validation; legacy requests can carry arbitrary values, so audit and rate limiting must read the JSON body there. subscriptions/listenis a long-lived POST that some clients (e.g. Claude Code) open on connect; it must not be counted as a tool call.- Tool-list changes on stateless HTTP: there is no session to receive
notifications/tools/list_changed; the 2026-07-28 revision offers cache hints (ttlMs,cacheScope) but no list version or ETag. AdvertiselistChanged: falseand tell users to reconnect after upgrades. - Tools: input and output schemas are JSON Schema 2020-12; a tool with an
outputSchemareturnsstructuredContenttogether with thecontenttext; annotations (readOnlyHint,destructiveHint,idempotentHint,openWorldHint) are hints for clients. - Elicitation lets a server ask the user a question during a request when the client declares the capability.
Stateless 2025-era HTTP requests carry no capabilities after
initialize, so they cannot be elicited reliably. - Tasks extension (
io.modelcontextprotocol/tasks, SEP-2663): declared by the client per request and by the server inserver/discover; statusesworking,input_required,completed,failed,cancelled; methodstasks/get,tasks/update,tasks/cancel(notasks/listortasks/resultin 2026-07-28); task ids must be unguessable and every task request authorised. — ext-tasks - MCP Apps (
io.modelcontextprotocol/ui):ui://resources with MIMEtext/html;profile=mcp-app, linked from a tool through_meta.ui.resourceUri, rendered by the host in a sandboxed iframe with CSP declarations; the view talks JSON-RPC overpostMessage. Hosts that do not support it ignore the metadata. — ext-apps - Logging and sampling moved out of the core protocol in 2026-07-28; do not depend on them.
- TypeScript SDK v2 (
@modelcontextprotocol/server,@modelcontextprotocol/client, 2.x):serveStdio(() => build())for stdio;createMcpHandler(factory, { legacy: 'stateless' })for HTTP, building a server per request and serving both eras; the handler passesauthInfounchanged to the factory. The legacy stateless path still executes JSON-RPC batches (reject them before the SDK). The default body limit is 4 MiB. Host/Origin validation is hostname-based and lets a missingOriginthrough. Prompts and resources are registered withlistChanged: trueunless set explicitly.ProtocolError(code, message, data)produces stable JSON-RPC errors; other thrown errors become-32603. The SDK has no server-side Tasks runtime; task storage andtasks/*routing are the application’s job. — SDK repository typescript-sdk - Measured with SDK 2.3.1 (P0-07, 2026-10-20, live on Node 24 and local workerd; results):
both eras pass on Node, workerd (no
nodejs_compat) and stdio; the 2025-era HTTP path answered a two-request JSON-RPC batch; converting tool schemas to JSON Schema once and registering them withfromJsonSchemamakes a per-request 25-tooltools/listabout 7× cheaper (0.70 ms vs 4.89 ms p50; 40 tools 0.91 ms vs 7.60 ms). Write approval: 2025-era push elicitation (ctx.mcpReq.elicitInput) works on stdio only; 2026-07-28inputRequired(...)works on stdio and HTTP; both need the client to declare the capability, and on 2026-07-28 aninputRequired(...)sent to a client without it becomes an SDK error rather than a tool result. Input-schema validation failures come back as tool results, not JSON-RPC errors.
3. MCP clients
Section titled “3. MCP clients”Summary only; the per-client matrix, configuration formats and verification status are in reference/client-compatibility.md.
- Protocol eras: Cursor negotiates up to 2025-11-25 only (documented, unverified); Claude Code (from v2.1.292,
2026-10-06), Copilot CLI (v1.0.81, 2026-08-27), Windsurf/Devin Desktop (v3.10.67, 2026-10-12) and MCP Inspector v2
(explicit
protocolEraswitch) speak 2026-07-28. live, P0-07 (2026-10-20): 2026-07-28 on stdio and HTTP for VS Code (Copilot), Claude Code 2.1.304 and Copilot CLI 1.0.87; a 2025-era revision for Copilot in JetBrains (HTTP) and MCP Inspector CLI 2.11.0. - Tool-count caps: Cursor 40 tools; Windsurf/Devin Desktop 100 enabled tools across all servers; VS Code 128 tools per request (with automatic “virtual tool” grouping). A small default catalogue matters (L-155).
- Annotations: only VS Code uses
readOnlyHint(to skip confirmation); no surveyed client changes its UI fordestructiveHint. Safety cannot rely on annotations (L-154). - Elicitation: form mode in VS Code, JetBrains, Cursor; form and URL mode in Claude Code and Copilot CLI; not in the
Copilot cloud agent, Zed or Gemini CLI. Over stateless remote HTTP, 2025-era clients cannot be elicited (live, P0-07:
even a client that declares elicitation is refused, because each request builds a server that never saw its
capabilities), so remote write approval needs an out-of-band path for 2025-era clients: Copilot in JetBrains
(verified) and Cursor (documented) (L-156, P7-02). VS Code, Claude Code and Copilot CLI approved and declined writes
through
input_requiredon stdio and HTTP (live, P0-07). - MCP Inspector CLI 2.11.0 (live, P0-07): 2025 era on HTTP and stdio, renders
structuredContent, cannot elicit;-e KEY=valuereaches a stdio server’s environment. - Remote authentication: static headers everywhere (JetBrains nests them under
requestInit.headers; Claude Desktop and claude.ai allow a few headers in a beta UI); OAuth with DCR and CIMD in VS Code, Claude, Copilot CLI and Inspector; DCR plus static clients in Cursor; the Copilot cloud agent supports no OAuth (static headers fromCOPILOT_MCP_*secrets only). - Hosted Claude connectors (claude.ai, desktop Chat tab, mobile) reach only public IPv4 HTTPS endpoints (private,
CGNAT, loopback, link-local and IPv6-only hosts are refused) and use the fixed callback
https://claude.ai/api/mcp/auth_callback. - Secrets in configuration: VS Code prompts and stores secrets (
inputswithpassword: true); Cursor, JetBrains and Inspector headers are stored in plain text; Claude Code blanks credential-like variables referenced from a project.mcp.jsonfor remote servers and keeps OAuth tokens in the OS keychain. - Windsurf became Devin Desktop (Cascade agent removed 2026-09-08; configuration moved from
~/.codeium/windsurf/mcp_config.jsonto~/.config/devin/mcp_config.json).
Remote client configuration formats (P4-06)
Section titled “Remote client configuration formats (P4-06)”Read 2026-10-23 in the vendors’ documentation; docs unless stated, none run by P4-06 itself (the per-client verification status is in client-compatibility).
- Claude Code:
claude mcp add --transport http <name> <url> --header "Authorization: Bearer …";--scope local|project|user(defaultlocal);.mcp.jsonmcpServers.<name>withtype: "http",url,headers, and${VAR}/${VAR:-default}expansion inurlandheaders. Variables named like credentials (ANTHROPIC_AUTH_TOKEN,NPM_TOKEN, …) read as empty in remoteurlandheaders; a configuredAuthorizationheader is not replaced by OAuth;claude mcp adddoes not check the credential. Source: https://code.claude.com/docs/en/mcp - VS Code:
servers.<name>withtype: "http",url,headers;inputsentries{ type: "promptString", id, description, password: true }referenced as${input:id}, asked once and stored securely; input variables are not supported in portable.mcp.jsonor Copilotmcp-config.jsonfiles. Source: https://code.visualstudio.com/docs/agents/reference/mcp-configuration - Cursor:
mcpServers.<name>withurlandheaders;${env:NAME}resolves incommand,args,env,urlandheaders; files~/.cursor/mcp.jsonand.cursor/mcp.json. Source: https://cursor.com/docs/context/mcp - Copilot CLI:
~/.copilot/mcp-config.jsonmcpServers.<name>withtype: "http",url,headers,tools(default["*"]);copilot mcp add --transport http --header "H: V" <name> <url>(transport defaults to stdio). Header variable substitution is not documented on that page: unverified. Source: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers - Copilot in JetBrains: remote
servers.<name>withurlandrequestInit.headers; no OAuth option described. Source: https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp - Windsurf / Devin Desktop: legacy Cascade agent only:
mcpServers.<name>withserverUrl(orurl) andheaders;${env:VAR}(empty when unset) and${file:/path}interpolation incommand,args,env,serverUrl,url,headers; file~/.config/devin/mcp_config.json(%APPDATA%\devin\mcp_config.jsonon Windows). The Devin Local agent uses the Devin CLI files instead (not covered). Source: https://docs.devin.ai/desktop/cascade/mcp - MCP Inspector CLI:
--cli <url> --transport http --header "Name: value" --method tools/listas run in the P0-07 spike (spikes/mcp-sdk-v2/RESULTS.md); the repository README does not document the flags (live, not docs). - PowerShell:
Read-Host -MaskInputneeds PowerShell 7.1+ (unverified, from memory of the cmdlet’s release notes); the Windows snippet is marked accordingly.
4. OAuth 2.1 for MCP
Section titled “4. OAuth 2.1 for MCP”-
Protected resource metadata (RFC 9728): a 401 carries
WWW-Authenticatewithresource_metadata; otherwise clients try/.well-known/oauth-protected-resource/{path}and then the root. The metadata must list at least one authorization server. — MCP authorization, RFC 9728 -
Resource indicators (RFC 8707) are required on authorization and token requests, and clients send
resourceagain on refresh; tokens must be audience-bound to the exact MCP resource URL. — RFC 8707 -
Authorization server discovery: RFC 8414 metadata first, OpenID discovery second; clients validate the RFC 9207
issresponse parameter when advertised. — RFC 8414, RFC 9207 -
Client ID Metadata Documents (CIMD) are the preferred registration: the
client_idis an HTTPS URL whose JSON document (recommended ≤ 5 KiB) listsclient_nameandredirect_uris; theclient_idmust equal the document URL. Servers must treat fetching it as an SSRF risk and should show the redirect host. Dynamic Client Registration (RFC 7591) remains for compatibility. — CIMD draft, RFC 7591 -
PKCE S256 should be required for every client, including confidential ones; token endpoints take
application/x-www-form-urlencoded. -
Refresh-token rotation with a reuse interval: identity providers commonly allow 0–60 s (Okta’s default 30 s) for concurrent refreshes. — Okta refresh tokens
-
Claude hosted clients (claude.ai web, Claude Desktop remote connectors, Claude mobile) share one OAuth client: CIMD
https://claude.ai/oauth/mcp-oauth-client-metadata, callbackhttps://claude.ai/api/mcp/auth_callback; they need an internet-reachable HTTPS URL, use only the first authorization server listed, and allow about 10 s for discovery, registration and token calls (30 s for refresh). Claude Code’s CIMD ishttps://claude.ai/oauth/claude-code-client-metadatawith a loopback callback. — Claude connector authentication (re-verify) -
Consent pages must work in mobile browsers: a CSP
form-action 'self'blocks a consent POST that redirects to a loopback callback, so the callback origin must be allowed (IPv6 literals need thehttp:scheme source). -
Cloudflare
workers-oauth-provider(1.2.x) implements DCR, CIMD, PKCE S256, RFC 9207, refresh rotation and revocation, accepts only form-encoded token requests, and its code exchange is not atomic on KV (add a single-use marker). — workers-oauth-provider — live (P0-08, 1.2.3, local workerd and Node, 2026-10-21): per-path protected resource metadata, audience binding with refresh that cannot retarget, CIMD with Claude Code’s real document, PKCE S256 only, RFC 9207iss, DCR and revocation all confirmed; five parallel refreshes all succeed but only the last new refresh token stays usable (no reuse interval, L-164). The same holds in production on Workers Free, where endpoints answer in about 0.2 s; Claude Code 2.1.304 and VS Code 1.142.0 register through CIMD (https://claude.ai/oauth/claude-code-client-metadata,https://vscode.dev/oauth/client-metadata.json), MCP Inspector CLI 2.11.0 through DCR. live -
P5-05 (2026-10-24), refresh handling of
workers-oauth-provider1.2.3 (read in the package’sdist/oauth-provider.js,handleRefreshTokenGrant, and storage-schema.md). A grant record holds the current and the previous refresh token ids; a refresh with either is accepted, with no time limit on the previous one, and rotates again (the old “previous” is dropped), so parallel refreshes each mint a successor and only the last survives. The token endpoint authenticates the client (secret, auth method) before it dispatches the grant, and the refresh handler checks token, client id, grant expiry andresourceafter that; a refresh with a well-formed but unknown token for an existing grant answersinvalid_grantwithout changing anything, which is what the reuse window’s client-authentication probe relies on.unwrapToken(accessToken)returns the decrypted grant props of a live access token. Okta documents the same pattern (grace period of 0-60 s, default 30 s) for concurrent refresh requests. Verified against the provider’s code and the suites on Node memory, SQLite and workerd/D1; not against a real instance of any MCP client. -
P5-01 (2026-10-24),
workers-oauth-provider1.2.3 as built into the server. Confirmed against the package’s own documentation (storage-schema.md, AGENTS.md; read through Context7) and by the P5-01 suites on Node (memory, SQLite) and workerd (D1): codes, access tokens and refresh tokens are stored as SHA-256 hashes (client secrets too; PKCE keeps only the challenge);propsare AES-GCM encrypted with a per-grant key wrapped under the code, the refresh token and each access token, so only a token holder can open them; tokens areuserId:grantId:secret(secret 32 characters). Public clients get PKCE enforced by the provider; the provider also refused a confidential client withoutcode_challengein the tests, and our own check stands behind it. Refresh rotation keeps the previous refresh token usable until the new one is first used (a lost response must not strand a client): the previous token still answered200after a rotation, so strict reuse detection is ours to build (P5-05). Expiry of codes rests on the key’s TTL inkv, not a timestamp the provider checks. The library prints aconsole.warnabout CIMD when it is loaded without Workers’global_fetch_strictly_publicflag (harmless: we turn its CIMD off, P5-03 supplies our own). The@modelcontextprotocol/client2.3.1 OAuth functions (discoverAuthorizationServerMetadata,registerClient,startAuthorization,exchangeAuthorizationwith the RFC 9207isscheck,refreshAuthorization,auth()) drive the server as written; without a protected resource metadata document the SDK does not sendresource(P5-02) unless the client provider names it throughvalidateResourceURL. 1.2.4 was published 2026-10-22 and is not used yet (3-day release age). live (local, workerd and Node) -
P5-02 (2026-10-24), discovery as the clients do it. The MCP authorization pages (2025-11-25, 2026-07-28) and RFC 9728: a server publishes protected resource metadata and either names it in
WWW-Authenticate: Bearer resource_metadata="…"on401or serves it at the well-known URI; clients use the header first, else try/.well-known/oauth-protected-resourcewith the resource’s path inserted (RFC 9728 §3.1), then the root; the document’sresourcemust match the URL the client used, andauthorization_serverslists at least one issuer;scopein the challenge is a SHOULD andoffline_accessstays out of it. Read in the@modelcontextprotocol/client2.3.1 source and exercised by the P5-02 suites:extractWWWAuthenticateParamstakesresource_metadata,scopeanderrorfrom aBearerchallenge (it needs a parameter after the scheme, sorealmis kept);auth()without aresourceMetadataUrlfetches/.well-known/oauth-protected-resource/w/{slug}/mcp, falls back to the root document (our404: no resource lives at the root) and then derives theresourceit sends from the document, so novalidateResourceURLworkaround is needed; it addsoffline_accessto the scope itself when the server metadata lists it. The challenge and the document are the same for every denial and every slug of valid syntax, as the MCP route’s own401is (T19). live (local, workerd and Node) -
Client ID Metadata Documents (P5-03, 2026-10-24).
draft-ietf-oauth-client-id-metadata-document-02(6 July 2026, https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document) and the MCP authorization spec (2025-11-25 and 2026-07-28, https://modelcontextprotocol.io/specification/draft/basic/authorization): the client id is an https URL with a path, no userinfo, dot segments or fragment (a port is allowed, we refuse it); the document’sclient_idmust equal the URL by simple string comparison; only a200is success and redirects must not be followed; read at most about 5 KB; caching optional, follow HTTP cache headers within server bounds, never cache errors;token_endpoint_auth_methodmust not be a shared-secret method andclient_secret*must not appear; the server must not fetch a URL that resolves to a special-use address (loopback only for development with a loopback server); redirect URIs compare exactly (the provider adds RFC 8252 any-port matching for loopback). MCP names metadata documents as the preferred method and keeps DCR (RFC 7591) as a compatibility path. The provider (1.2.3) withallowPrivateUseRedirectUrisoff sends codes only to https and loopback http redirects. Spec read 2026-10-24; behaviour exercised by the P5-03 suites, no real client yet (P5-06); client behaviour (which clients send which metadata) is unverified.
5. Cloudflare Workers platform
Section titled “5. Cloudflare Workers platform”Checked 2026-10 in Cloudflare documentation; P0-09 measures with Agility-shaped payloads.
- Workers limits: Free — 100,000 requests/day, 10 ms CPU per request, 50 external subrequests (plus 1,000 to Cloudflare services), 128 MB memory, 6 simultaneous open connections; Paid — 30 s default CPU (configurable up to 5 min), 10,000 subrequests (configurable), no daily request cap. — Workers limits
- Pricing (2026-10-22): Workers Paid from 5 USD a month per account, 10 million requests and 30 million CPU-ms included; D1 Free 5 million rows read and 100,000 written a day, 5 GB; D1 on Paid 25 billion read and 50 million written a month included. — Workers pricing, D1 pricing
- D1: no interactive transactions (
batch()is one transaction); statement size ≤ 100 KB; ≤ 100 bound parameters; rows/strings ≤ 2 MB; 30 s per query; read-only queries retried by the platform, writes not; foreign keys enforced; Free: 5 M rows read and 100,000 written per day. — D1 limits - D1 write accounting for counters (2026-10-24): Free allows 100,000 rows written a day; a refused conditional upsert
(
INSERT … ON CONFLICT DO UPDATE … WHERE … RETURNINGthat changes no row) writes nothing locally (node:sqliteand local D1 agree, P5-09 tests); whether D1 bills the attempt of a statement that changed no row is unverified against a real database (no probing of the service), so the design caps counters by their ownmaxand remembers a refusal in the isolate instead of relying on it. — D1 pricing - Durable Objects (SQLite-backed on Free): good for an exact deployment-wide limiter; each call is billed and placed near the first caller. — Durable Objects pricing
- Rate Limiting binding:
limit({ key })→{ success }, periods of 10 or 60 s, per location and eventually consistent — a backstop only. — Rate limiting binding - Cache API: per data centre, not replicated; counts toward subrequest limits; unavailable behind Cloudflare Access
(unverified). On
workers.devit worked in P0-09 (putthenmatchhit within and across requests, Free plan, 2026-10-20, live); a custom domain is still to check (P3-03). — Cache API - Cross-request I/O: a promise for I/O started by one request must not be awaited by another (it can hang or fail).
- Outbound TLS: Workers verify publicly trusted certificates only; there is no option to trust a private CA for
fetch, and private networks are reachable only through Cloudflare connectivity products (e.g. a tunnel). On-premises instances with a private CA therefore need the Node/Docker deployment (ADR-0014). live, P0-09: a deployed Worker gets HTTP 526 for self-signed, untrusted-root and expired certificates (local workerd throws an opaque error instead, L-160). - No
DOMParserin Workers: XML frommeta.v1,Histandrest-1.v1needs a pure-JavaScript parser with entity expansion disabled. P0-09 chose saxes 6 (streaming, 8 KB gzip, refuses custom and external entities, about 1 ms for an 83 KBmeta.v1/Story) and prefers JSON wherever Agility serves it. live, P0-09 - Measured in P0-09 (2026-10-20, results):
meta.v1for all 175 asset types is 4.1 MB of XML or 4.8 MB of JSON (one type about 83–97 KB), so a Worker loads metadata per asset type; read + parse + shape costs about 3.5–4.5 ms per MB on Node and about 8 ms per MB on a deployed Worker (Free plan: 4 ms p50 / 8 ms p99 at 512 KiB, 8 / 18 ms at 1 MB, 39 / 56 ms at 5 MB, nothing terminated), so the 512 KiB Free cap stands; the Rate Limiting binding let 8 of 10 calls through against a limit of 5 per 10 s (a backstop only); an untrusted certificate failsfetchon workerd with an opaqueinternal error; reference = …(L-160); local D1 andnode:sqliteagree on STRICT tables, foreign keys,ON CONFLICT … DO UPDATE … WHERE … RETURNINGand JSON functions, but D1’smeta.changesincludes cascaded rows (L-161). live (local), P0-09 - Sealing a shared-tier entry on workerd (2026-10-30, P8-38; local workerd 1.20261006.1 through miniflare, local and
indicative, not a deployed Worker). Measured by timing from outside one request that loops an operation (timers do not
advance while code computes in an isolate), on a machine with a load average of about 2, best of three, per call, for 8 /
64 / 100 / 256 KB of JSON:
toBase64with the byte-slice loop 0.2 / 1.8 / 2.7 / 7.3 ms, with the runtime’s ownUint8Array.prototype.toBase640.0 / 0.02 / 0.01 / 0.05 ms (workerd has it; Node 24 does not, so the loop stays as the fallback);seal0.25 / 2.2 / 3.2 / 8.7 ms before and 0.04 / 0.24 / 0.37 / 1.1 ms after using it;open0.05 / 0.45 / 0.73 / 2.0 ms before and 0.04 / 0.29 / 0.45 / 1.4 ms after; parsing the sealed wrapper and the body (the “double parse”) 0.01 to 0.3 ms even at 256 KB, so it does not matter. A hit costs aboutopenplus the body parse; a miss aboutsealplusCache.putand the first read-back. Not measured:Cache.putandCache.matchthemselves, CPU as Cloudflare bills it, a deployed Worker (needs P8-13). — Uint8Array base64 proposal - Browser Integrity Check / bot protection on custom domains can answer non-browser MCP clients with error 1010 or 403; a WAF exception for the MCP paths is needed.
Cloudflare limits fetched 2026-11-03 (P9-03)
Section titled “Cloudflare limits fetched 2026-11-03 (P9-03)”Fetched from the current documentation on 2026-11-03; the Paid columns of the P9-03 numbers are derived from these.
| Workers Free | Workers Paid | |
|---|---|---|
| Requests | 100,000 a day | no limit; 10 million a month included, then $0.30 per million |
| CPU time per HTTP request | 10 ms | 30 s default, up to 5 min; 30 million CPU ms a month included, then $0.02 per million ms |
| Subrequests per invocation | 50 (1,000 to Cloudflare internal services) | 10,000 (up to 10 million) |
| Simultaneous open connections | 6 | 6 |
| Monthly minimum | none | $5 per account |
| D1 queries per invocation | 50 | 1,000 (a batch() is one) |
| D1 rows read | 5 million a day | 25 billion a month included, then $0.001 per million |
| D1 rows written | 100,000 a day | 50 million a month included, then $1.00 per million |
Sources: Workers limits, Workers pricing, D1 limits, D1 pricing.
Measured on the account’s Free plan the same day (P9-03, live, synthetic upstream): the 10 ms CPU limit is not
enforced on warm calls. Of 469 warm MCP calls, 155 reported cpuTime above 10 ms (p50 6 to 15 ms per tool, one report
31 ms, maximum 42 ms) and every one ended outcome: ok (no error 1102), so the documented limit behaves as a tolerance
here, as for the first request of an isolate (D-27); do not design to it (L-097). wrangler tail --format json carries
cpuTime and wallTime per invocation (0 for a request that fails at boot). The D1 usage of the same 548 calls, read from the
GraphQL analytics dataset d1AnalyticsAdaptiveGroups (readQueries, writeQueries, rowsRead, rowsWritten, summed
by minute; it lags by a minute): 564 write queries and 2,221 rows written (about 4 per call), 430 read queries and 2,493
rows read. A Worker on workers.dev fetched another Worker of the same account on workers.dev without error 1042 with
global_fetch_strictly_public on (the mock upstream was reached this way).
6. Node.js, Docker, SQLite, npm and registries
Section titled “6. Node.js, Docker, SQLite, npm and registries”- Node 24 LTS ships
node:sqlite(synchronous SQLite, D1-compatible SQL). Its stability index is below “Stable” (release candidate at the time of writing, verify): pin a minimum Node 24 minor and test the next LTS before claiming support for it. The distroless imagegcr.io/distroless/nodejs24-debian13:nonrootincludes it, has no shell, and needs a Node-based healthcheck. — Node.js sqlite - Custom CAs on Node:
NODE_EXTRA_CA_CERTSadds CA certificates at process start; a per-instance CA needs an undiciAgentwithconnect: { ca }passed tofetch’s dispatcher (Node-only code, injected into the core). — Node CLI docs - npm trusted publishing (OIDC from GitHub Actions) needs npm CLI ≥ 11.5.1 and a GitHub-hosted runner; staged publishing keeps a published version private until a maintainer approves it with 2FA. — trusted publishers, staged publishing (re-verify)
- npm staged publishing, observed 2026-10-19 (npm CLI 11.16.0, publishing
agility-bridge@0.0.0): staged publishing needs npm CLI ≥ 11.15.0 (npm stage publish|list|view|download|approve). The first publish of a new name created a public stub0.0.0-stage(“Temporary package placeholder for staged publishing”). Approval asked for browser-based 2FA, which fails withEOTPin a non-interactive shell; once approved, the version becamelatest. — staged publishing, live pnpm packresolvesworkspace:dependencies and adds the rootLICENSE, but notNOTICEorREADME.md; include them explicitly.- MCP Registry: servers are described by a
server.json(package, transport, environment variables marked secret or not) and published under a namespace such asio.github.<owner>/<name>. — MCP Registry - OS keychains without native modules: macOS
security(read commands from stdin with-iso secrets never appear in argv), Linuxsecret-tool(Secret Service), Windows PowerShellPasswordVault/Credential Manager.keytaris archived.
7. Prior art
Section titled “7. Prior art”- No maintained open-source MCP server for Digital.ai Agility or VersionOne was found (searched GitHub, npm, PyPI, the MCP Registry, Smithery, Glama, mcp.so, PulseMCP and the Docker MCP catalog, October 2026). The only public artifact is Quantiser/mcp-server: a single-commit Python prototype from 2025-07-30 with four read-only tools for stories and epics, no license and no activity since.
- Name collisions to keep in mind: Agility CMS (an unrelated headless CMS with its own MCP server) and Agility PR Solutions (unrelated). Package descriptions must say “Digital.ai Agility”.
- Digital.ai offers an official MCP server for its Release product, not for Agility. — Release MCP server
- Comparable work-management MCP servers (GitHub, Atlassian Rovo, Azure DevOps, Linear), the Agility SDKs and the
Release MCP server were reviewed in P0-10 (2026-10-20). None binds query values (JQL, WIQL and Agility
wherefilters are strings the caller builds), and none ties write approval to the exact change; both are agility-bridge differentiators (ADR-0012, ADR-0013). The SDK pages never mentionquery.v1orwithvariables, so the binding behaviour remains a P0-06 question. Matrix, adopt / avoid / differentiate lists and follow-ups: research/prior-art.md.
8. Open questions for the Phase 0 spikes
Section titled “8. Open questions for the Phase 0 spikes”P0-06 (Agility API) — on a hosted sandbox and, if available, an on-premises instance:
- Confirm access tokens with
query.v1on every instance version we support (documented as supported). Which errors and bodies come back for bad tokens, missing permissions, invalid attributes and unknown asset types (status, content type, shape)? withbinding inquery.v1JSON: behaviour with quotes, commas, pipes, Unicode, very long strings and arrays.- Paging: maximum practical page size,
needTotalcost, behaviour withoutpage, stability of ordering. - Rate limits: which quotas apply to a sandbox, 429 body and headers,
RetryAfteraccuracy, error-count quota behaviour. - Latency and response size per endpoint for typical queries (list 25/100 work items with owners and status).
- Number prefixes: how to learn them per instance; resolving an unknown number across asset types in one query.
- Relations: exact names for task/test parents, children, portfolio tree, owners, team, timebox, status per type.
- Custom fields: discovery through
meta.v1, types, value formats. meta.v1size and caching: how to detect metadata changes (version, ETag, hash).- Writes in the sandbox:
api/assetsingle-target update vsrest-1.v1POST;previewOnly=trueguarantees; creating comments (Expression), effort (Actual) and links; operations (QuickClose,Reactivate); response bodies; read-after-write lag. - History:
Histvsasofcost; activity stream completeness. assetdetail.v1links for every asset type; attachments metadata.- On-premises differences: version, TLS/custom CA, base-URL shapes, Windows authentication interplay with access tokens.
P0-07 (SDK and clients), P0-08 (OAuth) and P0-09 (Workers limits): see the task files.
9. Admin sign-in providers (P4-01)
Section titled “9. Admin sign-in providers (P4-01)”Checked 2026-10-23 against the providers’ documentation. Nothing here was run against a real Google, GitHub or
Cloudflare Access application (they need OAuth apps and an Access application the autonomous run may not create):
those flows are tested against local fake providers and stay unverified end to end until the owner runs them
(docs/pending-decisions/phase-4.md).
- Google (OpenID Connect).
issishttps://accounts.google.comoraccounts.google.com; thehdrequest parameter only tunes the account chooser (“Don’t rely on this UI optimization”), the signedhdclaim is what to check and exists only for Workspace or Cloud organization members;email_verifiedmay be a string; usesub, not the email, as the identifier. Source: https://developers.google.com/identity/openid-connect/openid-connect - GitHub OAuth app. The web flow supports PKCE (
code_challenge,code_challenge_method=S256only,code_verifierat the token request) andallow_signup=false. Source: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps. Scopesuser:email(forGET /user/emails) andread:org(forGET /user/memberships/orgs/{org},state: active) are from our knowledge of the REST API, unverified here. Token revocation:DELETE /applications/{client_id}/token, Basic auth with the client id and secret (a Bearer header would replace it), JSON body{"access_token": …},204on success,422on validation failure or when spammed. Source: https://docs.github.com/en/rest/apps/oauth-applications#delete-an-app-token - Cloudflare Access. The identity is the
Cf-Access-Jwt-Assertionheader (theCF_Authorizationcookie “is not guaranteed to be passed”); keys come fromhttps://<team>.cloudflareaccess.com/cdn-cgi/access/certsand rotate about every six weeks (never hard-code them); checkaudagainst the application’s AUD tag,issagainst the team domain and verify RS256. Source: https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/. Verified 2026-10-26 on a real Access application (Worker on a custom domain, Workers Free): thekeysarray is read, the assertion verifies against team, AUD and RS256, and the first-owner sign-in through/auth/setupsucceeded once that path was inside the Access application (L-262). A path outside it gets no header (missing_assertion). - Generic OIDC. Discovery (
/.well-known/openid-configuration, exactissuermatch), PKCE S256,nonce, RFC 9207isson the authorization response when advertised (authorization_response_iss_parameter_supported), client authentication by Basic (default) or body,email_verifiedrequired. Specification-level facts; no vendor was run.
Sessions, Clear-Site-Data and re-authentication (P4-02)
Section titled “Sessions, Clear-Site-Data and re-authentication (P4-02)”Checked 2026-10-23.
Clear-Site-Data. Each directive is a quoted string ("cookies"; an unquoted value is invalid)."cookies"removes the cookies of the registered domain including its subdomains (“https://example.comas well ashttps://stage.example.com”), unlike the other directives, which act on the origin. Browsers honour it in secure contexts only; the page does not say how a redirect response is handled, so logout answers with a 200 page. Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data- Forcing a fresh login. OIDC Core section 3.1.2.1:
prompt=loginasks the provider to re-authenticate the user;max_age=0has the same effect and makesauth_timemandatory in the ID token. We send both for OIDC providers and checkauth_timeonly when the provider sends it. Google documentspromptvaluesnone,consentandselect_account(notlogin) and sends noauth_timein our scopes: unverified whether Google re-prompts forprompt=login; GitHub’s authorization endpoint has no re-authentication parameter (a signed-in browser is redirected straight back). Cloudflare Access: the assertion’siatis used as the time of authentication, unverified against a live tenant. Source: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest - Fetch metadata. A redirect chain that began on another site keeps
Sec-Fetch-Site: cross-sitefor its last request, so the page after an IdP redirect arrives as a cross-site top-level navigation (Sec-Fetch-Mode: navigate,Sec-Fetch-Dest: document). Source: https://web.dev/articles/fetch-metadata
CSP form-action and redirects after a form post (P4-03)
Section titled “CSP form-action and redirects after a form post (P4-03)”- MDN warns that whether
form-actionblocks the redirects that follow a form submission “is debated and browser implementations of this aspect are inconsistent (e.g., Firefox 57 doesn’t block the redirects whereas Chrome 63 does)” (checked 2026-10-23, https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/form-action). The owner setup page therefore has a policy withoutform-action(L-195, D-35). Chromium confirmed it in the P4-08 browser run (2026-10-23, the policy and the redirect behave as specified); Firefox and WebKit are unverified (D-44).
Issues, requests, goals, themes and retrospectives (P6-06)
Section titled “Issues, requests, goals, themes and retrospectives (P6-06)”- Product model. The public example instance (26.2.6.29, public
meta.v1, checked 2026-10-27 withpnpm metadata:drift) definesRequestStatuswith baseList(noRollupState) andRetrospectivewith noNumber;Issuehas a singleOwnerrelation,RequestaStatusrelation toRequestStatus,Goalneither. The committed snapshot is hand-written and matches these product attributes. Source: https://www14.v1host.com/v1sdktesting/meta.v1 - Read-only tenant (26.0.3.2, 2026-10-27). Issues, goals, themes and retrospectives each answer
query_assetsandget_assetswith default tiers (levels only; the tenant is a third party’s).Requestis a defined type with no assets: the query returns an empty page, not an error. Writable-sandbox checks of requests: P6-27.
Downcast aggregates over Subs for portfolio roll-ups (P6-15)
Section titled “Downcast aggregates over Subs for portfolio roll-ups (P6-15)”- Read-only tenant (26.0.3.2, 2026-10-28), shapes only.
query.v1onEpicaccepts the downcast aggregate selectionsSubs:Story[AssetState!='Dead'].@Count,Subs:Story[AssetState!='Dead'].Estimate.@Sum,Subs:Defect[...]@Countand conditions onAssetState([AssetState='128'],[AssetState='64']) with HTTP 200 and numeric values. They do not agree with the rows: for three epics with stories, the rows read withSuper = epicwere more than the aggregate in every case, and with no condition at all the aggregate was still lower (Subs:Story.@Count);Children:Storyreturned zero. So the relation an aggregate follows is not the one the tree reads (Story.Super), and no aggregate form was found that equals the rows (D-143). Roll-ups stay computed from the rows. Live check:live/portfolio-aggregates.live.test.ts(asserts that the forms are accepted; the disagreement is recorded on stderr as a level, not asserted). verified on one tenant; unverified elsewhere
Defect priority and severity for defect_triage (P6-57)
Section titled “Defect priority and severity for defect_triage (P6-57)”- Read-only tenant (2026-10-29), shapes only.
Defect.Priorityis a relation;Priority.NameandPriority.Orderread with HTTP 200 for 50 defects in one query. Exactly one single-valued relation attribute onDefecthas “severity” in its name, and<that>.Namereads in the same query. With the fix below,defect_triagereports priority read and severity read on the tenant (live/reports.live.test.tsprints the two states, never the attribute name or values). A text-typed severity and the two-candidate case are verified on fixtures only. verified on one tenant - Found by the live check: the read passed every defect of the page (up to 100) to one
ID in [...]filter, which the compiler bounds at 50 values for caller input, so on a tenant with more than 50 open defects the read failed and the report said “could not be read”. The OIDs come from the call’s own scope-checked search, so the filter is now a trusted list (bound 2,000), as the Scope lists of the search tools already are.
10. Security checklists (P9-06, 2026-11-03)
Section titled “10. Security checklists (P9-06, 2026-11-03)”- OWASP ASVS 5.0.0 (released 2025-05; the repository’s latest release tag on 2026-11-03 is
latest, thev5.0.0tag is the numbered release). 345 requirements in 17 chapters: 70 at Level 1, 183 at Level 2, 92 at Level 3. Source used: the official CSV, https://raw.githubusercontent.com/OWASP/ASVS/v5.0.0/5.0/docs_en/OWASP_Application_Security_Verification_Standard_5.0.0_en.csv (fetched 2026-11-03); project page https://owasp.org/www-project-application-security-verification-standard/. Requirement ids have the formV<chapter>.<section>.<number>; a requirement at Level 1 also applies at Level 2. Chapter V17 (WebRTC) and most of V5 (files), V6.2 (passwords) and V4.3/V4.4 (GraphQL, WebSocket) do not apply to this product. - OpenSSF Best Practices Badge, passing level: 67 criteria (MUST, SHOULD, SUGGESTED), from
criteria/criteria.ymlandconfig/locales/en.ymlof https://github.com/coreinfrastructure/best-practices-badge at commitdfb72c1(2026-11-01); the live form is https://www.bestpractices.dev/en/criteria/0. Registration needs a GitHub sign-in by the project owner. - OpenSSF Scorecard public API: https://api.scorecard.dev/projects/github.com/mhidalgo-lab/agility-bridge returns the
last run of the Scorecard action (v5.6.0 on 2026-11-03: 7.7). The
Maintainedcheck scores 0 for repositories younger than 90 days;Code-Reviewcounts approving reviews, so a solo maintainer scores 0;CII-Best-Practicesscores 0 until a badge is registered. verified 2026-11-03
agility-bridge is an unofficial, community project. It is not affiliated with, endorsed by, or supported by Digital.ai. Digital.ai, Agility and VersionOne are trademarks of their respective owners.