Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
67b713c
Fixes #34270: Prove column-lineage traversal and paging over the rein…
fmcardoso Sep 30, 2026
af2355b
Fixes #34270: Record the MCP knowledge-graph tools decisions in the a…
fmcardoso Oct 1, 2026
37ec748
Fixes #34270: Authorize RDF MCP tools with ExecuteSparqlQuery instead…
fmcardoso Oct 1, 2026
4cfed75
Fixes #34270: Run non-admin sparql_query through the agent profile
fmcardoso Oct 1, 2026
cd049f4
Fixes #34270: Report a blocked SERVICE clause as forbidden on the non…
fmcardoso Oct 1, 2026
19c5d96
Fixes #34270: Record the MCP error mapping for agent-profile failures…
fmcardoso Oct 1, 2026
0adf051
Fixes #34270: Describe the non-admin sparql_query contract and pin it…
fmcardoso Oct 1, 2026
0ebaf1a
Fixes #34270: Share the column-lineage fixture so integration tests r…
fmcardoso Oct 1, 2026
80d7752
Fixes #34270: Publish a column-lineage page size that fits the MCP bo…
fmcardoso Oct 1, 2026
ef06be8
Fixes #34270: Cover the MCP knowledge-graph tools with integration an…
fmcardoso Oct 1, 2026
0b2a761
Fixes #34270: Cover the production readiness wiring and the RDF-off M…
fmcardoso Oct 1, 2026
3b24655
Fixes #34270: Document column lineage traversal and record the MCP ve…
fmcardoso Oct 1, 2026
cd7a247
Fixes #34270: Show om:hasChildColumn is materialized by a real reindex
fmcardoso Oct 5, 2026
3f7fcb1
Fixes #34270: Reflect the merged Data Consumer default grant in the A…
fmcardoso Oct 6, 2026
ba850f8
Fixes #34270: Make the no-grant MCP ITs see the policy edit before th…
fmcardoso Oct 6, 2026
1a5504f
Fixes #34270: Pick the sparql_query profile from the caller's subject…
fmcardoso Oct 6, 2026
acf8961
Fixes #34270: Drop the unused Authorizer parameter from the RDF tools…
fmcardoso Oct 6, 2026
ab6d608
Fixes #34270: Audit a permitted sparql_query call whose options are r…
fmcardoso Oct 6, 2026
25bb923
Fixes #34270: Cover find_by_tag in the MCP authorization matrix
fmcardoso Oct 6, 2026
ca2db88
Fixes #34270: Use the app run status enum and the SDK's not-found typ…
fmcardoso Oct 6, 2026
47530e6
Fixes #34270: Name the repeated sparql_query and ontology_describe pa…
fmcardoso Oct 6, 2026
7e75196
Fixes #34270: Match the ADR's AgentSparqlResourceIT count to the late…
fmcardoso Oct 6, 2026
d52c9fa
Fixes #34270: Record that the capacity 429 applies to every MCP tool
fmcardoso Oct 6, 2026
61281aa
Fixes #34270: Date the post-#34253 AgentSparqlResourceIT run in the A…
fmcardoso Oct 6, 2026
f107543
Fixes #34270: Drop the unreachable 404 handling in the reindex wait
fmcardoso Oct 6, 2026
56acb6d
Fixes #34270: Point the policy-refresh workaround at the stale-revoca…
fmcardoso Oct 7, 2026
553633d
Fixes #34270: Drop the unused one-arg forRepository and two tautologi…
fmcardoso Oct 7, 2026
6f8e68e
Fixes #34270: Name the repeated integration-test literals once
fmcardoso Oct 7, 2026
24ed66b
Merge branch 'main' into fmcardoso/mcp-knowledge-graph-tools-non-admi…
fmcardoso Oct 7, 2026
8d53110
Fixes #34270: Record the MCP bot as the service actor in agent SPARQL…
fmcardoso Oct 7, 2026
1f141b6
Fixes #34270: Make the projection-not-ready error state-aware so a de…
fmcardoso Oct 7, 2026
1d95132
Fixes #34270: Make non-admin find_by_tag, entity_neighborhood and ont…
fmcardoso Oct 7, 2026
fb5cbc8
Fixes #34270: State that bots hold the SPARQL grant by default and na…
fmcardoso Oct 7, 2026
4489aac
Fixes #34270: Link the ontology literal-versus-IRI follow-up issue fr…
fmcardoso Oct 7, 2026
f591bd3
Fixes #34270: Keep the applied 2.1.0 grant statement unchanged and up…
fmcardoso Oct 8, 2026
bb1f17c
Fixes #34270: Place the rule-description statement beside the grant i…
fmcardoso Oct 8, 2026
e01ac33
Fixes #34270: Cover the projection states and the audit service actor…
fmcardoso Oct 8, 2026
2172592
Fixes #34270: Record why the fixed-read MCP tools check readiness bef…
fmcardoso Oct 8, 2026
ae84456
Merge branch 'main' into fmcardoso/mcp-knowledge-graph-tools-non-admi…
fmcardoso Oct 8, 2026
328b866
Fixes #34270: State that the 80,000-byte sparql_query body cap is the…
fmcardoso Oct 8, 2026
d4f1f1a
Merge origin/main into fmcardoso/mcp-knowledge-graph-tools-non-admin-…
fmcardoso Oct 13, 2026
5596ca5
Fixes #34270: Say that an empty column-lineage result on a store not …
fmcardoso Oct 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions bootstrap/sql/migrations/native/2.1.0/mysql/schemaChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,25 @@ WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.name')) = 'DataConsumerPolicy'
AND NOT JSON_CONTAINS(json, JSON_OBJECT('name', 'DataConsumerPolicy-ExecuteSparqlQuery-Rule'), '$.rules')
AND JSON_CONTAINS(json, JSON_OBJECT('effect', 'allow', 'operations', JSON_ARRAY('ViewAll')), '$.rules');

