-
Notifications
You must be signed in to change notification settings - Fork 19
Extensibility requests - evals #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
AleksandricMarko
wants to merge
20
commits into
main
Choose a base branch
from
extensibility_evals
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b79f31f
Extensibility evaluation init
AleksandricMarko 5ed86bd
Extensibility evaluation fix
AleksandricMarko ee0d944
agent generated to make it work
AleksandricMarko 11cef06
Refactor metrics parsing and fix type errors
AleksandricMarko 0e75b92
Improve extensibility evaluation JSON output capture
AleksandricMarko 20f23ce
Add validation logic for extensibility evaluation
AleksandricMarko f2b1430
agent update
AleksandricMarko 57023d3
fix
AleksandricMarko 5807f81
instruciton fix
AleksandricMarko 5cfbdc4
metric created
AleksandricMarko b81330e
fix
AleksandricMarko 2520f3b
fix
AleksandricMarko 7d943b9
instruction fix
AleksandricMarko 1e5ffd2
dataset
AleksandricMarko 32cf6fb
Merge branch 'main' of https://github.com/microsoft/BC-Bench into ext…
AleksandricMarko de4d8c8
instr fix
AleksandricMarko 64a89b6
fix
AleksandricMarko 29afa7f
pipeline issue fix
AleksandricMarko fb9293c
additional datasets
AleksandricMarko 780d5ff
Merge branch 'main' of https://github.com/microsoft/BC-Bench into ext…
AleksandricMarko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "repo": "microsoftInternal/NAV", | ||
| "base_commit": "06e095c485e474431177e2170c0e22182bfdcc28", | ||
| "environment_setup_version": "27.0", | ||
| "project_paths": [ | ||
| "App\\Layers" | ||
| ] | ||
| } | ||
140 changes: 140 additions & 0 deletions
140
dataset/extensibility_requests/extensibility_dataset.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| entries: | ||
| - instance_id: issue-29447 | ||
| input: | ||
| title: "[Event Request] Codeunit 5880 \"Phys. Invt. Order-Finish\"" | ||
| description: | | ||
| ### Why do you need this change? | ||
|
|
||
| Hi, | ||
| i need an event in the Codeunit 5880 "Phys. Invt. Order-Finish" in the procedure "CreateOrderTrackingBufferLines" to modify the TempInvtOrderTrackingBuffer record. | ||
|
|
||
| ### Describe the request | ||
|
|
||
| Add a new event in the procedure "CreateOrderTrackingBufferLines", before modifying the record TempInvtOrderTrackingBuffer. | ||
|
|
||
| procedure CreateOrderTrackingBufferLines(DocNo: Code[20]; LineNo: Integer) | ||
| var | ||
| ExpInvtOrderTracking: Record "Exp. Invt. Order Tracking"; | ||
| ItemTrackingSetup: Record "Item Tracking Setup"; | ||
| begin | ||
| PhysInvtRecordLine.Reset(); | ||
| PhysInvtRecordLine.SetCurrentKey("Order No.", "Order Line No."); | ||
| PhysInvtRecordLine.SetRange("Order No.", DocNo); | ||
| PhysInvtRecordLine.SetRange("Order Line No.", LineNo); | ||
| PhysInvtRecordLine.SetFilter("Quantity (Base)", '<>%1', 0); | ||
| if PhysInvtRecordLine.Find('-') then | ||
| repeat | ||
| ItemTrackingSetup."Serial No." := PhysInvtRecordLine."Serial No."; | ||
| ItemTrackingSetup."Lot No." := PhysInvtRecordLine."Lot No."; | ||
| ItemTrackingSetup."Package No." := PhysInvtRecordLine."Package No."; | ||
| UpdateBufferRecordedQty(ItemTrackingSetup, PhysInvtRecordLine."Quantity (Base)", LineNo); | ||
| OnCreateOrderTrackingBufferLinesFromPhysInvtRecordLine(TempInvtOrderTrackingBuffer, PhysInvtRecordLine); | ||
| until PhysInvtRecordLine.Next() = 0; | ||
|
|
||
| ExpInvtOrderTracking.Reset(); | ||
| ExpInvtOrderTracking.SetRange("Order No", DocNo); | ||
| ExpInvtOrderTracking.SetRange("Order Line No.", LineNo); | ||
| if ExpInvtOrderTracking.Find('-') then | ||
| repeat | ||
| ItemTrackingSetup."Serial No." := ExpInvtOrderTracking."Serial No."; | ||
| ItemTrackingSetup."Lot No." := ExpInvtOrderTracking."Lot No."; | ||
| ItemTrackingSetup."Package No." := ExpInvtOrderTracking."Package No."; | ||
| UpdateBufferExpectedQty(ItemTrackingSetup, ExpInvtOrderTracking."Quantity (Base)", LineNo); | ||
| OnCreateOrderTrackingBufferLinesFromExpInvtOrderTracking(TempInvtOrderTrackingBuffer, ExpInvtOrderTracking); | ||
| until ExpInvtOrderTracking.Next() = 0; | ||
|
|
||
| TempInvtOrderTrackingBuffer.Reset(); | ||
| if TempInvtOrderTrackingBuffer.Find('-') then | ||
| repeat | ||
| TempInvtOrderTrackingBuffer."Qty. To Transfer" := | ||
| TempInvtOrderTrackingBuffer."Qty. Recorded (Base)" - TempInvtOrderTrackingBuffer."Qty. Expected (Base)"; | ||
| TempInvtOrderTrackingBuffer."Outstanding Quantity" := TempInvtOrderTrackingBuffer."Qty. To Transfer"; | ||
| TempInvtOrderTrackingBuffer.Open := TempInvtOrderTrackingBuffer."Outstanding Quantity" <> 0; | ||
|
|
||
| // Start Event | ||
|
|
||
| OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTracking(TempInvtOrderTrackingBuffer, DocNo, LineNo); | ||
|
|
||
| // End Event | ||
|
|
||
| TempInvtOrderTrackingBuffer.Modify(); | ||
| until TempInvtOrderTrackingBuffer.Next() = 0; | ||
| end; | ||
|
|
||
| **New Event** | ||
| ``` | ||
| [IntegrationEvent(false, false)] | ||
| local procedure OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTracking(var TempInvtOrderTracking: Record "Invt. Order Tracking" temporary; DocNo: Code[20]; LineNo: Integer) | ||
| begin | ||
| end; | ||
| ``` | ||
|
|
||
| comments: "" | ||
|
|
||
| expected: | ||
| labels: "SCM, event-request" | ||
| comments: | ||
| - author: Agent | ||
| body: | | ||
| ✅ Analysis complete - approved for implementation | ||
|
|
||
| **Implementation:** | ||
|
|
||
| Add event publisher in procedure `CreateOrderTrackingBufferLines` before `TempInvtOrderTrackingBuffer.Modify()`: | ||
|
|
||
| ```al | ||
| TempInvtOrderTrackingBuffer.Reset(); | ||
| if TempInvtOrderTrackingBuffer.Find('-') then | ||
| repeat | ||
| TempInvtOrderTrackingBuffer."Qty. To Transfer" := | ||
| TempInvtOrderTrackingBuffer."Qty. Recorded (Base)" - TempInvtOrderTrackingBuffer."Qty. Expected (Base)"; | ||
| TempInvtOrderTrackingBuffer."Outstanding Quantity" := TempInvtOrderTrackingBuffer."Qty. To Transfer"; | ||
| TempInvtOrderTrackingBuffer.Open := TempInvtOrderTrackingBuffer."Outstanding Quantity" <> 0; | ||
| OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTracking(TempInvtOrderTrackingBuffer, DocNo, LineNo); | ||
| TempInvtOrderTrackingBuffer.Modify(); | ||
| until TempInvtOrderTrackingBuffer.Next() = 0; | ||
| ``` | ||
|
|
||
| Add event publisher procedure at the end of the codeunit (before the closing brace): | ||
|
|
||
| ```al | ||
| [IntegrationEvent(false, false)] | ||
| local procedure OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTracking(var TempInvtOrderTracking: Record "Invt. Order Tracking" temporary; DocNo: Code[20]; LineNo: Integer) | ||
| begin | ||
| end; | ||
| ``` | ||
|
|
||
| - instance_id: issue-29442 | ||
| input: | ||
| title: "[W1][Page][176][Standard Purchase Code Subform] Make procedure UpdateTypeText() not local" | ||
| description: | | ||
| ### Why do you need this change? | ||
|
|
||
| Procedure UpdateTypeText() is in local scope and it updates field variable TypeAsText | ||
|
|
||
| ### Describe the request | ||
|
|
||
| Remove "local" scope from procedure UpdateTypeText() in page 176 "Standard Purchase Code Subform"; | ||
|
|
||
| comments: "" | ||
|
|
||
| expected: | ||
| labels: "SCM, request-for-external" | ||
| comments: | ||
| - author: Agent | ||
| body: | | ||
| ✅ Analysis complete - approved for implementation | ||
|
|
||
| **Implementation:** | ||
|
|
||
| Remove `local` scope from procedure `UpdateTypeText()` in Page 176 "Standard Purchase Code Subform": | ||
|
|
||
| ```al | ||
| procedure UpdateTypeText() | ||
| var | ||
| RecRef: RecordRef; | ||
| begin | ||
| RecRef.GetTable(Rec); | ||
| TypeAsText := TempOptionLookupBuffer.FormatOption(RecRef.Field(Rec.FieldNo(Type))); | ||
| end; | ||
| ``` |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "runs": [], | ||
| "aggregate": [] | ||
| } |
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
77 changes: 77 additions & 0 deletions
77
src/bcbench/agent/copilot/instructions/microsoftInternal-NAV/agents/Argus.agent.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| --- | ||
| name: Argus | ||
| description: 'Extensibility Analysis Agent specialized in analyzing GitHub extensibility issues.' | ||
| tools: ['read/readFile', 'search/fileSearch', 'github/add_issue_comment', 'agent', 'todo'] | ||
| --- | ||
|
|
||
| This agent acts as an Extensibility Analysis Agent. Its purpose is to analyze GitHub extensibility issues by collecting data, checking eligibility, determining request types, verifying requirements, analyzing the codebase, and finally assigning teams and applying labels/comments. | ||
|
|
||
| 0. Initialize the agent based on the instructions from #file:../instructions/Argus/step0-getting-started.md . Determine the issues to process (single or multiple) and validate the environment. | ||
|
|
||
| For each issue identified in step 0, execute ALL the following steps (1-7) sequentially. | ||
|
|
||
| **Logging:** | ||
| Create a new markdown file named `issue_<issue_number>_log.md` to record the execution flow. | ||
| After each step (1-6), append the step name, the input variables sent, and the full output received from the subagent to this log file. | ||
|
|
||
| **Progress Tracking:** | ||
| Use the `todo` tool to track the execution of the workflow for the current issue. | ||
| - **Initialize:** Before starting Step 1, create a todo list with items for Steps 1 through 7. | ||
| - **Update:** Before executing a step, mark it as `in-progress`. Upon completion, mark it as `completed`. | ||
| - **Flow Control:** If a step fails or logic dictates skipping to Step 7, leave skipped steps as `not-started` and proceed to update Step 7. | ||
|
|
||
| 1. Step 1: Collect | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step1-collector-subagent" | ||
| - instructions: "Collect all necessary data with using your own file access to open the instructions file. If this step fails (returned output is not success), stop processing the current issue." | ||
| - input_vars: {issue_number: "${state.issue_number}"} | ||
| - context.resources: ["file:../instructions/Argus/step1-collect-data.md"] | ||
| - context.tools: ["github/issue_read"] | ||
| - Expect output: {"Success": boolean, "GH_REQUEST": object, "FailureReason": string} | ||
|
|
||
| 2. Step 2: Eligibility Check | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step2-eligibility-check-subagent" | ||
| - instructions: "Analyze the issue eligibility using your own file access to open the instructions file. If this step fails (returned output is not eligible), stop processing the current issue or if stale, proceed directly to step 7." | ||
| - input_vars: {GH_REQUEST: "${state.GH_REQUEST}"} | ||
| - context.resources: ["file:../instructions/Argus/step2-eligibility-check.md"] | ||
| - context.tools: [] | ||
| - Expect output: {"IsEligible": boolean, "IsStale": boolean, "FailureReason": string} | ||
|
|
||
| 3. Step 3: Request Types | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step3-request-types-subagent" | ||
| - instructions: "Determine request types using your own file access to open the instructions file. If this step fails (returned output is not success), proceed directly to step 7." | ||
| - input_vars: {GH_REQUEST: "${state.GH_REQUEST}"} | ||
| - context.resources: ["file:../instructions/Argus/step3-request-types.md"] | ||
| - context.tools: [] | ||
| - Expect output: {"Success": boolean, "TYPE": string, "SUBTYPE": string, "FailureLabel": string, "FailureReason": string} | ||
|
|
||
| 4. Step 4: Requirements Check | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step4-requirements-check-subagent" | ||
| - instructions: "Verify requirements using your own file access to open the instructions file. If this step fails (returned output is not success), proceed directly to step 7." | ||
| - input_vars: {GH_REQUEST: "${state.GH_REQUEST}", TYPE: "${state.TYPE}", SUBTYPE: "${state.SUBTYPE}"} | ||
| - context.resources: ["file:../instructions/Argus/step4-requirements-check.md"] | ||
| - context.tools: ['search/fileSearch', 'read/readFile'] | ||
| - Expect output: {"Success": boolean, "FailureLabel": string, "FailureReason": string} | ||
|
|
||
| 5. Step 5: Codebase Analysis | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step5-codebase-analysis-subagent" | ||
| - instructions: "Analyze the codebase using your own file access to open the instructions file. If this step fails (returned output is not success), proceed directly to step 7." | ||
| - input_vars: {GH_REQUEST: "${state.GH_REQUEST}", TYPE: "${state.TYPE}", SUBTYPE: "${state.SUBTYPE}"} | ||
| - context.resources: ["file:../instructions/Argus/step5-codebase-analysis.md"] | ||
| - context.tools: ['search/fileSearch', 'read/readFile'] | ||
| - Expect output: {"Success": boolean, "OBJECT_LIST": array, "SUGGESTED_IMPLEMENTATION": string, "FailureLabel": string, "FailureReason": string} | ||
|
|
||
| 6. Step 6: Team Assignment | ||
| - Call #tool:agent/runSubagent with: | ||
| - name: "step6-team-assignment-subagent" | ||
| - instructions: "Assign teams based on namespaces using your own file access to open the instructions file. If this step fails (returned output is not success), proceed directly to step 7." | ||
| - input_vars: {OBJECT_LIST: "${state.OBJECT_LIST}"} | ||
| - context.resources: ["file:../instructions/Argus/step6-team-assignment.md"] | ||
| - context.tools: ['read/readFile', 'write/writeFile'] | ||
| - Expect output: {"Success": boolean, "TEAM_LABEL": string, "FailureLabel": string, "FailureReason": string} | ||
|
|
||
| 7. Step 7: Finalize the process based on the instructions from #file:../instructions/Argus/step7-labels-comments.md . Use all collected data (including any failure reasons if applicable) to avoid refetching. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.