Skip to content

Add mission-critical compliance system prompt template and prompt loader API#1

Merged
vinod0m merged 2 commits into
mainfrom
copilot/monitor-compliance-standards
Jul 7, 2026
Merged

Add mission-critical compliance system prompt template and prompt loader API#1
vinod0m merged 2 commits into
mainfrom
copilot/monitor-compliance-standards

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a canonical system prompt for a multi-agent mission-critical process compliance workflow (Orchestrator + Monitoring/Advisory/Action) with structured, audit-oriented output requirements across domains and standards. It also wires prompt retrieval into code and removes a test-package discovery gap that was blocking Python test collection.

  • System prompt definition (config)

    • Added prompts.mission_critical_process_compliance_multi_agent in config/prompt_templates.yaml.
    • Encodes role model, agent responsibilities, standards/domain coverage, guardrails, and deterministic output schema expectations.
  • Prompt template access API (runtime)

    • Implemented src/prompt_engineering/templates.py:
      • load_prompt_templates(path=...) -> dict
      • get_prompt_template(template_name, path=...) -> str
    • Includes structural validation (dict root, string content) and explicit erroring for missing templates.
  • Prompt-focused unit coverage

    • Added tests in test/unit/prompts/test_prompt_templates.py for:
      • Presence of the new compliance prompt key
      • Retrieval of expected multi-agent content
      • Missing-template error behavior
  • Test package discovery correction

    • Added package markers:
      • test/__init__.py
      • test/unit/__init__.py
      • test/integration/__init__.py
    • Ensures stable module resolution during test collection.
from src.prompt_engineering.templates import get_prompt_template

system_prompt = get_prompt_template("mission_critical_process_compliance_multi_agent")
Original prompt

System Prompt: Mission‑Critical Process Compliance Multi‑Agent

Role & Mission
You are a Process Compliance AI Agent Team for mission‑critical software development.
You operate as a multi‑agent system composed of an Orchestrator Agent and three specialized agents:

  • Monitoring Agent – continuously tracks regulatory and standards changes and surfaces risks.
  • Advisory Agent – answers policy and standards questions with cited references and explanations.
  • Action Agent – performs structured compliance assessments, generates audit‑ready evidence packages, and proposes remediation actions.

Your mission is to monitor, enforce, and report on adherence to functional safety, cybersecurity, quality, and supporting process standards across multiple domains (Automotive, MedTech, Railway, Defence, etc.) and across the entire software lifecycle (requirements, design, implementation, verification, operation, and change management).

Target Framework & Coordination (DeepAgents‑style)

  • Assume you run within a multi‑agent framework that supports:
  • Tool calls (RAG over standards, document loaders, code/requirements parsers, BPM/analytics tools).
  • Handoffs and delegation between agents.
  • Shared, structured context/state between agents.
  • The Orchestrator Agent decomposes each user objective into sub‑tasks, assigns them to

Monitoring/Advisory/Action agents, and recombines their outputs into a coherent, explainable result.

  • You must explicitly state:
  • Which agent you are invoking (Monitoring / Advisory / Action / Orchestrator).
  • The sub‑task objective and inputs for that agent.
  • The expected outputs (schemas or structured fields).

Domains & Standards Coverage
You support multi‑domain mission‑critical applications, including at least:

  • Automotive
    • Functional safety: ISO 26262 (all relevant parts), IEC 61508 if applicable.
    • Cybersecurity: ISO/SAE 21434, UNECE R155/R156 as needed.
    • Quality & process: Automotive SPICE / ASPICE 4.x.
  • MedTech / Medical Devices
    • Safety & risk: IEC 62304 (software lifecycle), ISO 14971 (risk management).
    • Cybersecurity: relevant FDA/EMA guidance, IEC 81001‑5‑1 and similar.
    • Quality: ISO 13485 and software lifecycle process requirements.
  • Railway
    • Safety: EN 50126/8/9, IEC 62279, IEC 62425 (or equivalent railway safety standards).
    • Cybersecurity: rail‑specific security frameworks and organisational policies.
  • Defence / Aerospace (if configured)
    • Safety & airworthiness: DO‑178C/DO‑254, MIL‑STD and NATO standards as configured.
    • Cybersecurity: NIST, ISO 270xx series, domain‑specific directives.

In addition, you must support organisation‑specific and customer‑specific standards, guidelines, checklists, and work‑product templates. These may be provided via:

  • RAG over internal wikis, Markdown documents, standards PDFs, process handbooks.
  • Long‑context injections of policies, checklists, and templates.
  • Configuration metadata (JSON/YAML) describing required work products and traceability rules.

Treat all standards and internal policies as first‑class knowledge sources. Always reason from them, cite them, and highlight conflicts or gaps between different sources.

Inputs You Can Receive
You can be given any combination of the following inputs:

  1. Standards & Policies Corpus – snippets or full sections of external standards (ISO, IEC, EN, DO‑178C, ASPICE, etc.), internal / customer standards, process descriptions, checklists, templates.
  2. Requirements Artefacts – system/software requirements in any format (EARS, user stories, classic spec style), including attributes such as IDs, ASIL/SIL/security level, status, owner, rationale.
  3. Design Artefacts – architecture models, interface specifications, detailed design documents, model‑based design artefacts, state machines, dataflow diagrams.
  4. Implementation Artefacts – source code, configuration, build scripts, safety mechanisms, defensive coding patterns, coding guidelines compliance reports.
  5. Verification Artefacts – test plans, unit/component/integration/system test cases, HIL/SIL test reports, coverage reports, fault‑injection results, safety analyses (FMEA, FTA, FMEDA), cybersecurity tests (penetration tests, fuzzing reports).
  6. Traceability Artefacts – bidirectional traceability matrices, links between system requirements, software requirements, design elements, code modules, test cases, safety goals and hazards.
  7. Risk Artefacts – risk registers, hazard logs, HARA (in automotive), risk maps, mitigation plans, residual risk evaluations.
  8. Process & Workflow Data – project plans, milestone reports, change requests, issue tracker tickets, review records, supplier deliverables, KPIs, cycle‑time metrics, bottleneck data.
  9. Configuration Parameters – domain, applicable standards list, integrity/security level, organisational maturi...

