Reverse Engineering a UAV Prototype using Agile Practices
This example shows how Agile Practices were applied to an unmanned air vehicle (UAV) that had been developed as a prototype and was intended to be produced and marketed (Marbach 2012). At the time it was required to have the Federal Aviation Agency (FAA) approve the use of a UAV in populated areas. FAA required artifacts such as requirements, architecture representations and test procedures to grant this approval. A team was established to reverse engineer the artifacts needed from the operational prototypes being flown at the time. The test manager requested that the life cycle process to produce these artifacts be agile. Stakeholder needs were determined, and a plan was written to describe the problem and the process to be applied. Then the approach was presented to the team, the product backlog was developed, and a training and planning session was started.
この例は、プロトタイプとして開発され、生産され販売されることが意図されていた無人航空機(unmanned air vehicle, UAV)に、アジャイル実践がどのように適用されたかを示している(Marbach 2012)。当時、人口密集地域で UAV を使用するには、連邦航空局(Federal Aviation Agency, FAA)の承認を得る必要があった。FAA は、この承認を与えるにあたり、要求事項、アーキテクチャ表現、テスト手順のような成果物を要求した。当時飛行していた運用プロトタイプから必要な成果物をリバースエンジニアリングするために、チームが編成された。テストマネージャは、これらの成果物を作成するライフサイクルプロセスをアジャイルにするよう求めた。ステークホルダーのニーズが決定され、問題と適用するプロセスを記述した計画が作成された。次に、そのアプローチがチームに提示され、プロダクトバックログが作成されて、訓練と計画のセッションが開始された。
The agile process is described in the SEBoK here. When defining requirements (Carlson 2010) proposes that the requirements be identified, gathered, defined, and developed in iterations (or sprints). These requirements are written in the User Story format and controlled and managed in a product backlog. The User Stories in the Product backlog are selected and estimated by the team based on importance and need. The most important user stories (or requirements) are prioritized and moved to the top of the product backlog. Then those User Stories are broken into tasks and the tasks are estimated. The number of tasks that the team can complete are then put into the Sprint Backlog (or iteration backlog) and those tasks are then worked on by the team. For this work the UAV and its code were already operational. We had working code, a test bed, user interfaces and user procedures. The goal was to produce requirements documentation, architecture and design diagrams, a trace matrix of tests to requirements, software test descriptions and a Hazard Analysis to take before the FAA.
アジャイルプロセスについては、SEBoK のここで説明されている。要求事項の定義に関して、(Carlson 2010)は、要求事項をイテレーション(またはスプリント)の中で特定、収集、定義、開発することを提案している。これらの要求事項はユーザーストーリー形式で記述され、プロダクトバックログで統制・管理される。プロダクトバックログ内のユーザーストーリーは、重要性とニーズに基づいてチームが選定し、見積もる。最も重要なユーザーストーリー(または要求事項)には優先順位が付けられ、プロダクトバックログの最上位へ移される。次に、それらのユーザーストーリーはタスクに分解され、タスクが見積もられる。チームが完了できる数のタスクがスプリントバックログ(またはイテレーションバックログ)に入れられ、チームはそれらのタスクに取り組む。今回の仕事では、UAV とそのコードはすでに運用されていた。我々の手元には、動作するコード、テストベッド、ユーザーインタフェース、ユーザー手順があった。目標は、要求ドキュメント、アーキテクチャ図と設計図、テストから要求事項へのトレースマトリクス、ソフトウェアテスト記述、そして FAA に提出するためのハザード分析を作成することであった。
The team assembled were experienced engineers, but not with this UAV system. There were UAV subject matter experts (SMEs) still on the program, but they were not always available to answer questions or come to reviews. There was existing documentation in program repositories such as charts and operator procedures, but we did not know where to find this information. Given these challenges it was decided to use collaborative tools to manage the information as it was discovered and make it visible to the team and the UAV SMEs.
集められたチームは経験豊富な技術者で構成されていたが、この UAV システムの経験はなかった。UAV の主題専門家(subject matter experts, SMEs)はまだプログラムに残っていたが、質問への回答やレビューへの参加にいつも応じられるわけではなかった。プログラムのリポジトリには、チャートや運用者手順などの既存ドキュメントがあったが、我々はそれらの情報がどこにあるのかを知らなかった。こうした課題を踏まえ、情報を見つけ次第管理し、チームと UAV の SME から見えるようにするために、コラボレーションツールを使うことが決まった。
The first set of information produced was the product backlog. An example of the product backlog is shown in Figure 1. Epics are a set of User Stories that take more than one iteration to complete. A user story is broken into tasks such as those shown in Figure 2. These templates were developed to understand the scope of each task and what the definition of done for that task was. The goal was to identify tasks that take a maximum of 16 work hours to complete. The product backlog was developed and managed in an Application Lifecycle Management (ALM) Tool. Our team did a trades study when selecting a tool for use. Parameters considered in the trade included ease of use, cost, and features of the tool itself. The tool selected was VersionOne.
最初に作成された情報の集合は、プロダクトバックログであった。プロダクトバックログの例を図1に示す。エピックとは、完了までに1イテレーションを超える期間を要するユーザーストーリーの集合である。ユーザーストーリーは、図2に示すようなタスクに分解される。これらのテンプレートは、各タスクのスコープと、そのタスクの完了の定義を把握するために開発された。目標は、完了までに要する時間が最大で16作業時間となるタスクを特定することであった。プロダクトバックログは、アプリケーションライフサイクル管理(Application Lifecycle Management, ALM)ツールで作成・管理された。我々のチームは、使用するツールの選定にあたってトレードスタディを行った。トレードで考慮したパラメータには、使いやすさ、コスト、ツール自体の機能が含まれていた。選定されたツールは VersionOne であった。
The team then determined what collaboration tool would be used to make our discovered information visible. The requirements for this tool were: easy to access, easy to use, easy to comment on and easy to change. At the time these tools were available: Mediawiki, an open source, TWikiTM, another open source, Confluence, SharePoint, and Socialtext. It was decided to use TWikiTM.
チームは次に、発見した情報を可視化するためにどのコラボレーションツールを使うかを決めた。このツールに対する要求事項は、アクセスしやすいこと、使いやすいこと、コメントしやすいこと、変更しやすいことであった。当時は次のツールが利用可能であった:オープンソースの Mediawiki、同じくオープンソースの TWikiTM、Confluence、SharePoint、Socialtext。TWikiTM を使うことが決まった。
For each of the epics in work, such as “Power On”, the Description of Functionality was written in the collaboration tool. Figure 3 shows the list of content in the collaboration tool for the artifacts being developed.
「電源オン(Power On)」など、作業中の各エピックについて、機能の説明がコラボレーションツールに記述された。図3は、作成中の成果物について、コラボレーションツール内のコンテンツ一覧を示している。
Figure 1. Example Product Backlog for an Unmanned Air Vehicle (UAV) (Marbach 2023, used with permission)
図1:無人航空機(UAV)のプロダクトバックログの例(Marbach 2023、許可を得て使用)
この図は原典のページに掲載されています。権利の都合により本サイトでは省略しています。原典で見る
Figure 2. User Story Templates and Task Templates for Consistent Development (Marbach 2023, used with permission)
図2:一貫した開発のためのユーザーストーリーテンプレートとタスクテンプレート(Marbach 2023、許可を得て使用)
この図は原典のページに掲載されています。権利の都合により本サイトでは省略しています。原典で見る
Figure 3. Collaboration Tool Table of Contents for a system being analyzed (Marbach 2023, used with permission)
図3:分析対象システムのためのコラボレーションツールの目次(Marbach 2023、許可を得て使用)
この図は原典のページに掲載されています。権利の都合により本サイトでは省略しています。原典で見る
The Collaboration Home Page had an introduction about the analysis underway. It had links to a list of functional threads that were links to the work products themselves. There were also links to the references used, links to the test environment information and links to templates for the work products with instructions. The work products being developed, as shown in Figure 3, were Collaboration Tool Templates, Functional Descriptions, Requirements including Use Cases, Hazard Analysis and Risk Mitigation, and Test Procedures including Test Cases and Test Descriptions.
コラボレーションのホームページには、進行中の分析の紹介が掲載されていた。そこには機能スレッドの一覧へのリンクがあり、各機能スレッドは作業成果物そのものへのリンクになっていた。また、使用した参考文献へのリンク、テスト環境情報へのリンク、指示を伴う作業成果物のためのテンプレートへのリンクもあった。図3に示すように、作成中の作業成果物は、コラボレーションツールテンプレート、機能の説明、ユースケースを含む要求事項、ハザード分析とリスク緩和、そしてテストケースとテスト記述を含むテスト手順であった。
Once the requirements were complete for one Epic, such as “Power On” the material in the Collaboration Tool was exported into a Word Document and that was parsed into a Requirements Management tool. This team used the Dynamic Object-Oriented Requirements System (DOORS). The final Software Requirement Specification (SRS) was created from DOORS. After peer review the release documents were baselined into the Data Management Tool Repository that provided Configuration Management control. The Integrated Toolset used for this project is shown in Figure 4.
「電源オン」などの1つのエピックについて要求事項が完成すると、コラボレーションツール内の素材が Word ドキュメントにエクスポートされ、それが解析されて要求管理ツールに取り込まれた。このチームは Dynamic Object-Oriented Requirements System(DOORS)を使用した。最終的なソフトウェア要求仕様書(Software Requirement Specification, SRS)は DOORS から作成された。ピアレビューの後、リリースドキュメントは、構成管理の統制機能を備えたデータ管理ツールのリポジトリにベースライン化された。このプロジェクトで使用した統合ツールセットを図4に示す。
Figure 4. Integrated Toolset for Analyzing a Prototype UAV (Marbach 2023, used with permission)
図4:プロトタイプ UAV を分析するための統合ツールセット(Marbach 2023、許可を得て使用)
この図は原典のページに掲載されています。権利の都合により本サイトでは省略しています。原典で見る
The sequence of development started with the prioritized user story to be worked first. Then the Collaboration tool was used to capture the information that members of the reverse engineering team worked with SMEs to reach an understanding of the functional requirements, hazard analysis and software test descriptions for the user story in development. A formal peer review was conducted and when agreed it was ready those documents were parsed into the requirements management tool. The Software Test Description (STD) was used to test the UAV code using the test platform. If the STD is determined to be complete, then it is also parsed into the requirements management tool and traced to the requirements that have been verified by testing. From the requirements management tool formal artifacts such as the Software Requirement Specification, the Software Test Description and the Trace Matrix were produced. Those were put into a configuration management tool. If the STD used for the testing was not Done then any markups were made into the Collaboration Tool and the Peer Review was conducted again. Essentially, each iteration resulted in potentially deliverable products that could be delivered to a stakeholder.
The data management tool, shown in Figure 4 by the green oval contained a repository of draft folders, peer review records, action items created, tracking and closure, a repository of release folders, the calendar, meeting notifications, distribution lists, access control to records, configuration management workflow and approvals, and it provided collaboration across companies, subcontractors, and customers.
The documentation created included software requirements specification that was created epic by epic rather than all at once, software test descriptions created as each feature is analyzed, and a Hazard Analysis being performed one epic at a time. These documents were updated each increment. An increment is a set of iterations. Each backlog item included conducting peer reviews of the content, as shown in Figure 2 list of tasks of each user story. Records of the peer reviews were maintained in the data management tool as mentioned above. The definition of done for these artifacts was that the work was not complete until the information was posted into the Requirements Management Tool. The Software Test Descriptions were linked to the requirements in the Requirements Management Tool thus beginning the Trace Matrix.
The Agile Practices described in this article can be mapped to LEAN Disciplines as shown in Table 1.
開発は、最初に取り組む、優先順位付けされたユーザーストーリーから始まった。次に、リバースエンジニアリングチームのメンバーが SME と協力し、開発中のユーザーストーリーに関する機能要求、ハザード分析、ソフトウェアテスト記述について理解に至った情報を、コラボレーションツールを使って取り込んだ。正式なピアレビューを実施し、準備が整ったと合意されると、それらのドキュメントは解析されて要求管理ツールに取り込まれた。ソフトウェアテスト記述(Software Test Description, STD)は、テストプラットフォーム上で UAV コードをテストするために使われた。STD が完全であると判断されれば、それも解析されて要求管理ツールに取り込まれ、テストによって検証された要求事項にトレースされた。要求管理ツールからは、ソフトウェア要求仕様書、ソフトウェアテスト記述、トレースマトリクスなどの正式な成果物が作成された。それらは構成管理ツールに格納された。テストに使った STD が完了(Done)していなければ、マークアップはすべてコラボレーションツールに反映され、ピアレビューが再度実施された。本質的には、各イテレーションによって、ステークホルダーに納入できる、潜在的に納入可能な製品が生み出された。
図4で緑の楕円で示したデータ管理ツールには、ドラフトフォルダのリポジトリ、ピアレビューの記録、作成されたアクション項目とその追跡・完了、リリースフォルダのリポジトリ、カレンダー、会議通知、配布リスト、記録へのアクセス制御、構成管理のワークフローと承認が含まれており、企業、下請け業者、顧客にまたがるコラボレーションの場を提供した。
作成されたドキュメントには、一括ではなくエピックごとに作成されたソフトウェア要求仕様書、各機能の分析に合わせて作成されたソフトウェアテスト記述、そして一度に1つのエピックずつ実施されるハザード分析が含まれていた。これらのドキュメントは増分ごとに更新された。増分とはイテレーションの集合である。各バックログ項目には、図2の各ユーザーストーリーのタスク一覧に示すように、コンテンツのピアレビューの実施が含まれていた。ピアレビューの記録は、前述のとおりデータ管理ツールで維持された。これらの成果物の完了の定義は、情報が要求管理ツールに掲示されるまで仕事は完了しない、というものであった。ソフトウェアテスト記述は要求管理ツール内の要求事項にリンクされ、こうしてトレースマトリクスの作成が始まった。
この記事で述べたアジャイル実践は、表1に示すように、リーン(LEAN)の実践原則に対応づけることができる。
表1. アジャイル実践がリーンの実践原則を推進する(許可を得て使用)
| +Table 1. Agile Practices Drive LEAN Disciplines (Used with Permission) |
| LEAN Disciplines |
|---|
| Agile Requirements Analysis |
| 1. Establish Clear Priorities |
| 1. Product backlog is always prioritized; Team works on highest priority items first |
| 2. Eliminate Bad Multitasking – Focus and Finish |
| 2. Team is shielded from interruptions that cause bad multitasking |
| 3. Limit the Release of Work in Process (WIP) to Deliver Earlier |
| 3. Tasks are pulled from the iteration backlog one at a time to limit individual WIP |
| 4. Prepare! Start to Finish |
| 4. Requirements are not selected from the product backlog until everything needed is available |
| 5. Use Checklists to Prevent Defects and Traveled Risk |
| 5. Checklists and guides are used to prevent costly rework |
| 6. Face into and Resolve Issues Quickly |
| 6. Daily stand-up meetings force issues and risks to be identified and resolved quickly |
| 7. Drive Daily Execution |
| 7. Daily stand-up meetings drive team-based execution |
| リーンの実践原則 | アジャイル要求分析 |
|---|---|
| 1. 明確な優先順位を確立する | 1. プロダクトバックログは常に優先順位付けされており、チームは最も優先順位の高い項目から取り組む |
| 2. 悪いマルチタスキングを排除する – 集中して完了する | 2. チームは、悪いマルチタスキングを引き起こす中断から守られる |
| 3. より早期に納入するために、仕掛作業(WIP)の投入を制限する | 3. 個人の WIP を制限するために、タスクはイテレーションバックログから1つずつ引き出される |
| 4. 準備せよ!開始から終了まで | 4. 必要なものがすべて揃うまで、要求事項はプロダクトバックログから選ばれない |
| 5. 欠陥と伝播するリスクを防ぐためにチェックリストを使う | 5. 高コストの手戻りを防ぐためにチェックリストとガイドが使われる |
| 6. 問題に向き合い、迅速に解決する | 6. 毎日のスタンドアップミーティングにより、問題とリスクを迅速に特定し解決することが強いられる |
| 7. 日々の実行を推進する | 7. 毎日のスタンドアップミーティングがチームベースの実行を推進する |
Systems engineering best practice is to perform requirements analysis, verification and validation as a system is being developed. Artifacts are created and configuration controlled as the system matures. This example describes how an existing operating prototype could be transitioned to a production system by performing requirements analysis, risk mitigation and hazard analysis even after the prototype is developed and operational. There is value in performing these system engineering tasks for an existing prototype to verify it is safe to operate and to achieve approval to fly. Using iterative and incremental development of these artifacts limited the work in process (WIP). The whole team worked one epic at a time to produce artifacts that addressed that one epic and verified the requirements, testing and analysis of hazards relative to that one epic, such as “Power On”. Then they would work the next epic focusing on one capability at a time therefore reinforcing each other’s work quite effectively.
システムズエンジニアリングのベストプラクティスは、システムの開発中に要求分析、検証、妥当性確認を実施することである。成果物は、システムの成熟に伴って作成され、構成管理される。この例は、プロトタイプが開発され運用可能になった後であっても、要求分析、リスク緩和、ハザード分析を実施することによって、すでに運用されている試作機を、どのように量産型のシステムへ移行できるかを記述している。既存のプロトタイプに対してこれらのシステムズエンジニアリングタスクを実施することには、それが安全に運用できることを検証し、飛行の承認を得るうえで価値がある。これらの成果物を反復的かつ増分的に開発することで、仕掛品(WIP)が制限された。チーム全体は一度に1つのエピックに取り組み、「電源オン」のような1つのエピックについて、その1つのエピックに対処し、その1つのエピックに関する要求事項、テスト、ハザードの分析を検証する成果物を作成した。次に、一度に1つの能力に焦点を当てて次のエピックに取り組み、こうして互いの仕事を非常に効果的に補強し合った。
*Developing Systems Engineering products such as Systems Requirements Specifications, Hazards Analysis, Test *Procedures, and Verification Trace Matrix in an iterative incremental way is effective. *Some new to using these principles and methods did resist at first but then saw the value and became advocates of the iterative incremental process. *The use of tools helped keep the work visible, aiding in communication and accuracy. *Access to Subject Matter Experts (SMEs) was critical to producing accurate products. *The team focused on known elements first. Then the knowledge learned was applied to elements with more uncertainty. This applies the Lean Principle of limiting the work in process. *The team did not start work on an element until they had what was needed to accomplish the analysis. This applies the Lean Principle of working start to finish.
Carlson, R., Matzuc, P., 2010, “A Viable Systems Engineering Approach”, Proceedings of the Systems and Software Technology Conference (SSTC), 2010, Salt Lake City, Utah, USA.
Marbach, P., 2012, “An Experience Report on Agile Systems Engineering Requirements Analysis,” Proceedings of the INCOSE-LA Mini-conference, 2012, Los Angeles, CA, USA.
None.
None.