-- Name the MCP knowledge-graph tools in the description of the DataConsumerPolicy-ExecuteSparqlQuery-Rule that the statement
-- above adds (#34270). That INSERT must stay exactly as it was first shipped, because the runner
-- tracks statements by a hash of their text: an edited INSERT would run again where 2.1.0 is already
-- recorded, and its only guard is "the rule does not exist", so it would add back a rule an
-- administrator deleted on purpose. This is a separate, appended statement that changes only the
-- description, and only where it still reads exactly as the old shipped text: a deleted rule, a
-- customised description and a fresh install (seeded with the new text) are left alone.
UPDATE policy_entity
SET json = JSON_REPLACE(
json,
REPLACE(JSON_UNQUOTE(JSON_SEARCH(json, 'one', 'DataConsumerPolicy-ExecuteSparqlQuery-Rule', NULL, '$.rules[*].name')), '.name', '.description'),
'Allow authenticated users and bots to run read-only SPARQL queries through the agent SPARQL endpoint and the MCP knowledge-graph tools (sparql_query, entity_neighborhood, find_by_tag, and ontology_describe with a resource). Results are not filtered by asset or domain policies, so remove this rule if viewing is restricted through custom policies.'
)
WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.name')) = 'DataConsumerPolicy'
AND JSON_UNQUOTE(JSON_EXTRACT(
json,
REPLACE(JSON_UNQUOTE(JSON_SEARCH(json, 'one', 'DataConsumerPolicy-ExecuteSparqlQuery-Rule', NULL, '$.rules[*].name')), '.name', '.description')
)) = 'Allow authenticated users to run read-only SPARQL queries through the agent SPARQL endpoint. The endpoint does not filter results by asset, so remove this rule if viewing is restricted through custom policies.';

-- Allow Data Consumer to create context memories by default (ai-platform#1580). Seed data never
-- updates a policy that already exists, so existing installs get the rule here. A memory is knowledge
-- about an asset, the same kind of contribution as its description, so the rule is only added while an
Expand Down
32 changes: 32 additions & 0 deletions bootstrap/sql/migrations/native/2.1.0/postgres/schemaChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,38 @@ WHERE json->>'name' = 'DataConsumerPolicy'
AND NOT (json->'rules') @> jsonb_build_array(jsonb_build_object('name', 'DataConsumerPolicy-ExecuteSparqlQuery-Rule'))
AND (json->'rules') @> jsonb_build_array(jsonb_build_object('effect', 'allow', 'operations', jsonb_build_array('ViewAll')));

-- Name the MCP knowledge-graph tools in the description of the DataConsumerPolicy-ExecuteSparqlQuery-Rule that the statement
-- above adds (#34270). That INSERT must stay exactly as it was first shipped, because the runner
-- tracks statements by a hash of their text: an edited INSERT would run again where 2.1.0 is already
-- recorded, and its only guard is "the rule does not exist", so it would add back a rule an
-- administrator deleted on purpose. This is a separate, appended statement that changes only the
-- description, and only where it still reads exactly as the old shipped text: a deleted rule, a
-- customised description and a fresh install (seeded with the new text) are left alone.
UPDATE policy_entity
SET json = jsonb_set(
json::jsonb,
'{rules}',
(
SELECT jsonb_agg(
CASE
WHEN existing.rule->>'name' = 'DataConsumerPolicy-ExecuteSparqlQuery-Rule'
AND existing.rule->>'description' = 'Allow authenticated users to run read-only SPARQL queries through the agent SPARQL endpoint. The endpoint does not filter results by asset, so remove this rule if viewing is restricted through custom policies.'
THEN jsonb_set(existing.rule, '{description}', to_jsonb('Allow authenticated users and bots to run read-only SPARQL queries through the agent SPARQL endpoint and the MCP knowledge-graph tools (sparql_query, entity_neighborhood, find_by_tag, and ontology_describe with a resource). Results are not filtered by asset or domain policies, so remove this rule if viewing is restricted through custom policies.'::text))
ELSE existing.rule
END
ORDER BY existing.position
)
FROM jsonb_array_elements(json->'rules') WITH ORDINALITY AS existing(rule, position)
)
)
WHERE json->>'name' = 'DataConsumerPolicy'
AND EXISTS (
SELECT 1
FROM jsonb_array_elements(json->'rules') AS current_rule(rule)
WHERE current_rule.rule->>'name' = 'DataConsumerPolicy-ExecuteSparqlQuery-Rule'
AND current_rule.rule->>'description' = 'Allow authenticated users to run read-only SPARQL queries through the agent SPARQL endpoint. The endpoint does not filter results by asset, so remove this rule if viewing is restricted through custom policies.'
);

-- Allow Data Consumer to create context memories by default (ai-platform#1580). Seed data never
-- updates a policy that already exists, so existing installs get the rule here. A memory is knowledge
-- about an asset, the same kind of contribution as its description, so the rule is only added while an
Expand Down
Loading
Loading