{"contenttype":"result","language":"en","availableLanguages":"en","rcn":"462454","id":"824231_PS","title":"Periodic Reporting for period 2 - DECODER (DEveloper COmpanion for Documented and annotatEd code Reference)","teaser":"The DECODER (DEveloper COmpanion for Documented and annotatEd code Reference) project aims at providing a unified framework for gathering a comprehensive knowledge base about a given software project and offering a wide variety of requests over such information. This knowledge...","description":"periodic","summary":"The DECODER (DEveloper COmpanion for Documented and annotatEd code Reference) project aims at providing a unified framework for gathering a comprehensive knowledge base about a given software project and offering a wide variety of requests over such information. This knowledge base is known as the Persistent Knowledge Monitor (PKM).\nThe needs of all stakeholders across the whole software development life-cycle vary significantly from modelling to implementation to validation to maintenance. Moreover, information is typically scattered across many documents, many of them in natural language text, making it difficult to process and to relate to the relevant parts of the code itself. This lack of traceability is a major impediment to software development, review and maintainance. For instance, it is sometimes difficult to assess whether a function fulfills its intended behavior as described in an ambiguous and\/or incomplete English text. On the other hand, manually writing fully formal specification is extremely tedious, especially for large software. Similarly, when facing some maintenance tasks on some unfamiliar piece of software, it can be complicated to understand whether some comment adequately represents what the actual code is doing. Still, at maintenance level, from the mere description of a vulnerability discovered in a third-party dependency code of the project at hand, deciding whether this vulnerability might have an impact on the product, and, if so, how critical it is, is usually not an obvious task. In order to improve this situation, DECODER proposes to use Natural Language Processing (NLP) techniques for extracting information from informal project-related documents and finding correspondances with the code artifacts and\/or the associated formal specifications.\nIn addition, a semi-formal description language (ASFM, standing for Abstract Semi-Formal Model) is designed, together with an abstract graphical tool for animating models. ASFM is generated either from informal documents or from the code. The user can then refine interactively the models. Once they are satisfied with the refinements, they will be able to derive a fully formal specification and use formal methods for verifying the software, or to generate test scenarios that cover all possible behaviors exhibited by the model.\nFinally, the PKM and the associated tools developed within the DECODER are assessed on several real-world use-cases in order to ensure that they are up to the task. Feedback from the use-case partners are taken into account throughout the project to improve the tools.","workPerformed":"During the course of the project, DECODER explored several directions. First and foremost, all partners were involved in the definition of the PKM meta-model, in order to gain a comprehensive view of all the various user roles interacting with the PKM during software development lifecycle, as well as which types of artifacts might be stored in the knowledge base, and which kinds of requests the PKM should be able to answer. In parallel, DECODER investigated methodological solutions for taking advantage of the PKM server in existing software development processes, such as Waterfall, V-cycle, or agile methods.\nBased on the meta-model, the PKM server and its API were designed and implemented on top of MongoDB, a document-oriented database. The preferred interacting device with the database itself is a RESTful server, which features a powerful set of requests specified through the OpenAPI format.\nA prototype for the graphical user interface of the PKM client was designed and implemented, acting as the main user entry point to the PKM. Moreover, an orchestrator was developed that takes care of making the relevant calls to the PKM server and to the individual tools, providing a very smooth user experience for the most standard usages of the platform. In order to facilitate its insertion in existing SW development chains, the PKM server can be synchronized with a git server, ensuring that the code artifacts stored in the PKM are always up-to-date.\nOn another aspect of the project, a first version of the ASFM language was designed. ASFM takes the PKM meta-model as reference, and is defined as a JSON schema that closely follows the PKM API to ease the task of generating ASFM models from requests to the PKM server. ASFM schemas can be extracted from standard .doc or .pdf documents, and are the basis of the FormalDebug tool that represents graphically the datastructures of the program and can be manipulated interactively to better understand the invariants in the code.\nAnother work stream concerned NLP and the connections between code and informal documents.  Code summarization tools were applied to track potentially misused identifiers and suggest a fix. The identification of correspondances between documentation and code using machine translation techniques also proceeded well. All NLP tools were integrated within the PKM. It is now possible to visualize the traceability matrix between high-level requirements (in English) and the relevant code. Finally, some work was devoted to semantically analyze CVE messages and highlight their main characteristic, in order to help users to assess whether their code is impacted by a given vulnerability.\nFinally, the selection of use-cases was refined, ensuring that they are representative of a large class of applications and that they can lead to a wide spectrum of activities involving the PKM and the other DECODER tools.  All use-cases were analyzed with the tools developed within the project and the results are stored in the PKM server.","finalResults":"The project was presented in several venues, in particular open-source conferences, where it sparked the interest of many developers. DECODER is thus in line with its ambition of delivering tools and methodologies for radically improving software development processes, thereby offering the possibility to obtain much more easily robust and secure software. The PKM and a core set of tools have become mature enough to be offered outside of DECODER for early adopters. This has been possible through two beta-testing campaigns under the auspices of the ReachOut project, as well as through evaluations done with students and researchers outside of DECODER. CEA\u2019s membership in the OW2 community ensures that the PKM and related tooling, which are already available under Open-Source licence, will be maintained on the longer run.\nTo conclude, DECODER\u2019s results can be extended in various ways, which could be the subject of future collaborative projects. This includes a tighter integration with git servers to let individual tools exploit the correspondances between each successive version of the code base, enhancing the results of NLP tools when it comes to generate formal specification, and extending ASFM to facilitate formal reasoning with graphical representation of structures.","periodNumber":"2","periodFrom":"2020-01-01","periodTo":"2021-12-31","reportTypeDescription":"Periodic Reporting for period 2","identifiers":{"reportId":"249576"},"sourceUpdateDate":"2024-02-24 10:47:00","contentCreationDate":"2020-05-08 14:08:15","contentUpdateDate":"2024-04-01 16:50:14","lastUpdateDate":"2024-04-01 16:50:18","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"pubsum","title":"Report Summary","description":"Result: Publishable summary (FP7 SESAM) and Summary for publication (H2020 SyGMa)","displayCode":"\/Report Summary","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"219908","id":"824231","acronym":"DECODER","title":"DEveloper COmpanion for Documented and annotatEd code Reference","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"project","title":"Project","description":"Project factsheets","displayCode":"\/Project","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/307\/979\/973\/1601","title":"operating systems","displayCode":"\/natural sciences\/computer and information sciences\/software\/software applications\/system software\/operating systems","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/299\/951","title":"big data","displayCode":"\/natural sciences\/computer and information sciences\/data science\/big data","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/299\/939","title":"natural language processing","displayCode":"\/natural sciences\/computer and information sciences\/data science\/natural language processing","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/15962364","title":"knowledge engineering","displayCode":"\/natural sciences\/computer and information sciences\/knowledge engineering","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/307\/30031","title":"software development","displayCode":"\/natural sciences\/computer and information sciences\/software\/software development","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"en","code":"RIA","title":"Research and Innovation action","description":"Research and Innovation action","displayCode":"\/Research and Innovation action","attributes":{"classification":"projectFundingSchemeCategory","type":"relatedProjectFundingSchemeCategory"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"de,en,es,fr,it,pl","rcn":"664147","id":"H2020-EU.2.1.1.","code":"H2020-EU.2.1.1.","frameworkProgramme":"H2020","pga":"H2020-EU.2.1.1.","title":"INDUSTRIAL LEADERSHIP - Leadership in enabling and industrial technologies - Information and Communication Technologies (ICT)","shortTitle":"Information and Communication Technologies","parent":{"rcn":"664145\/664143\/664087\/664086","code":"H2020-EU.2.1.\/H2020-EU.2.\/H2020-EC\/H2020"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"legalbasis","title":"Legal Basis","description":"Programme: Legal basis for research funding","displayCode":"\/Legal Basis","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"editorial","title":"CORDIS Editorial","description":"Written by CORDIS","displayCode":"\/CORDIS Editorial","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedLegalBasis","uniqueProgrammePart":"true"}},{"availableLanguages":"en","rcn":"702942","id":"H2020_ICT-16-2018","code":"ICT-16-2018","frameworkProgramme":"H2020","title":"Software Technologies","parent":{"rcn":"20200","code":"H2020-Topics"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"topic","title":"Topic","description":"Programme: Part of the Commission work programme implementing legal basis","displayCode":"\/Topic","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}},{"language":"en","availableLanguages":"en","code":"31053774","title":"Software Architectures","displayCode":"\/Software Architectures","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053773","title":"Software Design \u0026 Development","displayCode":"\/Software Design \u0026 Development","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053777","title":"System Software","displayCode":"\/System Software","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053776","title":"Open Source Software","displayCode":"\/Open Source Software","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053782","title":"Service Engineering","displayCode":"\/Service Engineering","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053772","title":"Requirements Analysis","displayCode":"\/Requirements Analysis","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31048406","title":"Software engineering, operating systems, computer languages","displayCode":"\/Software engineering, operating systems, computer languages","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053775","title":"Software notation \u0026 tools","displayCode":"\/Software notation \u0026 tools","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053778","title":"Software quality Management","displayCode":"\/Software quality Management","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31051323","title":"Open innovation","displayCode":"\/Open innovation","attributes":{"classification":"topicKeyword","type":"isAbout"}},{"language":"en","availableLanguages":"en","code":"31053783","title":"Service oriented architectures","displayCode":"\/Service oriented architectures","attributes":{"classification":"topicKeyword","type":"isAbout"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedTopic"}}]},"contenttype":"project","attributes":{"source":"corda","type":"relatedProject"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/h2020\/824\/824231_PS\/pkm-ecosystem.png","mimetype":"image\/png","size":"153600","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}},{"language":"en","availableLanguages":"en","defaultLanguage":"en","id":"e174355601df17f5f0d7b052e9274079","archivedDate":"2025-07-08 00:00:00","physUrl":"https:\/\/www.decoder-project.eu\/","status":"legacy","contenttype":"webLink","attributes":{"represents":"project","source":"corda","type":"relatedWebsite"}}]},"modelVersion":"132","icaVersion":"20.0.0-48f81e07"}