@github-actions

This comment has been minimized.

Copilot AI changed the title [WIP] Monitor compliance with updated regulatory standards Add mission-critical compliance system prompt template and prompt loader API Jul 6, 2026
Copilot AI requested a review from vinod0m July 6, 2026 23:59
@vinod0m vinod0m requested a review from Copilot July 7, 2026 00:00
You support **multi-domain mission-critical applications**, including:
- **Automotive**
- Functional safety: ISO 26262, IEC 61508 where applicable.
- Cybersecurity: ISO/SAE 21434, UNECE R155/R156.
- **Automotive**
- Functional safety: ISO 26262, IEC 61508 where applicable.
- Cybersecurity: ISO/SAE 21434, UNECE R155/R156.
- Quality/process: Automotive SPICE / ASPICE 4.x.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, or 📝 job summary for details.

Unrecognized words (202)
addbuildtag
aoa
apiscan
apng
appicable
armhf
artifactsize
ASPICE
AZDOAPI
bdd
Biuld
BPriority
breif
buildagent
builddirectory
BUILDSECMON
buildtask
builtindepshash
cachesalt
causign
cdn
CETCOMPAT
chkconfig
CIBUILD
claude
clippy
coc
COLLECTIONURI
Colortool
connor
Counterarguments
Counterforces
credscan
crt
Ctarget
CXXFLAGS
debian
deemon
detials
devdiv
Devlabs
dri
DSPDLOG
DVT
Edg
embeddings
esac
esrpcli
evolutiona
filedownloadlinkgeneration
flto
forlder
fsplit
futher
Gdn
gdnsuppress
githubcustomers
glibcxx
gnueabihf
gosec
gpg
gpt
gpu
grd
HOSTTYPE
HRESULT
inno
ipynb
isystem
joao
joaomoreno
JOBID
jomo
jrieken
jws
killproc
kmaetzel
kotlin
languageservice
lastexitcode
LDFLAGS
LIBCPP
libcxx
libcxxabi
LIBDIR
libgbm
libkrb
libnotify
libx
libxkbfile
linting
listprocesses
llm
lowlighter
lto
MMdd
moduke
monacotools
mooncake
moreno
mozilla
msal
MSRUSTUP
msvs
neede
nlogin
nlsmetadata
nocerts
nokeys
nostdinc
npassword
NPH
NTSTATUS
occcured
oldheader
openai
OSARM
OSCLI
osx
Oustanding
outome
packagelockhash
Pankaj
passin
pgp
pkgconf
PLANID
postconditions
prebuilds
prependpath
princple
processname
productjson
prss
psake
pscore
Qspectre
QUEUEDBY
relevants
rpi
rpmbuild
rustc
RUSTFLAGS
rustup
sas
scanbin
SCHEDULEDBUILD
securedevelopmentteam
securego
shorttag
skillsets
smoketest
snapcraft
softwaredevlabs
softwaremodule
SOURCEBRANCH
SOURCESDIRECTORY
SOURCEVERSION
Spn
srv
STAGEATTEMPT
STAGINGDIRECTORY
statecharts
subsys
symbolify
sysroots
TAEF
TEAMPROJECTID
teh
tempdirectory
tfs
tgz
timeframe
transormatoin
tsaoptions
tsec
txns
typehints
tzip
UNECE
Univesrsal
Unti
uploadtotsa
usecase
userconfig
UWP
Valiate
valididty
varients
VCCL
verison
versio
vnd
vscodeesrp
vscodehub
vscodeweb
vsts
WPF
xcb
Xry
xutils
xvfbd
These words are not needed and should be removed aaaaabbb aabbcc ABANDONFONT abbcc abcc ABCG ABE abgr ABORTIFHUNG acidev ACIOSS acp actctx ACTCTXW ADDALIAS ADDREF ADDSTRING ADDTOOL adml admx AFill AFX AHelper ahicon ahz AImpl AInplace ALIGNRIGHT allocing alpc ALTERNATENAME ALTF ALTNUMPAD ALWAYSTIP ansicpg ANSISYS ANSISYSRC ANSISYSSC answerback ANSWERBACKMESSAGE antialiasing ANull anycpu APARTMENTTHREADED APCA APCs APIENTRY apiset APPBARDATA appcontainer appletname APPLMODAL Applocal appmodel appshellintegration APPWINDOW APPXMANIFESTVERSION APrep APSTUDIO ARRAYSIZE ARROWKEYS ASBSET ASetting ASingle ASYNCDONTCARE ASYNCWINDOWPOS atch ATest atg aumid Authenticode AUTOBUDDY AUTOCHECKBOX autohide AUTOHSCROLL automagically autopositioning AUTORADIOBUTTON autoscrolling Autowrap AVerify awch AZZ backgrounded Backgrounder backgrounding backstory Bazz bbccb BBDM BBGGRR bbwe bcount bcx bcz BEFOREPARENT beginthread benchcat bgfx bgidx Bgk bgra BHID bigobj binlog binplace binplaced bitcoin bitcrazed BITMAPINFO BITMAPINFOHEADER bitmasks BITOPERATION BKCOLOR BKGND BKMK Blt blu BLUESCROLL bmi bodgy BOLDFONT Borland boutput boxheader BPBF bpp BPPF branchconfig Browsable Bspace BTNFACE bufferout buffersize buflen buildsystems buildtransitive BValue Cacafire CALLCONV CANDRABINDU capslock CARETBLINKINGENABLED CARRIAGERETURN cascadia catid cazamor CBash cbiex CBN cbt Ccc cch CCHAR CCmd ccolor CCom CConsole CCRT cdd cds CELLSIZE cfae cfie cfiex cfte CFuzz cgscrn chafa changelists CHARSETINFO chshdng CHT CLASSSTRING cleartype CLICKACTIVE clickdown CLIENTID clipbrd CLIPCHILDREN CLIPSIBLINGS closetest cloudconsole cloudvault CLSCTX clsids cmatrix cmder CMDEXT cmh CMOUSEBUTTONS Cmts cmw CNL cnn codepages coinit colorizing COLORONCOLOR COLORREFs colorschemes colorspec colortable colortbl colortest colortool COLORVALUE comctl commdlg conapi conattrs conbufferout concfg conclnt concretizations conddkrefs condrv conechokey conemu CONIME conintegrity conintegrityuwp coninteractivitybase coninteractivityonecore coninteractivitywin coniosrv CONKBD conlibk conmsgl CONNECTINFO connyection CONOUT conprops conpropsp conptylib conserv consoleaccessibility consoleapi CONSOLECONTROL CONSOLEENDTASK consolegit consolehost CONSOLEIME CONSOLESETFOREGROUND consoletaeftemplates consoleuwp Consolewait CONSOLEWINDOWOWNER consrv constexprable contentfiles conterm contsf contypes conwinuserrefs coordnew COPYCOLOR COPYDATA COPYDATASTRUCT CORESYSTEM cotaskmem countof CPG cpinfo CPINFOEX CPLINFO cplusplus CPPCORECHECK cppcorecheckrules cpprestsdk cppwinrt cpx CREATESCREENBUFFER CREATESTRUCT CREATESTRUCTW createvpack crisman crloew CRTLIBS csbi csbiex CSHORT Cspace CSRSS csrutil CSTYLE CSwitch CTerminal ctl ctlseqs CTRLEVENT CTRLFREQUENCY CTRLKEYSHORTCUTS Ctrls CTRLVOLUME CUAS CUF cupxy CURRENTFONT currentmode CURRENTPAGE CURSORCOLOR CURSORSIZE CURSORTYPE CUsers CUU Cwa cwch CXFRAME CXFULLSCREEN CXHSCROLL CXMIN CXPADDEDBORDER CXSIZE CXSMICON CXVIRTUALSCREEN CXVSCROLL CYFRAME CYFULLSCREEN cygdrive CYHSCROLL CYMIN CYPADDEDBORDER CYSIZE CYSIZEFRAME CYSMICON CYVIRTUALSCREEN CYVSCROLL dai DATABLOCK DBatch dbcs DBCSFONT DBGALL DBGCHARS DBGFONTS DBGOUTPUT dbh dblclk DBUILD Dcd DColor DCOMMON DComposition DDESHARE DDevice DEADCHAR Debian debugtype DECAC DECALN DECANM DECARM DECAUPSS decawm DECBI DECBKM DECCARA DECCIR DECCKM DECCKSR DECCOLM deccra DECCTR DECDC DECDHL decdld DECDMAC DECDWL DECECM DECEKBD DECERA DECFI DECFNK decfra DECGCI DECGCR DECGNL DECGRA DECGRI DECIC DECID DECINVM DECKPAM DECKPM DECKPNM DECLRMM DECMSR DECNKM DECNRCM DECOM decommit DECPCCM DECPCTERM DECPS DECRARA decrc DECREQTPARM DECRLM DECRPM DECRQCRA DECRQDE DECRQM DECRQPSR DECRQSS DECRQTSR DECRQUPSS DECRSPS decrst DECSACE DECSASD decsc DECSCA DECSCNM DECSCPP DECSCUSR DECSDM DECSED DECSEL DECSERA DECSET DECSLPP DECSLRM DECSMKR DECSR DECST DECSTBM DECSTGLT DECSTR DECSWL DECSWT DECTABSR DECTCEM DECXCPR DEFAPP DEFAULTBACKGROUND DEFAULTFOREGROUND DEFAULTTONEAREST DEFAULTTONULL DEFAULTTOPRIMARY defectdefs DEFERERASE deff DEFFACE defing DEFPUSHBUTTON defterm DELAYLOAD DELETEONRELEASE depersist deprioritized devicecode Dext DFactory DFF dialogbox DINLINE directio DIRECTX DISABLEDELAYEDEXPANSION DISABLENOSCROLL DISPLAYATTRIBUTE DISPLAYCHANGE dlg DLGC DLLGETVERSIONPROC dllinit dllmain DLLVERSIONINFO DLOOK DONTCARE doskey DPG DPIAPI DPICHANGE DPICHANGED DPIs dpix dpiy dpnx DRAWFRAME DRAWITEM DRAWITEMSTRUCT drcs DROPFILES drv DSBCAPS DSBLOCK DSBPLAY DSBUFFERDESC DSBVOLUME dsm dsound DSSCL DSwap DTo DTTERM DUNICODE DUNIT dup'ed dvi dwl DWLP dwm dwmapi DWORDs dwrite dxgi dxsm dxttbmp Dyreen EASTEUROPE ECH echokey ecount ECpp Edgium EDITKEYS EDITTEXT EDITUPDATE Efast efg efgh EHsc EINS ELEMENTNOTAVAILABLE EMPTYBOX enabledelayedexpansion ENDCAP endptr ENTIREBUFFER ENU ENUMLOGFONT ENUMLOGFONTEX EOB EOK EPres EQU ERASEBKGND ERRORONEXIT ESFCIB ESV ETW EUDC eventing evflags evt execd executionengine exemain EXETYPE exeuwp exewin exitwin EXPUNGECOMMANDHISTORY EXSTYLE EXTENDEDEDITKEY EXTKEY EXTTEXTOUT facename FACENODE FACESIZE FAILIFTHERE fastlink fcharset fdw fesb ffd FFFD fgbg FGCOLOR FGHIJ fgidx FGs FILEDESCRIPTION FILESUBTYPE FILESYSPATH FILEW FILLATTR FILLCONSOLEOUTPUT FILTERONPASTE FINDCASE FINDDLG FINDDOWN FINDREGEX FINDSTRINGEXACT FITZPATRICK FIXEDFILEINFO Flg flyouts fmodern fmtarg fmtid FOLDERID FONTCHANGE fontdlg FONTENUMDATA FONTENUMPROC FONTFACE FONTHEIGHT fontinfo FONTOK FONTSTRING FONTTYPE FONTWIDTH FONTWINDOW foob FORCEOFFFEEDBACK FORCEONFEEDBACK FRAMECHANGED fre fsanitize Fscreen FSINFOCLASS fte Ftm Fullscreens Fullwidth FUNCTIONCALL fuzzmain fuzzmap fuzzwrapper fuzzyfinder fwdecl fwe fwlink fzf gcx gdi gdip gdirenderer gdnbaselines Geddy geopol GETALIAS GETALIASES GETALIASESLENGTH GETALIASEXES GETALIASEXESLENGTH GETAUTOHIDEBAREX GETCARETWIDTH GETCLIENTAREAANIMATION GETCOMMANDHISTORY GETCOMMANDHISTORYLENGTH GETCONSOLEINPUT GETCONSOLEPROCESSLIST GETCONSOLEWINDOW GETCOUNT GETCP GETCURSEL GETCURSORINFO GETDISPLAYMODE GETDISPLAYSIZE GETDLGCODE GETDPISCALEDSIZE GETFONTINFO GETHARDWARESTATE GETHUNGAPPTIMEOUT GETICON GETITEMDATA GETKEYBOARDLAYOUTNAME GETKEYSTATE GETLARGESTWINDOWSIZE GETLBTEXT GETMINMAXINFO GETMOUSEINFO GETMOUSEVANISH GETNUMBEROFFONTS GETNUMBEROFINPUTEVENTS GETOBJECT GETSELECTIONINFO getset GETTEXTLEN GETTITLE GETWAITTOKILLSERVICETIMEOUT GETWAITTOKILLTIMEOUT GETWHEELSCROLLCHARACTERS GETWHEELSCROLLCHARS GETWHEELSCROLLLINES Gfun gfx gfycat GGI GHgh GHIJK GHIJKL gitcheckin gitfilters gitlab gle GLOBALFOCUS GLYPHENTRY GMEM Goldmine gonce goutput GREENSCROLL Grehan Greyscale gridline gset gsl Guake guc GUIDATOM GValue GWL GWLP gwsz HABCDEF Hackathon HALTCOND HANGEUL hardlinks hashalg HASSTRINGS hbitmap hbm HBMMENU hbmp hbr hbrush HCmd hdc hdr HDROP hdrstop HEIGHTSCROLL hfind hfont hfontresource hglobal hhook hhx HIBYTE hicon HIDEWINDOW hinst HISTORYBUFS HISTORYNODUP HISTORYSIZE hittest HIWORD HKCU hkey hkl HKLM hlsl HMB HMK hmod hmodule hmon homoglyph hostable hostlib HPA hpcon hpen HPR HProvider HREDRAW hresult hscroll hstr HTBOTTOMLEFT HTBOTTOMRIGHT HTCAPTION HTCLIENT HTLEFT HTMAXBUTTON HTMINBUTTON HTRIGHT HTTOP HTTOPLEFT HTTOPRIGHT hungapp HVP hwheel hwnd HWNDPARENT iccex ICONERROR ICONINFORMATION ICONSTOP ICONWARNING IDCANCEL IDD IDISHWND idl idllib IDOK IDR IDTo IDXGI IFACEMETHODIMP ification IGNORELANGUAGE iid IIo ILC ILCo ILD ime IMPEXP inclusivity INCONTEXT INFOEX inheritcursor INITCOMMONCONTROLSEX INITDIALOG INITGUID INITMENU inkscape INLINEPREFIX inproc Inputkeyinfo Inputreadhandledata INPUTSCOPE INSERTMODE INTERACTIVITYBASE INTERCEPTCOPYPASTE INTERNALNAME intsafe INVALIDARG INVALIDATERECT Ioctl ipch ipsp iterm itermcolors itf Ith IUI IWIC IXP jconcpp JOBOBJECT JOBOBJECTINFOCLASS JONGSEONG JPN jsoncpp jsprovider jumplist JUNGSEONG KAttrs kawa Kazu kazum kernelbase kernelbasestaging KEYBDINPUT keychord keydowns KEYFIRST KEYLAST Keymapping keystate keyups Kickstart KILLACTIVE KILLFOCUS kinda KIYEOK KLF KLMNO KOK KPRIORITY KVM kyouhaishaheiku langid LANGUAGELIST lasterror LASTEXITCODE LAYOUTRTL lbl LBN LBUTTON LBUTTONDBLCLK LBUTTONDOWN LBUTTONUP lcb lci LCONTROL LCTRL lcx LEFTALIGN libsancov libtickit LIMITTEXT LINEDOWN LINESELECTION LINEWRAP LINKERRCAP LINKERROR linputfile listptr listptrsize llx LMENU lnkd lnkfile LNM LOADONCALL LOBYTE localappdata locsrc Loewen LOGBRUSH LOGFONT LOGFONTA LOGFONTW logissue losslessly loword lparam lpch LPCPLINFO LPCREATESTRUCT lpcs LPCTSTR lpdata LPDBLIST lpdis LPDRAWITEMSTRUCT lpdw lpelfe lpfn LPFNADDPROPSHEETPAGE LPMEASUREITEMSTRUCT LPMINMAXINFO lpmsg LPNEWCPLINFO LPNEWCPLINFOA LPNEWCPLINFOW LPNMHDR lpntme LPPROC LPPROPSHEETPAGE LPPSHNOTIFY lprc lpstr lpsz LPTSTR LPTTFONTLIST lpv LPW LPWCH lpwfx LPWINDOWPOS lpwpos lpwstr LRESULT lsb lsconfig lstatus lstrcmp lstrcmpi LTEXT ltsc LUID luma lval LVB LVERTICAL LVT LWA LWIN lwkmvj majorly MAKEINTRESOURCE MAKEINTRESOURCEW MAKELANGID MAKELONG MAKELPARAM MAKELRESULT MAPBITMAP MAPVIRTUALKEY MAPVK MAXDIMENSTRING MAXSHORT maxval maxversiontested MAXWORD maybenull MBUTTON MBUTTONDBLCLK MBUTTONDOWN MBUTTONUP mdmerge MDs mdtauk MEASUREITEM megamix memallocator meme MENUCHAR MENUCONTROL MENUDROPALIGNMENT MENUITEMINFO MENUSELECT metaproj Mgrs microsoftpublicsymbols midl mii MIIM milli mincore mindbogglingly minkernel MINMAXINFO minwin minwindef MMBB mmcc MMCPL MNC MNOPQ MNOPQR MODALFRAME MODERNCORE MONITORINFO MONITORINFOEXW MONITORINFOF MOUSEACTIVATE MOUSEFIRST MOUSEHWHEEL MOVESTART msb msbuildcache msctls msdata MSDL MSGCMDLINEF MSGF MSGFILTER MSGFLG MSGMARKMODE MSGSCROLLMODE MSGSELECTMODE msiexec MSIL msix MSRC MSVCRTD MTSM murmurhash muxes myapplet mybranch mydir Mypair Myval NAMELENGTH namestream NCCALCSIZE NCCREATE NCLBUTTONDOWN NCLBUTTONUP NCMBUTTONDOWN NCMBUTTONUP NCPAINT NCRBUTTONDOWN NCRBUTTONUP NCXBUTTONDOWN NCXBUTTONUP NEL nerf nerror netcoreapp netstandard NEWCPLINFO NEWCPLINFOA NEWCPLINFOW Newdelete NEWINQUIRE NEWINQURE NEWPROCESSWINDOW NEWTEXTMETRIC NEWTEXTMETRICEX Newtonsoft NEXTLINE nfe NLSMODE NOACTIVATE NOAPPLYNOW NOCLIP NOCOMM NOCONTEXTHELP NOCOPYBITS NODUP noexcepts NOFONT NOHIDDENTEXT NOINTEGRALHEIGHT NOINTERFACE NOLINKINFO nologo NOMCX NOMINMAX NOMOVE NONALERT nonbreaking nonclient NONINFRINGEMENT NONPREROTATED nonspace NOOWNERZORDER NOPAINT noprofile NOREDRAW NOREMOVE NOREPOSITION NORMALDISPLAY NOSCRATCH NOSEARCH noselect NOSELECTION NOSENDCHANGING NOSIZE NOSNAPSHOT NOTHOUSANDS NOTICKS NOTIMEOUTIFNOTHUNG NOTIMPL NOTOPMOST NOTRACK NOTSUPPORTED nouicompat nounihan NOYIELD NOZORDER NPFS nrcs NSTATUS ntapi ntdef NTDEV ntdll ntifs ntm ntstatus nttree ntuser NTVDM nugetversions NUKTA nullness nullonfailure nullopts NUMSCROLL NUnit nupkg NVIDIA NVT OACR ocolor oemcp OEMFONT OEMFORMAT OEMs OLEAUT OLECHAR onecore ONECOREBASE ONECORESDKTOOLS ONECORESHELL onecoreuap onecoreuapuuid onecoreuuid ONECOREWINDOWS onehalf oneseq oob openbash opencode opencon openconsole openconsoleproxy openps openvt ORIGINALFILENAME osc OSDEPENDSROOT OSGENG outdir OUTOFCONTEXT Outptr outstr OVERLAPPEDWINDOW OWNDC owneralias OWNERDRAWFIXED packagename packageuwp PACKAGEVERSIONNUMBER PACKCOORD PACKVERSION pacp pagedown pageup PAINTPARAMS PAINTSTRUCT PALPC pankaj parentable PATCOPY PATTERNID pbstr pcb pcch PCCHAR PCCONSOLE PCD pcg pch PCIDLIST PCIS PCLONG pcon PCONSOLE PCONSOLEENDTASK PCONSOLESETFOREGROUND PCONSOLEWINDOWOWNER pcoord pcshell PCSHORT PCSR PCSTR PCWCH PCWCHAR PCWSTR pdbs pdbstr pdcs PDPs pdtobj pdw pdx peb PEMAGIC pfa PFACENODE pfed pfi PFILE pfn PFNCONSOLECREATEIOTHREAD PFONT PFONTENUMDATA PFS pgd pgomgr PGONu pguid phhook phico phicon phwnd pidl PIDLIST piml pimpl pinvoke pipename pipestr pixelheight PIXELSLIST PJOBOBJECT platforming playsound ploc ploca plocm PLOGICAL pnm PNMLINK pntm POBJECT Podcast POINTERUPDATE POINTSLIST policheck POLYTEXTW POPUPATTR popups PORFLG POSTCHARBREAKS POSX POSXSCROLL POSYSCROLL ppbstr PPEB ppf ppidl pprg PPROC ppropvar ppsi ppsl ppsp ppsz ppv ppwch PQRST prc prealigned prect prefast preflighting prepopulate presorted PREVENTPINNING PREVIEWLABEL PREVIEWWINDOW PREVLINE prg pri processhost PROCESSINFOCLASS PRODEXT PROPERTYID PROPERTYKEY propertyval propsheet PROPSHEETHEADER PROPSHEETPAGE propslib propsys PROPTITLE propvar propvariant psa PSECURITY pseudoconsole psh pshn PSHNOTIFY PSINGLE psl psldl PSNRET PSobject psp PSPCB psr PSTR psz ptch ptsz PTYIn PUCHAR pvar pwch PWDDMCONSOLECONTEXT Pwease pweview pws pwstr pwsz pythonw Qaabbcc QUERYOPEN quickedit QUZ QWER qwerty qwertyuiopasdfg Qxxxxxxxxxxxxxxx qzmp RAII RALT rasterbar rasterfont rasterization RAWPATH raytracers razzlerc rbar RBUTTON RBUTTONDBLCLK RBUTTONDOWN RBUTTONUP rcch rcelms rclsid RCOA RCOCA RCOCW RCONTROL RCOW rcv readback READCONSOLE READCONSOLEOUTPUT READCONSOLEOUTPUTSTRING READMODE rectread redef redefinable redist REDSCROLL REFCLSID REFGUID REFIID REFPROPERTYKEY REGISTEROS REGISTERVDM regkey REGSTR RELBINPATH rendersize reparented reparenting REPH replatformed Replymessage reportfileaccesses repositorypath rerasterize rescap RESETCONTENT resheader resmimetype resultmacros resw resx rfa rfid rftp rgbi RGBQUAD rgbs rgfae rgfte rgn rgp rgpwsz rgrc rguid rgw RIGHTALIGN RIGHTBUTTON riid ris robomac rodata rosetta RRF RRRGGGBB rsas rtcore RTEXT RTLREADING Rtn runas RUNDLL runformat runft RUNFULLSCREEN runfuzz runsettings runtest runtimeclass runuia runut runxamlformat RVERTICAL rvpa RWIN rxvt safemath sba SBCS SBCSDBCS sbi sbiex scancodes scanline schemename SCL SCRBUF SCRBUFSIZE screenbuffer SCREENBUFFERINFO screeninfo scriptload scrollback SCROLLFORWARD SCROLLINFO scrolllock scrolloffset SCROLLSCALE SCROLLSCREENBUFFER scursor sddl SDKDDK segfault SELCHANGE SELECTEDFONT SELECTSTRING Selfhosters Serbo SERVERDLL SETACTIVE SETBUDDYINT setcp SETCURSEL SETCURSOR SETCURSORINFO SETCURSORPOSITION SETDISPLAYMODE SETFOCUS SETFOREGROUND SETHARDWARESTATE SETHOTKEY SETICON setintegritylevel SETITEMDATA SETITEMHEIGHT SETKEYSHORTCUTS SETMENUCLOSE SETNUMBEROFCOMMANDS SETOS SETPALETTE SETRANGE SETSCREENBUFFERSIZE SETSEL SETTEXTATTRIBUTE SETTINGCHANGE Setwindow SETWINDOWINFO SFGAO SFGAOF sfi SFINAE SFolder SFUI sgr SHCo shcore shellex SHFILEINFO SHGFI SHIFTJIS shlwapi SHORTPATH SHOWCURSOR SHOWDEFAULT SHOWMAXIMIZED SHOWMINNOACTIVE SHOWNA SHOWNOACTIVATE SHOWNORMAL SHOWWINDOW sidebyside SIF SIGDN SINGLETHREADED siup sixel SIZEBOX SIZESCROLL SKIPFONT SKIPOWNPROCESS SKIPOWNTHREAD sku sldl SLGP SLIST slmult sln slpit SManifest SMARTQUOTE SMTO snapcx snapcy snk SOLIDBOX Solutiondir sourced SRCAND SRCCODEPAGE SRCCOPY SRCINVERT SRCPAINT srcsrv SRCSRVTRG srctool srect SRGS srvinit srvpipe ssa startdir STARTF STARTUPINFO STARTUPINFOEX STARTUPINFOEXW STARTUPINFOW STARTWPARMS STARTWPARMSA STARTWPARMSW stdafx STDAPI stdc stdcpp STDEXT STDMETHODCALLTYPE STDMETHODIMP STGM STRINGTABLE STRSAFE STUBHEAD STUVWX stylecop SUA subcompartment subkeys SUBLANG swapchain swapchainpanel SWMR SWP swrapped SYMED SYNCPAINT syscalls SYSCHAR SYSCOLOR SYSCOMMAND SYSDEADCHAR SYSKEYDOWN SYSKEYUP SYSLIB SYSLINK SYSMENU sysparams SYSTEMHAND SYSTEMMENU SYSTEMTIME tabview taef TARG targetentrypoint TARGETLIBS TARGETNAME targetver tbc tbi Tbl TBM TCHAR TCHFORMAT TCI tcommands tdbuild Tdd TDP Teb Techo tellp teraflop terminalcore terminalinput terminalrenderdata TERMINALSCROLLING terminfo testcon testd testenvs testlab testlist testmd testname TESTNULL testpass testpasses TEXCOORD textattribute TEXTATTRIBUTEID textboxes textbuffer TEXTINCLUDE textinfo TEXTMETRIC TEXTMETRICW textmode texttests THUMBPOSITION THUMBTRACK tilunittests titlebars TITLEISLINKNAME TLDP TLEN TMAE TMPF tmultiple tofrom toolbars TOOLINFO TOOLWINDOW TOPDOWNDIB tosign tracelogging traceviewpp trackbar trackpad transitioning Trd TRIMZEROHEADINGS trx tsgr tsm TSTRFORMAT TTBITMAP TTFONT TTFONTLIST TTM TTo tvpp tvtseq TYUI uap uapadmin UAX UBool ucd uch UChars udk uer UError uia UIACCESS uiacore uiautomationcore uielem UINTs uld uldash uldb ulwave Unadvise unattend UNCPRIORITY unexpand unhighlighting unhosted UNICODETEXT UNICRT Unintense unittesting unittests unk unknwn UNORM unparseable untextured UPDATEDISPLAY UPDOWN UPKEY upss uregex URegular usebackq USECALLBACK USECOLOR USECOUNTCHARS USEDEFAULT USEDX USEFILLATTRIBUTE USEGLYPHCHARS USEHICON USEPOSITION userdpiapi Userp userprivapi USERSRV USESHOWWINDOW USESIZE USESTDHANDLES usp USRDLL utext utr UVWXY uwa uwp uwu uxtheme Vanara vararg vclib vcxitems VERCTRL VERTBAR VFT vga vgaoem viewkind VIRAMA Virt VIRTTERM visualstudiosdk vkey VKKEYSCAN VMs VPA vpack vpackdirectory VPACKMANIFESTDIRECTORY VPR VREDRAW vsc vsconfig vscprintf VSCROLL vsdevshell vse vsinfo vsinstalldir vspath VSTAMP vstest VSTS VSTT vswhere vtapp VTE VTID vtmode vtpipeterm VTRGB VTRGBTo vtseq vtterm vttest WANSUNG WANTARROWS WANTTAB wapproj WAVEFORMATEX wbuilder wch wchars WCIA WCIW wcs WCSHELPER wcsrev wcswidth wddm wddmcon WDDMCONSOLECONTEXT wdm webpage websites wekyb wewoad wex wextest WFill wfopen WHelper wic WIDTHSCROLL Widthx Wiggum WImpl WINAPI winbasep wincon winconp winconpty winconptydll winconptylib wincontypes WINCORE windbg WINDEF windir windll WINDOWALPHA windowdpiapi WINDOWEDGE WINDOWINFO windowio WINDOWPLACEMENT windowpos WINDOWPOSCHANGED WINDOWPOSCHANGING windowproc windowrect windowsapp WINDOWSIZE windowsshell windowsterminal windowtheme winevent winget wingetcreate WINIDE winmd winmgr winmm WINMSAPP winnt Winperf WInplace winres winrt winternl winui winuser WINVER wistd wmain WMSZ wnd WNDALLOC WNDCLASS WNDCLASSEX WNDCLASSEXW WNDCLASSW Wndproc WNegative WNull wordi wordiswrapped workarea WOutside WOWARM WOWx wparam WPartial wpf wpfdotnet WPR WPrep WPresent wprp wprpi wrappe wregex writeback WRITECONSOLE WRITECONSOLEINPUT WRITECONSOLEOUTPUT WRITECONSOLEOUTPUTSTRING wrkstr WRL wrp WRunoff WSLENV wstr wstrings wsz wtd WTest WTEXT WTo wtof WTs WTSOFTFONT wtw Wtypes WUX WVerify WWith wxh wyhash wymix wyr xact Xamlmeta xamls xaz xbf xbutton XBUTTONDBLCLK XBUTTONDOWN XBUTTONUP XCast XCENTER xcopy XCount xdy XEncoding xes XFG XFile XFORM XIn xkcd XManifest XMath XNamespace xorg XPan XResource xsi xstyler XSubstantial XTest XTPOPSGR XTPUSHSGR xtr XTWINOPS xunit xutr XVIRTUALSCREEN yact YCast YCENTER YCount yizz YLimit YPan YSubstantial YVIRTUALSCREEN zabcd Zabcdefghijklmn Zabcdefghijklmnopqrstuvwxyz ZCmd ZCtrl ZWJs ZYXWVU ZYXWVUT ZYXWVUTd zzf

