Repository navigation
Conversation
Add an intermediate plan JSON format (Samples/Plans/SK178/*.json) and a PlanJsonHelpers.BuildChatHistoryFromPlan* API that materializes it into a ChatHistory suitable for the SK 1.78 Auto Function Calling flow (FunctionChoiceBehavior.Auto). The legacy Plan.FromJson / Plan.State / Plan.Steps shape was REMOVED in SK 1.78 - Planners.* packages were deleted and a Plan is now a KernelFunction. This is the Step 2/4 of the #7225 MultiConnectorTests SK 1.78 migration (see jsboige/CoursIA#7225 (comment) for the multi-cycle plan). The helper compiles and is consumed by the MultiConnectorTests rewrite in Step 3 (acceptance #3/4, c.716). The legacy Samples/Plans/Summarize*.json files are kept on disk for diff-comparison purposes; the integration tests will load the SK178/*.json files going forward. - Samples/Plans/SK178/Summarize.json: 1 invocation (SummarizeSkill.Summarize). - Samples/Plans/SK178/Summarize_Topics_ElementAt.json: 3 invocations (Summarize -> Topics -> ElementAtIndex) with chained variable substitution ($RESULT__TOPICS feeding into ElementAtIndex). - docs/Plans/SK178-format.md: full spec of the intermediate JSON shape, field reference, and materialization contract. - dotnet/src/IntegrationTests/Connectors/MultiConnector/PlanJsonHelpers.cs: parser + ChatHistory builder + ResolvedInvocation helper. Builds the system+user messages of a ChatHistory and exposes the function-call sequence as a list of ResolvedInvocation structs (plugin+function name + pre-resolved arguments) for the integration test to register as available KernelFunctions on the Kernel before requesting chat completion. Co-Authored-By: Claude-Code <noreply@anthropic.com>
jsboige
added a commit
that referenced
this pull request
Sep 3, 2026
#66) (#67) The branch upgrade-sk hosts three PRs (#64, #65, #66) that have been silent for ~6 weeks: the workflow on: filters exclude upgrade-sk (it does not match the feature* glob, and is not main), so no build, no format, no merge-gate check ever runs against these PRs. Only label-pr fires on them, which is consistent with the ai-01 measurement 'no build has run'. Measured divergence main vs upgrade-sk: no common merge-base. upgrade-sk is a fork of stable-from-v0343 with 3 additional commits; main is a post-cleanup rewrite (264 vs 304 files). A direct merge of upgrade-sk into main is materially impossible without massive conflict resolution, so widening the gate temporarily is the only viable path. This commit adds 'upgrade-sk' to the branches: filter of the four workflows that gate the .NET PR pipeline. The widening is **temporary**: the PR body carries the withdrawal clause required by ai-01 (PR body below). When the SK 1.78 stack lands on main and the three PRs rebase, upgrade-sk is removed from all four branches: lists in the same follow-up. Scope: 4 files, +4/-4. No code change.
jsboige
added a commit
that referenced
this pull request
Sep 4, 2026
…ine) (#68) Mirror #67 verbatim: the four dotnet-* workflows filtered on branches: ['main', 'feature*'] (or ['main'] for integration), which never matched upgrade-sk. PRs #64, #65, #66 have base=upgrade-sk and have slept since 2026-07-20. Lines A and B are disjoint: merge-base(origin/main, origin/stable-from-v0343) is empty (verified). #67 landed on A (base=main), so its filter extension never touched the workflow copy resolved for PRs on B. Critere de sortie verifiable: apres merge, PR #64 check count passe de 1 a >1, avec dotnet-build-and-test-check present. Refs #67, See #64 #65 #66 Co-authored-by: myia-po-2023 <myia-po-2023@myia.fr>
Records the byte-identical re-rooted upgrade-sk base as a second parent. The branch tree remains unchanged; no PR content is rewritten. Co-Authored-By: Claude-Code <noreply@anthropic.com>
5 tasks
This was referenced Oct 6, 2026
Contributor
Author
Tri (dispatch c2189, lane myia-po-2027:CoursIA) — contenu absorbé, PR ferméeMesure du jour : l'apport de cette PR vit sur
La branche |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the SK 1.78 plan JSON intermediate format (
Samples/Plans/SK178/*.json) and thePlanJsonHelpershelper that materializes it into aChatHistorysuitable for the canonical SK 1.78 Auto Function Calling flow (FunctionChoiceBehavior.Auto).This is Step 2/4 of the MultiConnectorTests SK 1.78 migration (c.715 acceptance #2). The multi-cycle plan was committed as a decision comment on #7225 (issuecomment-5025094300). Step 3 (c.716) rewrites
MultiConnectorTests.csto consume this format and removes the<Compile Remove>fromIntegrationTests.csproj.Why an intermediate format?
The legacy
Plan.FromJson(...)shape (state/steps/parameters/outputs/next_step_index) was REMOVED in Semantic Kernel 1.78:Microsoft.SemanticKernel.Planners.*NuGet packages were deleted.plan.State,plan.Steps,SequentialPlanner.CreatePlanAsync,FunctionCallingStepwisePlannerno longer exist.Planis now aKernelFunction.ChatHistoryitself is a runtime type with non-trivial serialization (author roles, metadata, content items,FunctionCallContent). Shipping rawChatHistoryJSON would be brittle and tightly coupled to SK internals. The intermediate JSON shape captures the authoring intent of a plan (goal + sequence of function invocations) and letsPlanJsonHelpers.BuildChatHistoryFromPlanmaterialize it deterministically into a system+user prompt for the Auto Function Calling loop.Changes
1. New plan JSON files (legacy files preserved for diff comparison)
Samples/Plans/SK178/Summarize.json— 1 invocation (SummarizeSkill.Summarize,$INPUT→$RESULT__SUMMARY)Samples/Plans/SK178/Summarize_Topics_ElementAt.json— 3 chained invocations (Summarize → Topics → ElementAtIndex, with$RESULT__TOPICSsubstitution into ElementAtIndex.Arguments)Both files include a
$commentfield explaining the shape, ignored by the parser.2. Helper
PlanJsonHelpers(dotnet/src/IntegrationTests/Connectors/MultiConnector/PlanJsonHelpers.cs)LoadPlanAsync(planPath, ct)— read a plan JSON file intoSk178Plan.ParsePlan(planJson)— parse a JSON string intoSk178Plan.BuildChatHistoryFromPlan(plan, inputValue)— materialize asChatHistory(system + user messages).BuildInvocationPlan(plan, inputValue)— return the function-call sequence asIReadOnlyList<ResolvedInvocation>(plugin + function + pre-resolved arguments), for the integration test to register as availableKernelFunctions on theKernel.BuildChatHistoryFromPlanJsonAsync(planPath, inputValue, ct)— convenience that does the read+build in one call.Sk178PlanandSk178Invocationare plain DTOs.ResolvedInvocationexposesFullyQualifiedName => "Plugin-Function".3. Format spec (
docs/Plans/SK178-format.md)Full schema reference: field-by-field documentation of the intermediate JSON shape, the variable substitution rules (
$VARIABLE_NAMEreferences), and the materialization contract (what the helper emits vs. what the Auto Function Calling loop does at runtime).Compilation
dotnet build src/IntegrationTests/IntegrationTests.csprojsucceeds with 0 errors on the file (only pre-existing nullability warnings). The legacyMultiConnectorTests.csremains<Compile Remove>-excluded at this stage (removal is acceptance #3 in c.716).What this PR does NOT do
MultiConnectorTests.csitself (acceptance Bump Roslynator.Formatting.Analyzers from 4.3.0 to 4.5.0 in /dotnet #3 / c.716). It only adds the helper + format that the rewrite will consume.<Compile Remove>block onMultiConnectorTests.cs. The rest of the IntegrationTests project compiles cleanly.Compatibility with the existing test scenarios
Samples/Plans/Summarize.jsonSamples/Plans/SK178/Summarize.jsonSamples/Plans/Summarize_Topics_ElementAt.jsonSamples/Plans/SK178/Summarize_Topics_ElementAt.jsonLegacy files are not consumed by tests anymore once #7225 Step 3 ships. They remain on disk to make the migration auditable.
Source of truth
FunctionChoiceBehavior.Autois the recommended replacement).Test plan
dotnet restoresucceeds.dotnet build src/IntegrationTests/IntegrationTests.csprojsucceeds (0 errors, 4 pre-existing warnings).SK178/Summarize*.jsonfiles and assert the producedChatHistoryhas 2 messages (system+user) for the single-Invocation plan, plus thatBuildInvocationPlanreturns 3 pre-resolved invocations for the chained plan.🤖 Generated with Claude Code