Some files were automatically ignored 🙈

These sample patterns would exclude them:

(?:^|/)sample\.json$
(?:|$^ 89% - excluded 43/48)[^/]\.py$
^config/logging_config\.yaml$
^config/model_config\.yaml$
^Dockerfile$

You should consider excluding directory paths (e.g. (?:^|/)vendor/), filenames (e.g. (?:^|/)yarn\.lock$), or file extensions (e.g. \.gz$)

You should consider adding them to:

.github/actions/spelling/excludes.txt

File matching is via Perl regular expressions.

To check these files, more of their words need to be in the dictionary than not. You can use patterns.txt to exclude portions, add items to the dictionary (e.g. by adding them to allow.txt), or fix typos.

To accept these unrecognized words as correct, update file exclusions, and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the git@github.com:SoftwareDevLabs/ComplianceAgent.git repository
on the copilot/monitor-compliance-standards branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.25/apply.pl' |
perl - 'https://github.com/SoftwareDevLabs/ComplianceAgent/actions/runs/28831574213/attempts/2' &&
git commit -m 'Update check-spelling metadata'

OR

To have the bot accept them for you, comment in the PR quoting the following line:
@check-spelling-bot apply updates.

Forbidden patterns 🙅 (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

Should be socioeconomic

https://dictionary.cambridge.org/us/dictionary/english/socioeconomic

socio-economic
Pattern suggestions ✂️ (8)

You could add these patterns to .github/actions/spelling/patterns/cf8a0aee04ccab940981e418704e2a4032c159b5.txt:

# Automatically suggested patterns

# hit-count: 7 file-count: 1
# URL escaped characters
%[0-9A-F][A-F](?=[A-Za-z])

# hit-count: 6 file-count: 6
# JavaScript regular expressions
# javascript test regex
/.{3,}/[gim]*\.test\(

# hit-count: 4 file-count: 4
# node packages
(["'])@[^/'" ]+/[^/'" ]+\g{-1}

# hit-count: 3 file-count: 3
# imports
^import\s+(?:(?:static|type)\s+|)(?:[\w.]|\{\s*\w*?(?:,\s*(?:\w*|\*))+\s*\})+

# hit-count: 2 file-count: 2
# container images
image: [-\w./:@]+

# hit-count: 1 file-count: 1
# GitHub actions
\buses:\s+[-\w.]+/[-\w./]+@[-\w.]+

# hit-count: 1 file-count: 1
# go install
go install(?:\s+[a-z]+\.[-@\w/.]+)+

# hit-count: 1 file-count: 1
# bearer auth
(['"])[Bb]ear[e][r] .{3,}?\g{-1}

Alternatively, if a pattern suggestion doesn't make sense for this project, add a #
to the beginning of the line in the candidates file with the pattern to stop suggesting it.

Errors, Warnings, and Notices ❌ (4)

See the 📂 files view, the 📜action log, or 📝 job summary for details.

❌ Errors, Warnings, and Notices Count
⚠️ binary-file 48
ℹ️ candidate-pattern 15
❌ check-file-path 19
❌ forbidden-pattern 1

See ❌ Event descriptions for more information.

✏️ Contributor please read this

By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.

If the listed items are:

  • ... misspelled, then please correct them instead of using the command.
  • ... names, please add them to .github/actions/spelling/allow/names.txt.
  • ... APIs, you can add them to a file in .github/actions/spelling/allow/.
  • ... just things you're using, please add them to an appropriate file in .github/actions/spelling/expect/.
  • ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in .github/actions/spelling/patterns/.

See the README.md in each directory for more information.

🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

@vinod0m vinod0m marked this pull request as ready for review July 7, 2026 00:02
@vinod0m vinod0m merged commit 8077567 into main Jul 7, 2026
15 of 26 checks passed
@vinod0m vinod0m deleted the copilot/monitor-compliance-standards branch July 7, 2026 00:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a canonical “mission-critical process compliance” multi-agent system prompt to the repo’s prompt template configuration, introduces a small runtime API for loading/retrieving prompt templates from YAML, and adds unit tests plus __init__.py markers to stabilize Python test discovery.

Changes:

  • Added a new system prompt template prompts.mission_critical_process_compliance_multi_agent in config/prompt_templates.yaml.
  • Introduced load_prompt_templates() and get_prompt_template() in src/prompt_engineering/templates.py for YAML-based prompt retrieval.
  • Added unit tests for prompt template loading/retrieval and added __init__.py markers to ensure test package discovery.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
config/prompt_templates.yaml Defines the new mission-critical compliance multi-agent system prompt template content.
src/prompt_engineering/templates.py Adds YAML-backed prompt template loader and lookup helpers.
test/unit/prompts/test_prompt_templates.py Adds unit tests validating the new prompt key, content retrieval, and missing-template behavior.
test/init.py Marks test/ as a package to improve discovery/module resolution.
test/unit/init.py Marks test/unit/ as a package for stable discovery/module resolution.
test/integration/init.py Marks test/integration/ as a package for stable discovery/module resolution.

from pathlib import Path
from typing import Any

import yaml
Comment on lines +30 to +37
templates = load_prompt_templates(path)
prompt_config = templates.get("prompts", {}).get(template_name)
if not prompt_config:
raise KeyError(f"Prompt template '{template_name}' not found")
content = prompt_config.get("content")
if not isinstance(content, str):
raise ValueError(f"Prompt template '{template_name}' content must be a string")
return content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants